Firefly开源社区

标题: Ubuntu 20.04.5 LTS系统调用rkaiq_3A_server [打印本页]

作者: 老K    时间: 2023-1-29 10:10
标题: Ubuntu 20.04.5 LTS系统调用rkaiq_3A_server
ubuntu系统rkaiq_3A_server启动不起来,一直报错,但是桌面上的cheese就可以调用起来rkaiq_3A_server

root@firefly:~# rkaiq_3A_server
media get entity by name: stream_cif_dvp_id0 is null
media get entity by name: stream_cif_dvp_id1 is null
media get entity by name: stream_cif_dvp_id2 is null
media get entity by name: stream_cif_dvp_id3 is null
media get entity by name: rkcif-mipi-luma is null
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: rockchip-mipi-dphy-rx is null
media get entity by name: stream_cif is null
media get entity by name: rkcif-dvp-sof is null
media get entity by name: rkisp-csi-subdev is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_rawwr0 is null
media get entity by name: rkisp_rawwr1 is null
media get entity by name: rkisp_rawwr2 is null
media get entity by name: rkisp_rawwr3 is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rkisp-mipi-luma is null
media get entity by name: rockchip-mipi-dphy-rx is null
media get entity by name: rockchip-csi2-dphy0 is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_lite_mipi_lvds is null
media get entity by name: rkcif_mipi_lvds is null
media get entity by name: rkcif_mipi_lvds1 is null
media get entity by name: rkcif_mipi_lvds2 is null
media get entity by name: rkcif_mipi_lvds3 is null
media get entity by name: rkcif_mipi_lvds4 is null
media get entity by name: rkcif_mipi_lvds5 is null
media get entity by name: rkcif-mipi-lvds is null
media get entity by name: rkcif-mipi-lvds1 is null
media get entity by name: rkcif-mipi-lvds3 is null
media get entity by name: rkcif-mipi-lvds4 is null
media get entity by name: rkcif-mipi-lvds5 is null
media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkisp_mainpa get rkisp_mainpath devname: /dev/video11
ERR: Bad media topology for: /dev/media2
ERR: Bad media topology for: /dev/media3
ERR: Bad media topology for: /dev/media4
ERR: Bad media topology for: /dev/media5
ERR: Bad media topology for: /dev/media6
ERR: Bad media topology for: /dev/media7
ERR: Bad media topology for: /dev/media8
ERR: Bad media topology for: /dev/media9
ERR: Bad media topology for: /dev/media10
ERR: Bad media topology for: /dev/media11
ERR: Bad media topology for: /dev/media12
ERR: Bad media topology for: /dev/media13
ERR: Bad media topology for: /dev/media14
ERR: Bad media topology for: /dev/media15
DBG: subscribe events from /dev/video19 success !
[02:09:16.237502][XCORE]:XCAM ERROR rk_aiq_user_api_sysctl.cpp:383: Failed to find params of : scene in json, using default scene
[02:09:16.241372][CAMHW]:XCAM ERROR SensorHw.cpp:869: failed to set hdr mode 0
[02:09:16.241539][CAMHW]:XCAM ERROR SensorHw.cpp:839: failed to set sync mode 0
[02:09:16.243223][ADEHAZE]:XCAM ERROR rk_aiq_adehaze_algo.cpp:2160: AdehazeGetCurrData:PreResBuf is NULL!

[02:09:16.243998][XCORE]:XCAM ERROR v4l2_device.cpp:671: device(/dev/video19) start failed
[02:09:16.244291][CAMHW]:XCAM ERROR CamHwIsp20.cpp:5060: prepare isp params dev err: -9

DBG: /dev/media1: wait stream start event...


tchip_askquestions

rk3588-evb2-imx415.zip

1.05 KB, 下载次数: 3, 下载积分: 灯泡 -1 , 经验 -1


作者: 板蓝根    时间: 2023-1-29 11:22
“rk_aiq_user_api_sysctl.cpp:383: Failed to find params of : scene in json,”
提示很明显了,源码在 sdk/external/camera_engine_rkaiq/uAPI/rk_aiq_user_api_sysctl.cpp



应该是没有找到 iqfile,如果 需要自己移植摄像头的话需要内置 iqfile ,3588 的已调试过的  iqfile 在这里可以找到 external/camera_engine_rkaiq/iqfiles/isp3x

注意这里的名字需要的 dts 匹配,3a server 才能成功找到json 文件,你可以跟踪一下代码

image.png (62.29 KB, 下载次数: 618)

image.png

作者: 老K    时间: 2023-1-29 18:29
板蓝根 发表于 2023-1-29 11:22
“rk_aiq_user_api_sysctl.cpp:383: Failed to find params of : scene in json,”
提示很明显了,源码在  ...

rk_aiq_user_api_sysctl.cpp这个文件加调试信息后没有反应,查看了下CMakefile文件中没有添加这个文件。您能告诉我这块具体怎么编译吗?是已经编译成库了吗?具体是哪个库?
作者: 老K    时间: 2023-1-29 18:38
板蓝根 发表于 2023-1-29 11:22
“rk_aiq_user_api_sysctl.cpp:383: Failed to find params of : scene in json,”
提示很明显了,源码在  ...

还有个问题,系统中自带的cheese应用程序可以调用起来rkaiq_3A_server,是不是就证明iqfile是有的,只是我手动运行3a server程序时没有找到iqfile文件,运行3a server指令需要参数吗?具体命令是什么您可以指导下吗?运行rkaiq_3A.sh这个脚本什么信息都不打印,图像还是呈现绿色的底图

cam.jpg (100.08 KB, 下载次数: 618)

cam.jpg





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1