Experiments
ai-digit
Reading a meter with a neural network
Not maintainedMy electricity meter has a mechanical counter with number wheels. The question: can a small neural network read the meter from a camera image?
What I built
A command line tool in Node.js that runs in a Docker container and covers the whole way:
- Snapshots from the video stream of a camera in front of the meter
- Sorting the images by digit and position in the counter, preparing the image sections with sharp
- Creating training data, training a network with brain.js and testing it against test images
- A swarm mode that automatically starts new test runs and improves the input parameters step by step depending on the recognition rate; the results end up as CSV for comparison
What came out of it
It did not work – at least not completely. Depending on the training path, the network either recognised all digits from 0 to 8 but never the 9. Or it recognised the 9 but none of the other digits. I never got all ten at once.
The project now sits archived on GitHub.