DeletedUser87 the QR code feature is part of the Android System Intelligence (Google) toolkit, which is the same functionality as text recognition in photos and videos. Building that from scratch might be a bit challenging,
There are lots of very useful things that utilize ASI; reading text and barcodes from images is one, Now Playing and Car Crash Detection are others. Frankly I think the devs should work on sandboxing ASI just like the other google apps. It's a valuable enough feature, including for safety/security uses!
DeletedUser76 I think GrapheneOS developers once mentioned about developing a new gallery app... maybe the new gallery app could come with this feature.
But it shouldn't be necessary to use a whole new gallery app, ASI, or a 3rd party scanner app regardless! All they need to do is give the current GOS camera/scanner app the ability to import an existing image rather than capture one with the hardware camera. This shouldn't be terribly difficult...