And this video, you learn how to create a QR code generator.
So that is a program which will generate a QR code, such as this one in here.
And that's codes can be scanned by mobile phones, mobile devices through the camera app.
And then that should take the user who scans it to a particular URL on their mobile browser.
So it's usually worked like this.
You have a barcode somewhere, you scan it on your phone and it takes you to a particular URL.
So let's create a program that will enable that functionality, so you can also then create batch QR
codes, multiple codes for multiple be URLs with Python.
For this, we need the QR Codes library.
It's very simple to use library.
All you need to do is create an image which is QR codes, dots make.
And then here you enter the URL he wants the user to go to.
So let's try to press colon slash slash Google dot com.
When the user scans the QR code that this program that generates the user should be taken to this web
page on their default browser.
And then all they have to do is say image.
They'll save QR one Dot, P and G.
So that will be an image file that will be saved in the current directory.
Know about libraries.
You need this.
You need to install it.
If you are on your local ID on Ripple, you don't need to install it because Ripple will install it
automatically when I run the codes.
But you need another library, which is not installed by default, even if you are using a rifle.
So no matter where you are, go to your terminal in your rebel is called the shell and to install.
Below is a library for image processing.
If you don't install pillow, you will get an error in here.
So once you have installed pillow, then run the code and this QR code is generated.
Now, if I.
Opened my camera app, and I tried to put this barcodes inside the camera view.
The camera will ultimately I recognize that, and it will open a notification bar on top here if I click,
that's eight will take me to Google Dot Com on my browser.
So this is a good way to give people you URLs so that they don't have to type things down so you can
print this out, put it wherever you want.
And of course, you can do this with apps on the internet.
They can create QR codes.
But with Python, it's more powerful because you can give or or anyone else.
So here we only have one bots.
You could have a text file with multiple riyals, and you could create multiple page by a QR codes for
each of those URLs.
So that's the power of Python, and that's about this video.
So in the next video of hands, you an exercise.
If you want to practice this QR codes library a bit more, so I'll talk to you in the next video.