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

Commit fbd2d63

Browse files
Added support for inverse barcodes #1360 (fixed MLKit on Android no longer processing more than 4 frames)
1 parent 17fe686 commit fbd2d63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mlkit/mlkit-cameraview.android.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,13 @@ export abstract class MLKitCameraView extends MLKitCameraViewBase {
195195
return;
196196
}
197197

198+
byteArray = this.preProcessImage(byteArray);
199+
this.pendingFrameData = this.bytesToByteBuffer.get(byteArray);
200+
198201
if (throttle++ % this.processEveryNthFrame !== 0) {
199202
return;
200203
}
201204

202-
byteArray = this.preProcessImage(byteArray);
203-
204-
this.pendingFrameData = this.bytesToByteBuffer.get(byteArray);
205-
206205
let data = this.pendingFrameData;
207206
// pendingFrameData = null;
208207

0 commit comments

Comments
 (0)