Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

同济大学SuperPower战队23赛季自瞄代码

Notifications You must be signed in to change notification settings

TongjiSuperPower/sp_vision_23

Repository files navigation

说明

赛场效果

建议后人不要用Python写自瞄,速度不够快CPU占用率又高

感谢上海交通大学交龙战队、四川大学火锅战队、华南师范大学PIONEER战队的开源

环境

工业相机SDK

必须是python 3.10,安装第三方库:

pip3 install -r requirements.txt

如果需要运行classifier_training.py,需要额外安装torch以及torchvision

部署

自启

  1. 确保已经安装screen,且RM23_CV_TJU在桌面文件夹下,否则需改动RM23_CV_TJU/autostart.sh

    sudo apt install screen
    
  2. ~/.config/autostart/目录下新建文件RM23_CV_TJU.desktop

    mkdir ~/.config/autostart/
    touch ~/.config/autostart/RM23_CV_TJU.desktop
    
  3. 使用你喜欢的文本编辑器在RM23_CV_TJU.desktop中添加如下内容:

    [Desktop Entry]
    Type=Application
    Exec=/home/rm/Desktop/RM23_CV_TJU/autostart.sh
    Name=RM23_CV_TJU
    

    注意这里假设用户名为rm,且Exec必须为绝对路径。

    .desktop文件参数详解

  4. 确保~/Desktop/RM23_CV_TJU/autostart.sh文件有执行权限:

    chmod +x ~/Desktop/RM23_CV_TJU/autostart.sh
    

About

同济大学SuperPower战队23赛季自瞄代码

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages