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

Commit 2eec994

Browse files
authored
Merge pull request #188 from ryuk156/QR_SCANNER_1
QR scanner Open cv
2 parents 927a1de + 435cb0d commit 2eec994

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import cv2 ##import the module opencv
2+
import numpy as np ##import the module numpy
3+
import pyzbar.pyzbar as pyzbar ##import the module pyzbar
4+
5+
img = cv2.imread("qr.png") ##read your image
6+
decode_QR = pyzbar.decode(img) ##function to decode QR
7+
8+
for i in decode_QR:
9+
print("your scanned QR :",i.data)
10+
11+
cv2.imshow("QR ", img) ##display Cropped image
12+
cv2.waitKey(0)

Image-Processing/Qr_scanner/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Image Processing
2+
3+
Image Processing is most commonly termed as 'Digital Image Processing' and the domain in which it is frequently used is 'Computer Vision'.
4+
Don't be confused - we are going to talk about both of these terms and how they connect.
5+
Both Image Processing algorithms and Computer Vision (CV) algorithms take an image as input; however, in image processing,
6+
the output is also an image, whereas in computer vision the output can be some features/information about the image.
7+
8+
## OpenCV
9+
10+
![](https://logodix.com/logo/1989939.png)
11+
12+
## Installation
13+
14+
### Windows
15+
$ pip install opencv-python
16+
$ pip install pyzbar
17+
### MacOS
18+
$ brew install opencv3 --with-contrib --with-python3
19+
$ brew install zbar
20+
### Linux
21+
$ sudo apt-get install libopencv-dev python-opencv
22+
$ sudo apt-get install libzbar0

Image-Processing/Qr_scanner/qr.png

3.08 KB
Loading

0 commit comments

Comments
 (0)