marco-schouten commited on
Commit
ea61b33
·
verified ·
1 Parent(s): 240e9fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -38,11 +38,11 @@ The bounding boxes follow these conventions:
38
 
39
  ### Coordinate Conversion
40
  To convert the normalized `bbox` to pixel values for a 512x512 image:
 
41
  ```Python
42
- Pixel_x = x * 512
43
- Pixel_y = y * 512
44
- Pixel_w = w * 512
45
- Pixel_h = h * 512
46
  ```
47
  ---
48
 
 
38
 
39
  ### Coordinate Conversion
40
  To convert the normalized `bbox` to pixel values for a 512x512 image:
41
+
42
  ```Python
43
+ # Convert normalized [x, y, w, h] to 512x512 pixel coordinates
44
+ px_x, px_y = bbox[0] * 512, bbox[1] * 512
45
+ px_w, px_h = bbox[2] * 512, bbox[3] * 512
 
46
  ```
47
  ---
48