Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个解决魔方的程序。
基本上,我想要最简单的方法来获得这样的输出:
G G Y W W Y B G G
从这样的图像:
.
仅使用颜色进行识别是一个非常有问题的问题,因为颜色对场景光线的变化非常敏感。因此,如果您坚持只使用颜色,我会执行以下操作:
对于新图像,首先进行白平衡,然后使用采样值根据每种颜色对图像进行分割。
我的建议是使用矩形的形状,而不仅仅是分割的颜色。