npm install @mastashake08/ocrtts
import { OcrTTS } from '@mastashake08/ocrtts'
const ocrtts = new OcrTTS()
ocrtts.readText(image) //image can come from stream or uploaded file , etc
- readText(image) ⇒
VoidFunction
Kind: global function
Param | Type | Description |
---|---|---|
image | Blob | ImageData | HTMLElement |
ImageSource to perform OCR on. |