analogdevicesinc / ToF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to execute Depth Compute Command Line Interface

NotDell opened this issue · comments

OS: win10 64bit
Module is ADTF3175D, serial number is 026AMxxxxxx.
installed the latest release TOF_Evaluation_ADTF3175D-Rel4.3.0.exe.

GUI is no problem to capture the data and show AB/Depth data
image

we captured one frame with data collect command, the below are console output

./data_collect.exe --f “data_output_mp” --m 1 --n 1  --ip 10.42.0.1  config_adsd3500_adsd3100.json
I20231031 13:38:41.484323 19784 main.cpp:184] SDK version: 4.3.0 | branch: master | commit: 08d887e8
I20231031 13:38:41.484323 19784 main.cpp:292] Output folder: data_output_mp
I20231031 13:38:41.484323 19784 main.cpp:293] Mode: 1
I20231031 13:38:41.494325 19784 main.cpp:294] Number of frames: 1
I20231031 13:38:41.494385 19784 main.cpp:295] Json file: config_adsd3500_adsd3100.json
I20231031 13:38:41.494385 19784 main.cpp:296] Frame type is: depth
I20231031 13:38:41.494385 19784 main.cpp:297] Warm Up Time is: 0 seconds
I20231031 13:38:41.494385 19784 main.cpp:300] Ip address is: 10.42.0.1
I20231031 13:38:41.494385 19784 system_impl.cpp:92] SDK built with websockets version:3.1.0
I20231031 13:38:41.494385 19784 network_sensor_enumerator.cpp:57] Looking for sensors over network: 10.42.0.1
[2023/10/31 13:38:41:4948] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off
Connection Closed
I20231031 13:38:41.524767 19784 camera_itof.cpp:156] Initializing camera
[2023/10/31 13:38:41:5348] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off
Conn established
I20231031 13:38:47.469586 19784 mode_info.cpp:138] Using new mixed modes table for ADSD3500 w/ADSD3100.
I20231031 13:38:47.692893 19784 camera_itof.cpp:370] Current adsd3500 firmware version is: 4.6.0.0
I20231031 13:38:47.692893 19784 camera_itof.cpp:372] Current adsd3500 firmware git hash is: 174f719c1df4140b704e48901adbbe556cc08fd9
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_lr-qnative.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_lr-native.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_sr-qnative.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_sr-native.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_sr-mixed.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd3500_lr-mixed.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1896] Found Depth ini file: ./config/RawToDepthAdsd_pcm-native.ini
I20231031 13:38:47.692893 19784 camera_itof.cpp:1907] Current Depth ini file is: ./config/RawToDepthAdsd3500_lr-mixed.ini
W20231031 13:38:47.724624 19784 camera_itof.cpp:479] mipiSpeed is not being set by SDK.
W20231031 13:38:47.724624 19784 camera_itof.cpp:490] enableTempCompenstation is not being set by SDK.
W20231031 13:38:47.724624 19784 camera_itof.cpp:500] enableMetaDatainAB is not being set by SDK.
W20231031 13:38:47.724624 19784 camera_itof.cpp:510] enableEdgeConfidence is not being set by SDK.
I20231031 13:38:47.724624 19784 camera_itof.cpp:514] Camera initialized
I20231031 13:38:47.724624 19784 main.cpp:344] SD card image version: microsd-4.3.0-08d887e8.img
I20231031 13:38:47.724624 19784 main.cpp:345] Kernel version: lf-5.10.72-2.2.0
I20231031 13:38:47.724624 19784 main.cpp:346] U-Boot version: imx_v2020.04_5.4.70_2.3.0
I20231031 13:38:47.757185 19784 camera_itof.cpp:2122] Camera FPS set from Ini file at: 10
W20231031 13:38:47.757185 19784 camera_itof.cpp:2298] vcselDelay was not found in .ini file, not setting.
W20231031 13:38:47.757185 19784 camera_itof.cpp:2305] jblfMaxEdgeThreshold was not found in .ini file, not setting.
W20231031 13:38:47.772912 19784 camera_itof.cpp:2336] enablePhaseInvalidation was not found in .ini file, not setting.
I20231031 13:38:47.789117 19784 camera_itof.cpp:591] Chosen mode: lr-native
I20231031 13:38:47.789117 19784 camera_itof.cpp:645] Using ini file: ./config/RawToDepthAdsd3500_lr-native.ini
I20231031 13:38:47.804841 19784 camera_itof.cpp:1027] initComputeLibrary
Loading tofi_processor.obj object file from C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin\
I20231031 13:38:49.154181 19784 main.cpp:484] Requesting 1 frames!
I20231031 13:38:49.324918 19784 network_depth_sensor.cpp:186] Stopping device
Connection Closed

you can not compute the depth data with same mode setting.

PS C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin>  ./tofi_compute_depth.exe --I=./data_output_mp --CCB=../crXXX.ccb --O=proc_data_mp --INI=./config/RawToDepthAdsd3500_lr-native.ini --ISP_Enable=1 --b=1  --MODE=1

 Version of TOF Depth Compute Engine is VERSIONINFO:TOF_DepthComputeEngine_WinCLCPU-Rel4.1.0
Loading tofi_processor.obj object file from C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin\
Processing Input File:./data_output_mp
.\data_output_mp\depth_frame_20231031133848_00000.bin

but if you specify another mode , it seems that it can decode the depth data. but the XYZ/AB result is wrong.

PS C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin>  ./tofi_compute_depth.exe --I=./data_output_mp --CCB=../crXXX.ccb --O=proc_data_mp --INI=./config/RawToDepthAdsd3500_lr-native.ini --ISP_Enable=1 --b=1  --MODE=2

 Version of TOF Depth Compute Engine is VERSIONINFO:TOF_DepthComputeEngine_WinCLCPU-Rel4.1.0
Loading tofi_processor.obj object file from C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin\
Processing Input File:./data_output_mp
.\data_output_mp\depth_frame_20231031133848_00000.bin
{"Frames/sec": "500.000000"}
PS C:\Analog Devices\TOF_Evaluation_ADTF3175D-Rel4.3.0\bin>

the new version GUI need new parameters for the frame type selection, with --ft raw to get the raw data.