Comparing pixel colors in a selected region

偶尔善良 提交于 2019-12-13 20:26:10

问题


canvas.drawCircle((float)(myMidPoint.x - myEyesDistance/2.0), myMidPoint.y, (float)30.0, myPaint);

canvas.drawCircle((float)(myMidPoint.x + myEyesDistance/2.0), myMidPoint.y, (float)30.0, myPaint);

The image shows the eyes detected using canvas. How to get the pixel colors in the circled region so that I can compare it with any preset values and tell whether eye is open or not?

See the image in link.

来源:https://stackoverflow.com/questions/17779843/comparing-pixel-colors-in-a-selected-region

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!