cathoderaydude / Babel

A simple translation tool for on-screen text using Google Cloud Vision and Translate. Intended for translating emulated videogames and similar things.
MIT License
2 stars 0 forks source link

"Contains" mode #33

Closed hbloom1783 closed 4 years ago

hbloom1783 commented 4 years ago

when smallboxes overlap, a phraserect that exactly fits a line of smallboxes frequently picks up a straggler from another line. this can't be avoided currently without nudging the rects out of the way. I propose:

1) make the phraserects only pick up smallboxes on Contains rather than on Intersects 2) make dragging a phraserect first do an intersects check, then fit itself exactly to the intersected rectangles, THEN do Contains to pick up text. (you can also eliminate the minimum size this way)

cathoderaydude commented 4 years ago

Part 1 absolutely, part 2 should be a toggle as per #23

cathoderaydude commented 4 years ago

This should be set on a per-rect level, with a toolbar option to set which mode will be used by the next-created prect