UNPKG

easyocr-wrapper

Version:

EasyOCR wrapper for Node.js using PythonShell

12 lines (10 loc) 338 B
const { exec } = require('child_process'); exec('pip install -r requirements.txt', (err, stdout, stderr) => { if (err) { console.error('❌ Python dependencies installation failed.'); console.error(stderr); return; } console.log('✅ Python dependencies installed successfully.'); console.log(stdout); });