1
$\begingroup$

I have a fairly large dataset consisting of different images with and without persons that I want to use for a project.

The problem is that I only want the pictures that contain faces, and it is best if there is only a crop of the face.

I already looked at Facenet and Openface, but I thought that there must be a simpler already trained solution just to sort the dataset so I can get started with my own project.

$\endgroup$
  • $\begingroup$ You could try importing them into a photo management app; they often have face recognition built in to help you identify people in your pictures. $\endgroup$ – Oliver Mason May 20 at 10:23
  • $\begingroup$ @OliverMason Thanks, but i have about 30k pictures which probably takes a long time to import :/ $\endgroup$ – AiRookie May 20 at 10:31
1
$\begingroup$

I have found a script that does what i need: https://github.com/leblancfg/autocrop

$\endgroup$
0
$\begingroup$

I don't know of a tool but you could write a simple script to detect faces and crop it. It's quite simple with the Haar cascade in openCV to detect faces and use inbuilt functions to crop your image based on the size of the detected face.

Hope that helps !

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.