Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit a748f64

Browse files
Added support for inverse barcodes #1360 (doc)
1 parent b248acd commit a748f64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/ML_KIT.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ const firebase = require("nativescript-plugin-firebase");
323323
324324
firebase.mlkit.barcodescanning.scanBarcodesOnDevice({
325325
image: imageSource,
326+
supportInverseBarcodes: true, // only set to true if you need this as it's degrades performance slightly
326327
formats: [BarcodeFormat.QR_CODE, BarcodeFormat.CODABAR] // limit recognition to certain formats (faster), or leave out entirely for all formats (default)
327328
})
328329
.then((result: MLKitScanBarcodesOnDeviceResult) => console.log(JSON.stringify(result.barcodes)))
@@ -344,6 +345,7 @@ registerElement("MLKitBarcodeScanner", () => require("nativescript-plugin-fireba
344345
beepOnScan="true"
345346
formats="QR_CODE, EAN_8, EAN_13"
346347
preferFrontCamera="false"
348+
supportInverseBarcodes="false"
347349
[torchOn]="torchOn"
348350
(scanResult)="onBarcodeScanningResult($event)">
349351
</MLKitBarcodeScanner>

0 commit comments

Comments
 (0)