HI, All
For OCR the picture with a text must be prepared in correct orientation (without option\setting of the picture orientation, let it be so). And photo of the max possible resolution.
If to use the intent based camera and get the photo for OCR - it's very different result under Android 4.2 and Android 7, for ex.: old Android always returns photo file with correct orientation, but Android 7 - different, and the base picture orientation is landscape (but the device was portrait during the shooting).
See the attached result set and the test source code: the app is portrait only activity.
And moreover - under Android 7 i had OutOfMemory error if tried to rotate 90 the full-sized photo from the camera. And resolution must be preserved.
1) How to rotate the picture in one app under different Android versions ? Without OOM error.
2) Or how to fix the intent camera orientation ?
For OCR the picture with a text must be prepared in correct orientation (without option\setting of the picture orientation, let it be so). And photo of the max possible resolution.
If to use the intent based camera and get the photo for OCR - it's very different result under Android 4.2 and Android 7, for ex.: old Android always returns photo file with correct orientation, but Android 7 - different, and the base picture orientation is landscape (but the device was portrait during the shooting).
See the attached result set and the test source code: the app is portrait only activity.
And moreover - under Android 7 i had OutOfMemory error if tried to rotate 90 the full-sized photo from the camera. And resolution must be preserved.
1) How to rotate the picture in one app under different Android versions ? Without OOM error.
2) Or how to fix the intent camera orientation ?
Attachments
Last edited: