使用 C++ 捕获 MacBook Pro iSight 视频

发布于 2024-09-25 03:18:30 字数 185 浏览 1 评论 0原文

我想从我的 MacBook Pro iSight 中获取一个 C++ 框架并对其进行一些详细说明。 我已经知道如何使用 QTKit 在 ObjC 中执行此操作,但是有没有办法在 C++ 中执行相同的操作?

注意: 我尝试使用 macports 安装 OpenCV,但该框架似乎不支持 iSight 相机。

I'd like to grab a frame from my MacBook Pro iSight in C++ and do some elaborations on it.
I already know how to do that in ObjC with QTKit, but is there any way to do the same thing in C++?

NOTE:
I tried to install OpenCV with macports, but the framework doesn't seem to support iSight cameras.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自控 2024-10-02 03:18:30

您可以使用 OpenCV ( http://opencv.willowgarage.com/wiki/ ) 来做到这

一点这是一个示例代码,您可以复制/粘贴来尝试:http://www.geckogeek.fr/lire-le-flux-dune-webcam-camera-video-avec-opencv.html(文章为法语,但代码为英语)

You could do that using OpenCV ( http://opencv.willowgarage.com/wiki/ )

And here is a sample code you can copy/paste to try it : http://www.geckogeek.fr/lire-le-flux-dune-webcam-camera-video-avec-opencv.html (article in french but code is in english)

素手挽清风 2024-10-02 03:18:30

您还可以使用集成视觉工具包 (http://ivt.sourceforge.net),它支持 Mac OS X 和 Quicktime。

步骤如下:

  1. 安装 Quicktime SDK(如果尚未安装)。
  2. 下载当前版本的 IVT 并解压缩存档。
  3. 在 IVT/src/Makefile.base 中将标志“USE_QUICKTIME = 0”设置为“USE_QUICKTIME = 1”
  4. 在 IVT/src 中运行“make”
  5. 在 IVT/examples/CaptureApp 中
  6. 运行“make” 运行“../../files/” make_app.sh CaptureApp captureapp' 位于 IVT/examples/CaptureApp 中,
  7. 通过双击生成的图标或键入“open CaptureApp.app”来运行应用程序。

如果您有任何疑问,请告诉我(您可以在 IVT 主页上找到我的联系信息)。我还在 IVT Sourceforge 论坛上回答问题,通常速度很快。

You can also use the Integrating Vision Toolkit (http://ivt.sourceforge.net), which supports Mac OS X and Quicktime.

Here are the steps:

  1. Install the Quicktime SDK, if you haven't yet.
  2. Download the current version of the IVT and unpack the archive.
  3. Set the flag 'USE_QUICKTIME = 0' to 'USE_QUICKTIME = 1' in IVT/src/Makefile.base
  4. Run 'make' in IVT/src
  5. Run 'make' in IVT/examples/CaptureApp
  6. Run '../../files/make_app.sh CaptureApp captureapp' in IVT/examples/CaptureApp
  7. Run the application, either by double clicking on the generated icon, or by typing 'open CaptureApp.app'.

If you have any questions, let me know (you can find my contact information on the IVT homepage). I also answer questions in the IVT Sourceforge forum usually quite fast.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文