Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

your cascade xml file did not load. please try to replace the

Computer.class.getResource("haarcascade_frontalface_alt.xml").getPath().substring(1)

part with an absolute path like

c:\opencv\data\haarcascades\haarcascade_frontalface_alt.xml

your cascade xml file did not load. please try to replace the

Computer.class.getResource("haarcascade_frontalface_alt.xml").getPath().substring(1)

Computer.class.getResource("haarcascade_frontalface_alt.xml").getPath().substring(1)

part with an absolute path like

c:\opencv\data\haarcascades\haarcascade_frontalface_alt.xml