How to crop face from image?

I have tried normal cropping with ImageKit but I have a specific requirement to create profile images for users, for which it would be great to get a crop just around the face in the image. How to use ImageKit to crop only the face from the image?

ImageKit offers the fo-face transformation, which crops an image while keeping the face in focus. This ensures perfectly framed thumbnails, making it ideal for profile pictures that highlight the subject effectively.

Example:

Original Image:
https://ik.imagekit.io/ikmedia/docs_images/examples/example_portrait_1.jpg

Face-Crop:
https://ik.imagekit.io/ikmedia/tr:w-150,h-150,fo-face/docs_images/examples/example_portrait_1.jpg