文件名称:androidUSBCamera
介绍说明--下载内容均来自于网络,请自行研究使用
这是Android 2.3.4版本的 UVC Camera 测试程序, 使用YUYV格式, (其实 MJPG 格式也是可以用的, 只要我注释掉的那几行代码 uncomment一下就好了)
所使用的 camera 在android 中的设备节点是 /dev/video1 , 做为前置摄像头,
要运行起这个程序可能有点麻烦, 因为我修改了一些不相关的 JAVA 代码, 而要正确编译这个程序, 懂得补充(或者去掉)这些JAVA部分
但是如果使用我提供的 QT 库, 就不需要做修改, 直接把 QT 库放到 原来的位置,
即: /data/local/qt/ 下就可以了.....
安装本apk文件, 应该可以运行, 如果打开设备错误, 就应该对 dev/video1 设一下权限,
我是直接在 init.rc 中 chmod 777 /dev/video1 , -Android 2.3.4 version of the UVC Camera test program, use YUYV format (in fact, MJPG format is used, as long as I commented out a few lines of code uncomment look like a camera), used in the android device node is/dev/video1 as a front camera, you want to run up this program may be a bit of trouble, because I modified some JAVA code, and to compile the program correctly, and know how to add (or remove) JAVA part However, if you provide me with the QT library, you do not need to modify the QT library directly into the original position, that is:/data/local/qt/can ..... install the apk file should be able to running, open the device error, what permissions should be set dev/video1 is directly in init.rc in chmod 777/dev/video1
所使用的 camera 在android 中的设备节点是 /dev/video1 , 做为前置摄像头,
要运行起这个程序可能有点麻烦, 因为我修改了一些不相关的 JAVA 代码, 而要正确编译这个程序, 懂得补充(或者去掉)这些JAVA部分
但是如果使用我提供的 QT 库, 就不需要做修改, 直接把 QT 库放到 原来的位置,
即: /data/local/qt/ 下就可以了.....
安装本apk文件, 应该可以运行, 如果打开设备错误, 就应该对 dev/video1 设一下权限,
我是直接在 init.rc 中 chmod 777 /dev/video1 , -Android 2.3.4 version of the UVC Camera test program, use YUYV format (in fact, MJPG format is used, as long as I commented out a few lines of code uncomment look like a camera), used in the android device node is/dev/video1 as a front camera, you want to run up this program may be a bit of trouble, because I modified some JAVA code, and to compile the program correctly, and know how to add (or remove) JAVA part However, if you provide me with the QT library, you do not need to modify the QT library directly into the original position, that is:/data/local/qt/can ..... install the apk file should be able to running, open the device error, what permissions should be set dev/video1 is directly in init.rc in chmod 777/dev/video1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Android Qt Camera Test.txt
androidCamera.jpg
testAndroidCamera.tar.gz
androidCamera.jpg
testAndroidCamera.tar.gz