InputImage.fromBytes constructor

InputImage.fromBytes({
  1. required Uint8List bytes,
  2. required InputImageMetadata metadata,
})

Creates an instance of InputImage using bytes.

Implementation

factory InputImage.fromBytes(
    {required Uint8List bytes, required InputImageMetadata metadata}) {
  return InputImage._(
      bytes: bytes, type: InputImageType.bytes, metadata: metadata);
}