sz3 / cfc

Demo/test android app for libcimbar. Copy files over the cell phone camera!
https://cimbar.org
MIT License
503 stars 61 forks source link

camera is mirrored #18

Open krushia opened 1 year ago

krushia commented 1 year ago

On a Nexus 5X, the camera image is mirrored in both directions. This makes it hard to line up.

sz3 commented 1 year ago

Hmm... Thanks for reporting this. I'll try to look into it.

krushia commented 1 year ago

Found some info about it here https://stackoverflow.com/questions/37560871/camera-is-inverted-in-nexus-device

sz3 commented 1 year ago

I forgot to respond to this. Sorry about that.

I think where I'm at on this is:

  1. it seems like (mostly) hardware specific behavior
    • android devs may protest that in fact they're following the standard and it's everyone else that is wrong, and they may be technically correct. But it seems to be only Nexus devices that use this rotation feature and as a result the rest of the world (including the opencv tutorial code I'm using) doesn't account for it.
  2. I don't have the hardware in my possession

If somebody wants to take a look at a change and make a PR to address this, I'll take it (and test it on the devices I can), but I'm unlikely to spend more time on it than that. If it's any consolation, if/when I get a web-based version of the decoder to work, I'd expect we won't be battling too much hardware specific stuff like this. (I hope... :grimacing: )

Marking as help needed to signify status...