format = Format.FORMAT_YUV_NV21;
convertRAW(img.planes, _data); // concatenates Android camera image planes
// into one array
_ri = RawImageF(img.width, img.height, format, _data.pointer!.cast()); // Create RawImage
// object _videoWorker.addVideoFrame(_ri!, time); // Pass frame and current timestamp to VideoWorker
final callbackData = _videoWorker.poolTrackResults();
final rawSamples = callbackData.tracking_callback_data.samples;
final samplesQuality = callbackData.tracking_callback_data.samples_quality;
if (rawSamples.length > 0) {
for(var i = 0; i < rawSamples.length; i+=1) {
personId = rawSamples[i].getID();
sampleQuality = samplesQuality[i]
Uint8List bestShot = bestRawSample.cutFaceImage(ImageFormatCode.IMAGE_FORMAT_JPG,
FaceCutType.FACE_CUT_FULL_FRONTAL);
Flutter Plugin Tutorial >
Flutter API Documentation >
Note: To use our Flutter API in your applications, please purchase the ESL Mobile license.