Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal numbers errors #100

Open
Lieuwe opened this issue Apr 4, 2023 · 0 comments
Open

Decimal numbers errors #100

Lieuwe opened this issue Apr 4, 2023 · 0 comments

Comments

@Lieuwe
Copy link

Lieuwe commented Apr 4, 2023

I recently started using this on my watermeter, but there are a few minor issues with the decimal numbers.
Below is a pre-processed image from my camera (inverted half of the picture).
screen
Playing with the settings i get the following result:
settings
This momentarily does not present any errors. The errors occur with the decimal numbers when the first decimal is 0, for example the meter reads 611,0320. OCR will give the following number: 611,32. It deletes the leading and trailing zero's from the decimals.
This will cause an error because the delta is too big.
The script should not remove leading zero's (trailing zero's in the decimal is not a big problem).

Secondly when the OCR fails on the decimals it will revert to the last known value, which the script will take 611, so the result is 611,611.
Perhaps the decimals should be stored as a different last known value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant