Skip to content

Conversation

@ISNIT0
Copy link
Member

@ISNIT0 ISNIT0 commented Jan 8, 2025

Bare-bones QR Code scanner.
Modified the plugin renderers slightly so they can render on multiple surfaces at once.

@ISNIT0 ISNIT0 marked this pull request as draft January 8, 2025 20:22
val inputImage =
InputImage.fromMediaImage(image, imageProxy.imageInfo.rotationDegrees)

scanner?.process(inputImage)
Copy link
Collaborator

Choose a reason for hiding this comment

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

for the future
i guess the constant image processing can affect performance on low-end devices

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep - this is actually running on a separate thread (managed in the caller), and is automatically only run on the latest frame, once the previous frame is processed. So should scale fairly nicely for now.

In future, I can imagine us wanting to throttle/prioritise certain analysers over others (e.g. in Portrait mode we should heavily prioritise segmentation and blurring, but less so qr scanning)

A future problem!

@ISNIT0 ISNIT0 force-pushed the ISNIT0/qr-scanner branch 5 times, most recently from ef40700 to 15b69fb Compare January 9, 2025 12:48
@ISNIT0 ISNIT0 changed the base branch from main to ISNIT0/plugins January 9, 2025 12:49
@ISNIT0 ISNIT0 marked this pull request as ready for review January 9, 2025 12:51
@ISNIT0 ISNIT0 changed the title [WIP] Add QR Scanner Add QR Scanner Jan 9, 2025
@ISNIT0 ISNIT0 requested a review from vckttr January 9, 2025 12:52
Base automatically changed from ISNIT0/plugins to main January 9, 2025 12:53
@ISNIT0 ISNIT0 force-pushed the ISNIT0/qr-scanner branch from a777a97 to 0355732 Compare January 9, 2025 12:57
Copy link
Collaborator

@IzaakBH IzaakBH left a comment

Choose a reason for hiding this comment

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

LGTM

@ISNIT0 ISNIT0 merged commit ea323fe into main Jan 9, 2025
2 checks passed
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.

4 participants