8000 GitHub - Brooooooklyn/system-ocr: Ocr api via system API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Brooooooklyn/system-ocr

Repository files navigation

@napi-rs/system-ocr

https://github.com/Brooooooklyn/system-ocr/actions

OCR library that uses system provided API. VisionKit on macOS, Media OCR on Windows.

Example

node example/index.js
Example Result
example result
example result

Usage

Install

pnpm add @napi-rs/system-ocr
yarn install @napi-rs/system-ocr
npm install @napi-rs/system-ocr

API

import { recognize } from '@napi-rs/system-ocr'

const result = await recognize('path/to/image.png')
import { recognize, OcrAccuracy } from '@napi-rs/system-ocr'

const image = await fetch('https://example.com/image.png')

const result = await recognize(image, OcrAccuracy.Accurate, ['fr', 'zh-cn'])

Credits

Huge thanks to:

About

Ocr api via system API

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published
0