ImageConverter class
ImageConverter is used to get image_lib Image from CameraImage
Code from : https://github.com/JaeHeee/FlutterWithMediaPipe/blob/main/lib/utils/image_utils.dart
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertBGRA8888ToImage(
CameraImage cameraImage) → Image -
Converts a
CameraImage
in BGRA888 format to Image in RGB format -
convertCameraImage(
CameraImage cameraImage) → Image? -
Converts a
CameraImage
in YUV420 format to Image in RGB format -
convertYUV420ToImage(
CameraImage cameraImage) → Image -
Converts a
CameraImage
in YUV420 format to Image in RGB format Code from : https://gist.github.com/Alby-o/fe87e35bc21d534c8220aed7df028e03?permalink_comment_id=4074603#gistcomment-4074603 -
yuv2rgb(
int y, int u, int v) → int - Convert a single YUV pixel to RGB