Giter Club home page Giter Club logo

yetanother2dcodedecoder's Introduction

Yet another 2D code decoder written in C++

Why does this exist?

For quite some time, I wondered how exactly the Reed Solomon forward error correction worked. It was magical to me but by reading short articles about it, I never grasped the theory behind it. So someday I decided to give it a shot and read some white papers about it and tried to create a Reed Solomon decoder and encoder from scratch.

In the end, it was so much fun, that I've decided to actually use it for something. As I didn't intend to develop a CD drive all by myself I went for the route of decoding a Qr code as it is quite modern and lots of example data is around the internet to check my algorithms against.

This project is intended for pure academic purposes. The algorithms are not tuned for speed but instead readability. At least I've tried to achieve that.

Features

  • Reed Solomon Encoder and Decoder
    • Implemented as template class to allow usage with various finite fields
  • Finite field GF(2^8) with Qr code and data matrix irreducible polynomial
  • Utility classes for managing polynomials and matrices
  • Qr Code Decoder
    • Can rectify perspective deforms
    • Can recitfy slight nonlinearities
    • Doesn't support all sizes
    • Only one alignment pattern supported
  • Data Matrix Decoder
    • Supports only ECC200 codes
    • Only small sizes supported
  • Unit Test included for easy verification
  • Uses OpenCV to process image data
    • Both Decoders make use of the Countour system to detect the code as from polygons.

yetanother2dcodedecoder's People

Contributors

slamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.