-
Notifications
You must be signed in to change notification settings - Fork 15
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
background executor for image Processes #16
Comments
I'm sorry that I am focused on another plugin these days, this plugin need a complete rewrite in the future, I sugget to use the official camera plugin for now. |
I mean, big thanks for making your code public! :) Generally, it's not possible to use the official camera plugin for image analysis because message channels are not made for huge data transfers like stream of images, and there is a memory leak when trying so. For robust image analysis, your approach of doing the image analysis natively and sending the results to Flutter is the way to go, rather than doing the analysis on the Dart side. So I'm sure there is a need for a computer vision-only package in the future. Could you do me a favor and tell me what other issues you had with this plugin? Generally, I would shift the torch logic out of the plugin to keep it more minimal because there is already a torchlight plugin by Flutter. Best regards, Henrik. |
I need to rewrite it use pigeon or ffi and the image analysis mechanism need to be reconsidered. |
On both Android and iOS sides, the UI is blocked if the image processes are heavy. They need to be shifted to a background thread. Simply change executor on Android to background executor.
The text was updated successfully, but these errors were encountered: