Search code examples
objective-ccrcerror-correctionerror-detectionreed-solomon

How can I add some detection or correction code in a 48bits message?


I'm developing a OCR tool reeds a set of symbols which represent 2 bits each.

For example:
{ ---> 00
} ----> 01

Always I have a 48 bits code so I have 24 symbols.

I need to implement a detector or correction of errors in Objective-c (I'm developing an application for Mac). My only requirement is that the code is as small as possible. I have a 48-bit (which represents 24 Sibol) and do not want to add many more to my design.

I have tried to implement this code: http://code.google.com/p/rscode-objc/

But it is outdated, I get many errors and is designed for messages of 255 bytes (and of course I do not know how to adapt). If somebody can help me to adapt it, it would be great.

If you need further details, let me know.

Thank you.


Solution

  • I have finally use the Reed-Solomon code: http://code.google.com/p/rscode-objc/ But thank you for your answer H2CO3 :)