allgood / OpenNoteScanner

Android application for scanning and manipulating handwritten notes and documents.
Other
1.35k stars 283 forks source link

Camera support for Sony Xperia #279

Open elesto opened 2 years ago

elesto commented 2 years ago

Camera preview is wrong on my Sony Xperia 5 II. Screenshot_20220224-210522

Steps to reproduce

Own a Sony Xperia 5 II Try using app

Expected behaviour

Full screen camera

Actual behaviour

Cropped camera view

Would you like to work on the issue?

I have no coding experience but i can provide help with testing and more information.

syskill commented 2 years ago

Same on my OnePlus 6T, although the OnePlus 5T that I was using until very recently does not have this problem. ETA both devices run LineageOS 18.

Also on my OnePlus 6T, this app can't seem to focus the camera properly, which means that scans using the image processor come out all white. Idk if that is related, but maybe both are due to the camera API level?

afleuryg commented 2 years ago

I'm not a maintainer for OpenNoteScanner, but I would say it is a problem of API level and/or of camera driver. In the case of the Xperia in particular, the camera subsystem is only usable with full functionality by Sony themselves; they lock the camera resolution available throught the standard API.

I had the same type of problem with my Xperia Z5 - nice camera, only usable with the sony photo app. All other camera app were limited.