September 2018
Intermediate to advanced
328 pages
10h 46m
English
The following snippet shows a simple example of all you need to do to add video recognition to your application. As you can see, it couldn’t be any easier:
// create motion detectorMotionDetector detector = new MotionDetector( new SimpleBackgroundModelingDetector( ), new MotionAreaHighlighting( ) );// continuously feed video frames to motion detectorwhile ( ... ){ // process new video frame and check motion level if ( detector.ProcessFrame( videoFrame ) > 0.02 ) { // ring alarm or do something else }}
We now open our video source:
videoSourcePlayer.VideoSource = new AsyncVideoSource(source);
When we receive a new video frame, that's when all the magic happens. The following are all the code it takes to make processing a new video frame ...
Read now
Unlock full access