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).
我想在一个程序中先进行模版匹配,再进行颜色识别。 可是模版匹配需要用灰度图,颜色识别需要用rgb彩图,怎么做?
可以,模版匹配后更改sensor.set_pixformat(sensor.RGB565)即可
下面的程序可供参考:
第二种方法,可以尝试再模版匹配识别到的范围内调用img.grayscale_to_rgb()函数