ammariii08 commited on
Commit
3f791bf
·
verified ·
1 Parent(s): 86c2d29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(1.5)
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 + 0.125
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(),