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.91k stars 646 forks source link

OCR problem? How I that possible? #2906

Open funx1 opened 8 months ago

funx1 commented 8 months ago

The Problem

OCR working but number not correctly used.

Version

'v15.6.0

Logfile

Got this before I set to previous value to 560,... 561 is not correctly identified and set although the OCR shows it.

Expected Behavior

No response

Screenshots

Screenshot 2024-02-14 at 17 16 30

Additional Context

No response

IvoFalke commented 8 months ago

Can confirm this behavior with the same constallation with the last digit being 1 and still beeing recognised as 0

The Problem

OCR working but number not correctly used.

Version

'v15.6.0

Logfile

[0d00h00m00s] 2024-02-14T13:29:51 [MAIN] ================================================= [0d00h00m00s] 2024-02-14T13:29:51 [MAIN] ==================== Start ====================== [0d00h00m00s] 2024-02-14T13:29:51 [MAIN] ================================================= [0d00h00m00s] 2024-02-14T13:29:51 [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit) [0d00h00m00s] 2024-02-14T13:29:51 [MAIN] Total heap: 4380111 byte [0d00h00m04s] 2024-02-14T13:29:56 [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 [0d00h00m04s] 2024-02-14T13:29:56 [SDCARD] Basic R/W check started... [0d00h00m04s] 2024-02-14T13:29:56 [SDCARD] Basic R/W check successful [0d00h00m04s] 2024-02-14T13:29:56 [SNTP] TimeServer: * [0d00h00m04s] 2024-02-14T13:29:56 [SNTP] Configuring NTP Client... [0d00h00m04s] 2024-02-14T14:29:56 [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 [0d00h00m04s] 2024-02-14T14:29:56 [SNTP] time zone: +0100 Delta to UTC: 3600 seconds [0d00h00m04s] 2024-02-14T14:29:56 [SNTP] Time is already set: 2024-02-14 14:29:56 [0d00h00m04s] 2024-02-14T14:29:56 [MAIN] CPU frequency: 160 MHz [0d00h00m05s] 2024-02-14T14:29:56 [SDCARD] Folder/file presence check started... [0d00h00m05s] 2024-02-14T14:29:56 [SDCARD] Folder/file presence check successful [0d00h00m05s] 2024-02-14T14:29:56 [MAIN] Tag: 'v15.6.0', Release: v15.6.0 (Commit: 8d6f731+), Date/Time: 2024-02-09 13:01, Web UI: Release: v15.6.0 (Commit: 8d6f731+) [0d00h00m05s] 2024-02-14T14:29:56 [MAIN] Reset reason: Via esp_restart [0d00h00m05s] 2024-02-14T14:29:56 [WLANINI] SSID: *** [0d00h00m05s] 2024-02-14T14:29:56 [WLANINI] Password: XXXXXXXX [0d00h00m05s] 2024-02-14T14:29:56 [WLANINI] Hostname: Wasseruhr [0d00h00m05s] 2024-02-14T14:29:56 [WLANINI] RSSIThreshold: -75 [0d00h00m05s] 2024-02-14T14:29:56 [MAIN] WLAN config loaded, init WIFI... [0d00h00m05s] 2024-02-14T14:29:56 [WIFI] Automatic interface config --> Use DHCP service [0d00h00m05s] 2024-02-14T14:29:57 [WIFI] Set hostname to: Wasseruhr [0d00h00m05s] 2024-02-14T14:29:57 [WIFI] Init successful [0d00h00m09s] 2024-02-14T14:30:01 [WIFI] Connected to: *****, RSSI: -69 [0d00h00m10s] 2024-02-14T14:30:02 [WIFI] Assigned IP: 192.168.0.173 [0d00h00m25s] 2024-02-14T14:30:17 [MAIN] Device info: CPU cores: 2, Chip revision: 100 [0d00h00m25s] 2024-02-14T14:30:17 [MAIN] SD card info: Name: 00000, Capacity: 971MB, Free: 960MB [0d00h00m27s] 2024-02-14T14:30:19 [MAIN] Initialization completed successfully [0d00h00m30s] 2024-02-14T14:30:21 [LOGFILE] Set log level to ERROR [0d00h01m53s] 2024-02-14T14:31:45 [POSTPROC] main: Raw: 00280.6203, Value: , Status: Neg. Rate - Read: - Raw: 00280.6203 - Pre: 281.4950 [0d00h03m53s] 2024-02-14T14:33:45 [POSTPROC] main: Raw: 00280.6203, Value: , Status: Neg. Rate - Read: - Raw: 00280.6203 - Pre: 281.4950

Expected Behavior

when recognising 1, then use 1 not 0 :D

image image image

knuuten commented 8 months ago

I have the exact same issue with the last digit being a 2 still being recognized as a 1.

The Problem

OCR working but number not correctly used.

Version

'v15.6.0

Logfile [0d00h00m00s] 2024-02-15T11:14:33 [MAIN] ================================================= [0d00h00m00s] 2024-02-15T11:14:33 [MAIN] ==================== Start ====================== [0d00h00m00s] 2024-02-15T11:14:33 [MAIN] ================================================= [0d00h00m00s] 2024-02-15T11:14:33 [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit) [0d00h00m00s] 2024-02-15T11:14:33 [MAIN] Total heap: 4380243 byte [0d00h00m04s] 2024-02-15T11:14:37 [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 [0d00h00m04s] 2024-02-15T11:14:37 [SDCARD] Basic R/W check started... [0d00h00m04s] 2024-02-15T11:14:37 [SDCARD] Basic R/W check successful [0d00h00m04s] 2024-02-15T11:14:37 [SNTP] TimeServer: xxx [0d00h00m04s] 2024-02-15T11:14:37 [SNTP] Configuring NTP Client... [0d00h00m04s] 2024-02-15T12:14:37 [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 [0d00h00m04s] 2024-02-15T12:14:37 [SNTP] time zone: +0100 Delta to UTC: 3600 seconds [0d00h00m04s] 2024-02-15T12:14:37 [SNTP] Time is already set: 2024-02-15 12:14:37 [0d00h00m04s] 2024-02-15T12:14:37 [MAIN] CPU frequency: 160 MHz [0d00h00m04s] 2024-02-15T12:14:37 [SDCARD] Folder/file presence check started... [0d00h00m05s] 2024-02-15T12:14:37 [SDCARD] Folder/file presence check successful [0d00h00m05s] 2024-02-15T12:14:37 [MAIN] Tag: 'v15.6.0', Release: v15.6.0 (Commit: 8d6f731+), Date/Time: 2024-02-09 13:01, Web UI: Release: v15.6.0 (Commit: 8d6f731+) [0d00h00m05s] 2024-02-15T12:14:37 [MAIN] Reset reason: Via esp_restart [0d00h00m05s] 2024-02-15T12:14:37 [WLANINI] SSID: xxx [0d00h00m05s] 2024-02-15T12:14:37 [WLANINI] Password: XXXXXXXX [0d00h00m05s] 2024-02-15T12:14:37 [WLANINI] Hostname: watermeter [0d00h00m05s] 2024-02-15T12:14:38 [MAIN] WLAN config loaded, init WIFI... [0d00h00m05s] 2024-02-15T12:14:38 [WIFI] Automatic interface config --> Use DHCP service [0d00h00m05s] 2024-02-15T12:14:38 [WIFI] Set hostname to: watermeter [0d00h00m05s] 2024-02-15T12:14:38 [WIFI] Init successful [0d00h00m09s] 2024-02-15T12:14:42 [WIFI] Connected to: xxx [0d00h00m10s] 2024-02-15T12:14:43 [WIFI] Assigned IP: xxx [0d00h00m25s] 2024-02-15T12:14:58 [MAIN] Device info: CPU cores: 2, Chip revision: 100 [0d00h00m25s] 2024-02-15T12:14:58 [MAIN] SD card info: Name: 00000, Capacity: 29983MB, Free: 29940MB [0d00h00m27s] 2024-02-15T12:15:00 [MAIN] Initialization completed successfully [0d00h00m29s] 2024-02-15T12:15:02 [LOGFILE] Set log level to WARNING [0d00h01m27s] 2024-02-15T12:15:59 [POSTPROC] main: Raw: 611.6523, Value: , Status: Neg. Rate - Read: - Raw: 611.6523 - Pre: 612.6523 [0d00h04m26s] 2024-02-15T12:18:59 [POSTPROC] main: Raw: 611.6523, Value: , Status: Neg. Rate - Read: - Raw: 611.6523 - Pre: 612.6523

Expected Behavior

Report correctly recognized value

Screenshot 2024-02-15 at 12 33 55 Screenshot 2024-02-15 at 12 34 35

funx1 commented 8 months ago

Actually the problem continues as now recognizing 2 but setting the previous value again not to the recognized value. It seems to just adds +1. Now I have recognized 2 as the last digit but it show a 3 as the previous value.

caco3 commented 8 months ago

There was an issue in v15.5, maybe it is related to your issue, please update to rolling where we reverted this regression. See https://github.com/jomjol/AI-on-the-edge-device/pull/2899

IvoFalke commented 8 months ago

There was an issue in v15.5, maybe it is related to your issue, please update to rolling where we reverted this regression. See https://github.com/jomjol/AI-on-the-edge-device/pull/2899

Hi, I had the error in Release: v15.6.0 as you can see in the provided log. V15.4 ist working correctly. Should try v15.6 again?

Thank you

caco3 commented 8 months ago

no, try rolling or wait for the next release

github-actions[bot] commented 8 months ago

You can try the latest Automatic Build of the the rolling or any other branch. It might already contain a fix for your issue. See the documentation for additional information.

philipherbert commented 8 months ago

are there any plans to build a release with this important fix in the next days ?

caco3 commented 8 months ago

We just released v15.7.0 which hopefully fixes this issue.

A380Coding commented 8 months ago

I just saw the issue with 15.7.0