Instascan: Scan using Android Rear Camera result in inverted camera

Created on 24 Aug 2017  ·  4Comments  ·  Source: schmich/instascan

Hi, i am trying your live demo using android rear camera. It worked using inverted QR code, is there any way i can call the function to invert it back to normal?

Thanks

Most helpful comment

"Temporary fix": There's a mirror option, which you can pass to the Scanner's constructor like this:

let scanner = new Instascan.Scanner({
  video: document.getElementById('preview'),
  mirror: false // prevents the video to be mirrored
});

Using this option, the rear facing camera will provide the correct, non-mirrored image.

All 4 comments

Yes please, I also want to know the solution too. The device I'm using is Samsung J7 Pro, and I'm using Firefox for the browser.

Yes please, I also want to know how to fix it! Help us Schmich ! I'm using LG G3 and opera/google brower.

Yes plz help with the inverted iaaue

"Temporary fix": There's a mirror option, which you can pass to the Scanner's constructor like this:

let scanner = new Instascan.Scanner({
  video: document.getElementById('preview'),
  mirror: false // prevents the video to be mirrored
});

Using this option, the rear facing camera will provide the correct, non-mirrored image.

Was this page helpful?
0 / 5 - 0 ratings