123456789101112131415161718192021222324252627282930313233 |
- start_client() {
- $PWD/bin/main \
- --data_path /etc/gsd/files.list_video_rtsp \
- --src_frame_rate -1 \
- --perf_level 2 \
- --wait_time 0 \
- --loop=false \
- --config_fname $PWD/config/detection_config.json \
- --log_to_file=true
- }
- start_test() {
- $PWD/bin/main \
- --data_path $PWD/config/file.list_video_test \
- --src_frame_rate -1 \
- --perf_level -3 \
- --wait_time 0 \
- --loop=false \
- --config_fname $PWD/config/detection_test.json \
- --log_to_file=true
- }
- # 创建日志文件
- if [ ! -d "/home/GSD/log/cnstream" ]; then
- mkdir -p /home/GSD/log/cnstream
- fi
- while true
- do
- start_client
- pkill main
- sleep 3
- done
|