Snow Leopard has / dev / video (how to access the webcam from the terminal?)

I am curious if it is possible to access the integrated camera on MacBooks Snow Leopard from the terminal. A simple example for linux would be

cat /dev/video0/ > file.blah 

The Mac does not expose the camera as / video 0 /, so I wonder if this differs from another device or not?

+4
source share
1 answer

MacFuse You are better off with a software solution using something like OpenCV + python , for example with a script like:

 #!/usr/bin/env python import cv capture = cv.CaptureFromCAM(0) cv.SaveImage("file.png", cv.QueryFrame(capture)) 
+3
source

Source: https://habr.com/ru/post/1333127/


All Articles