@asandmann/vision
v0.0.7
Published
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.
Downloads
7
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
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'));
License
This project is licensed under the MIT License. See the LICENSE file for details.