2012-07-02 57 views
0

我與OpenCV2 + iPhone攝像頭拍攝打OpenCV的iPhone的攝像頭,改變CV_CAP_PROP_IOS_DEVICE_ *沒有效果

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()查詢回數值後)

但它沒有效果:(

什麼想法?

回答

1

iOS的OpenCV的端口仍in development - 只要耐心等待幾個月了更好的支持。

或者,更好的,只取源,閱讀,實現功能和把它們放回原作爲修補。您將獲得榮耀,謝謝,你的和有價值的開源開發經驗。