Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #188 from ryuk156/QR_SCANNER_1
Browse files Browse the repository at this point in the history
QR scanner Open cv
  • Loading branch information
powerexploit authored Aug 29, 2020
2 parents 927a1de + 435cb0d commit 2eec994
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Image-Processing/Qr_scanner/Qr_scanner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import cv2 ##import the module opencv
import numpy as np ##import the module numpy
import pyzbar.pyzbar as pyzbar ##import the module pyzbar

img = cv2.imread("qr.png") ##read your image
decode_QR = pyzbar.decode(img) ##function to decode QR

for i in decode_QR:
print("your scanned QR :",i.data)

cv2.imshow("QR ", img) ##display Cropped image
cv2.waitKey(0)
22 changes: 22 additions & 0 deletions Image-Processing/Qr_scanner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Image Processing

Image Processing is most commonly termed as 'Digital Image Processing' and the domain in which it is frequently used is 'Computer Vision'.
Don't be confused - we are going to talk about both of these terms and how they connect.
Both Image Processing algorithms and Computer Vision (CV) algorithms take an image as input; however, in image processing,
the output is also an image, whereas in computer vision the output can be some features/information about the image.

## OpenCV

![](https://logodix.com/logo/1989939.png)

## Installation

### Windows
$ pip install opencv-python
$ pip install pyzbar
### MacOS
$ brew install opencv3 --with-contrib --with-python3
$ brew install zbar
### Linux
$ sudo apt-get install libopencv-dev python-opencv
$ sudo apt-get install libzbar0
Binary file added Image-Processing/Qr_scanner/qr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2eec994

Please sign in to comment.