Ask Your Question
0

OpenCV camera works really strange (Android)

asked 2020-05-27 10:21:12 -0600

balfad gravatar image

Hello! I tried different OpenCV tutorials for Android and every time native camera is not full screen and I get distorted image& It looks like this: image description image description

I found one tutorial on how to fix it, but after completing it camera loses the ability to draw frames that I need for face recognition. Does anybody know how to fix it? I would be very grateful cause I have been struggling with this problem for a week.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-27 13:16:15 -0600

kpachinger gravatar image

A diverse lineup of hardware supports Android. What model do you have? There are multiple orientation values, and they may differ per model. It looks like you should rotate 90-degrees, or use that corresponding code. Importantly, log orientation onchange even during delay between picture taken and return to app. During this delay the device model may have photo meta out of sync... Maybe due to low memory or device was laid flat changing orientation to null? Do you have screen mirrored or virtualized? Screen rotation lock?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-05-27 10:21:12 -0600

Seen: 271 times

Last updated: May 27 '20