Integrate the app end to end, add class outline, browser check and README
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
bdfdf581f3
commit
468cafc6db
17 files changed
+702
-16
No files matched your search
+7
-1
@@ -20,6 +20,12 @@ function prepare(): void {
|
||||
});
|
||||
}
|
||||
|
||||
/** The one detector configuration the scanner uses; also used by scripts/browser-check.ts. */
|
||||
export function makeDetector(): BarcodeDetector {
|
||||
prepare();
|
||||
return new BarcodeDetector({ formats: ['ean_13'] });
|
||||
}
|
||||
|
||||
const INTERVAL_MS = 150;
|
||||
|
||||
export async function startScanner(
|
||||
@@ -54,7 +60,7 @@ export async function startScanner(
|
||||
throw e;
|
||||
}
|
||||
|
||||
const detector = new BarcodeDetector({ formats: ['ean_13'] });
|
||||
const detector = makeDetector();
|
||||
let state = newReadState();
|
||||
|
||||
// Sequential loop: the next round is scheduled only after the previous detection finished,
|
||||
|
||||
Reference in new issue
Block a user