diff --git a/RPi4/home/ucia/Desktop/DetectObj.desktop b/RPi4/home/ucia/Desktop/DetectObj.desktop new file mode 100644 index 0000000..ab529be --- /dev/null +++ b/RPi4/home/ucia/Desktop/DetectObj.desktop @@ -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. diff --git a/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/bin/AI.pixmap b/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/bin/AI.pixmap new file mode 100644 index 0000000..d9df2da Binary files /dev/null and b/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/bin/AI.pixmap differ diff --git a/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/inf_camera-2.py b/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/inf_camera-2.py index ec0cb53..f3280ff 100644 --- a/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/inf_camera-2.py +++ b/RPi4/home/ucia/UCIA/UCIA_ObjectDetection/inf_camera-2.py @@ -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' @@ -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"):