Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- src/visualization.py +0 -14
src/visualization.py
CHANGED
|
@@ -151,20 +151,6 @@ def draw_card_overlay(
|
|
| 151 |
params["text_thickness"],
|
| 152 |
)
|
| 153 |
|
| 154 |
-
# Add scale annotation
|
| 155 |
-
if scale_px_per_cm is not None:
|
| 156 |
-
center = np.mean(corners, axis=0).astype(np.int32)
|
| 157 |
-
text = f"Card: {scale_px_per_cm:.1f} px/cm"
|
| 158 |
-
cv2.putText(
|
| 159 |
-
image,
|
| 160 |
-
text,
|
| 161 |
-
tuple(center),
|
| 162 |
-
FONT_FACE,
|
| 163 |
-
params["font_scale"] * 1.2,
|
| 164 |
-
Color.CARD,
|
| 165 |
-
params["text_thickness"],
|
| 166 |
-
)
|
| 167 |
-
|
| 168 |
return image
|
| 169 |
|
| 170 |
|
|
|
|
| 151 |
params["text_thickness"],
|
| 152 |
)
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
return image
|
| 155 |
|
| 156 |
|