Skip to content

Commit

Permalink
Add launch icon AI
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlux committed Dec 4, 2024
1 parent f832d7f commit 2092ea3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions RPi4/home/ucia/Desktop/DetectObj.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Name=Détection objet
Comment=Détection d'objets dans les images de la caméra RPi.
Exec=/home/ucia/UCIA/UCIA_ObjectDetection/bin/start_object_detection.sh
Icon=/home/ucia/UCIA/UCIA_ObjectDetection/bin/AI.pixmap
Terminal=true
Type=Application
Categories=Application;Development;
StartupNotify=true
Name[fr_FR]=DetectObj.desktop
X-KeepTerminal=true
Path=/home/ucia/UCIA
GenericName=Détection d'objets dans les images de la caméra RPi.
Binary file not shown.
6 changes: 3 additions & 3 deletions RPi4/home/ucia/UCIA/UCIA_ObjectDetection/inf_camera-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
#yolo_trained = 'YOLO-trained/UCIA-YOLOv8n/batch-04_epo-100/weights/best_ncnn_model'
#yolo_trained = 'YOLO-trained/UCIA-YOLOv8s/batch-04_epo-100/weights/best_ncnn_model'

yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-02_epo-100/weights/best_ncnn_model'
#yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-02_epo-100/weights/best_ncnn_model'
#yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-02_epo-100/weights/best.onnx'

#yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-04_epo-100/weights/best_ncnn_model'
yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-04_epo-100/weights/best_ncnn_model'
#yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-04_epo-100/weights/best.onnx'

#yolo_trained = 'YOLO-trained/UCIA-YOLO11n/batch-10_epo-080/weights/best_ncnn_model'
Expand Down Expand Up @@ -70,7 +70,7 @@
else:
col = avRGB.argmax()
color = colors[col]
print(name, conf, color, (y1,x2,y2,x1), tuple(avRGB.astype(int)))
print(name, f'{float(conf):.2f}', color, (y1,x2,y2,x1), tuple(avRGB.astype(int)))

# Break the loop if 'q' is pressed
if cv2.waitKey(1) == ord("q"):
Expand Down

0 comments on commit 2092ea3

Please sign in to comment.