April 2020
Intermediate to advanced
380 pages
9h 24m
English
Next, marking the detected faces. After detecting all the faces present in the image, we will paint rectangular boxes around them with the following steps:
void loadImage(File file) async { final data = await file.readAsBytes(); await decodeImageFromList(data).then( (value) => setState(() { image = value; }), );}
The loadImage() method takes in the image file as input. Then we convert the contents of the file into bytes using file.readAsByte() and store the result in data. Next, we call decodeImageFromList(), which is used to load a single image frame from a byte array into an Image object and store the ...
Read now
Unlock full access