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
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,14 @@ Ready-to-use OCR with 80+ [supported languages](https://www.jaided.ai/easyocr) a
11
11
[Try Demo on our website](https://www.jaided.ai/easyocr)
12
12
13
13
## What's new
14
+
- 29 June 2021 - Version 1.4
15
+
-[Instruction](https://github.com/JaidedAI/EasyOCR/blob/master/custom_model.md) on training/using custom recognition model
16
+
- Example [dataset](https://www.jaided.ai/easyocr/modelhub) for model training
17
+
- Batched image inference for GPU (thanks [@SamSamhuns](https://github.com/SamSamhuns), see [PR](https://github.com/JaidedAI/EasyOCR/pull/458))
18
+
- Vertical text support (thanks [@interactivetech](https://github.com/interactivetech)). This is for rotated text, not to be confused with vertical Chinese or Japanese text. (see [PR](https://github.com/JaidedAI/EasyOCR/pull/450))
19
+
- Output in dictionary format (thanks [@A2va](https://github.com/A2va), see [PR](https://github.com/JaidedAI/EasyOCR/pull/441))
There are 2 options to train your own recognition model.
6
+
7
+
**1. Open-source approach**
8
+
9
+
For the open-source approach, you can use your own data or generate your own dataset. To generate your own data, we recommend using
10
+
[TextRecognitionDataGenerator](https://github.com/Belval/TextRecognitionDataGenerator). We provide an example of dataset [here](https://jaided.ai/easyocr/modelhub/).
11
+
After you have a dataset, you can train your own model by following this repository
The network needs to be fully convolutional in order to predict flexible text length. Our current network is 'None-VGG-BiLSTM-CTC'.
14
+
Once you got your trained model (.pth file), you need 2 additional files describing recognition network architecture and model configuration.
15
+
The example is provided in `custom_example.zip` file [here](https://jaided.ai/easyocr/modelhub/).
16
+
17
+
Please do not create an issue about data generation and model training in this repository. If you have any question regarding data generation and model training, please ask in the respective repositories.
18
+
19
+
**2. Web-based approach**
20
+
21
+
Jaided AI provides a web-based (paid) service for training your own model [here](https://jaided.ai/). You can train your model on the cloud and export it for local deployment. All 3 files are downloadable once model is trained on cloud.
22
+
23
+
## How to use your custom model
24
+
25
+
To use your own recognition model, you need 3 files either from open-source approach or web-based approach. These three files have to share the same name (for example, yourmodel.pth, yourmodel.yaml, yourmodel.py) and you will call your model by this name in EasyOCR api.
26
+
27
+
We provide [custom_example.zip](https://jaided.ai/easyocr/modelhub/)
28
+
as an example. Please download, extract and place `custom_example.py`, `custom_example.yaml` in user_network_directory (default = `~/.EasyOCR/user_network`) and place `custom_example.pth` in model directory (default = `~/.EasyOCR/model`)
29
+
Once you place all 3 files in the right place. You can use `custom_example` by
30
+
specifying `recog_network` like this `reader = easyocr.Reader(['en'], recog_network = 'custom_example')`.
- Batched image inference for GPU (thanks [@SamSamhuns](https://github.com/SamSamhuns), see [PR](https://github.com/JaidedAI/EasyOCR/pull/458))
5
+
- Vertical text support (thanks [@interactivetech](https://github.com/interactivetech)). This is for rotated text, not to be confused with vertical Chinese or Japanese text. (see [PR](https://github.com/JaidedAI/EasyOCR/pull/450))
6
+
- Output in dictionary format (thanks [@A2va](https://github.com/A2va), see [PR](https://github.com/JaidedAI/EasyOCR/pull/441))
0 commit comments