Jhoeel commited on
Commit
c4f9550
·
1 Parent(s): 8a27180

Update captura.py

Browse files
Files changed (1) hide show
  1. captura.py +3 -3
captura.py CHANGED
@@ -88,9 +88,9 @@ def captura_pagina(url):
88
  image = Image.open(BytesIO(image_data))
89
 
90
  # Set the fixed box_threshold and text_threshold
91
- box_threshold = 0.2
92
- text_threshold = 0.2
93
- grounding_caption = "webform"
94
 
95
  # Run the Grounding DINO model on the image
96
  image_with_bb = run_grounding(image, grounding_caption, box_threshold, text_threshold)
 
88
  image = Image.open(BytesIO(image_data))
89
 
90
  # Set the fixed box_threshold and text_threshold
91
+ box_threshold = 0.38
92
+ text_threshold = 0.25
93
+ grounding_caption = "Find the webform in the picture of a web."
94
 
95
  # Run the Grounding DINO model on the image
96
  image_with_bb = run_grounding(image, grounding_caption, box_threshold, text_threshold)