You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Camera capture on Acer Switch 5 tablet appears to work, but if I try to manually focus the camera (using the onscreen menu) it actually just applies some kind of sharpen/blur, not focus.
The Windows Camera app allows a very close (macro) focus with the tablet camera, but OpenCV is unable to reproduce this.
It is as if the parameter OpenCV thinks is focus, is actually something completely different
Steps to reproduce
#include "opencv2/opencv.hpp"
#include <iostream>
using namespace std;
using namespace cv;
int main(){
// Create a VideoCapture object and open the input file
// If the input is the web camera, pass 0 instead of the video file name
VideoCapture cap(0);
// Check if camera opened successfully
if(!cap.isOpened()){
cout << "Error opening video stream or file" << endl;
return -1;
}
cap.set(CV_CAP_PROP_SETTINGS,1); // To display the settings
// Now if the user tries to adjust the focus, something other than focus happens!
// If I leave it on auto-focus I can focus very close up so autofocus still works
// If I switch off autofocus and try to focus using the slider, I cannot focus
// I suspect the parameter being changed by OpenCV is NOT focus, even though it thinks it is
// (Note. I do think the parameter being changed by the auto-focus on/off check box is correct - it switches off auto focus)
while(1){
Mat frame;
// Capture frame-by-frame
cap >> frame;
// If the frame is empty, break immediately
if (frame.empty())
break;
// Display the resulting frame
imshow( "Frame", frame );
// Press ESC on keyboard to exit
char c=(char)waitKey(25);
if(c==27)
break;
}
// When everything done, release the video capture object
cap.release();
// Closes all the frames
destroyAllWindows();
return 0;
}
The text was updated successfully, but these errors were encountered:
System information (version)
Detailed description
Camera capture on Acer Switch 5 tablet appears to work, but if I try to manually focus the camera (using the onscreen menu) it actually just applies some kind of sharpen/blur, not focus.
The Windows Camera app allows a very close (macro) focus with the tablet camera, but OpenCV is unable to reproduce this.
It is as if the parameter OpenCV thinks is focus, is actually something completely different
Steps to reproduce
The text was updated successfully, but these errors were encountered: