Closed D3nii closed 2 years ago
I have not seen this error before, it might be from some tensorflow version mismatch? It looks as if you're trying to run it on colab. I've just tested it myself:
!pip install opencv-python-headless==4.1.2.30 # some problems with other version, see https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2
!pip install calamari-ocr
!wget https://github.com/Calamari-OCR/calamari_models/raw/master/uw3-modern-english/0.ckpt.h5
!wget https://github.com/Calamari-OCR/calamari_models/raw/master/uw3-modern-english/0.ckpt.json
predictor = Predictor.from_checkpoint(
params=PredictorParams(),
checkpoint='0.ckpt')
So far no errors. Had to restart runtime after installing other numpy version.
@andbue I was taking that into account before too, but magically, it works now!
Thanks a lot!
Hi there,
I have tried the version 1.0 and 2.0 models from https://github.com/Calamari-OCR/calamari_models/archive, and also tried the best.ckpt located at https://github.com/Calamari-OCR/calamari/tree/master/calamari_ocr/test/models.
But whatever I use, I run into this error
Any ideas what to do?