Scanning QR codes from camera livestream (camera stream embedded in HTML page)

Hello Fellow Devs,
I recently came across a related article while trying to figure out QR scanning for my desktop app. My code is as it is on the quoted article below;
Article on adding to Camera live stream to your HTML page

My Question: is there a way to scan a QR based on this camera live feed and then get it to do stuff like say, login or submit a form, once QR reading is completed?

My Objective: I want to create a QR code-based login system for my ERP Desktop software, where employees scan their IDs to login to their user profiles.

Thanks in Advance!