Skip to content

Commit

Permalink
Consider an alternative option of just retrieving words
Browse files Browse the repository at this point in the history
We could try this instead and compile lines post-detection but at
present the Tesseract-based text detection interface is not as
successful as we have hoped (and not easy to fine-tune either) so
only continue development here in case of sufficient interest from
users and contributors.
  • Loading branch information
pevogam committed Apr 29, 2024
1 parent 49e7092 commit e8453c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guibot/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2313,6 +2313,10 @@ def _detect_text_boxes(self, haystack):
offset_x, offset_y, next_region = recursive_regions.pop()
region_w, region_h = next_region.shape[1], next_region.shape[0]

# TODO: activate flag for word-only matching if there is enough interest for this
#output = self.tbox.image_to_boxes(next_region, self.params["tdetect"]["language"].value,
# config=self.tbox_config, output_type=self.tbox.Output.DICT)
# ...process dict
output = self.tbox.run_and_get_output(next_region, 'box',
self.params["tdetect"]["language"].value,
config=self.tbox_config)
Expand Down

0 comments on commit e8453c0

Please sign in to comment.