Allowing EasyOCR to use the recog_network parameter
In EasyOCR, there is a parameter called recog_network that allows users to load their own custom recognition models. You can find the related documentation here and here.
I wanted to add this parameter to the EasyOCR model code and tried the following:
In easyocr_model.py:
I added the line below in the Reader class:
recog_network = self.options.recog_network
In pipeline_options.py:
I updated the EasyOcrOptions class by adding this line:
recog_network: Optional[str] = 'standard'
This is how I used the parameter in the pipeline:
pipeline_options.ocr_options = EasyOcrOptions(lang=['en'], recog_network='custom_example')
Let me know if you have any question or suggestion.
@itsainii That looks interesting! Could you please make a pull request with the code changes? Many thanks.