Giter Club home page Giter Club logo

bar-code's Introduction

Bar-code:

This repo contains the code to convert entered text to bar code(128B) and decrypt it back to the original message. This was a part of our first semester programming project. To build just make sure you include stbi libraries too.

To compile the code:

You can just type .\build.bat in the terminal (for gcc) or just open the build.bat file and it should create an exe file with the name BarCode.exe
.\build.bat
If this doesn't work, you can do the following:
Change directory of terminal to the folder containing the source code and type:
gcc entry.c makeBars.c readBars.c -o Barcode

Contributors:

Files info:

barcode.h:

This file contains important values required for both reading and writing bar codes like reference codes.

barcodeio.h:

This file contains only two function declaration needed for writing and reading bar code.

stb_image.h:

External tool needed to read image files.
We have used only one function stbi_load()
Make sure to include this file with STB_IMAGE_IMPLEMENTATION defined to include definitions of functions.

stb_image_write.h:

External tool needed to write image files.
We have used only one function stbi_write_jpg()
Make sure to include this file with STB_IMAGE_WRITE_IMPLEMENTATION defined to include definitions of functions.

makeBars.c:

This is source file containing algorithms for creating bar code from given message.

readBars.c:

This is source file containing algorithms for reading message from given image file of barcode.
Currently, it may not work if you have images of other objects too along with barcode.

entry.c:

This source file contains the main() function and binds all other codes.

Any advice to improve the codes is appreciated. Thank you!!

bar-code's People

Contributors

void-atom avatar

Watchers

 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.