The editor of HTML5 (Ian Hickson) has created a draft specification for HTML-applications to get access to devices. Which means you won't need anymore plugins (read:currently Flash) for a webapplication to get access to the webcam.

Or you can make a webapplication which can read directly from a barcode reader: