GithubHelp home page GithubHelp logo

rawat107 / barcode_scanner Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

I've built a versatile barcode scanner using OpenCV, imutils, videostream, and pyzbar libraries. The scanner supports both image-based and real-time video-based QR code scanning, delivering instant results. Decoded information is logged into a CSV file for easy access and organization. Check the README for technical details and usage instructions.

Python 100.00%

barcode_scanner's Introduction

Barcode Scanner

This Python script utilizes OpenCV, imutils, videostream, and pyzbar libraries to create a versatile barcode scanner capable of real-time decoding of various barcode types, with a focus on QR codes. The decoded information is logged into a CSV file for easy tracking and analysis.

Usage

Prerequisites

  • Python 3.x
  • Install required libraries:
pip install opencv-python imutils pyzbar

Running the Script

  1. Clone the repository:

    git clone https://github.com/your-username/your-barcode-scanner-repo.git
  2. Navigate to the project directory:

    cd your-barcode-scanner-repo
  3. Run the script:

    python barcode_scanner.py

    Optional argument for specifying the output CSV file:

    python barcode_scanner.py --output your_output_file.csv
  4. Terminate the script by pressing 'q'.

Script Details

  • The script starts a video stream, capturing frames and resizing them for processing.

  • Barcodes are detected and decoded using the pyzbar library.

  • Detected barcodes are drawn on the frame with bounding boxes, and information is displayed.

  • The script logs the decoded barcode information along with timestamps into a CSV file.

  • Press 'q' to quit the script.

Author

Vaibhav Rawat

Note: This project was inspired and developed based on knowledge gained from PyImageSearch.

barcode_scanner's People

Contributors

rawat107 avatar

Stargazers

 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.