From 7154a3f0966eb7efbd9222463a3becfc55722adf Mon Sep 17 00:00:00 2001
From: Stephane Chavin <stephanechvn@gmail.com>
Date: Fri, 20 Jan 2023 14:30:50 +0100
Subject: [PATCH] Update README.md

---
 README.md | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index f38b40d..e07ba32 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ python3 detect.py --weights ../psi-biom/YOLOV5/weights/best.pt --img 224 --conf
 * Sauvegarde les annotations en .txt seulement avec la confiance de chaque détections
 
 ```bash
-python3 detect.py --weights ..psi-biom/best.pt --img 224 --conf 0.X --source PATH_TO_IMG --save-txt --nosave --save-conf
+python3 detect.py --weights ../psi-biom/YOLOV5/weights/best.pt --img 224 --conf 0.X --source PATH_TO_IMG --save-txt --nosave --save-conf
 ``` 
 </details>
 
@@ -64,4 +64,23 @@ names = []
 
 </details>
 
+<details>
+<summary>Conversion des détection YOLO vers LabelMe</summary>
+<p>
+</p>
+
+```bash
+pip install globox
+
+globox convert yolov5/runs/detect/labels/ YOUR_DIRECTORY_WICH_DATA_WILL_BE_STORED --formet yolo --save_fmt labelme --img PATH_TO_IMAGES
+```
+
+* Ce script permet de convertir les .txt en .json pour les ouvrir dans LabelMe mais il ne prend pas en compte le paramètre 'imageData' donc il est important d'ensuite utiliser le second script
+
+```bash
+python3 get_json_file_YOLO.py -p -d
+```
+
+</details>
+
 
-- 
GitLab