https://github.com/mastashake08/ocrtts
Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.
https://github.com/mastashake08/ocrtts
shape-detection speech-synthesis text-detection text-to-speech textdetection
Last synced: 5 months ago
JSON representation
Javascript package that uses the TextDetector API and Speech Synthesis to recognize and read text aloud.
- Host: GitHub
- URL: https://github.com/mastashake08/ocrtts
- Owner: mastashake08
- License: mit
- Created: 2023-11-03T23:34:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-03T23:53:44.000Z (over 1 year ago)
- Last Synced: 2025-01-11T00:10:16.120Z (6 months ago)
- Topics: shape-detection, speech-synthesis, text-detection, text-to-speech, textdetection
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ocrtts
[](https://nodei.co/npm/ocrtts/)
[](https://www.npmjs.com/package/ocrtts)
## Installation
```sh
npm install @mastashake08/ocrtts
```## Usage
```javascript
import { OcrTTS } from '@mastashake08/ocrtts'const ocrtts = new OcrTTS()
ocrtts.readText(image) //image can come from stream or uploaded file , etc
```
## Support
- [Patreon](https://patreon.com/mastashake08)
## License
[MIT](https://github.com/mastashake08/ocrtts/blob/master/LICENSE)
# API Reference
## Classes
## 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. |