Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1117

How to use native camera with Android?

$
0
0
Hi, I'm trying to use the native camera with android (tried on 6.0.1 and 5.1.1) mCamera = new VideoCapture(mCameraId); if (!mCamera.isOpened()) { Log.d(TAG, "Failed to open camera " + mCameraId); } and later boolean grabbed = mCamera.grab(); is always false. I've got set in my `AndroidManifest.xml`. Hardware is a Nexus 5X, Galaxy S3 and S4. I'm seeing the same result on every device. Any pointers are greatly appreciated!

Viewing all articles
Browse latest Browse all 1117