deep-landmark
deep-landmark copied to clipboard
how to solve the face just on the edge of the image?
@luoyetx When a human face in an image is just on the edge of the image. There is always such a problem: out of bounds.Because in the process of recognition, there are several images of cutting. Out of the image boundary Will appear.
I wonder if your detector can find out this kind of faces. I'm not sure whether the network can predict landmarks or not, since the training data may be lack of such faces, I think the result won't be good, but you can try.
@wuqiangch I would recommend to pad the image by zeros (I use pad_size=10 pixels) to avoid boundary problems.
pad_img=numpy.pad(img, ((10,10),(10,10)),'constant')
After the point detection procedure, be aware to take off pad_size on both x and y axis to recover the original coordinate system.