Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -452,7 +452,7 @@ def predict(
|
|
452 |
# Apply sharpness enhancement.
|
453 |
if isinstance(image, np.ndarray):
|
454 |
pil_image = Image.fromarray(image)
|
455 |
-
enhanced_image = ImageEnhance.Sharpness(pil_image).enhance(
|
456 |
image = np.array(enhanced_image)
|
457 |
|
458 |
# ---------------------
|
@@ -628,7 +628,7 @@ def predict(
|
|
628 |
text_y_dxf = min_y + 0.125
|
629 |
else:
|
630 |
# If no boundary, place it 0.125 above the min_y
|
631 |
-
text_y_dxf = min_y
|
632 |
|
633 |
text_entity = msp.add_text(
|
634 |
annotation_text.strip(),
|
|
|
452 |
# Apply sharpness enhancement.
|
453 |
if isinstance(image, np.ndarray):
|
454 |
pil_image = Image.fromarray(image)
|
455 |
+
enhanced_image = ImageEnhance.Sharpness(pil_image).enhance(2)
|
456 |
image = np.array(enhanced_image)
|
457 |
|
458 |
# ---------------------
|
|
|
628 |
text_y_dxf = min_y + 0.125
|
629 |
else:
|
630 |
# If no boundary, place it 0.125 above the min_y
|
631 |
+
text_y_dxf = min_y - 0.125
|
632 |
|
633 |
text_entity = msp.add_text(
|
634 |
annotation_text.strip(),
|