中文说明:应用背景背景不能出现与目标颜色相近的,否则会造成干扰,光照也不要太强,我是在实验室完成的这个任务。精度比较高。关键技术使用颜色空间转换函数将RGB转换到LAB颜色空间,然后进行阈值分割,得出目标物体的颜色阈值,进行膨胀和闭运算,然后得出物体中心,用方框将物体标记出来。
English Description:
Application backgroundBackground can not appear similar to the target color, otherwise it will cause interference, light is not too strong, I was in the laboratory to complete the task. Relatively high accuracy.Key TechnologyUse the color space conversion function to convert RGB to LAB color space, and then carry out the threshold segmentation, the color threshold of the target object, the expansion and closing operation, and then get the center of the object, using the box to mark the object.