This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What usb camera works fine in Android?

Hi Community,

I have a BeagleBone with Android and, as I wrote a few weeks ago*, I want to use it with an USB camera. Someone knows what webcam model works fine with Android (ICS/Gingerbread)?

I have two logitech webcams, pro9000 and c920, and these have UVC protocol, but these aren't working in my system.

*http://e2e.ti.com/support/embedded/android/f/509/t/209754.aspx

Best regards,

  • Hi Marc,

    1. Are you getting similar images ( mentioned at the link) for both the camera.

    From the logs, it looks like normal flow.

    BR,

    satish

  • Hi Satish,

    Thanks for your reply. I'm not getting the same images for both cameras. With c920, I get the images that I attached in this post "http://e2e.ti.com/support/embedded/android/f/509/t/209754.aspx" and with pro9000 I get this;

    The logcat for pro9000 is:

    D/EventHub(  196): No input device configuration file found for device 'UVC Camera (046d:0809)'.
    I/EventHub(  196): New device: id=4, fd=193, path='/dev/input/event3', name='UVC Camera (046d:0809)', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false
    I/InputReader(  196): Device added: id=4, name='UVC Camera (046d:0809)', sources=0x00000101
    I/ActivityManager(  196): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera} from pid 328
    D/PermissionCache(  188): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (16326 us)
    I/ActivityManager(  196): Start proc com.android.camera for activity com.android.camera/.Camera: pid=600 uid=10044 gids={1006, 1015}
    W/NetworkManagementSocketTagger(  196): setKernelCountSet(10044, 1) failed with errno -2
    I/InputReader(  196): Reconfiguring input devices.  changes=0x00000004
    I/InputReader(  196): Device reconfigured: id=1, name='ft5x06_ts', surface size is now 800x480, mode is 1
    I/InputReader(  196): Device reconfigured: id=3, name='ti-tsc-adcc', surface size is now 800x480, mode is 1
    I/ActivityManager(  196): Config changed: {1.0 0mcc0mnc en_US layoutdir=0 sw480dp w480dp h775dp lrg long port finger -keyb/v/h -nav/h s.4}
    D/****CameraHAL(   71): cameraHal BACK 0
    D/****CameraHAL(   71): cameraHal 0
    V/CameraHolder(  600): open camera 0
    D/****CameraHAL(   71): cameraHal BACK 0
    D/****CameraHAL(   71): cameraHal 0
    I/CameraService(   71): Opening camera 0
    I/****CameraHAL(   71): camera_device open
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:320,height:240
    D/CameraHardware(   71): picture width:320,height:240
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 320 x 240
    D/CameraHardware(   71): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware(   71): enableMsgType:1037
    I/AwesomePlayer(   71): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
    D/dalvikvm(  328): GREF has increased to 201
    I/AwesomePlayer(   71): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:320,height:240
    D/CameraHardware(   71): picture width:320,height:240
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 320 x 240
    D/CameraHardware(   71): Preview Resolution by CamHAL 320 x 240
    D/dalvikvm(  196): GC_CONCURRENT freed 854K, 10% free 8711K/9671K, paused 4ms+21ms
    D/dalvikvm(  600): GC_CONCURRENT freed 215K, 5% free 6699K/7047K, paused 3ms+8ms
    D/dalvikvm(  600): GC_FOR_ALLOC freed 27K, 4% free 6962K/7239K, paused 24ms
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:320,height:240
    D/CameraHardware(   71): picture width:320,height:240
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 320 x 240
    D/CameraHardware(   71): Preview Resolution by CamHAL 320 x 240
    D/Camera  (  600): app passed NULL surface
    D/****CameraHAL(   71): cameraHal BACK 0
    D/****CameraHAL(   71): cameraHal 0
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:320,height:240
    D/CameraHardware(   71): picture width:320,height:240
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 320 x 240
    D/CameraHardware(   71): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:640,height:480
    D/CameraHardware(   71): picture width:640,height:480
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 640 x 480
    D/CameraHardware(   71): Preview Resolution by CamHAL 640 x 480
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:640,height:480
    D/CameraHardware(   71): picture width:640,height:480
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 640 x 480
    D/CameraHardware(   71): Preview Resolution by CamHAL 640 x 480
    V/camera  (  600): Preview size is 640x480
    D/CameraHardware(   71): Set Parameter...!!
    D/CameraHardware(   71): PreviewFormat yuv422sp
    D/CameraHardware(   71): PictureFormat jpeg
    D/CameraHardware(   71): preview width:640,height:480
    D/CameraHardware(   71): picture width:640,height:480
    D/CameraHardware(   71): FRAMERATE 15
    D/CameraHardware(   71): Picture Size by CamHAL 640 x 480
    D/CameraHardware(   71): Preview Resolution by CamHAL 640 x 480
    V/camera  (  600): startPreview
    W/****CameraHAL(   71): ----Preview not Enabled----
    W/****CameraHAL(   71): window is NULL
    W/CameraHardware(   71): Window is Null
    D/CameraHardware(   71): startPreview width:640,height:480
    D/V4L2Camera(   71): CameraConfigure PreviewFormat: w=640 h=480
    V/camera  (  600): surfaceChanged. w=401. h=534
    W/****CameraHAL(   71): ----Preview Enabled----
    D/****CameraHAL(   71): Exiting the function
    I/ActivityManager(  196): Displayed com.android.camera/.Camera: +1s969ms
    W/IInputConnectionWrapper(  328): showStatusIcon on inactive InputConnection
    W/InputManagerService(  196): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41293b18 (uid=10028 pid=328)
    D/sensors (  196): Activate sensor
    E/SensorService(  196): Error activating sensor 0 (No such file or directory)  <-- Look this error!!
    D/sensors (  196): Control set delay 200000000 ns requetsed, using rate 6 [6.250 Hz]
    D/CameraStorage(  600): External storage state=mounted

    Curiously, with c920, when I switch on the option video button in the camera app, I can see the image correctly, but obviously, I cannot take images because I am in the video option.

    Could you tell me, what usb camera works with android for AM335x processors?

    Best Regards,

  • Hi,

    I've tried with another webcam, specifically with logitech c210, and I've the same problem that I have with logitech pro9000.

    I saw that one of the AM335x Starter Kit features has is the USB Camera interface. If AM335x has this feature is because you have tried this kit with some webcam. Could you tell me what USB camera works with this kit?

    Thanks in advice,

  • Hi Marc,

    1. Ideally, it should work for any USB camera.. But still need to check from our side also with some other camera. Thax for reporting this..

    2. At present we are using "HP Webcam HD-2200"

    BR,

    satish

  • Hi Marc,

    Just to update you,

     we did not have support for camera in 3.0.1 release, but we have integrated that support later..

    So, I request to sync latest ICS source, and give a try...

     

    BR,

    satish

  • Hi Satish

    Thanks for your reply. I've tried these cameras with the latest ICS source "TI Android ICS 4.0.3 Devkit3.0.1 AM335x EMV-SK Sources". Right now, I've bought the "HP Webcam HD-2200" to try it. Next week, I'll inform you if it will work fine or not.

    Please, let me know if you have more news about this topic.

    Keep in touch,

  • Hi Satish,

    I can use all my usb cameras (c920, pro9000, c210 and hd-2200) in my system BB. I couldn't use before because VGA resolution (640x480) is not supported (I don't know the reason). At the moment, I'm using QVGA (320x240) resolution and it works well.

    On the other hand, I would like to take pictures with a better resolution because I have to use OpenCV and I need it. I have tried to change the supported sizes in CameraHardware.cpp file but I couldn't take a picture with a major resolution.

    I have read in other forum (https://groups.google.com/forum/#!topic/beagleboard/m2InXS9AhzY) this:

    "From what I understand there are still USB issues on the Beaglebone which seem to be preventing anyone from going beyond 320x240 resolution".

    Do you know more about this?

    Regards,

  • Hi Marc,

    I have a USB uvc camera working but or some reason I can only get capture resolutions like 320x240. Have you succeed getting larger resolutions? Or any replies from TI?

  • We got some progress, listed in here: http://e2e.ti.com/support/embedded/android/f/509/p/209754/1260724.aspx#1260724