Requirements
- FFmpeg.
- See rtsp-simple-server
- Configure RTSP Web Cam
About
The Node Face API RTSP Stream library uses face-api.js and node-rtsp-stream to consumes data messages from RTSP Stream and detect faces on it.
How to Use
mkdir test-face-detectcd test-face-detectnpm init -ynpm install --save fvi-node-face-api-rtsp-stream
Dev
git clone https://github.com/salespaulo/fvi-node-face-api-rtsp-streamcd fvi-node-face-api-rtsp-streamnpm installnpm run dev# OR npm run test
Instantiate
const FaceApiRtspStream = const instance =
Starting/Stoping
instance start instance
Events
instanceinstanceinstanceinstanceinstanceinstance
Lab
Into directory lab
you find tests with this library using WebSocket and jsmpeg.js. Let's join it!
-
index.js: Starts
fvi-node-face-api-rtsp-stream
, collects face detects, draw details and send,WebSocket.socket.send
, buffered image tows-index.html
. -
ws-index.html: Connects via WebSocket, get buffered images with detections and show.
-
jmpeg-index.html: Connects via jsmpeg.js, nd show.
Run
npm icd labnode ws-index.test.js
After this, opens browser url http://localhost:8081 to see images.
Licence
MIT