从Matlab中的时钟图像中获取时间 - 图像处理 [英] Get time from the clock image in Matlab - Image Processing

查看:632
本文介绍了从Matlab中的时钟图像中获取时间 - 图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时钟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 can think of the time of the clock.

请帮我解决这个问题。非常感谢!

Please help me solve this problem. Thank you very much!

推荐答案

在时钟中心周围的半径为M的圆圈中测试点。 (您可以使用for循环来改变从-pi到pi的角度。)

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

首先设置M以便长手触摸圆圈而不是短手。你会发现一个黑点区域,这些区域显示了长手的角度。

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.

然后用较小的M重复,这样你的圆圈就会双手交叉。如果您确定了两个不同的黑色区域,则可以决定哪一个是由于上一步骤而成的长手。 (但如果双手重叠,你可能看不到两个不同的区域。)

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

这篇关于从Matlab中的时钟图像中获取时间 - 图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆