Skip to content

adithyaravi12/code-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QR Code/Barcode Scanner using Pyzbar package

Using opencv and pyzbar packages, python program is written so as to recognize the type of code that is being displayed on the screen and decode the data to a user-readable format and open links

Procedure

1. Import dependencies
2. Define a function that takes an image as a paramter
    a. Convert the image to grayscale and use in-built decode function and save it in scan_img
    b. Using a for loop, get the points and the respective x, y, width and height values.
    c. Convert it into an integer array and reshape it into a matrix
    d. Draw lines around the code withh the obtained points
    e. Put a text right next to the box with the points that displays the type of code that has been identified
3. Run it real time

Run Locally

Clone the project

  git clone https://github.com/adithyaravi12/code-scanner

Go to the project directory

  cd code-scanner

Install necessary dependencies

  npm install

Start the server

  npm run start

Screenshots

App Screenshot

🔗 Links

My Portfolio linkedin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published