Datasets:
Update README.md
Browse files
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 |
-
|
| 43 |
-
|
| 44 |
-
|
| 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 |
|