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

QR scanner Open cv #188

Merged
merged 4 commits into from
Aug 29, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Image-Processing/Qr_scanner/Qr_scanner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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.