How To Scan QR Codes With A Raspberry Pi + OpenCV + Python
Core Electronics 5:42
54,307 views · 922 likes Watch on YouTube ↗
All scripts dived into here will display decoded QR data live, one will also capture the information into a text file and the final will use specific QR codes to control the GPIO.
Full Article - https://core-electronics.com.au/tutorials/raspberry-pi/QR-codes-raspberry-pi.html
Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.
Related Information
QR Code Creator - https://www.the-qrcode-generator.com/
Flashing 'Buster' OS onto a Raspberry Pi - https://core-electronics.com.au/tutorials/flash-buster-os-pi.html
Facial Recognition Raspberry Pi - https://core-electronics.com.au/tutorials/face-identify-raspberry-pi.html
Object and Animal Recognition With Raspberry Pi - https://core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
Hand Tracking & Gesture Control With Raspberry Pi - https://core-electronics.com.au/tutorials/hand-identification-raspberry-pi.html
Use Your Phone to Control Your Raspberry Pi - https://core-electronics.com.au/tutorials/raspcontrol-raspberry-pi.html
Speed Camera Raspberry Pi - https://core-electronics.com.au/tutorials/detect-speed-raspberry-pi.html
Terminal Commands
sudo apt-get update
sudo apt-get install python3-opencv
sudo apt-get install libqt4-test python3-sip python3-pyqt5 libqtgui4 libjasper-dev libatlas-base-dev -y
pip3 install opencv-contrib-python==4.1.0.25
sudo modprobe bcm2835-v4l2
Cameras in combination with machine learning create the most powerful sensor you can ever put on a Raspberry Pi. Open-CV is a huge resource that helps solve real-time computer vision and image processing problems. To install it and the other required packages it is best done by typing and entering the above 5 lines into the Raspberry Pi Terminal. This guide focuses on QR (Quick Response) Codes. These are absolutely everywhere in our modern world and for great reason. Sharing a lot of similarities to barcodes, but instead of a laser, a camera is used to identify spaces between black and white squares markings. Encoding data this way is incredibly useful and, with machine learning, it has never been easier to decode their secrets. There are lots of standards and types of QR codes but this system will work with all common types.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - http://coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - https://core-electronics.com.au/raspberry-pi-4-4gb-ultimate-kit.html
Raspberry Pi 4 Model B 4GB (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06425
Raspberry Pi High Quality Camera (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06935
Raspberry Pi 6mm Wide Angle Camera Lens: https://core-electronics.com.au/catalog/product/view/sku/CE06937
Raspberry Pi Official Camera Module V2 : https://core-electronics.com.au/catalog/product/view/sku/CE04421
Great Electronic Starter Kit by Kitronik (Breadboard, LEDs, Resistors + heaps more): https://core-electronics.com.au/catalog/product/view/sku/CE06405
Raspberry Pi 4 Power Supply: https://core-electronics.com.au/catalog/product/view/sku/CE06427
0:00 Intro
0:19 QR Code Overview
0:43 Creating Custom QR Codes
0:56 Open-CV
1:10 What You Need and Terminal Commands
1:58 Hardware Build
2:27 Code Download Location
2:44 Simple Code
3:14 Data Record Code
3:55 GPIO Control Code
4:45 The Pay Off
5:06 Where to Now
5:24 Outro
Full Article - https://core-electronics.com.au/tutorials/raspberry-pi/QR-codes-raspberry-pi.html
Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.
Related Information
QR Code Creator - https://www.the-qrcode-generator.com/
Flashing 'Buster' OS onto a Raspberry Pi - https://core-electronics.com.au/tutorials/flash-buster-os-pi.html
Facial Recognition Raspberry Pi - https://core-electronics.com.au/tutorials/face-identify-raspberry-pi.html
Object and Animal Recognition With Raspberry Pi - https://core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
Hand Tracking & Gesture Control With Raspberry Pi - https://core-electronics.com.au/tutorials/hand-identification-raspberry-pi.html
Use Your Phone to Control Your Raspberry Pi - https://core-electronics.com.au/tutorials/raspcontrol-raspberry-pi.html
Speed Camera Raspberry Pi - https://core-electronics.com.au/tutorials/detect-speed-raspberry-pi.html
Terminal Commands
sudo apt-get update
sudo apt-get install python3-opencv
sudo apt-get install libqt4-test python3-sip python3-pyqt5 libqtgui4 libjasper-dev libatlas-base-dev -y
pip3 install opencv-contrib-python==4.1.0.25
sudo modprobe bcm2835-v4l2
Cameras in combination with machine learning create the most powerful sensor you can ever put on a Raspberry Pi. Open-CV is a huge resource that helps solve real-time computer vision and image processing problems. To install it and the other required packages it is best done by typing and entering the above 5 lines into the Raspberry Pi Terminal. This guide focuses on QR (Quick Response) Codes. These are absolutely everywhere in our modern world and for great reason. Sharing a lot of similarities to barcodes, but instead of a laser, a camera is used to identify spaces between black and white squares markings. Encoding data this way is incredibly useful and, with machine learning, it has never been easier to decode their secrets. There are lots of standards and types of QR codes but this system will work with all common types.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - http://coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - https://core-electronics.com.au/raspberry-pi-4-4gb-ultimate-kit.html
Raspberry Pi 4 Model B 4GB (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06425
Raspberry Pi High Quality Camera (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06935
Raspberry Pi 6mm Wide Angle Camera Lens: https://core-electronics.com.au/catalog/product/view/sku/CE06937
Raspberry Pi Official Camera Module V2 : https://core-electronics.com.au/catalog/product/view/sku/CE04421
Great Electronic Starter Kit by Kitronik (Breadboard, LEDs, Resistors + heaps more): https://core-electronics.com.au/catalog/product/view/sku/CE06405
Raspberry Pi 4 Power Supply: https://core-electronics.com.au/catalog/product/view/sku/CE06427
0:00 Intro
0:19 QR Code Overview
0:43 Creating Custom QR Codes
0:56 Open-CV
1:10 What You Need and Terminal Commands
1:58 Hardware Build
2:27 Code Download Location
2:44 Simple Code
3:14 Data Record Code
3:55 GPIO Control Code
4:45 The Pay Off
5:06 Where to Now
5:24 Outro
Category (YouTube): Education
Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.