Create image from feature

I am detecting faces using HaarCascade, have a img.find_features returning the detected faces. What I want to do is to crop the original frame to the area where the face was detected. Any ideas?

Do you want to save the cropped image to file ?

Not necessarily to a file. Just make a new image from cropping a source image.

See image.copy().

Yes I want to save the cropped image to file.How I can do this?

Use the save() method and use the roi= argument.

Sir, I not able to do this so please can I share you code?

Right here: image — machine vision — MicroPython 1.15 documentation