Welcome to IMX 415 Camera Module repository
2.2 Advanced AI Vision-Traffic Detection—Four types of detection(traffic)
Four types of detection(traffic)
Four types of detection(traffic)1. Video detection2. Real-time detection2.1. USB camera2.2 CSI Camera
Four types of detection are the case demonstrations that come with DeepStream: detecting and counting people, cars, road signs, and bicycles in the picture.
The tutorial only provides basic demonstrations, and other applications need to be developed by users
1. Video detection
Enter the folder where the case is located:
xxxxxxxxxxcd /opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-test1
Compile source code: refer to README in the same folder
xxxxxxxxxxsudo make CUDA_VER=12.6 # Factory image compiled, no user compilation required
Run the case: refer to dstest1_config.yml in the same folder
xxxxxxxxxx./deepstream-test1-app dstest1_config.ymlor./deepstream-test1-app ../../../../samples/streams/sample_720p.h264

Configuration Files:dstest1_config.yml
x################################################################################# SPDX-FileCopyrightText: Copyright (c) 2022 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.################################################################################source:location: ../../../../samples/streams/sample_720p.h264streammux:batch-size: 1batched-push-timeout: 40000width: 1920height: 1080# Inference using nvinfer:primary-gie:plugin-type: 0config-file-path: dstest1_pgie_config.yml## Inference using nvinferserver:#primary-gie:# plugin-type: 1# config-file-path: dstest1_pgie_nvinferserver_config.txt
2. Real-time detection
If there are multiple cameras, modify the .txt configuration file yourself: The following cases are the results when the motherboard is connected to only one camera.
2.1. USB camera
xxxxxxxxxxcd /opt/nvidia/deepstream/deepstream-7.1/samples/configs/deepstream-app
xxxxxxxxxxdeepstream-app -c source1_usb_dec_infer_resnet_int8.txt

2.2 CSI Camera
xxxxxxxxxxcd /opt/nvidia/deepstream/deepstream-7.1/samples/configs/deepstream-app
xxxxxxxxxxdeepstream-app -c source1_csi_dec_infer_resnet_int8.txt
