Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mg52/ocr
Optical Character Recognition with Javascript
https://github.com/mg52/ocr
javascript ocr ocr-recognition phaserjs
Last synced: about 2 months ago
JSON representation
Optical Character Recognition with Javascript
- Host: GitHub
- URL: https://github.com/mg52/ocr
- Owner: mg52
- License: mit
- Created: 2016-08-02T17:31:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-12T17:14:51.000Z (about 8 years ago)
- Last Synced: 2024-09-23T17:32:12.468Z (about 2 months ago)
- Topics: javascript, ocr, ocr-recognition, phaserjs
- Language: JavaScript
- Homepage:
- Size: 199 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OCR with Javascript
There is my simple OCR library written in Javascript. It recognizes only numbers (for now). I used Phaser Game Framework for background.
The file MusskyOCR.js is the main OCR algorithm file. Other files are for drawing canvas stuff.You need to draw at once. When you mouseup, the algorithm begins to recognize. (Maybe a recognize button can be added after drawing something.)
I used 10x10 pixel representation within 720x1280 pixel region and Euclidean distance method is used to recognize the number.
I made it for mobile device resolutions, if you want to run it on your web browser, I suggest turn on DevTools then change the browser resolution into mobile resolution
Examples:
![alt text](2.png)
![alt text](8.png)