An open API service indexing awesome lists of open source software.

https://github.com/acsandmann/vision.rs

n-api bindings for apple vision
https://github.com/acsandmann/vision.rs

apple-vision-framework coreml napi ocr rust

Last synced: 9 months ago
JSON representation

n-api bindings for apple vision

Awesome Lists containing this project

README

          

# @asandmann/vision

This module provides simple and easy-to-use bindings to Apple's vision-framework and more specifically their VNRecognizeTextRequest function. As such, this will only run on machines running Apple software.

### Example

```typescript
import { vnRecognizeTextRequest } from '@asandmann/vision';
import { readFile } from 'fs/promises';

const buffer = await readFile('path/to/image.png');

// Using the function
const res1 = vnRecognizeTextRequest( buffer);
console.log('Recognized text:', res1.join('\n'));

```