Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Fixed Nexus 5x zxing barcode scanning issue(Nexus upside down issue) #315

Merged
merged 2 commits into from
Jul 29, 2017

Conversation

rramprasad
Copy link

Hi I have fixed Nexus 5x barcode scanning issues
#280
#313
The existing data rotation code actually rotates only 90 degree.It works fine
if device having normal camera orientation(Landscape).But
for Nexus 5X device camera orientation is reverse landscape and
it rotates 90 degree,so the preview data will be upside down.
Normally when we use rectangle at center,it is very hard to identify this issue,
because zxing scans barcode even if it is in reverse angle.When we move the
rectangle points we can identify this issue.
To fix this issue,I have rotated data based on camera orientation.Now it rotates
270 degree on Nexus device and 90 degree on normal orientation devices.

r.ranganathan added 2 commits May 17, 2017 10:17
dm77#280
dm77#313
The above code actually rotates only 90 degree.It works fine
if device having normal camera orientation(Landscape).But
for Nexus 5X device camera orientation is reverse landscape and
it rotates 90 degree,so the preview data will be upside down.
Normally when we use rectangle at center,it is very hard to identify this issue,
because zxing scans barcode even if it is in reverse angle.When we move the
rectangle points we can identify this issue.
To fix this issue,I have rotated data based on camera orientation.Now it rotates
270 degree on Nexus device and 90 degree on normal orientation devices.
dm77#280
dm77#313
The above commented code actually rotates only 90 degree.It works fine
if device having normal camera orientation(Landscape).But
for Nexus 5X device camera orientation is reverse landscape and
it rotates 90 degree,so the preview data will be upside down.
Normally when we use rectangle at center,it is very hard to identify this issue,
because zxing scans barcode even if it is in reverse angle.When we move the
rectangle points we can identify this issue.
To fix this issue,I have rotated data based on camera orientation.Now it rotates
270 degree on Nexus device and 90 degree on normal orientation devices.
@dm77
Copy link
Owner

dm77 commented May 22, 2017

hi @rramprasad thank you so much for this pull request. Let me take a look and get back to you

@arkus7
Copy link

arkus7 commented May 29, 2017

@dm77 How's the review going?

@dm77 dm77 added this to the 2.0 milestone Jul 15, 2017
@kwojewoda
Copy link

It would be extremely good to get this pull request...

@dm77 dm77 merged commit 6fcba74 into dm77:master Jul 29, 2017
@dm77
Copy link
Owner

dm77 commented Jul 29, 2017

Fixed in v1.9.5. Thank you @rramprasad for the pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants