camera_image_converter 0.0.2 camera_image_converter: ^0.0.2 copied to clipboard
A new flutter plugin project.
CameraImage Converter #
A Flutter plugin used to convert the CameraImage object returned by the imageStream in flutter'\s official camera plugin into JPEG format Efficiently --> Converts YUV420_888 to JPEG
- Attention: This plugin currently only supports Android
Usage #
To use this plugin, add camera_image_converter
as a dependency in your pubspec.yaml file.
Example #
...
await controller.startImageStream((CameraImage image, quality: 70) async {
var jpeg = await CameraImageConverter.convertCameraImageTo(image);
});
...
Please see the example app of this plugin for a full example.
Contributions and Acknowledgements
- A big thanks to tomerblecher for inspiring this plugin