sda*_*bet 7 android android-source android-camera raspberry-pi android-usb
我正按照以下说明为Raspberry Pi 3构建Nougat AOSP映像:https://github.com/tab-pi/platform_manifest.我有一个兼容UVC的 USB网络摄像头(Logitech C525),我想通过Android Camera API访问.
到目前为止,网络摄像头在UsbManager.getDeviceList()中可见,但Camera.getNumberOfCameras()返回0.
我已经定制了内核,以便/dev/video0在插入网络摄像头时出现具有适当权限的内容:
$ adb shell ls -l /dev/video0
crw-rw---- 1 system camera 81, 0 2018-09-20 10:16 /dev/video0
Run Code Online (Sandbox Code Playgroud)
我试图针对我的AOSP树构建以下HAL但它们都失败了:
https://github.com/jollen/libv4l2-android:
fatal error: 'ui/CameraHardwareInterface.h' file not found
https://github.com/antmicro/android-camera-hal:
error: use of undeclared identifier 'kMaxStride'
no member named 'I422ToABGRRow_NEON' in namespace 'libyuv'
https://github.com/aosp-mirror/platform_hardware_libhardware/tree/master/modules/camera/3_4
ninja: error: 'out/target/product/rpi3/obj/STATIC_LIBRARIES/libgtest_prod_intermediates/export_includes', needed by 'out/target/product/rpi3/obj/SHARED_LIBRARIES/camera.v4l2_intermediates/import_includes', missing and no known rule to make it
简而言之,如何通过Raspberry Pi上的Android Camera API访问USB摄像头?
您可以尝试检查位置 /device/fsl/ 处的 init.rc 文件。并设置 back_camera_name uvc 。启动时,它会查找指定的默认摄像头,并且当提到的摄像头丢失时,它无法初始化摄像头驱动程序。我在 technexion imx6 板上遇到了同样的问题。您还可以找到一个特定于板的文件,在 technexion 的情况下是 init.i.MX6DL.rc,它指定 back_camera 参数。