tonyassi commited on
Commit
f8f63c4
·
verified ·
1 Parent(s): ce4bbab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md CHANGED
@@ -35,6 +35,45 @@ It was trained on a small custom dataset of foot annotations and is intended as
35
  ---
36
 
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  ## 📦 Usage
40
  ```bash
 
35
  ---
36
 
37
 
38
+ ## ⚡️ Quick Start
39
+
40
+ To download this repository:
41
+
42
+ ```bash
43
+ git clone https://github.com/tonyassi/FootDetection.git
44
+ cd FootDetection
45
+ ```
46
+
47
+ Install:
48
+
49
+ ```bash
50
+ pip install -r requirements.txt
51
+ ```
52
+
53
+
54
+ Usage:
55
+
56
+ ```python
57
+ from FootDetection import FootDetection
58
+ from PIL import Image
59
+
60
+ # Initialize model (first run will auto-download weights)
61
+ foot_detection = FootDetection("cpu") # "cuda" for GPU or "mps" for Apple Silicon
62
+
63
+ # Load image
64
+ img = Image.open("image.jpg").convert("RGB")
65
+
66
+ # Run detection
67
+ results = foot_detection.detect(img, threshold=0.1)
68
+ print(results)
69
+
70
+ # Draw boxes
71
+ img_with_boxes = foot_detection.draw_boxes(img)
72
+ img_with_boxes.show()
73
+ img_with_boxes.save("annotated_image.jpg")
74
+ ```
75
+
76
+ ---
77
 
78
  ## 📦 Usage
79
  ```bash