Sample code for using mac camera in a program?

前端 未结 6 1223
挽巷
挽巷 2021-02-13 13:06

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 documen

6条回答
  •  北海茫月
    2021-02-13 14:04

    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.

    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.

    Both of these will require writing some Cocoa code in Objective-C, but that shouldn't really be an obstacle these days.

提交回复
热议问题