using face recognition to find face and zoom in.

happyamenda's icon

I am using the cv.jit.faces to find a face on the live camera but I want to zoom in when it finds a face and then zoom back out
if it loses it. Is there anyone who can help me?
Would this be possible?
Thank you