0.0.1 • Published 7 months ago

@napi-rs/system-ocr v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@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
ExampleResult
exampleresult
exampleresult

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: