开发者

Taking picture with QTCaptureView

开发者 https://www.devze.com 2022-12-11 14:56 出处:网络
Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple\'s built-in iSight? I\'ve seen开发者_StackOverflow lots of tutorials on recording video but none on simply

Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple's built-in iSight? I've seen开发者_StackOverflow lots of tutorials on recording video but none on simply taking a picture. Any help or guidance is appreciated!

  • Collin


You can do this with QTKit - the QTKit Application Programming Guide has a section for this titled, "Creating a Single-Frame Grabbing Application".

The better approach, however, is ImageKit's PictureTaker. It gives you the standard UI found in ImageBooth and other apps and is dead-simple to use in code.


I found the source of ImageSnap useful for understanding how to use QTKit to do this sort of thing. It is a simple command line application for taking pictures with the iSight camera.

0

精彩评论

暂无评论...
验证码 换一张
取 消