The present application relates to a kind of based on the identification method of adjusting threshold value of
monochrome object in image of gradient solution, belong to image recognition field.The method includes: according to the color of object to be detected Initial RGB color
gamut under the threshold range is set;Collect a picture of the object to be measured in certain moment environment;The
color gradient of picture is calculated, according to the threshold range under initial RGB color
gamut the object to be measured is
cut out, and according to the image of the object to be measured that is
cut out updates HSV threshold range;New image is collected, and it is converted into HSV format;Using the updated HSV threshold value in newly collected image extracts the object to be measured;After extraction, image is morphologically detected, to complete object recognition.The present application solves the problem that the effect is poor when using fixed threshold value to detect object caused by the change of
object color caused by environment illumination etc., in the same environment, the present application only needs to update threshold value to a picture, and the detection operation pressure is small thereafter, and real-time is good.