First I have to appolologize, did not use raspberry as I have a whole table full of airplane electronics and raspi is in use as PIC programmer.
But gocr was useless on the 7 segment recognition, as I found out yesterday or was it the day before, time flies or flys? I dunno.
Anyways connected the Logitech E2500 webcam to the PC, grabbbed the Sony alarm clock, got some alu foil from a tin foil hat to screen the setup against the sun, and made a test movie like this:
# Logitech E2500 webcam in focus on /dev/video0 # pointed at Sony alarm clock # show camera properties: v4l2-ctl -d /dev/video0 -l # set auto gain of to prevent 7 segment muxing becoming viible in low light: v4l2-ctl -d /dev/video0 --set-ctrl=auto_gain=0 # check it it happened v4l2-ctl -d /dev/video0 -l brightness (int) : min=0 max=255 step=1 default=128 value=128 contrast (int) : min=0 max=255 step=1 default=128 value=128 gamma (int) : min=1 max=6 step=1 default=4 value=4 auto_gain (bool) : default=1 value=0