You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: