How to Detect QRCode and BarCode using OpenCV in Python + Project

  Рет қаралды 154,031

Murtaza's Workshop - Robotics and AI

Murtaza's Workshop - Robotics and AI

Күн бұрын

In this video, we are going to learn how to detect QRCode and BarCode in an image using OpenCV. We will first look at the basics and then move on to create an Authentication project in which we will check whether a person is authorized or unauthorized based on the QRcode on their ID.
🚀🚀 My Urdu/Hindi AI KZbin Channel 🚀🚀
/ @murtazahassan01
Code & Files:
www.computervision.zone/cours...
Premium Courses:
✔️ Computer Vision Game Development Course:
bit.ly/3ttLZ2s
✔️ Computer Vision with Arduino Course:
bit.ly/3wzLB4m
✔️ Advanced Drone Programming Course:
bit.ly/3qs3v5g
✔️ Learn to Build Computer Vision Mobile Apps:
bit.ly/3uioY1J
✔️ Jetson Nano Premium Course:
bit.ly/3L8uIlF
⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
👉 Complete Gear 💈: www.computervision.zone/tech-...
👉 My PC Specs 🖥️: www.computervision.zone/tech-...
👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
👉 My Laptops 💻: www.computervision.zone/tech-...
👉 Educational Products🧑‍🎓: www.computervision.zone/tech-...
👉 KZbin Starter Kit 🔴: www.computervision.zone/tech-...
Follow Me:
TikTok: bit.ly/3Vo76OQ
Facebook Group: bit.ly/3irDcb7
Discord: bit.ly/3JvyxAM
Facebook Page: bit.ly/3IvpU7W
Instagram : bit.ly/3NdGME3
Website: bit.ly/3ICFTS0
Github: bit.ly/3woU6PS
#ComputerVision
#OpenCV
#CVZone
Thumbnail image:
generated.photos/
www.freepik.com/free-photos-v...

Пікірлер: 212
@girlengineer23
@girlengineer23 4 жыл бұрын
You create awesome videos with a simple explanation, thanks for saving my time in the search of contents to learn and sharing your knowledge too.
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
You're very welcome! I am Glad the videos are helpful
@nkorochinaechetam2516
@nkorochinaechetam2516 Жыл бұрын
Very amazing explanation. Loved the verification ("authorized" "not authorized part")
@ashutoshvarma5586
@ashutoshvarma5586 3 жыл бұрын
Sir 100k is not far.....your work is amazing!!!
@cheok312
@cheok312 3 жыл бұрын
This is exactly what I am looking for! You save me!
@tk0014
@tk0014 2 жыл бұрын
Thank you verrrrry much. I've been looking for such a simple qr scanner for a long time.
@RafaelOliveira-yl3te
@RafaelOliveira-yl3te 3 жыл бұрын
very good indeed, your work is fantastic, even with my difficulties in English, I can understand! thank you so much!
@angelinefloralde9650
@angelinefloralde9650 Жыл бұрын
The comnt section is very positive and downright encouraging! Love it!
@onalethatamaswabi3474
@onalethatamaswabi3474 2 жыл бұрын
Short, powerful & detailed. I like it
@shivamkumar-qp1jm
@shivamkumar-qp1jm 3 жыл бұрын
One of the best channel of KZbin thank you thank you for this
@darceymirel6397
@darceymirel6397 2 жыл бұрын
i'm doing a project for my alevels right now and this is really helpful - thank you :)
@talentzunlimited1398
@talentzunlimited1398 Жыл бұрын
Loved this video very much ! Also got some ideas how to create a bigger project out of it by using many more functionalities !!! Thank you so much ! ❤🙏🙏🙏
@ramister1986
@ramister1986 3 жыл бұрын
Thanks for your explanation! I do still have a question: stead of open a camera, can I read my screen and capture a QR code data from a video?
@PhrAntoine
@PhrAntoine 3 жыл бұрын
This is amazing and presented so simple
@kesegocyrilmokgosi651
@kesegocyrilmokgosi651 4 жыл бұрын
this saved me 16 hours of no sleep
@calmcalm9287
@calmcalm9287 3 жыл бұрын
me too :))
@onalethatamaswabi3474
@onalethatamaswabi3474 2 жыл бұрын
hahaha, um here to save one too.
@samiabity
@samiabity 2 жыл бұрын
I have very great respect for you! you solved a lot of problems for me.
@robabsolent
@robabsolent 3 жыл бұрын
Thank you so much Murtaza!
@jearbecerro1167
@jearbecerro1167 4 жыл бұрын
Great Work, I love this :)
@FlexTCWin
@FlexTCWin 2 жыл бұрын
Fantastic video!
@lykapascual345
@lykapascual345 Жыл бұрын
Hey man, It works great and without any problems.
@r-beanmondy6203
@r-beanmondy6203 3 жыл бұрын
You are my hero dude. I can understand your simple explanation. Thx I wanna ask something, if I use very little barcode is it still working?
@prashikganer4820
@prashikganer4820 3 жыл бұрын
Simply Awesome!
@thanawintipyathon4061
@thanawintipyathon4061 3 жыл бұрын
Thank a lot for this tutorial. You can scan the code Then the program will show the value once And you can also scan the previous code again !?
@maryamforouzan7403
@maryamforouzan7403 Жыл бұрын
hello sir Thanks for all your tutorials, since they were really useful and complete. I would be thankful if you answer one of my questions please: How could we increase the resolution of the image so that the barcode would be recognized faster? Sorry that I ask because I am occupied with a project that is compiled on a tablet and the resolution of the webcam is low. Sincerely yours,
@kirksurber7262
@kirksurber7262 Ай бұрын
Great video! This was well done, easy to follow and helped me knock out a quick project!
@naresh2934
@naresh2934 3 жыл бұрын
great learning videos sir, Thanks for it.
@azharulislamsomon4615
@azharulislamsomon4615 3 жыл бұрын
That's a great video. Can you help me, how can I change data in my database by scanning the QR code ? For example, we can see normal shops use scanner and toke price and do others functionalities.
@nunbu7601
@nunbu7601 2 жыл бұрын
It's a good video, this video helped me a lot. THX.
@alwandiaridwanwadiska690
@alwandiaridwanwadiska690 3 жыл бұрын
excellent, your explain it very well. Thanks bro
@francisgikaru4303
@francisgikaru4303 2 жыл бұрын
This is very awesome, thank you so much.
@mangotofu1360
@mangotofu1360 2 жыл бұрын
Thank you this helped!
@sudeepdeep5389
@sudeepdeep5389 4 жыл бұрын
Your channel is a god's gift to me bro❤️tnquu soo much for making these wonderful videos
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thank you for your kind words
@hamas0
@hamas0 2 жыл бұрын
Thanks for this helpful tutorial, but can I know if pyzbar need some kind of internet to recognize the zbars? case main can't recognize any bar, its like that it didn't enter the loop.
@magbomajoshua1585
@magbomajoshua1585 5 ай бұрын
You never disappoint.
@pitertoc448
@pitertoc448 3 жыл бұрын
you got a new subscriber you diserve it
@urvipasad8622
@urvipasad8622 4 жыл бұрын
Nice project.. simple and easy explanation.thank u so much for sharing your knowledge.this is really great
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Glad you liked it
@urvipasad8622
@urvipasad8622 4 жыл бұрын
@@murtazasworkshop : I am facing issue with video capture object it says no method in the class cv2 even though I have installed opencv python library in pycharm...any idea how to resolve this?
@pitertoc448
@pitertoc448 3 жыл бұрын
thank you so much for sharing, You are a gentlemen
@reng7777
@reng7777 2 жыл бұрын
GENIUS!!My friend can you continue this video with a time and attendace report that is collected by PY and dumped into a monthly report?
@ram1879
@ram1879 3 жыл бұрын
Excellent!!!
@esooghazy
@esooghazy 2 жыл бұрын
Murtaza... I'm in love with your awesome videos! I really like their simplicity. Thanks a lot!
@rodrigobucrin7912
@rodrigobucrin7912 4 жыл бұрын
Another good job!!
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thanks again!
@GUDIMETLADINESHRA
@GUDIMETLADINESHRA 3 жыл бұрын
Which Camera are you starting broo? because i have front cam for my laptop but its not starting
@jonathanferreira8295
@jonathanferreira8295 Жыл бұрын
Muito bom, codigo curto, limpo e com muito aprendizado, Obrigado
@thet0ast3r
@thet0ast3r 3 жыл бұрын
hello, how do you get such a fast frames per second rate, if i do this i only get about 2 frames per second in the detection.
@OnlyDjango
@OnlyDjango 2 жыл бұрын
you are a great man !!!
@user-en7fz2ms9k
@user-en7fz2ms9k Жыл бұрын
Thank you, bro!
@santarojoe1
@santarojoe1 3 жыл бұрын
I love your (w)ideos !! ;)
@buddycorlett
@buddycorlett Жыл бұрын
Great video, I'm having trouble getting the web cam to scan my barcode. The program is working, but the specific barcode I need to use it with doesn't scan.
@khairunamira810
@khairunamira810 2 жыл бұрын
hi, your video really helps me as i have zero knowledge about this. but can you list the hardware/stuff?
@animemv2941
@animemv2941 3 жыл бұрын
Can I ask? What algorithm is being use here? Thank you for answering!
@walidramdani3953
@walidramdani3953 3 жыл бұрын
thanks a lot for this tutorial :)
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
You're welcome!
@jagirsingh2630
@jagirsingh2630 4 жыл бұрын
great learning
@PIDOtomasyon
@PIDOtomasyon 2 жыл бұрын
Thank you so much.
@aleynaabanuz6696
@aleynaabanuz6696 2 жыл бұрын
Thanks for THY video but I can’t install pyzbar. I mean I installed pyzbar but when I run the codes return some error. I tried install pyzbar via pip but it is same. There are many error message about dependencies. What is my mistake?
@kanapotmungthong9944
@kanapotmungthong9944 3 жыл бұрын
thank you professor
@filipaalexandraamarelinho6964
@filipaalexandraamarelinho6964 3 жыл бұрын
I have a question, where you write " myData = barcode.data.decode("utf-8")" , what happens if you don't write ("utf-8") ?
@nimaamintaghavi512
@nimaamintaghavi512 2 жыл бұрын
Wow; how lovely 😍
@humayunnasir6261
@humayunnasir6261 3 жыл бұрын
excellent video
@MdRana-dg1lj
@MdRana-dg1lj 3 жыл бұрын
Sir, I wrote same code same as your one to with open myDataFile.text, read lines, but when I rum code, it doesn't print data from myDataList. please help me out why it doesn't print
@fatemehjasbi2245
@fatemehjasbi2245 5 ай бұрын
Perfect👌
@wei-chenliou7473
@wei-chenliou7473 2 жыл бұрын
Can you use the opencv get the qr code version, error correction level and mask ?
@fahmiftahul
@fahmiftahul 3 жыл бұрын
It is helpful! By the way, is it possible to make this as android apps?
@BieAnimation
@BieAnimation 2 жыл бұрын
Thanks so much
@0k686
@0k686 3 жыл бұрын
Thanks a lot
@muhammadshaheer6158
@muhammadshaheer6158 Жыл бұрын
Hi sir, can you tell why we are using numpy? because pyzbar can alone work with opencv.
@abiddhiya5667
@abiddhiya5667 4 жыл бұрын
sir you are amazing thanks lot ♥
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
You're Welcome
@r1rmndz507
@r1rmndz507 2 жыл бұрын
awesome!
@alfandi2397
@alfandi2397 4 жыл бұрын
great post !, but im just wondering how to get the x,y cordinates from the rectangle, could you help me with this case ?
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
pts in the code are the coordinates
@m.furkandogan23
@m.furkandogan23 8 ай бұрын
which programme did you use? spyder?
@lierkiboy1736
@lierkiboy1736 3 ай бұрын
can your code scan the micro QR Code with an acceptable certain range from a webcam? or is there any specific code to do with it?
@mohamedsalah-uh2js
@mohamedsalah-uh2js 3 жыл бұрын
i got this error , CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoFormat_RGB24(codec not found)
@ezequielbecerra6992
@ezequielbecerra6992 3 жыл бұрын
hi, does this work with PDF417 format?
@ezequielbecerra6992
@ezequielbecerra6992 4 жыл бұрын
Sir, thank you very much for your tutorial. Could you please help me with Barcodes, i've test a few different but thay are not recognized, whay could be happenning?
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
send your images on my fb page
@ice-skully2651
@ice-skully2651 Жыл бұрын
Hello sir, thanks for the explanation I would like to know how to stop the video recording on demand
@syedmohammedmustafahasan4085
@syedmohammedmustafahasan4085 3 жыл бұрын
Hey, I am able to import the zbar libary but when i do import pyzbar.pyzbar import decode it is giving an error.
@Cnys100
@Cnys100 3 жыл бұрын
Hi Syed i have the same problem! do you find a solution to the problem?
@saeedalikhan7128
@saeedalikhan7128 2 жыл бұрын
Nice brother
@zytan8835
@zytan8835 Жыл бұрын
thank you bro thank you
@sureeya1093
@sureeya1093 6 ай бұрын
hi sir, I am developing an inventory management drone so I was surfing through the KZbin and found your video , I tried to install & run the code but I got " zbar not found error" .Can you please help me with that?
@dishabhatti6456
@dishabhatti6456 4 жыл бұрын
Superb...
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
Thanks
@Rodrigo.S.Santiago
@Rodrigo.S.Santiago 2 жыл бұрын
Hello Murtaza, is it possible to measure the rotation of the Qr code or the location of the squares ?
@Rodrigo.S.Santiago
@Rodrigo.S.Santiago 2 жыл бұрын
It is possible using the contour detection, the onle trick is to know the relation between the Qr Code area and que corner's square area
@carylgastardo8913
@carylgastardo8913 3 жыл бұрын
Thankyou for sharing your knowledge sir, can you please send the source code sir for academic purpose only
@hoomanetesamifard5995
@hoomanetesamifard5995 3 жыл бұрын
Hi Murtaza Would it be possible to make another toterial to show how to send the barcodes to another TCP client . Thank you
@ezequielbecerra6992
@ezequielbecerra6992 3 жыл бұрын
Is this useful for PDF417 2d Barcode?
@usmanawan865
@usmanawan865 4 жыл бұрын
this is amazing , how do you program all these things are you machine learning expert
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
thank you for your kind words
@aidando649
@aidando649 3 жыл бұрын
Thank U~~
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
You're welcome 😊
@georgekhabaze6619
@georgekhabaze6619 Жыл бұрын
python newbie here and struggling with dependency in my code i used venv but still opencv works half the time and cv2 lose his libraries aany advice?
@vineelagiddaluru1739
@vineelagiddaluru1739 2 жыл бұрын
Hello sir Iam getting lot of errors in pyzbar package what should I do
@csl818
@csl818 3 жыл бұрын
Hi Murtaza - good work!! saw many request below on reading DATA MATRIX but did not see your reply..so can it be done? or do you plan to make one ?? Thanks
@murtazasworkshop
@murtazasworkshop 3 жыл бұрын
You might want to look at the pylibdmtx library
@jihadgamal9793
@jihadgamal9793 Жыл бұрын
Well to be fair shape of you lody softs just like the first random notes that popped into Nice tutorials head
@nguyentranquoc3143
@nguyentranquoc3143 2 жыл бұрын
What is the algorithm used in this project? please answer my question
@D20809
@D20809 Жыл бұрын
Thank you so much brother Bt i want Some details about the QR code . How to sync people data's to the QR code ?
@murtazaali1077
@murtazaali1077 4 жыл бұрын
Hi Murtaza , i am getting error "ImportError: Unable to find zbar shared library" i have installed through pycharm Just to add , i am using MAC OS
@murtazasworkshop
@murtazasworkshop 4 жыл бұрын
make sure you are installing the pyzbar package
@aakashaundhkar3159
@aakashaundhkar3159 3 жыл бұрын
same problem...got any solution??
@johnsavage238
@johnsavage238 3 жыл бұрын
I get an extraneous bytes before marker error. Anyone know what this means?
@gopitharanm1301
@gopitharanm1301 3 жыл бұрын
Which device is used to scan?
@RakeshKumar-yh7ro
@RakeshKumar-yh7ro 3 жыл бұрын
does this code work for any QR/Bar code? please reply
@madisettymaha4885
@madisettymaha4885 Жыл бұрын
Thank you for super smart code , but i am facing an issue while showing txt at qr code I.e used syntax like cv2.putText(img, myData, ,(pts2[0],pts2[1]),cv2.FONT_HERSHEY_SIMPLEX()>1,(255,0,0),3) Is there any suggestion to become error free code?
@madisettymaha4885
@madisettymaha4885 Жыл бұрын
I am using a latest version on opencv2-4.7.0
@thenightmaregamer931
@thenightmaregamer931 Жыл бұрын
nice
@roghibashfahani15
@roghibashfahani15 Жыл бұрын
is this same as YOLO method?
@suman.p6566
@suman.p6566 2 жыл бұрын
Awesome project, I tried replicating it but I keep getting the "FileNotFoundError", it dosn't seem to find the text file no matter where I put it, any ideas?
@adamfatyga7977
@adamfatyga7977 2 жыл бұрын
Cool, but how to 'paste' cam-window to app. I use ScreenManager and i want to make QR reader on 'secound' window. And i just cant paste cam window to app.
@paulclarencefrancoferrer6228
@paulclarencefrancoferrer6228 3 жыл бұрын
HELP HELP HELP! AttributeError: module 'cv2.cv2' has no attribute 'FONT_HERSEY_SIMPLEX' I have error everytime I let my cam see the QR CODE
REAL TIME OBJECT MEASUREMENT | OpenCV Python (2020)
53:25
Murtaza's Workshop - Robotics and AI
Рет қаралды 237 М.
Python project : Real-time QRCODE scanner using webcam
6:18
AK Python
Рет қаралды 17 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 54 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН
Finger Counter using Hand Tracking | Computer Vision | OpenCV Python 2021
38:56
Murtaza's Workshop - Robotics and AI
Рет қаралды 179 М.
How to Detect and Read QRCode and BarCode using OpenCV in Python Project
20:49
Feature Detection and Matching + Image Classifier Project | OPENCV PYTHON
45:34
Murtaza's Workshop - Robotics and AI
Рет қаралды 156 М.
Traffic Signs Classification Using Convolution Neural Networks CNN | OPENCV Python
17:59
Murtaza's Workshop - Robotics and AI
Рет қаралды 167 М.
Scan QR codes and barcodes with Python
13:39
Python enthusiast
Рет қаралды 71 М.
OPTICAL MARK RECOGNITION (OMR) MCQ Automated Grading- OpenCV Python
1:53:26
Murtaza's Workshop - Robotics and AI
Рет қаралды 139 М.
Project With Real BarCode Scanner?  Billing System Python #Recycle #Reuse
8:15
Vinay Verma - Computer Vision and Tech
Рет қаралды 31 М.
Barcode + QR Code Reader using Arduino & QR Scanner Module
7:32
How To Electronics
Рет қаралды 72 М.
QR Code Scanner & Generator with GUI in Python
24:31
NeuralNine
Рет қаралды 20 М.
AI Virtual Mouse | OpenCV Python | Computer Vision
39:39
Murtaza's Workshop - Robotics and AI
Рет қаралды 770 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 54 МЛН