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

Recognize line breaks #32

Open cathoderaydude opened 4 years ago

cathoderaydude commented 4 years ago

Recognition of line breaks is a crucial feature in making our output more legible without forcing the user to create a series of small phraserects.

An algorithm to decide which words are on the same line should not be hard to put together based on the new heuristic, and with that we could either split the detected text into lines and send them to google as separate strings, or possibly just insert linebreaks into the rawtext, if google will retain those in the translatedtext (i imagine they will.)