ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

Not getting proper rect #247

Open priyanka6692 opened 4 years ago

priyanka6692 commented 4 years ago

I just go through the ios example but I'm not getting proper rect values. The output is like this IMG-0355 Is there anything I'm missing

ShiqiYu commented 4 years ago

How about to resize your images to 320 pixels or similar?

lynnwilliam commented 1 year ago

I have the same issue, I am resizing the input image to 320 x 320. and it finds the correct number of faces (34), BUT the bounding boxes are wrong. There are 34 faces, each face is 100 pixels wide, after the resize. Bounding Box x, y, width, height FaceDetection: {23, 30, 256x193} FaceDetection: {21, 25, 103x251} FaceDetection: {21, 25, 154x42} FaceDetection: {21, 27, 154x96} FaceDetection: {23, 26, 43x102} FaceDetection: {26, 30, 97x92} FaceDetection: {21, 27, 263x91} FaceDetection: {22, 29, 208x141} FaceDetection: {23, 28, 201x39} FaceDetection: {24, 31, 201x90} FaceDetection: {23, 31, 256x250} //says face is close to the same size as the input FaceDetection: {20, 16, 215x7} FaceDetection: {23, 31, 263x142} FaceDetection: {21, 25, 154x248} FaceDetection: {24, 18, 151x12} FaceDetection: {15, 14, 114x6} FaceDetection: {17, 22, 59x212} FaceDetection: {17, 22, 155x208} FaceDetection: {22, 25, 146x154}