99 lines
6.0 KiB
INI
99 lines
6.0 KiB
INI
[sensor]
|
|
sensor_cfg = "./Resource/VIC/0/imx662_1920x1080_ch0.cfg"
|
|
fusion_cfg = "./Resource/VIC/1/imx662_1920x1080_ch1.cfg"
|
|
autoscene_config = "./Resource/AutoScene/autoscene_conf.cfg"
|
|
fec_calibrate_path = "./ini/fec_calibrate.ini"
|
|
fec_conf_path = "./ini/fec_conf.ini"
|
|
fec_mode = 4 # 0: Original, 1: 1 Region, 2: 180 all direction, 3: 180 one Direction, 4: 180 two direction, 5: PT Mode
|
|
initial_fec_app_type = 0 # 0: ceiling, 1: table, 2: wall
|
|
eis_enable = 1
|
|
|
|
[nnm]
|
|
ModelPath = "nef/STDC04012026_models_630.nef"
|
|
ModelId = 32769 # KNERON_YOLOV5S_COCO80_640_640_3 (YOLO v5s)
|
|
JobId = 200 # KDP2_INF_ID_APP_YOLO
|
|
InferenceStream = 1 # Inference stream index (use stream1: 640x640)
|
|
Threshold = 0.5 # for yolo only(JobId = 11)
|
|
Fps = 25 # Image input fps for NPU inference
|
|
GetImageBufMode = 0 # 0: block mode 1: non-block mode
|
|
RoiEnable = 0 # Enable ROI for nnm detect
|
|
RoiX = 0 # ROI start x
|
|
RoiY = 0 # ROI start y
|
|
DrawBoxEnable = 1 # draw object bounding box on stream0 (also enables STDC seg overlay)
|
|
OnlyPerson = 1 # only draw person bounding box when DrawBoxEnable
|
|
#(so far for yolo only, JobId = 11)
|
|
DrawOnResize = 0; # If InferenceStream is 0. This setting needs to be enabled. The box will be drawn on all resize streams.
|
|
verbose_log = 0 # 0: quiet (warnings only, ~30B/s), 1: per-frame class ratios every 20 frames (~1KB/s). Toggle from web UI.
|
|
|
|
NnmSource = 0 # 0: run host_stream independently, 1: run with streamer
|
|
ssm_name = "vsrc_ssm_ifp_0" # If NnmSource is 1. This setting needs to be set. The name is automaticlly create by streamer.
|
|
|
|
[voc]
|
|
voc_enable = 1 #enable Video Output Component
|
|
VocWidth = 1920 #video output width
|
|
VocHeight = 1080 #video output height
|
|
PixFmt = NV12 # HDMI input format for VOC: NV12 / NV21 / YM12
|
|
|
|
[streamer]
|
|
StreamCount = 2 #Stream amount
|
|
MemType = 0 #Encode buffer type, 0(SRB mode)/1(SCM mode)
|
|
|
|
#stream0 is the main stream which has the same resolution as the sensor.
|
|
[stream0]
|
|
Codec = 0 #VMF_VENC_CODEC_TYPE_H264
|
|
Width = 1920 #The image width of stream0
|
|
Height = 1080 #The image height of stream0
|
|
FPS = 25 #The frame rate of stream0
|
|
QP = 25 #The base value of the quantization parameter. Its range is from 0 to 51.
|
|
Bitrate = 2000000 #The average bitrate of the encoded stream. Its range is from 30,000 to 700,000,000 bps.
|
|
PIQ = 0 #PIQ setting. Reduce the difference of QP between intra and inter frame. Default: 0 (disable).
|
|
GOP = 50 #Group of pictures. It specifies the number of frames between two intra frames. The maximum GOP value is 600.
|
|
Virt_I_Interval = 0 #Virtual intra frame interval. 0:disable, range: 1 ~ (gop-1)
|
|
KeepFrameRatio = 0 # This option is valid only on resized stream.
|
|
EncodeBufferSize = 6291456 # 6M: 6*1024*1024 = 6291456
|
|
EncodeBufferAmount = 3 # (SRB only)
|
|
|
|
[stream1]
|
|
Codec = 0 #VMF_VENC_CODEC_TYPE_H264
|
|
Width = 724 #The image width of stream1 (STDC model training resolution)
|
|
Height = 362 #The image height of stream1 (STDC model training resolution)
|
|
FPS = 25 #The frame rate of stream0
|
|
QP = 25 #The base value of the quantization parameter. Its range is from 0 to 51.
|
|
Bitrate = 2000000 #The average bitrate of the encoded stream. Its range is from 30,000 to 700,000,000 bps.
|
|
PIQ = 0 #PIQ setting. Reduce the difference of QP between intra and inter frame. Default: 0 (disable).
|
|
GOP = 50 #Group of pictures. It specifies the number of frames between two intra frames. The maximum GOP value is 600.
|
|
Virt_I_Interval = 0 #Virtual intra frame interval. 0:disable, range: 1 ~ (gop-1)
|
|
KeepFrameRatio = 0 # This option is valid only on resized stream.
|
|
EncodeBufferSize = 2097152 # 2M: 2*1024*1024 = 2097152
|
|
EncodeBufferAmount = 3 # (SRB only)
|
|
|
|
[stream2]
|
|
Codec = 0 #VMF_VENC_CODEC_TYPE_H264
|
|
Width = 640 #The image width of stream0
|
|
Height = 480 #The image height of stream0
|
|
FPS = 25 #The frame rate of stream0
|
|
QP = 25 #The base value of the quantization parameter. Its range is from 0 to 51.
|
|
Bitrate = 2000000 #The average bitrate of the encoded stream. Its range is from 30,000 to 700,000,000 bps.
|
|
PIQ = 0 #PIQ setting. Reduce the difference of QP between intra and inter frame. Default: 0 (disable).
|
|
GOP = 50 #Group of pictures. It specifies the number of frames between two intra frames. The maximum GOP value is 600.
|
|
Virt_I_Interval = 0 #Virtual intra frame interval. 0:disable, range: 1 ~ (gop-1)
|
|
KeepFrameRatio = 0 # This option is valid only on resized stream.
|
|
EncodeBufferSize = 2097152 # 2M: 2*1024*1024 = 2097152
|
|
EncodeBufferAmount = 3 # (SRB only)
|
|
|
|
[capture]
|
|
# Legacy single-JPEG capture (kept for reference, not used by event_recorder)
|
|
enable = 0
|
|
http_url = http://192.168.0.114:8081/api/upload
|
|
cooldown_ms = 1000
|
|
|
|
[event]
|
|
# Violation event recorder — two-channel: JSON (iPad) + tar.gz (Allxon OOB)
|
|
enable = 1
|
|
pc_url = http://192.168.0.114:8081 # Channel A: PC mock server (iPad/BLE path)
|
|
upload_url = http://192.168.0.114:8081/api/upload # Channel B: tar.gz upload (OOB/cloud path)
|
|
# Production: http://192.168.0.99/api/golf.cgi
|
|
sd_path = /tmp/sdcard/events # SD card event archive path
|
|
sd_max_mb = 7168 # 7 GB — delete oldest when exceeded
|
|
upload_delay_ms = 0 # 0: upload immediately after tar.gz built (tar is built after event ends, no extra delay needed)
|