Uses a RTMP Server and asynchronous screenshotting to detect motion from a iPhone camera!
- Saves .jpg images that are detected to have motion in timelapse style.
- Creates RTMP Server to stream iPhone camera feed through the server to use as camera.
- Uses node-media-server
- Portforward port 1935
- Tested using manycam (iOS)
- livestream to rtmp server
- Screenshots frames from RTMP Server using screenshot-desktop & vlc
- calculates the % of pixels from each frame that have changed
- based on that % judges wheter there has been motion on the screen
- ~ %98 Accuracy in well lit room
npm install node-media-server
(RTMP Server)npm install --safe jimp
(Image Proccessing & Detection)npm install express
(Live Feed Hosting), can be disabled with removal of codenpm install cookieParser
(Not Needed)npm install cookieSession
(Not Needed)npm install screenshot-desktop
(Screenshotting)npm install morgan
(Logging)VLC Media Player
(Used to capture RTMP Stream to take screenshots of) Can be swaped with /viewstream, etc...