utils library

Useful utils

Classes

NativeDataStruct
Image storage structure for VideoWorker.

Functions

convertBGRA8888(List<Plane> planes, NativeDataStruct data) → void
Converts BGRA8888 to BGR888 format (removing the alpha channel), the result can be passed to VideoWorker.
convertBGRA8888toImageColor(CameraImage image) → Image
Converts CameraImage in BGRA8888 format to BGR Image.
convertBGRA8888toRGB(List<Plane> planes, NativeDataStruct data) → void
Converts BGRA8888 to RGB format, the result can be passed to VideoWorker.
convertCameraImageToImageColor(CameraImage image) → Image
Converts CameraImage (format auto detection) to BGR Image.
convertRAW(List<Plane> planes, NativeDataStruct data) → void
Concatenates planes into one array, which can be passed to VideoWorker.
convertYUV420toImageColor(CameraImage image) → Image
Converts CameraImage in YUV format to BGR Image.
cutFaceFromCameraImage(CameraImage image, Rectangle rect) Image
Cuts out the face from the CameraImage
cutFaceFromImage(Image img, Rectangle rect) → Image
cutFaceFromImageBytes(Uint8List imgBytes, Rectangle rect) Future<Image>
Cuts out the face from encoded image imgBytes
cutFaceImageFromImageBytes(Uint8List imgBytes, Rectangle rect) Future<Image>
Cuts out the face from encoded image imgBytes
getBaseAngle(CameraController controller) int
getLibraryDirectory() Future<String>
getRawData(List<Plane> planes) Uint8List
getRawDataPointer(List<Plane> planes) Pointer<Uint8>
loadAssets() Future<String>