This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from ryuk156/QR_SCANNER_1
QR scanner Open cv
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.