AbdelNlm / jviolajones

Automatically exported from code.google.com/p/jviolajones
0 stars 0 forks source link

Some .xml files created by OpenCV can not be loaded. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Train a file using OpenCV (see attachment).
2. Try to load the file using Detector.create().

What is the expected output? What do you see instead?

Expected output: 
Nothing, file loads normally.

Actual output: 
Program crashes with null pointer exception: 
Exception in thread "main" java.lang.NullPointerException
    at detection.Detector.<init>(Detector.java:52)
    at detection.Detector.create(Detector.java:41)
    at au.com.nicta.eyedetector.tools.VilaJonesEvaluator2.main(VilaJonesEvaluator2.java:24)

What version of the product are you using? On what operating system?

Product version: jviolajones2.0.jar. 
Operating system: Ubuntu Linux 11.10, using Java version:
"1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.2)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

Please provide any additional information below.

I used the example code from the website, merely substituting 
"haarcascade_frontalface_default.xml" with my own. 

Original issue reported on code.google.com by erik.ber...@gmail.com on 8 Feb 2012 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, there is a problem there. I'm sorry, I have much work at school nowadays, 
so I cannot treat it right now. If ever you have solved the problem, may you 
commit your changes ?
Anyhow, I'll try to adress this issue ASAP.

Original comment by saimon...@gmail.com on 12 Mar 2012 at 7:58

GoogleCodeExporter commented 8 years ago
The XML file provided is not a pure Haar Cascade.

Original comment by saimon...@gmail.com on 17 Jul 2012 at 8:09