OpenIPC / majestic

Majestic Community edition integration kit
MIT License
31 stars 5 forks source link

PQTools binary profile not working #148

Closed FovenX3 closed 5 months ago

FovenX3 commented 5 months ago

My goal is reduce some image sharpness, lower some value to reduce withe edges, I manage to get a better look after modify YUV Sharpen in pqtools. After export BIN file after modify some value, I tried writing my BIN file path in the isp settings, but it didn't seem to take effect after reboot.

09:34:30 < iq_monitor> [ sdk] monitor_thread@344 Loading IQ profile /etc/sensors/123.bin

xiongmai g6s gk7205v300+imx335 Firmware Version 2.3.11.22-lite Build master+f003efd, 2023-11-22 Majestic master+b5b5dfe, 2023-11-17 install by coupler_000699Q3_OpenIPC_IPC_GK7205V300_G6S.bin

.isp.sensorConfig: /etc/sensors/5M_imx335.ini
.isp.memMode: 
.isp.slowShutter: high
.isp.antiFlicker: 
.isp.blkCnt: 
.isp.drc: 300
.isp.lowDelay: false
.isp.rawMode: slow
.isp.iqProfile: /etc/sensors/123.bin
root@openipc-gk7205v300:~# majestic
09:34:30  <       majestic> [    main] main@123                      Majestic Lite for HiSilicon, version master+b5b5dfe, built on 2023-11-17
09:34:30  <       majestic> [app_conf] load_config@108               Using /etc/majestic.yaml as main configuration
09:34:30  <       majestic> [watchdog] watchdog_start@101            Detected Watchdog
09:34:30  <       majestic> [watchdog] watchdog_start@121            Watchdog timeout set to 10 seconds
09:34:30  <       majestic> [     sdk] start_sdk@415                 Using /etc/sensors/5M_imx335.ini sensor configuration file
09:34:30  <       majestic> [     sdk] start_sdk@422                 App was built with MPP version: Gk7205V200_MPP_V1.0.1.0.B020 Release
09:34:30  <       majestic> [     sdk] start_sdk@427                 Current MPP version: VERSION=MPP_V1.0.1.0 B020 Release NoLog
09:34:30  <       majestic> [sensor_c] parse_sensor_config@936       Set custom sensor clock mode: 27MHz
09:34:30  <       majestic> [     sdk] start_sdk@447                 sensor stSnsImx335Obj
09:34:30  <       majestic> [     sdk] start_sdk@450                   input_mode MIPI, WDR NONE
09:34:30  <       majestic> [     sdk] start_sdk@455                   dev [2592x1944]@200x20 20fps, RGGB
09:34:30  <       majestic> [  sensor] try_to_load@19                trying to load /usr/lib/sensors/libsns_imx335.so
09:34:30  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem before allocation: 98272KB
09:34:30  <       majestic> [     sdk] dump_vb_configuration@2224    VB configuration:
09:34:30  <       majestic> [     sdk] dump_vb_configuration@2227      [0]: 7558272 x 3
09:34:30  <       majestic> [     sdk] dump_vb_configuration@2227      [1]: 7558272 x 1
09:34:30  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem after allocation: 68736KB
09:34:30  <       majestic> [     sdk] init_sensor@2420              Sensor driver loaded
09:34:30  <       majestic> [     sdk] init_vi@2877                  SDK is in 'VI_OFFLINE_VPSS_ONLINE' mode
09:34:30  <       majestic> [    puts]                               linear mode
09:34:30  <       majestic> [    puts]                               binit false IMX335 i2c init
09:34:30  <       majestic> [    puts]                               -------Sony IMX335_init_5M_2592x1944_12bit_linear30 Initial OK!-------
09:34:30  <     iq_monitor> [     sdk] monitor_thread@344            Loading IQ profile /etc/sensors/123.bin
09:34:30  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  HI_MPI_VPSS_SetNRParam
09:34:30  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  ERR_VPSS_ILLEGAL_PARAM: The VPSS parameter is invalid
09:34:30  <       majestic> [     sdk] log_venc_chn@1255             H.265 2592x1944 10fps 60000Kbit  10 GOP
09:34:30  <       majestic> [     sdk] create_vpss_chn@1000            new venc: 0   vpss_grp: 0,   vpss_chn: 0
09:34:30  <       majestic> [     sdk] start_video@1944              Cannot set VENC chn 0 rc params
09:34:30  <       majestic> [     sdk] start_video@1944              ERR_VENC_ILLEGAL_PARAM: The parameter is invalid
09:34:30  <       majestic> [     hal] show_blocks@686                 allocated PInfo x 2=784, Ct x 1=40, Str x 1=3700, Rcn x 2=15088
09:34:30  <       majestic> [     sdk] start_video@1969                venc took 19612KB of MMZ [3690]
09:34:30  <       majestic> [     sdk] start_sdk@559                 HiSilicon SDK started
09:34:30  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem finally: 41532KB
09:34:30  <       majestic> [   httpd] new_http_server@373           HTTP server started on :::80
09:34:30  <       majestic> [    rtsp] rtsp_init@31                  RTSP server started on port 554
09:34:40  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  HI_MPI_VPSS_SetNRParam
09:34:40  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  ERR_VPSS_ILLEGAL_PARAM: The VPSS parameter is invalid
09:34:50  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  HI_MPI_VPSS_SetNRParam
09:34:50  <     iq_monitor> [   scene] SCENE_SetDynamic3DNR_V3@2257  ERR_VPSS_ILLEGAL_PARAM: The VPSS parameter is invalid
widgetii commented 5 months ago

We don't support binary IQ profiles anymore due to random issues, only text ini format is supported. Check examples in /etc/sensors/iq directory