# 获取交通灯颜色
def Get_TrafficLightColor(img):
#area_threshold 面积阈值,如果色块被框起来的面积小于这个值,会被过滤掉
#merge 合并,如果设置为True,那么合并所有重叠的blob为一个。
for blob in img.find_blobs([red_traffic, yellow_traffic, green_traffic], roi=([0, 0, 320, 120]), area_threshold
Openmv识别程序
于 2021-03-16 14:03:10 首次发布