ganpatk / jjil

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

UnsupportedOperationException with Barcode Reader #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up JJIL, JJIL-SE and Barcode libraries in NetBeans IDE
2. Tried to compile it.  
3. Once compiled, tried to run it.

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

I expected to see a successful compilation and execution without errors.

Line 133 in ReadBarcode.java did not compile at first:

        canny.push(imageCropped.clone());

Error said that it could not find the method, and NetBeans recommended 
that I cast the clone as an (Image). I did this, but it still did not 
work. Once I removed the cast, it now compiled.  

Once it compiled, I ran ReadBarcode.java as the main class on 
the "barcode.jpg" file provided with the source code.  Received 
an "UnsupportedOperationException" and no output file.  

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

JJIL library 12/22/08, JJIL-J2SE Aug. 2008 on Windows Vista

Please provide any additional information below.

java.lang.UnsupportedOperationException: Not yet implemented
        at jjil.algorithm.Gray8CannyHoriz.push(Gray8CannyHoriz.java:235)
        at barcode.ReadBarcode.cropAndDetectEdges(ReadBarcode.java:133)
        at barcode.ReadBarcode.push(ReadBarcode.java:369)
        at ReadBarJ.<init>(ReadBarJ.java:33)
        at ReadBarJ.main(ReadBarJ.java:14)

Original issue reported on code.google.com by jalantho...@gmail.com on 23 Jun 2009 at 12:33