Issue
I am using ocrmypdf library for the conversion of scanned pdf to searchable pdf but I got this error.
This is the code that I am currently running
import ocrmypdf
ocrmypdf.ocr('/content/drive/MyDrive/Dataset 2020/OCR/1081975.pdf', 'output.pdf')
Error :-
AttributeError: module 'ocrmypdf' has no attribute 'ocr'
Solution
I install this library using the following commands on google collab and it's work:-
apt install ocrmypdf
pip3 install git+https://github.com/jbarlow83/OCRmyPDF.git
pip3 install pluggy
Answered By - Kishan Yadav
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.