Get time from the clock image in Matlab - Image Processing

前端 未结 1 519
我在风中等你
我在风中等你 2021-01-26 11:43

clock http://img710.imageshack.us/img710/2623/circlock.jpg

I do not know how to determine the top of the needle of the clock. If you determine the coordinates of them, I

相关标签:
1条回答
  • 2021-01-26 12:13

    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.)

    0 讨论(0)
提交回复
热议问题