Skip to main content

OCR.BAD_REGION

Error code OCR.BAD_REGION, raised by packages. Area: OCR.

What it means​

  • A region needs x, y, width and height, with width and height above 0
  • The region lies outside the image (…x…)
  • The area starts outside the window (…x…)

What to do​

  • Set all four, or none for the whole image.
  • Check the coordinates.
  • Check x and y against the window's size.

In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.

Search words: OCR BAD_REGION bad region