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

App Crash Due to High RAM Consumption When Using ML Kit #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

umer-ppup
Copy link

I have introduced a new option parameter in the 'OSBARCScanParameters' class called 'scanInterval.' This parameter adds a delay when performing image decoding in the 'OSBARCMLKitHelper' class. By adding a small delay, we can resolve the high RAM consumption issue, as memory usage increases exponentially when decoding is performed by ML Kit. Adding a slight delay of about 500 milliseconds does not affect scanning efficiency but optimizes RAM usage.

Issue
#30

@umer-ppup umer-ppup requested a review from a team as a code owner May 31, 2024 15:03
@umer-ppup umer-ppup force-pushed the umer-ppup/added-scan-interval-option-to-limit-the-scanning-rate-of-mlkit-to-optimize-memory branch from 4581a98 to 627d65c Compare June 10, 2024 09:05
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.

1 participant