The FindObject sample appliaction searches for round objects within a video stream.
This and other sample applications can be found in the MV Development Kit installation directory.
Filter Graph Summary
The filter graph used in the FindObject sample application splits the video stream of a live video source into two streams using the MV Splitter Filter . One stream is displays the original video stream and the other stream contains the MV Blob Counter Filter to recognize and count round blobs within the video stream.
The Application
This sample application contains two MV Smart Controls used to display the original and the proccessed video stream showing the recognized round blobs. One of the MV Smart Controls loads the filter configuration and controls the application. The other MV Smart Control just displays the video stream, working in slave mode . The application utilizes the MV VideoSourceComboBox and MV SelectInputComboBox controls to select the video source. It requests the current object count from the MV Blob Counter Filter for every processed frame using the filter event function of the MontiVision DirectShow Filters and the MV Smart Control. To change the parameters of the MV Blob Counter Filter , the application uses the MV Filter Property Control to display three property pages of the MV Blob Counter Filter.
To try out how this application works, use the MV Demo Source filter to send a stream with a couple of simple objects. Choose the MV Demo Source filter as video source, open its properties and select the desired object sets.