Script for detecting QR Codes in Photos with rename of these files

Job ID: 33687496

Budget: $30 – $250 USD

Hi. I need a simple script for automate this situation.
I am school photographer and i take a picture of a qr code before each child.
For better handling, i need a tool, where goes trough all photos. (That can be a few thousands for each school.) Pictures with qr code should be renamed to "{originalname}-QRCODE-{code_from_url}".

The qr codes contains a URL like this:
https://pictrs.com/qr/YY3DJG
The idea is, that only the code after /qr/ in the url-path are used.

The tool/script should process JPG and ARW-Files (RAW of sony cameras).
I use MacOS.
The script don't need a GUI, but its great, when i can use it as dropplet. (Drag'n'drop of a folder to the script).

Files without qr code inside should not be touched.

I have attached two files with qr code as example. More can be delivered, if you want.

Could you create a solution for me?
Related categories: PHP Python Mac OS C++ Programming Xojo