Skip to content

Conversation

@bachino90
Copy link

No description provided.

@bachino90 bachino90 requested a review from jlgaitan July 28, 2024 16:11

private class QRCodeAnalyzer(listener: QRCodeAnalyzerListener? = null) : ImageAnalysis.Analyzer {
private val barCodeScannerOptions = BarcodeScannerOptions.Builder()
.setBarcodeFormats(Barcode.FORMAT_PDF417)

Choose a reason for hiding this comment

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

Es medio confuso usar en todos lados QRCode cuando en realidad lo usamos para leer FORMAT_PDF417, que no es estrictamente hablando un QR Code.

Lo podríamos generalizar a enableBarCodeRecognition y poder pasarle el type como option.

fragment.setDefaultCamera(position.equals("front") ? CameraSelector.DEFAULT_FRONT_CAMERA : CameraSelector.DEFAULT_BACK_CAMERA);
fragment.setStoreToFile(storeToFile);
fragment.setEnableFaceRecognition(enableFaceRecognition);
fragment.setEnableQRCodeRecognition(enableQRCodeRecognition);

Choose a reason for hiding this comment

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

En todos los lugares donde dice QR Code le dejaría genérico barcode, porque QR_CODE es uno de los types,

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