Skip to content

Decimal digits are not handled correctly with leading zeros #100

Description

@Lieuwe

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions