Scan ISBN barcode with webcam to create new entry

It would be great if I could use my webcam to read the ISBN barcode to create a new entry. This would really by a time saver.

There are software libraries that let you do it so I think it should be technically possible.