We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I recently migrated the TensorFlow lite packages to the lates version and I noticed this issue.
On the camera_view.dart
camera_view.dart
cameraController = CameraController(cameras[0], ResolutionPreset.low, enableAudio: false);
cameraController = CameraController(cameras[0], ResolutionPreset.medium, enableAudio: false);
cameraController = CameraController(cameras[0], ResolutionPreset.high, enableAudio: false);
The updated pubspec.yaml
pubspec.yaml
camera: ^0.8.1+3 tflite_flutter: ^0.9.0 tflite_flutter_helper: ^0.3.0 image: ^3.0.8 path_provider: ^2.0.1 image_picker: ^0.7.3
The text was updated successfully, but these errors were encountered:
I had the same issue!
Sorry, something went wrong.
has anyone been able to fix this? 🙂
If anyone is still looking for a solution,
In camera_view.dart, build method change return AspectRatio( aspectRatio: cameraController.value.aspectRatio, child: CameraPreview(cameraController)); to return CameraPreview(cameraController);
return AspectRatio( aspectRatio: cameraController.value.aspectRatio, child: CameraPreview(cameraController));
return CameraPreview(cameraController);
I dont know if there is a better solution, or why it broke in the first place, but it works for me.
No branches or pull requests
Hi,
I recently migrated the TensorFlow lite packages to the lates version and I noticed this issue.
On the
camera_view.dart
cameraController = CameraController(cameras[0], ResolutionPreset.low, enableAudio: false);
cameraController = CameraController(cameras[0], ResolutionPreset.medium, enableAudio: false);
cameraController = CameraController(cameras[0], ResolutionPreset.high, enableAudio: false);
The updated
pubspec.yaml
The text was updated successfully, but these errors were encountered: