Difference between revisions of "CUVI by Example"
From CUVI Wiki
| Line 1: | Line 1: | ||
==Motion Detection== | |||
<p>CUVI library comes with all the image processing essentials that can be used to build countless applications. For example the '''Computer Vision''' module of CUVI can be used for motion and intrusion detection in a live video stream and tracking an object of interest throughout series of cameras installed in a premises. The processing pipeline for motion detection goes as follows:</p> | <p>CUVI library comes with all the image processing essentials that can be used to build countless applications. For example the '''Computer Vision''' module of CUVI can be used for motion and intrusion detection in a live video stream and tracking an object of interest throughout series of cameras installed in a premises. The processing pipeline for motion detection goes as follows:</p> | ||
*Read a frame from the camera stream | *Read a frame from the camera stream | ||
| Line 142: | Line 143: | ||
{{#ev:vimeo|38484537|500}} | {{#ev:vimeo|38484537|500}} | ||
<p>Here's an exact same example applied on a video feed of a webcam</p> | <p>Here's an exact same example applied on a video feed of a webcam</p> | ||
====Demosaic Example== | |||
Revision as of 08:04, 27 March 2018
Motion Detection
CUVI library comes with all the image processing essentials that can be used to build countless applications. For example the Computer Vision module of CUVI can be used for motion and intrusion detection in a live video stream and tracking an object of interest throughout series of cameras installed in a premises. The processing pipeline for motion detection goes as follows:
- Read a frame from the camera stream
- Select Strong Features in that Frame using CUVI
- Read next frame
- Track features of first frame in the second frame using CUVI
- Set alarm if motion is detected
The CUVI functions used in this example are goodFeaturesToTrack() and trackFeatures(). For simplicity we have removed the I/O part on host side from the code
|
Here's an exact same example applied on a video feed of a webcam