Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.44 KB

File metadata and controls

36 lines (19 loc) · 1.44 KB

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