When converting string to float, negative values are filtered out in the regex in line 100 of ocr_lib.py
newtxt = re.sub(r'[^\d.]+', '', txt)
To allow negative values, add "| -" to the regex:
newtxt = re.sub(r'[^\d.|-]+', '', txt)
Another option is to keep the regex as is, but make it optionally configurable.
When converting string to float, negative values are filtered out in the regex in line 100 of ocr_lib.py
newtxt = re.sub(r'[^\d.]+', '', txt)To allow negative values, add "| -" to the regex:
newtxt = re.sub(r'[^\d.|-]+', '', txt)Another option is to keep the regex as is, but make it optionally configurable.