Commits

Anonymous committed 83c5516

list_cameras.m

  • Participants
  • Parent commits bdd924f

Comments (0)

Files changed (2)

lib/_camera_opencv_highgui.py

 
 class Camera:
 
-    def __init__(self, device =0, size = (640,480), mode = "RGB"):
+    def __init__(self, device = 0, size = (640,480), mode = "RGB"):
         """
         """
         self.camera = highgui.cvCreateCameraCapture(device)
 
     #include <linux/videodev.h>
     #include <linux/videodev2.h>
+#elif define(__APPLE__)
+
 #endif
 
 #define CLEAR(x) memset (&(x), 0, sizeof (x))
 int v4l_open_device (PyCameraObject* self);
 int v4l_init_device(PyCameraObject* self);
 int v4l_start_capturing(PyCameraObject* self);
+#elif define(__APPLE__)
+char** mac_list_cameras(int* num_devices);
+int mac_open_device (PyCameraObject* self);
+int mac_init_device(PyCameraObject* self);
+int mac_close_device (PyCameraObject* self);
+
+int mac_start_capturing(PyCameraObject* self);
+int mac_stop_capturing (PyCameraObject* self);
 #endif