init
This commit is contained in:
BIN
StartService/bin/start
Executable file
BIN
StartService/bin/start
Executable file
Binary file not shown.
14
StartService/bin/start.sh
Normal file
14
StartService/bin/start.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#开启pubimg.service,上传最新的照片至服务器
|
||||
sudo systemctl start pubimg.service
|
||||
|
||||
# #开启虚拟设备
|
||||
sudo modprobe v4l2loopback video_nr=10 card_label="VirtualCam10" exclusive_caps=1
|
||||
|
||||
# #开启YOLO检测,并写入视频流
|
||||
python3 /opt/rknn-yolov11/src/yolov11_stereo_distance.py \
|
||||
--enable-v4l2-out \
|
||||
--v4l2-device /dev/video10 \
|
||||
--v4l2-out-pix-fmt rgb24 > /dev/null 2>&1
|
||||
|
||||
# #开启fastapi
|
||||
# sudo systemctl start fastApi.service
|
||||
3
StartService/bin/stop.sh
Normal file
3
StartService/bin/stop.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
sudo systemctl stop fastApi.service
|
||||
|
||||
sudo systemctl stop pubimg.service
|
||||
Reference in New Issue
Block a user