Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
寻找目标颜色,然后将整个屏幕分为两个部分,然后判断左右屏幕分别有多少目标颜色的数量,并且能串口输出是左还是右。
调用两次find_blob,第一次的roi范围是左边,第二次的roi范围是右边。
这个操作有代码嘛?
blob1 = img.find_blobs(roi=[0,0,img.width()/2, img.height()/2], 阈值) blob2 = img.find_blobs(roi=[img.width()/2, img.height()/2, img.width()/2, img.height()/2], 阈值)