wxw18 / jviolajones

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

Errors Loading OpenCV xml files #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to construct Detector using other OpenCV xml files (e.g. 
haarcascade_eye.xml)

What is the expected output? What do you see instead?
Expected to load the xml file and use its contents for object detection.  
Exception occurs when reading the file.  See stack trace below.

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

Please provide any additional information below.
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For 
input string: "
"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:449)
    at java.lang.Integer.parseInt(Integer.java:499)
    at dlife.vision.filter.devel.ViolaJonesFilter$Rect.fromString(ViolaJonesFilter.java:496)
    at dlife.vision.filter.devel.ViolaJonesFilter$Detector.<init>(ViolaJonesFilter.java:219)

NOTE: ViolaJonesFilter is a class I have created that wraps and uses the 
Detector, Effect, Rect and Stage classes internally.  The same error can be 
seen using the original source.

Original issue reported on code.google.com by braug...@gmail.com on 25 May 2011 at 1:35

GoogleCodeExporter commented 9 years ago
Problem partly fixed in jviolajones2.jar and in sources.

Haarcascade_eye.xml now working. (I forgot a trim() somewhere).

However, many other files still do not work, as I still miss some nodes from 
the XML. Working on it.

Original comment by saimon...@gmail.com on 31 Jul 2011 at 4:40

GoogleCodeExporter commented 9 years ago
Fixed the problem.

Should normally work with all files.

Original comment by saimon...@gmail.com on 31 Jul 2011 at 7:56