Skip to content

Instantly share code, notes, and snippets.

View pliablepixels's full-sized avatar
💭
A clear conscience is usually the sign of a bad memory

Pliable Pixels pliablepixels

💭
A clear conscience is usually the sign of a bad memory
View GitHub Profile
nvrcam.face = new FaceDetector( "face-"+name ); // init face detection
nvrcam.rate = new RateLimiter( "rate-"+name,face_refresh_rate,true ); // no need to perform detection on every frame!
nvrcam.rate->registerProvider(*(nvrcam.cam) ); // rate reads frames from camera
nvrcam.face->registerProvider(*(nvrcam.rate) ); // face reads frames from rate!
nvrcam.motion = new MotionDetector( "modect-"+name );
nvrcam.motion->registerProvider(*(nvrcam.cam) ); // motion detect reads frames from camera
// now do the magic!
nvrcam.cam->start();
nrvcam.rate->start();
class nvrCameras
{
public:
NetworkAVInput *cam;
MotionDetector *motion;
EventDetector *event; // used if RECORD_VIDEO = 0
MovieFileOutputDetector *movie; // used if RECORD_VIDEO = 1
};
include "../base/zmApp.h"
#include "../base/zmListener.h"
#include "../providers/zmNetworkAVInput.h"
#include "../processors/zmMotionDetector.h"
#include "../processors/zmQuadVideo.h"
#include "../protocols/zmHttpController.h"
#include "../libgen/libgenDebug.h"
//
#include "../base/zmApp.h"
#include "../base/zmListener.h"
#include "../providers/zmNetworkAVInput.h"
#include "../processors/zmMotionDetector.h"
#include "../processors/zmQuadVideo.h"
#include "../protocols/zmHttpController.h"
#include "../libgen/libgenDebug.h"
//
my @daemons = (
'zmc',
'zma',
'zmf',
'zmfilter.pl',
'zmaudit.pl',
'zmtrigger.pl',
'zmx10.pl',
'zmwatch.pl',
'zmupdate.pl',