Ask Your Question

OpenCV with USB camera on Android

asked 2013-08-27 09:51:04 -0500

stephanmg gravatar image

updated 2013-08-27 10:03:03 -0500

berak gravatar image

DDear OpenCV users,

is it possible to use easily USB camera with OpenCV on Android? We would like to use cameras from Leopard Imaging ... but we want to make sure which USB camera can be used with OpenCV on Android.

All the best, Stephan

edit retag flag offensive close merge delete


I dont think that there are many people that did that yet, but if the camera works on android in general, you might also get it to work on opencv. Probably the ID for VideoCapture will be 2 (since 0 and 1 are back and front camera). I think you can basically only test it

Moster gravatar imageMoster ( 2013-08-27 10:03:24 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-28 09:57:01 -0500

Android OS uses its own camera API, not Video For Linux. So, if your Android device has appropriate driver for camera, then the camera will be available for all apps using standard Java API. The same is truth for OpenCV including Native Camera. You can test it using any application that can switch cameras. Standard Camera application is not appropriate here, because it is custom for each devices and uses camera driver and own API directly.

edit flag offensive delete link more

Question Tools


Asked: 2013-08-27 09:51:04 -0500

Seen: 2,244 times

Last updated: Aug 28 '13