jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.67k stars 612 forks source link

3 is a 9 #129

Closed moeskerv closed 3 years ago

moeskerv commented 3 years ago

At first: This is an awesome project! I have it running for some days now and it works great. I was looking for an solution for water meter already for a longer time and did not want to use a proximity sensor for it due to its incremental readout nature. This solution here is perfect! It always returns the current complete reading.

One thing I noticed is that for some days now a 3 in the last digital ROI is read as a 9.

Screenshot 2021-02-28 090645 Screenshot 2021-02-28 090730

I could fix this issue already by increasing the ROI size a bit:

Screenshot 2021-02-28 095520

So to sum it up: Might not be an issue at all, but might be of interest if someone has a similar issue. If I can provide more helpful data on this, I'm happy to help.

Thanks for this great and awesome project! I built my own adapter and tubus in order to print it w/o supports and in less pieces, also I use one of the ESP32-CAM-MB boards, with bring an USB daughter board so no soldering is required. I will post this as a remix on thingiverse.

BR, Volker

moeskerv commented 3 years ago

Oh oh. Might be yet an issue with my setup:

Again the 3 has become a 9. Also with the increases ROI the issue returns after some readings.

image

Any advice would be appreciated.

Thanks, Volker

moeskerv commented 3 years ago

All good again in the next cycle:

image

I will further keep an eye on this.

jomjol commented 3 years ago

Hi Volker,

you could collect some of the false identified images and send them to me for teaching. I will update the neural netework file from time to time (see just yesterday).

Best regards, jomjol

moeskerv commented 3 years ago

Hi jomjol

sure I can do that. How should I collect these pictures? Will screenshots like above be ok?

BR, Volker

jomjol commented 3 years ago

Hi Voker,

no screenshots, please! Turn on the log files for the digits and you will find already cut out ROIs in the log directory. Please collect 2-3 typicall images for each digit (0, 1, 2, ... 9) and post them, e.g. here in a zip file.

Thanks, jomjol

moeskerv commented 3 years ago

Thanks! I will start collection and provide some data about my meter in a few days.

jomjol commented 3 years ago

Let me know, when you have new numbers. Until then I will close this issue, to keep the overview on running tasks on my side

moeskerv commented 3 years ago

Here are the numbers. Took a while until a full cycle was done (10k Liters). A also added numbers for the gas meter I built.

gas_watermeter_digits.zip

jomjol commented 3 years ago

I've teached them in the following new tflite. Just unzip it and test it: dig0820s2q.zip

Let me know, if it works, then I will take it over in the next release version.

moeskerv commented 3 years ago

Unzipped, uploaded and configured in the config.ini. Will check and give a feedback.

moeskerv commented 3 years ago

After around 24h I can confirm that the digit recognition seems to work quite well on both meters! No issues with the 3 any more.

jomjol commented 3 years ago

Great to hear that!