Skip to content

v1.4.4 - Fix OCR display polarity auto-detection

Choose a tag to compare

@mrkaqz mrkaqz released this 10 Mar 08:53
· 9 commits to main since this release

What's changed

Bug fixes

  • Motor crop top: adjusted from 94.8% to 94.9% for more reliable row targeting
  • OCR preprocessing - replace method: added avg HSV-V auto-detection; when the cropped area has a bright green background (avg V > 150), a bitwise_not is applied after the colour mask so the final image is always black text on white background (Tesseract-preferred format)
  • OCR preprocessing - threshold method: automatically selects THRESH_BINARY for bright-background displays and THRESH_BINARY_INV for dark-background displays using the same avg-V heuristic

Notes

  • Both Motor and RSS confirmed to use bright green background + black text — fix applies correctly to both tool types
  • No changes to config file format or crop coordinates for RSS