This code is designed to crop images and extract text from them using Optical Character Recognition (OCR). It is particularly useful for processing images of documents or forms where specific information needs to be extracted. Please install tesseract ocr first!
pip install image-trimmer
The code can be run from the command line using the following syntax:
image-trimmer -i ./path/to/folder -o ./path/to/output -t scb