Open uomar8 opened 6 months ago
I have yet to investigate how to support vertical Japanese texts. (by native support from the libraries or calculating the positions in code) But the result from the last screenshot you posted is better than I expected. At least it read vertically, but the ordering is wrong. 🤔
I think this could be an easy solution
Just rotate the cropped bitmap and it will work fine
https://stackoverflow.com/questions/52623765/ml-kit-android-text-recognition-text-orientation
I think this could be an easy solution Just rotate the cropped bitmap and it will work fine
Wait..., this solution is amazing!!! 🚀 Thank you for the investigation 😍
I'm working on a refactoring task, let me pick this task after the main components work and are stable.
I used this image as test![horizontal-and-vertical-writing](https://github.com/firemaples/EverTranslator/assets/7046347/f545a730-4fb9-47d7-a8f9-14df514264ec)
Once I tried horizontal text it's perfect![Screenshot_20231228_135017_com android gallery3d_edit_610171250828247](https://github.com/firemaples/EverTranslator/assets/7046347/6fb72f3d-c384-418c-abfe-cf642b2a9c73)
Once I tried virtcal text both jp and jp rtl couldn't read it on the correct order
![Screenshot_20231228_135058_com android gallery3d_edit_610156373964707](https://github.com/firemaples/EverTranslator/assets/7046347/c41f24b3-1b75-4291-97e1-71bd9931f645)