diff --git a/Image-Processing/Qr_scanner/Qr_scanner.py b/Image-Processing/Qr_scanner/Qr_scanner.py new file mode 100644 index 00000000..87194d6d --- /dev/null +++ b/Image-Processing/Qr_scanner/Qr_scanner.py @@ -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) diff --git a/Image-Processing/Qr_scanner/README.md b/Image-Processing/Qr_scanner/README.md new file mode 100644 index 00000000..2471378c --- /dev/null +++ b/Image-Processing/Qr_scanner/README.md @@ -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 diff --git a/Image-Processing/Qr_scanner/qr.png b/Image-Processing/Qr_scanner/qr.png new file mode 100644 index 00000000..40361834 Binary files /dev/null and b/Image-Processing/Qr_scanner/qr.png differ