Skip to content

davidesqalv/analog-clock-img-time-reader-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Analog Clock Time Reader

Reading the time from an analog clock image with openCV

Simple python script reads only one image, however it can be easily adapted for real-time use

Original image example:

img

Hough circle detection:

image

Cropping from the biggest circle detected

image

Polar Warp

image

Dilation with a (1,80) kernel to erase the numbers

image

Thresholding

image

Contours are searched and then hands are filtered by area and height in the image

Final print example:

image

*code will crash if one of the hands isn't visible, needs some error handling

About

Reading the time from an analog clock image with openCV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages