File size: 392 Bytes
ee3a6ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from models.ocr_model import OCRModel
from utils.image_processing import preprocess_image

def main():
    # Load the OCR model
    ocr_model = OCRModel()

    # Load the image
    image_path = 'path/to/image.jpg'
    image = preprocess_image(image_path)

    # Perform OCR
    text = ocr_model.recognize_text(image)

    print("Recognized text:", text)

if __name__ == "__main__":
    main()