Skip to content

Commit

Permalink
[OV JS] Add optical-character-recognition sample notebook (openvinoto…
Browse files Browse the repository at this point in the history
…olkit#25191)

### Details:
 - *added code in node notebook*
 - *updated the samples list in readme*
 
### Workarounds which still needs to be worked upon 
- couldn't find the js equivalent method for `cv2.getTextSize()` (opencv
python method) which is used for getting the height and width of the
crop text the opencv-wasm package does not have this api , in the
current implementation I have written a custom function `getTextSize`
which uses canvas to get the width and height of the text

- `text-recognition-resnet-fc` model IR was larger in size it was around
355MB hence I did not included it in my PR

Please provide Feedback  @Aliczi @vishniakov-nikolai

With Regards
Prakash

---------

Co-authored-by: Vishniakov Nikolai <nikolai.vishniakov@intel.com>
  • Loading branch information
qxprakash and vishniakov-nikolai authored Jul 26, 2024
1 parent b0b36a6 commit 4a5bd43
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/js/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ VSCode extension to run these notebook samples
- hello-detection.nnb
- question-answering.nnb
- pose-estimation.nnb
- optical-character-recognition.nnb

## Live Sample

Expand Down
314 changes: 314 additions & 0 deletions samples/js/node/notebooks/optical-character-recognition.nnb

Large diffs are not rendered by default.

0 comments on commit 4a5bd43

Please sign in to comment.