我在玩 OpenCV2 + iPhone 相机捕捉
self.capture = cvCreateCameraCapture(CV_CAP_ANY);
...
IplImage * frame = cvQueryFrame(self.capture);
_
NSLog(@"CV_CAP_PROP_IOS_DEVICE_WHITEBALANCE = %f", cvGetCaptureProperty(self.capture ,CV_CAP_PROP_IOS_DEVICE_WHITEBALANCE));
NSLog(@"CV_CAP_PROP_IOS_DEVICE_TORCH = %f", cvGetCaptureProperty(self.capture ,CV_CAP_PROP_IOS_DEVICE_TORCH));
NSLog(@"CV_CAP_PROP_IOS_DEVICE_FOCUS = %f", cvGetCaptureProperty(self.capture ,CV_CAP_PROP_IOS_DEVICE_FOCUS));
NSLog(@"CV_CAP_PROP_IOS_DEVICE_FLASH = %f", cvGetCaptureProperty(self.capture ,CV_CAP_PROP_IOS_DEVICE_FLASH));
NSLog(@"CV_CAP_PROP_IOS_DEVICE_EXPOSURE = %f", cvGetCaptureProperty(self.capture, CV_CAP_PROP_IOS_DEVICE_EXPOSURE));
但是,更改任何 CV_CAP_PROP_IOS_DEVICE_* 都没有效果,我发现它们中的大多数都可以更改为 0、1、2(在使用 cvGetCaptureProperty() 查询回值之后)
但它没有效果:(
任何想法?