Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

since it says:

Detected 0 faces

and

Image width is zero

i'm sure, that it could not load the lena image before.

(it's just reusing that, draw a face rect into it, and save it again.)

maybe you replace the whole

getClass().getResource("/lena.png").getPath()

part with the absolute filename, like "/home/me/lena.png" or "c:/me/folder/lena.png"

if that works, rinse and repeat for the lbpcascade_frontalface.xml