How to Solve NameError: name 'ocr_predictor' is not defined -- doctr

Solution: Import the 'ocr_predictor' module

To Solve the error, add the following line to the top of your code.

from doctr.models import ocr_predictor

 

For more information:
Python doctr ocr_predictor