DirectShow Sample Application: Still Image Capture 

The ImageGrabber sample application demonstrates how to use the MV Image Grabber filter for still image capture and how to use filter events through the MontiVision Smart Control.

This and other sample applications can be found under the MV Development Kit installation directory. 

Filter Graph Summary

A very simple filter configuration (*.mvp) is used for this demo application. MV Demo Sourse acts as dummy live video source as usually and will be replaced at runtime by a real video source. MV Image Grabber is used to capture still images from the live video.

 

The Application

The demo application was created using Visual Basic 6. The MontiVision Smart Control is utilized to load and control the filter configuration and to display the live video stream.

The MV VideoSourceComboBox and MV SelectInputComboBox controls are used to select the video source. Two buttons are used to display the property page of the video source filter and the capture filter. The MV Trigger Button is attached to the IMVTrigger interface of the MV Image Grabber in order to trigger the still image capturing. At the bottom of the application the path to the last captured still image file is displayed.