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

Add support for scanning QR codes #199

Merged
merged 2 commits into from
Apr 1, 2020
Merged

Conversation

phlippieb
Copy link
Contributor

Probably not quite how you would have done it, but this is something we added for our own use, and I figured let's propose this as functionality on this great project 😄

@torrao torrao force-pushed the master branch 28 times, most recently from c2ec236 to d28ac26 Compare March 31, 2020 13:16
@torrao torrao force-pushed the master branch 7 times, most recently from 0d193b1 to b8bb2ee Compare April 1, 2020 09:20
@torrao torrao merged commit 5ab7896 into imaginary-cloud:master Apr 1, 2020
/**
The stored meta data output; used to detect QR codes.
*/
private var qrOutput: AVCaptureOutput? = nil

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phlippieb it seems that qrOutput is always nil. Could it be that in line 815 it should be qrOutput instead of output?

Right now there is an issue when you call stopQRCodeDetection() directly in the handler and then startQRCodeDetection(). By starting QR code detection the following times, it will not work again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was so long ago, I have no idea anymore 😁 it's totally possible. Is your issue fixed if you change line 815 to qrOutput?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phlippieb I fixed it in PR #237. Please check it out :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't my repo 😺

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

Successfully merging this pull request may close these issues.

3 participants