mastashake08 / OCRTTS

Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ocrtts

NPM

NPM version

Installation

npm install @mastashake08/ocrtts

Usage

import { OcrTTS } from '@mastashake08/ocrtts'

const ocrtts = new OcrTTS()

ocrtts.readText(image) //image can come from stream or uploaded file , etc

Support

License

MIT

API Reference

Classes

OcrTTS

Functions

readText(image)VoidFunction

OcrTTS

Kind: global class

readText(image) ⇒ VoidFunction

Kind: global function

Param Type Description
image Blob | ImageData | HTMLElement ImageSource to perform OCR on.

About

Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.

License:MIT License


Languages

Language:JavaScript 100.0%