OPenCVandDirectshow
所属分类:DirextX编程
开发工具:Visual C++
文件大小:6484KB
下载次数:139
上传日期:2007-06-01 10:00:00
上 传 者:
lxf8311
说明: 本代码实现了视频的采集,回放和背景检测等功能.
(achieve this code of the video collection, intervals and background detection, and other functions.)
文件列表:
StillCap_关于OPenCV与Directshow的样例\Debug\RCa02576 (13854, 2007-05-05)
StillCap_关于OPenCV与Directshow的样例\Debug\RCa03052 (13854, 2007-05-05)
StillCap_关于OPenCV与Directshow的样例\Debug\StdAfx.obj (196794, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StdAfx.sbr (2442148, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.bsc (5514240, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.exe (209014, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.ilk (592548, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.obj (12653, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.pch (12246136, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.pdb (1180672, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.res (28636, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCap.sbr (0, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCapDlg.obj (148975, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\StillCapDlg.sbr (0, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\Debug\vc60.idb (377856, 2007-05-21)
StillCap_关于OPenCV与Directshow的样例\Debug\vc60.pdb (954368, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\dshowutil.cpp (20590, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\dshowutil.h (2500, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\RCa00684 (13854, 2007-05-05)
StillCap_关于OPenCV与Directshow的样例\Res\StillCap.ico (25214, 2002-12-03)
StillCap_关于OPenCV与Directshow的样例\Res\StillCap.rc2 (400, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\Res\Thumbs.db (3072, 2007-05-02)
StillCap_关于OPenCV与Directshow的样例\resource.h (1330, 2007-05-02)
StillCap_关于OPenCV与Directshow的样例\StdAfx.cpp (461, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StdAfx.h (1118, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCap.aps (47716, 2007-05-28)
StillCap_关于OPenCV与Directshow的样例\StillCap.clw (2205, 2007-05-28)
StillCap_关于OPenCV与Directshow的样例\StillCap.cpp (2882, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCap.dsp (7776, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\StillCap.dsw (539, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCap.h (1658, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\stillcap.jpg (14730, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCap.ncb (123904, 2007-05-28)
StillCap_关于OPenCV与Directshow的样例\StillCap.opt (112640, 2007-05-28)
StillCap_关于OPenCV与Directshow的样例\StillCap.plg (250, 2007-05-09)
StillCap_关于OPenCV与Directshow的样例\StillCap.rc (7292, 2007-05-02)
StillCap_关于OPenCV与Directshow的样例\StillCap.sln (1338, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCap.vcproj (10014, 2002-11-12)
StillCap_关于OPenCV与Directshow的样例\StillCapDlg.cpp (41612, 2007-05-02)
... ...
//-----------------------------------------------------------------------------
// Name: DirectShow Editing Sample - Still Frame Capture
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
Description
===========
This C++ app uses the ISampleGrabber interface to capture still images
to a .bmp file on disk from a live capture stream. It demonstrates
how to put the sample grabber into the graph, and how to get the
bits back from it in real time via the callback.
StillCap starts in preview mode, displaying input from the system's
default video capture device. Normally, this will be an attached video
camera, like a USB WebCam. When you click the "Snap Still" button,
a bitmap will be captured and written to disk at the location specified
in the Capture Directory field. If you enable the "Increment filename"
option, then a new file will be written each time with a new name.
Otherwise, the same filename will be used for each captured bitmap.
You may also capture video files to disk if you select Video Capture
on the Capture Type group box. Note that video capture will start
automatically when you select this option. Click "Start Playback"
to end the capture session. The recorded file will automatically
be played back to the screen.
NOTE: For simplicity, this sample uses RGB24 format for capturing data
and writing bitmaps. If your video driver is at 16-bit depth, you may
notice flicker when running this application. To resolve this problem,
set your display's bit depth to 24-bit or 32-bit with the Display Properties
control panel application.
NOTE: This application is designed for use with video cameras and does
not support TV tuners or devices which use the DirectShow Video Port.
If you need this functionality, you must use the ICaptureGraphBuilder2
interface to properly build the filter graph in InitStillGraph().
近期下载者:
相关文件:
收藏者: