pysseract.Pysseract.SetRectangle

Pysseract.SetRectangle(self: _pysseract.Pysseract, left: int, top: int, width: int, height: int) → None

Restrict recognition to a sub-rectangle of the image. Call after SetImage.