https://github.com/keizouw8/ocr-command-line-tool
A tool that can be used in the CLI or NodeJS environment to scan for text in images. It is built with the Tesseract Engine so it is very efficient.
https://github.com/keizouw8/ocr-command-line-tool
cli npm npm-package npmjs ocr-clt ocr-command scanning text-classification
Last synced: over 1 year ago
JSON representation
A tool that can be used in the CLI or NodeJS environment to scan for text in images. It is built with the Tesseract Engine so it is very efficient.
- Host: GitHub
- URL: https://github.com/keizouw8/ocr-command-line-tool
- Owner: Keizouw8
- Created: 2021-04-05T22:47:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T20:44:15.000Z (about 5 years ago)
- Last Synced: 2025-03-17T17:11:50.111Z (over 1 year ago)
- Topics: cli, npm, npm-package, npmjs, ocr-clt, ocr-command, scanning, text-classification
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ocr-command-line-tool
- Size: 15.8 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OCR Command Line Tool
OCR Command Line tool (OCR-CLT) is a global Node package that uses OCR technology to extract text from images. It is based on the Tesseract JS OCR library, so it is very efficient.
## Installation
Using npm to install CLI tool:
```shell
$ npm install -g npm
$ npm install -g ocr-command-line-tool
```
Using npm to install module:
```shell
$ npm install -g npm
$ npm install ocr-command-line-tool
```
## Example
In CLI:
```shell
$ ocr --img '' --file ''
```
In NodeJS:
```js
const ocrCommandLineTool = require("ocr-command-line-tool").ocr
async function getText (imagepath) {
var mytext = await ocrCommandLineTool(imagepath)
console.log(mytext)
}
getText('')
```
## Why OCR-CLT?
OCR-CLT text recognition easy with a simple command. Beyond this, most other competitors are made as API's, which come with hefty fees. Here, you can use the tool right from your own computer for free! Additionally you can take advantage of all the power your computer has.