If your platform supports the getUserMedia API call, you can try the real-time locating and decoding features. Simply allow the page to access your web-cam and point it to a barcode encoded with Code128. It works best if your camera has built-in auto-focus.