Giter Club home page Giter Club logo

barcode-reader's Introduction

Barcode Reader

The goal of this project was to design an OpenCV program to find, extract, correct orientation and read a barcode from an image.

This was completed in a team of 3 inlcuding myself, Robert Vaughan and Mohamad Zabad. Much of my research and development process was documented here.

Sample Images

Input Image

Imgur

Barcode Found

Imgur

Cleaned

Imgur

ROI Cropped and Rotated

Imgur

Output:

From the previou state the image is read as binary, then the standard UPC-A barcode rules are automatically applied to extract decimal numbers.

Binary: 10101110110001101011000101011110111101001001101010111001010010001001110111010010111001000010101

Decimal: 705632085943

barcode-reader's People

Contributors

benjimr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pspvhp

barcode-reader's Issues

Error whilte running the code

i have the image i just change the easy gui to the path to the file its gives this error my figure is attached here
image1

ValueError                                Traceback (most recent call last)
<ipython-input-5-406df5a4c3f2> in <module>
    373 
    374 if __name__ == "__main__":
--> 375     main()

<ipython-input-5-406df5a4c3f2> in main()
    363         copy = img.copy()
    364         img = rotated(img)
--> 365         img, rotRect, drawn = codeDetection(img)
    366 
    367         finalCode = 'QR Code'

<ipython-input-5-406df5a4c3f2> in codeDetection(img)
     63         # Finding the biggest contour, which
     64         # should be our code
---> 65         c = max(contours, key = cv2.contourArea)
     66 
     67         # Gets the bounding co-ordinates of the

ValueError: max() arg is an empty sequence

What is the license for this code?

No license file is included, nor is any Copyright or License mention specified in the code.

Please specify what license this code can be forked and modified under.

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.