This repository was archived by the owner on Nov 30, 2022. It is now read-only.
File tree 3 files changed +34
-0
lines changed
Image-Processing/Qr_scanner 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments