Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Device Front-Facing Camera #31

Open
pjwl33 opened this issue Jun 4, 2020 · 1 comment
Open

iOS Device Front-Facing Camera #31

pjwl33 opened this issue Jun 4, 2020 · 1 comment

Comments

@pjwl33
Copy link

pjwl33 commented Jun 4, 2020

I'm trying to get a scan using the front-facing camera from an iPad 2 device.

In the CameraViewController.m file, I've changed line 529 from
AVCaptureDevicePositionBack to AVCaptureDevicePositionFront

Everything builds successfully and the camera is showing towards the front, as expected, however there is no recognition or focus for the barcode on the front camera.

Any advice on how to achieve this? Thank you.

@manojchandrashekar
Copy link

It is possible that the front camera has different dimensions for the image and therefore the cropping logic wouldn't be the same. You will have to look more into how the image is cropped from the actual capture and the cropped image that gets used for detection. Simply changing the cameras will not work.

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

No branches or pull requests

2 participants