Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

your cascade file was not loaded properly.

try to replace:

getClass().getResource("/haarcascade_frontalface_alt.xml").getPath()

witth the absolute path to thecascade file. most probably you need to do the same for the image.

your cascade file was not loaded properly.

try to replace:

getClass().getResource("/haarcascade_frontalface_alt.xml").getPath()

witth with the absolute path to thecascade file. most probably you need to do the same for the image.