QR Scanning automation by appium and python

How to automate QR scan screen if the QR code is sent via SMS to the mobile number and then in the text message there is a link which contains the QR code and then we have to use that QR code image to scan it in one of the app screens and after scanning details of the user should be auto fetched.
How to do take the screenshot and then use that image of QR code to do scanning

I did a google search on ‘appium qr code scan’ and found this:

Seems worth a try.