@@ -89,7 +89,8 @@ enum { CAP_ANY = 0, // autodetect
89
89
CAP_WINRT = 1410 , // Microsoft Windows Runtime using Media Foundation
90
90
CAP_INTELPERC = 1500 , // Intel Perceptual Computing SDK
91
91
CAP_OPENNI2 = 1600 , // OpenNI2 (for Kinect)
92
- CAP_OPENNI2_ASUS = 1610 // OpenNI2 (for Asus Xtion and Occipital Structure sensors)
92
+ CAP_OPENNI2_ASUS = 1610 , // OpenNI2 (for Asus Xtion and Occipital Structure sensors)
93
+ CAP_GPHOTO2 = 1700 // gPhoto2 connection
93
94
};
94
95
95
96
// generic properties (based on DC1394 properties)
@@ -382,6 +383,23 @@ enum { VIDEOWRITER_PROP_QUALITY = 1, // Quality (0..100%) of the videostream
382
383
VIDEOWRITER_PROP_FRAMEBYTES = 2 , // (Read-only): Size of just encoded video frame
383
384
};
384
385
386
+ // gPhoto2 properties, if propertyId is less than 0 then work on widget with that __additive inversed__ camera setting ID
387
+ // Get IDs by using CAP_PROP_GPHOTO2_WIDGET_ENUMERATE.
388
+ // @see CvCaptureCAM_GPHOTO2 for more info
389
+ enum { CAP_PROP_GPHOTO2_PREVIEW = 17001 , // Capture only preview from liveview mode.
390
+ CAP_PROP_GPHOTO2_WIDGET_ENUMERATE = 17002 , // Readonly, returns (const char *).
391
+ CAP_PROP_GPHOTO2_RELOAD_CONFIG = 17003 , // Trigger, only by set. Reload camera settings.
392
+ CAP_PROP_GPHOTO2_RELOAD_ON_CHANGE = 17004 , // Reload all settings on set.
393
+ CAP_PROP_GPHOTO2_COLLECT_MSGS = 17005 , // Collect messages with details.
394
+ CAP_PROP_GPHOTO2_FLUSH_MSGS = 17006 , // Readonly, returns (const char *).
395
+ CAP_PROP_SPEED = 17007 , // Exposure speed. Can be readonly, depends on camera program.
396
+ CAP_PROP_APERTURE = 17008 , // Aperture. Can be readonly, depends on camera program.
397
+ CAP_PROP_EXPOSUREPROGRAM = 17009 , // Camera exposure program.
398
+ CAP_PROP_VIEWFINDER = 17010 // Enter liveview mode.
399
+ };
400
+
401
+ // enum {
402
+
385
403
class IVideoCapture ;
386
404
387
405
/* * @brief Class for video capturing from video files, image sequences or cameras. The class provides C++ API
0 commit comments