visual-recognition
v0.1.0
Published
Recognise events from video visual symbol
Downloads
5
Readme
Visual Recognition
This libray requires ffmpeg
and tesseract
as dependencies, please install them first.
Installation
npm install -g visual-recognition
Usage
Command line
# read from a file
visual-recognition -p {example.mp4}
# set the interval
visual-recognition -p {example.mp4} --interval 300
Node.js
const path = require('path');
const visualRecognition = require('../index');
var params = {
interval: 300,
path: path.resolve(__dirname, 'example.mp4')
};
visualRecognition(params)
.then(data => {
process.stdout.write(
JSON.stringify(data),
);
});