This is possible by running Android on a VirtualBox and giving it access to your web cam. In detail:
Install VirtualBox with the extension pack. On Ubuntu:
sudo apt install virtualbox-qt virtualbox-ext-pack
Download Android x86. I used the Version 9 64-bit ISO, but I guess others will work as well.
Run virtualbox and create a new box with the following ...
Note for generating barcodes with this ...
I've switched to Binary Eye google play fdroid
Runs reliably on android 10 or 11
Tested it on both
Scans QR codes
Tested it in practice
Ideally as simple as possible
The default is to show metadata and a hex dump. You can turn this off in preferences, so if you're setting this up for someone else you can turn it off in the preferences
Free in both senses ...
I understand you are trying to create a single UX that would allow for several different barcode symbiologies. I would recommend taking a look at the LEADTOOLS SDK which is a paid for library which provides support for both reading and writing the 1D and 2D barcode symbologies you mentioned above. As a disclaimer I do work for this vender, however I would ...