Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors Loading OpenCV xml files #2

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 2 comments
Closed

Errors Loading OpenCV xml files #2

GoogleCodeExporter opened this issue Aug 23, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Fixed the problem.

Should normally work with all files.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant