pysseract.Pysseract.GetThresholdedImage

Pysseract.GetThresholdedImage(self: _pysseract.Pysseract) → bytes

Get a copy of the image Tesseract has after pre-processing is complete. This can only be called once you have called SetImage. Unlike the underlying function in Tesseract, this will return the image as a byte string rather than the underlying Leptonica Pix object.