我正在玩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()查询值后)
但它没有效果:(
任何想法?
答案 0 :(得分:1)
iOS OpenCV端口仍为in development - 请耐心等待几个月以获得更好的支持。
或者,更好的是,只需获取源代码,阅读它们,实现这些功能并将其作为补丁推回。您将获得荣耀,感谢和宝贵的开源开发经验。