fromRgba static method
Implementation
static Future<DetectableImage> fromRgba(List<int> bytes, int width, int height) async {
// decode pixels
List<int> pixels = ImageHelper.toPixelsFromRgba(bytes);
// get luminance
var source = RGBLuminanceSource(width, height, pixels);
// get bitmap
BinaryBitmap bitmap = BinaryBitmap(HybridBinarizer(source));
return DetectableImage(bitmap);
}