2016年6月22日 星期三

using usb camera in android



I enabled the following kernel configuration,
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

in tuna_defconfig, and I commented out the following line in drivers/media/video/Kconfig.
# source "drivers/media/video/omapgfx/Kconfig"
Then I gave a permission 666 to /dev/video0,1 in ueventd.tuna.rc.
Finally, I wrote some applications that access /dev/video0,1 through JNI. 



Ref : http://brain.cc.kogakuin.ac.jp/research/usb-e.html

沒有留言:

張貼留言