Another method, which we applied on my program is a
method of thresholding. The result of this modification was
conversion of the image to 2 degree color spectrum (blackwhite).
This method has led to better detection results and
also reduces the system load.