Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxxfrazer/arkit-qrscanner
Functions for scanning QR codes in ARKit
https://github.com/maxxfrazer/arkit-qrscanner
arkit augmented augmented-reality barcode barcode-scanner cocoapods ios qr qrcode swift
Last synced: 3 months ago
JSON representation
Functions for scanning QR codes in ARKit
- Host: GitHub
- URL: https://github.com/maxxfrazer/arkit-qrscanner
- Owner: maxxfrazer
- License: mit
- Created: 2018-11-15T23:00:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T10:59:56.000Z (about 5 years ago)
- Last Synced: 2024-10-11T22:51:11.285Z (4 months ago)
- Topics: arkit, augmented, augmented-reality, barcode, barcode-scanner, cocoapods, ios, qr, qrcode, swift
- Language: Swift
- Size: 526 KB
- Stars: 27
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ARKit-QRScanner
This class `QRScanner` contains a few functions for scanning QR codes with ARKit.
The positioning isn't working quite right yet, open to contributions to get it to work!Include this pod in your project:
`pod 'QRScanner', :git => 'https://github.com/maxxfrazer/ARKit-QRScanner.git'`
Example use (not suggested to run every frame as in example though):
```
func session(_ session: ARSession, didUpdate frame: ARFrame) {
// background thread improves the lag a bit
DispatchQueue.global(qos: .background).async {
let qrResponses = QRScanner.findQR(in: frame)
for response in qrResponses {
print(response.feature.messageString ?? "no message found")
}
}
}```
The messageString can be text, URL, or any other commands following the standards outlined here:
[Barcode Content Standards](https://github.com/zxing/zxing/wiki/Barcode-Contents)