Add PyInstaller configuration and enhance resource path handling

- Introduced PyInstaller configuration files for packaging: `TomatoPick.spec`, `build_windows_exe.bat`, and `build_linux.sh`.
- Updated resource paths in `control.py` and `control_core.py` to ensure compatibility with packaged applications.
- Enhanced `main.py` to manage runtime resource directories and added a startup animation.
- Improved UI elements and color themes for better user experience.
This commit is contained in:
Brunsmeier
2026-05-21 11:26:31 +08:00
parent 02657c18f8
commit cf8908fcc1
5 changed files with 569 additions and 78 deletions

View File

@ -27,7 +27,7 @@ AGV_RUN_DISTANCE = 5.0
TOTAL_DURATION = 300
AGV_STOP_TIMEOUT = 10
AGV_PICK_SETTLE_DELAY = 1.5
YOLO_MODEL_PATH = "best.pt"
YOLO_MODEL_PATH = "models/best.pt"
YOLO_DETECT_CONF = 0.5
PICK_CONFIDENCE_THRESHOLD = 0.7