The application provides a target recognition method based on a morphological recognition
template matching, comprising the following steps: S1, acquiring an original image; S2, converting the original image from an RGB format to a
YCBCR format, and performing a binaryzation
processing on the original image in the
YCBCR format to obtain a binaryzation image, and sequentially screening out pixel points greater than a first threshold value corresponding to
YCBCR of various colors from the binaryzation image; S3, judging whether the distance between two pixel points is greater than a second threshold value, if yes, the two pixel points correspond to different targets, if not, the two pixel points are the same target, and a new second threshold value is generated; and S4, matching the binaryzation image with binaryzation template images of various targets, so as to determine the types of various targets existing in the binaryzation image. The application integrates the color, quantity and type of the target into one, and has small resource usage, and is suitable for simple use scenarios.