Skip to content

Face detection: image preprocessing and different ROI #914

@lezan

Description

@lezan

Hello,
I am playing with DLIB and face detection. After some try I saw a different ROI return by detector.
If load the image with OpenCV (it is a tiff image)
image = cv::imread(imagePath[imageId], CV_LOAD_IMAGE_COLOR);
then apply a clahe in this way

double clipLimit = 4.0f;
Size tileGridSize(8, 8);
Ptr<CLAHE> clahe = cv::createCLAHE(2.0, tileGridSize);
clahe->apply(gray, output);

and search for a face, detector returns image on the left.
If I load the image in the same way, but without apply clahe (or equalizeHist), detector returns ROI on the right side.
immagine
Am I missing something? My preprocessing is not the right thing to do? This is not the only case (in this case KA.FE4.48.tiff), also some other image from JAFFE dataset show the same result.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions