Switch USB camera on i.MX6 / Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Switch USB camera on i.MX6 / Android

619 Views
guillaumebishop
Contributor I

Hello All,

I'm using an embedded computer based on a iMX6Q CPU (2GB Ram / 8GB Nand) with Android JB4.3,

for this project I had to take pictures from severals USB Camera (up to 5),

I managed to use one camera but no more.

The Android framework see only one camera, but all camera are present as (/dev/video2, /dev/video3, ...)

Has I didn't have to use the cameras in simultaneous, is it possible to switch camera?

Thanks in advance for your help.

Labels (2)
0 Kudos
2 Replies

452 Views
b36401
NXP Employee
NXP Employee

I can provide only common recommendations regarding to connecting cameras:

https://developer.android.com/training/camera/cameradirect.html

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

452 Views
guillaumebishop
Contributor I

Thanks for your answer,

Unfortunately, on the Android side, I can list only one camera, and only this camera can be opened.

so I'm only able the have Camera.open(0) working,

but Camera.open(1), ... doesn't work.

but all cameras are listed in USB devices, and corresponding /dev/videoX is created.

It seems that the Camera HAL for USB only support the first USB camera connected.

0 Kudos