-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
iOS Camera resolution crash #112
Comments
You should open an issue on the camera plugin since we use it under the hood. |
But while set to max resolution iphone 8 memory consumption is more than gb and it leads to crash |
The only thing we do in this package is getting the video stream from camera plugin and plug it into flutter_firebase_ml_vision plugin. |
Hi @Kleak I have attached the image of camera result in max resolution |
@SubashManian the memory leak crash is known feature of this package. The same works for android. This package has slightly outdated camera and ml_vision packages. There is no much hope for now that this package will be updated... |
In fact the leak is probably the usage of both camera and ml_vision, because the frame is going from native camera to dart, then go back to native code on ml_vision to process. I think it's this frame process that give us the leak. And there is currently no way to fix that except doing everything in native. But if you actually find an easy fix I'll gladly review and merge it. But from what I have search I didn't find any one and I don't have time to dig more |
Vote for the issue |
Bar Code scanner won't run iPhone 8 device while set it max resolution. if i set resolution to medium at the time it work's fine but can't able to scan the lower quality bar code in printed copies.
While i set it to max resolution for android it takes the resolution automatically based on the device configuration. but it's not work on iOS
CameraMlVision<List>(
resolution: ResolutionPreset.max,
overlayBuilder: (c) {
return Container(
decoration: ShapeDecoration(
shape: _ScannerOverlayShape(
borderColor: Theme.of(context).primaryColor,
borderWidth: 3.0,
),
),
);
},
detector: FirebaseVision.instance.barcodeDetector().detectInImage,
onResult: (List barcodes) {
},
onDispose: () {
detector.close();
},
The text was updated successfully, but these errors were encountered: