Taking picture with QTCaptureView
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.
精彩评论