How do iPhone barcode scanner apps work?

I have been looking all over the internet and I can't find a satisfactory answer. I was curious about building an app that could do this and I wanted a rough idea where to start.

http://www.taltech.com/barcodesoftware/articles/how_barcode_reader_works