Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add 'onFrame' lambda to capture the current frame of the camera #85

Merged
merged 12 commits into from
May 6, 2024

Conversation

jordond
Copy link
Contributor

@jordond jordond commented May 2, 2024

I am attempting to implement MLKit into a KMP application, and I need access to each frame from the camera to do Image analysis on it.

Peekaboo currently didn't have any way of exposing this, so this PR adds that feature.

You can pass onFrame to any of the peekaboo-ui functions to immediately receive frame data in the form of a ByteArray and the timestamp of the frame.

I have tested this on Android and iOS. However I couldn't get the sample in this repository to run on iOS. However I ported this library to my application and can confirm that frame updates work on iOS.

@onseok
Copy link
Owner

onseok commented May 4, 2024

Hi @jordond, overall seems good to me!
Could you please run ./gradlew spotlessApply and then push the changes before merging this PR? Thanks!

@onseok onseok merged commit 63cdcf7 into onseok:main May 6, 2024
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.

2 participants