InputImage class

InputImage is the format Google' Ml kit takes to process the image

Constructors

InputImage({String? path, Uint8List? bytes, required String type, InputImageData? metadata})
InputImage.fromBytes({required Uint8List bytes, required InputImageData metadata})
Create InputImage from bytes
factory
InputImage.fromFile(File file, {InputImageData? metadata})
Create InputImage from File
factory
InputImage.fromFilePath(String path, {InputImageData? metadata})
Create InputImage from File path
factory

Properties

bytes Uint8List?
final
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
no setter
metadata InputImageData?
final
path String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final

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