Skip to content

fix(android): bind scan without ImageCapture on LIMITED cameras - #8

Open
GladosBlueWallet wants to merge 11 commits into
BlueWallet:masterfrom
GladosBlueWallet:fix/android-scan-usecase-bind
Open

fix(android): bind scan without ImageCapture on LIMITED cameras#8
GladosBlueWallet wants to merge 11 commits into
BlueWallet:masterfrom
GladosBlueWallet:fix/android-scan-usecase-bind

Conversation

@GladosBlueWallet

Copy link
Copy Markdown

Summary

Sister of teslamotors/react-native-camera-kit#809.

Same CameraX bind issue: on LIMITED cameras (emulator webcams), Preview + ImageCapture + ImageAnalysis fails with a black preview.

When scanBarcode is on:

  • bind Preview + ImageAnalysis only
  • skip view-derived setTargetAspectRatio on Preview
  • target VGA for analysis

Photo-capture path unchanged.

Fork-only: harden QRCodeAnalyzer Y-plane extraction for pixelStride (limpbrains/qr; Tesla uses ML Kit).

After teslamotors#809 lands upstream, catching up this fork should be mostly a clean port of the shared CKCamera hunk. BlueWallet can then bump the pin and drop the local patch-package workaround.

Test plan

  • Emulator + webcam: Scan QR shows live preview
  • Emulator + webcam: QR codes decode
  • Device: scan still works
  • Device: photo capture (scanBarcode off) still works

Made with Cursor

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.

5 participants