For a project that i would like to create, i have to take some picture of paper with text that needs to be recognized.
I made some experiment with MLKit TextRecognition example (https://www.b4x.com/android/forum/threads/161210/#content) and it works very well.
One function i would like to get, is to detect if the text i rotated and, eventually, rotate the image to the correct alignment with the screen. No need to rotate image with few degrees of inclination, Images have to be rotated only if it has 45 degrees or more of inclination, for example.
On the MLkit documentation (at the page https://developers.google.com/ml-kit/vision/text-recognition/v2?hl=it), it's reported that the API returns also the degrees of inclination of the text recognized.
Is it possible to get that data in a B4A app and eventually rotate the image?
I made some experiment with MLKit TextRecognition example (https://www.b4x.com/android/forum/threads/161210/#content) and it works very well.
One function i would like to get, is to detect if the text i rotated and, eventually, rotate the image to the correct alignment with the screen. No need to rotate image with few degrees of inclination, Images have to be rotated only if it has 45 degrees or more of inclination, for example.
On the MLkit documentation (at the page https://developers.google.com/ml-kit/vision/text-recognition/v2?hl=it), it's reported that the API returns also the degrees of inclination of the text recognized.
Is it possible to get that data in a B4A app and eventually rotate the image?