AttributeError missing LibtesseractPdfBuilder
Hi, I want to use pyocr to generate an image pdf with a text layer above the image. I saw your example and tried it. Unfortunately I get an AttributeError because the libtesseract module is not present. Maybe because it's not included in the __ init __.py?
images = pdf2image.convert_from_path(_file_name, dpi=200, fmt='jpg')
builder = pyocr.libtesseract.LibtesseractPdfBuilder()
for image in images:
builder.add_image(image)
builder.set_output_file(_file_name[:-4] + "_ocr") # .pdf will be appended
builder.build()
AttributeError: module 'pyocr.libtesseract' has no attribute 'LibtesseractPdfBuilder'
Do you have an idea?