####################################################################################################
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.
####################################################################################################

# The values in the config file are overridden by values set through GObject
# properties.

[property]
enable=1
    # list of component gie-id for which tensor is prepared
target-unique-ids=4;5
    # preprocess on metadata generated by this unique gie-id
operate-on-gie-id=1
    # 0=NCHW, 1=NHWC, 2=CUSTOM
network-input-order=0
    # 0=process on objects 1=process on frames
process-on-frame=0
    #uniquely identify the metadata generated by this element
unique-id=6
    # gpu-id to be used
gpu-id=0
    # if enabled maintain the aspect ratio while scaling
maintain-aspect-ratio=0
    # if enabled pad symmetrically with maintain-aspect-ratio enabled
symmetric-padding=0
    # processig width/height at which image scaled
processing-width=224
processing-height=224
    # max buffer in scaling buffer pool
scaling-buf-pool-size=6
    # max buffer in tensor buffer pool
tensor-buf-pool-size=6
    # tensor shape based on network-input-order
network-input-shape= 32;3;224;224
    # 0=RGB, 1=BGR, 2=GRAY
network-color-format=1
    # 0=FP32, 1=UINT8, 2=INT8, 3=UINT32, 4=INT32, 5=FP16
tensor-data-type=0
    # tensor name same as input layer name
tensor-name=input_1:0
    # 0=NVBUF_MEM_DEFAULT 1=NVBUF_MEM_CUDA_PINNED 2=NVBUF_MEM_CUDA_DEVICE 3=NVBUF_MEM_CUDA_UNIFIED
scaling-pool-memory-type=0
    # 0=NvBufSurfTransformCompute_Default 1=NvBufSurfTransformCompute_GPU 2=NvBufSurfTransformCompute_VIC
scaling-pool-compute-hw=1
    # Scaling Interpolation method
    # 0=NvBufSurfTransformInter_Nearest 1=NvBufSurfTransformInter_Bilinear 2=NvBufSurfTransformInter_Algo1
    # 3=NvBufSurfTransformInter_Algo2 4=NvBufSurfTransformInter_Algo3 5=NvBufSurfTransformInter_Algo4
    # 6=NvBufSurfTransformInter_Default
scaling-filter=0
    # custom library .so path having custom functionality
custom-lib-path=/opt/nvidia/deepstream/deepstream/lib/gst-plugins/libcustom2d_preprocess.so
    # custom tensor preparation function name having predefined input/outputs
    # check the default custom library nvdspreprocess_lib for more info
custom-tensor-preparation-function=CustomTensorPreparation

[user-configs]
   # Below parameters get used when using default custom library nvdspreprocess_lib
   # network scaling factor
pixel-normalization-factor=1
   # mean file path in ppm format
#mean-file=
   # array of offsets for each channel
#offsets=

[group-0]
src-ids=0;1
#0:Car 1:Bicycle 2:Person 3:Roadsign
operate-on-class-ids=0
custom-input-transformation-function=CustomAsyncTransformation
process-on-all-objects=0
roi-params-src-0=300;200;700;800;1300;300;600;700
roi-params-src-1=860;300;900;500;50;300;500;700
input-object-min-width=100
input-object-min-height=100
input-object-max-width=500
input-object-max-height=500

[group-1]
src-ids=2
custom-input-transformation-function=CustomAsyncTransformation
operate-on-class-ids=0
process-on-all-objects=0
roi-params-src-2=1300;300;600;700
input-object-min-width=100
input-object-min-height=100

[group-2]
src-ids=3
custom-input-transformation-function=CustomAsyncTransformation
operate-on-class-ids=0
process-on-all-objects=1
roi-params-src-3=0;540;900;500;960;0;900;500
input-object-min-width=100
input-object-min-height=100