Skip to content

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

License

Notifications You must be signed in to change notification settings

mastashake08/OCRTTS

Repository files navigation

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.