关于摄像头

wwwunix 2004-01-06 11:58:21
请问在BCB6中如何操作摄像头?如何从摄像头读取视频数据?
...全文
90 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenpeng20000 2004-01-07
  • 打赏
  • 举报
回复
简单的有控件videocapture,dspack
esiedull 2004-01-07
  • 打赏
  • 举报
回复
请教数码视频源应该注意什么呢?
lcjfy 2004-01-07
  • 打赏
  • 举报
回复
楼上提供的东西基本没有问题,但是对于数码视频源就有问题了。
esiedull 2004-01-07
  • 打赏
  • 举报
回复
AVICap supports streaming video capture and single-frame capture in real-time. In addition, AVICap provides control of video sources that are Media Control Interface (MCI) devices so the user can control (through an application) the start and stop positions of a video source, and augment the capture operation to include step frame capture.

The windows you create by using the AVICap window class can perform the following tasks:

Capture audio and video streams to an audo-video interleaved (AVI) file.
Connect and disconnect video and audio input devices dynamically.
View a live incoming video signal by using the overlay or preview methods.
Specify a file to use when capturing and copy the contents of the capture file to another file.
Set the capture rate.
Display dialog boxes that control the video source and format.
Create, save, and load palettes.
Copy images and palettes to the clipboard.
Capture and save a single image as a device-independent bitmap (DIB).
esiedull 2004-01-07
  • 打赏
  • 举报
回复
使用VFW可以很方便的操作摄像头。我给你一段代码你看看.
HWnd=capCreateCaptureWindow(
NULL,WS_CHILD|WS_VISIBLE|WS_MAXIMIZE,
0,0,500,500,
显示窗口->Handle,0
);
if (HWnd==NULL)
{
Application->MessageBox("视频初始化错误","错误", MB_OK+MB_ICONINFORMATION);
return;
}
if (!capDriverConnect(HWnd,0))
{
MessageBox(NULL,"摄像头连接错误",NULL,
MB_APPLMODAL | MB_ICONEXCLAMATION );
DestroyWindow(HWnd);
HWnd=NULL;
return;
}
capPreviewRate(HWnd,33);
bool temp;
temp=capPreview(HWnd,true);
if(temp)
ShowMessage("true");
else
ShowMessage("false");
CAPDRIVERCAPS gCapDriverCaps;
capDriverGetCaps(HWnd, &gCapDriverCaps,sizeof(CAPDRIVERCAPS));
if(gCapDriverCaps.fHasOverlay)
capOverlay(HWnd,true);
GHOSTWY 2004-01-07
  • 打赏
  • 举报
回复
真不知道了
goneaway1981 2004-01-07
  • 打赏
  • 举报
回复
up
chenpeng20000 2004-01-07
  • 打赏
  • 举报
回复
用控件videocapture;要么就学directshow

13,822

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧