1234567891011121314151617181920212223242526272829303132333435 |
- 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
- sleep 15
- while true
- do
- start_client
- pkill main
- sleep 3
- done
|