Get time from the clock image in Matlab - Image Processing

夙愿已清 提交于 2019-12-02 10:20:25

Test points in a circle of radius M, around the centre of the clock. (You could use a for loop to vary the angle from -pi to pi.)

First set M so that the long hand will touch the circle but not the short hand. You will find a region of black points and these reveal the angle of the long hand.

Then repeat with smaller M, so your circle will cross both hands. If you identify two different black areas, you can decide which one is the long hand due to the previous step. (But if the hands are overlapping you may not see two different areas.)

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