views:

77

answers:

1

Is there a well-known implementation, that has friendly open-source licensing (not GPL), of an ECC (error correcting code) library (e.g. Reed-Solomon) for Java?

+3  A: 

this

Apache License (not sure if that counts in your definition of friendly) I am also not sure if it counts as well known (google knew about it, no 2 result for "java Reed-Solomon")?

Justin
apache license works for me. I've heard of zxing for 2-d bar codes, it's well known, not sure if I want to require the whole jar file for it though.
Jason S
you could just use that package the link points to (rip out and rebuild your own jar), the code only imports java.util.Vector so there are no dependencies on the rest of zxing.
Justin
It was written from scratch at Google (by yours truly) since indeed there wasn't much clean, non-GPLed code out there. Reed-Solomon is really a family of algorithms; this implements the variant used in QR Codes and Data Matrix. For your purposes you may have to modify the generator polynomial an points its evaluated at to match your requirements; these vary.
Sean Owen
is there an encoder? (the zxing library just has a decoder)
Jason S
ah, I was looking at a previous version somehow. That works great -- Justin: thanks for your suggestion. Sean: thanks for implementing! :-)
Jason S
Good to hear Jason, and great job Sean :)
Justin
Yes there is an encoder in there, for making QR codes
Sean Owen