Skip to content

Commit 4c61f9d

Browse files
docs: improve ocr docs by adding information on using different langu… (#341)
## Description Add section about using different recognizers. ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent a38e0a1 commit 4c61f9d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

docs/docs/computer-vision/useOCR.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,24 @@ function App() {
216216
}
217217
```
218218

219+
## Language-Specific Recognizers
220+
221+
Each supported language requires its own set of recognizer models.
222+
The built-in constants such as `RECOGNIZER_EN_CRNN_512`, `RECOGNIZER_PL_CRNN_256`, etc., point to specific models trained for a particular language.
223+
224+
> For example:
225+
>
226+
> - To recognize **English** text, use:
227+
> - `RECOGNIZER_EN_CRNN_512`
228+
> - `RECOGNIZER_EN_CRNN_256`
229+
> - `RECOGNIZER_EN_CRNN_128`
230+
> - To recognize **Polish** text, use:
231+
> - `RECOGNIZER_PL_CRNN_512`
232+
> - `RECOGNIZER_PL_CRNN_256`
233+
> - `RECOGNIZER_PL_CRNN_128`
234+
235+
You need to make sure the recognizer models you pass in `recognizerSources` match the `language` you specify.
236+
219237
## Supported languages
220238

221239
| Language | Code Name |

docs/docs/computer-vision/useVerticalOCR.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,22 @@ function App() {
236236
}
237237
```
238238

239+
## Language-Specific Recognizers
240+
241+
Each supported language requires its own set of recognizer models.
242+
The built-in constants such as `RECOGNIZER_EN_CRNN_512`, `RECOGNIZER_PL_CRNN_64`, etc., point to specific models trained for a particular language.
243+
244+
> For example:
245+
>
246+
> - To recognize **English** text, use:
247+
> - `RECOGNIZER_EN_CRNN_512`
248+
> - `RECOGNIZER_EN_CRNN_64`
249+
> - To recognize **Polish** text, use:
250+
> - `RECOGNIZER_PL_CRNN_512`
251+
> - `RECOGNIZER_PL_CRNN_64`
252+
253+
You need to make sure the recognizer models you pass in `recognizerSources` match the `language` you specify.
254+
239255
## Supported languages
240256

241257
| Language | Code Name |

0 commit comments

Comments
 (0)