问题描述
我想在一个程序中使用我的Macbook中的相机。我相当语言不可知 - C,Java,Python等都没关系。
I'd like to use the camera in my Macbook in a program. I'm fairly language agnostic - C, Java, Python etc are all fine. Could anyone suggest the best place to look for documents or "Hello world" type code?
推荐答案
Leopard中的ImageKit框架有一个类,它将让您运行您在iChat和其他应用程序中看到的标准图片拍摄工作表或面板。
The ImageKit framework in Leopard has an IKPictureTaker
class that will let you run the standard picture-taking sheet or panel that you seen in iChat and other applications.
如果您不想使用标准图片制作工具面板/工作表界面,请使用功能从iSight获取图像。
If you don't want to use the standard picture-taker panel/sheet interface, you an use the QTKit Capture functionality to get an image from the iSight.
这两个都需要在Objective-C中编写一些Cocoa代码,这些天真的是一个障碍。
Both of these will require writing some Cocoa code in Objective-C, but that shouldn't really be an obstacle these days.
这篇关于在程序中使用mac相机的示例代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!