Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/communotey/jscv
:eyes: Computer Vision done in Node.js
https://github.com/communotey/jscv
javascript opencv
Last synced: about 1 month ago
JSON representation
:eyes: Computer Vision done in Node.js
- Host: GitHub
- URL: https://github.com/communotey/jscv
- Owner: communotey
- License: mit
- Created: 2016-09-27T21:12:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T00:17:36.000Z (about 2 years ago)
- Last Synced: 2024-10-11T16:23:00.602Z (about 1 month ago)
- Topics: javascript, opencv
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSCV
[![npm version](https://badgen.net/npm/v/jscv)](https://www.npmjs.com/package/jscv)
[![dependencies Status](https://badgen.net/david/dep/communotey/jscv)](https://david-dm.org/communotey/jscv)
[![codecov](https://badgen.net/codecov/c/github/communotey/jscv)](https://codecov.io/gh/communotey/jscv)## Computer Vision done in Node.js
### By Chris Cates :star:## API
### `JSCV.autoReadText();` - Automatically read text from an image through Computer Vision
#### Object Parameters```javascript
JSCV.readText({
//The physical image in .png or .jpg format
'image': '/path/to/image',
//The RGBA values of the text
'rgba': {
'r': 0,
'b': 0,
'g': 0,
'a': 255
},
//The variance in rgba if there is discoloration or distortion
'variance': 20
});
```#### Supported font types:
- Times New Roman
- Lato
- Sans Serif
- Monospace
- Serif
- Open Sans### `JSCV.readText();` - Much faster then `JSCV.autoReadText();` since you can tune it to read for a specific font.
#### Object Parameters```javascript
JSCV.readText({
//The physical image in .png or .jpg format
'image': '/path/to/image',
//The font face you are looking to read from
'font': 'Lato',
//The RGBA values of the text
'rgba': {
'r': 0,
'b': 0,
'g': 0,
'a': 255
},
//The variance in rgba if there is discoloration or distortion
'variance': 20
});
```