Is it possible to plug in a USB Webcam to an Android tablet that has USB host?
I tried and nothing happens. If I plug in a thumbdrive, the contents can be viewed using File Manager, but nothing happens for USB Webcams, could be due to lack of drivers?
Has anyone got it to work? How about the drivers?
Thanks In Advance, Perumal
The Android platform supports the use of plug-and-play USB cameras (that is, webcams) using the standard Android Camera2 API and the camera HIDL interface.
USB devices, including webcams, can sometimes stop working due to glitches in the operating system or with the USB port itself. One of the quickest ways to try and fix a USB device is to unplug it and then plug it back into the computer. Unplug the webcam from the computer, then plug it back into the computer.
I'm in a similar position as you and I'm curious if you've had any success.
Have you tried loading a custom ROM/kernel? What tablet are you using?
Video of multiple webcams working: http://www.youtube.com/watch?v=fCN6VUyUl9o
and a direct link to the source page: http://brain.cc.kogakuin.ac.jp/research/android.html
EDIT:
This should theoretically work: Compile the kernel with these defined in your device defconfig file
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
This will enable V4L at the kernel level. At this point, if you set permission 666 to /dev/video0 in ueventd.tuna.rc. you can access the cameras with JNI, but if you want the camera to be integrated with Android by default, proceed to the next step.
Then, build Android with this patch applied to allow V4L2 cameras to work as standard android cameras (note, this patch is from eclair from what I can tell, and may not work properly with newer versions): code.google.com/p/android-m912/downloads/detail?name=v4l2_camera_v2.patch
Flash the kernel and custom rom.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With