You can test these images using a smartphone with a qrcode reader.
You can try this action based on two images with this script SimpleQRCodeMatrix.jsx
this action require a reference folder with 3 images:
clear picture named "white.png",
dark picture named "black.png",
qrcode (31 cell format)
load script in ExtendScript Toolkit with target Photoshop
in Photoshop choose File > Scripts > Browse and navigate to the script.