Sample code for using mac camera in a program?

前端 未结 6 1226
挽巷
挽巷 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 13:48

    There is a utility called isightcapture that runs from the unix command line that takes a picture from the isight camera and saves it.

    You can check it out at this web site: http://www.macupdate.com/info.php/id/18598

    An example of using this with AppleScript is:

    tell application "Terminal" do script "/Applications/isightcapture myimage.jpg" end tell

提交回复
热议问题