Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.48 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.48 KB

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