If this thing can correctly identify an enteric-coated or other sustained-release pharmaceutical formulation other than by checking a muddy absorption curve against a database of known samples I'll eat my hat.
Also: the app they used purported to identify tablets by their manufacturer brand? Ahem: WTF? This does indeed look like it's just throwing a spectrum at a database of samples and looking for the closest match. Which is hardly going to weed out some of the better counterfeits on the [black] market ...
There are multiple commercial manufacturers selling NIR sensors for fruit quality control:
http://www.ndc.com/en/Products/On-Line-NIR-Gauges.aspx
Research articles: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3673116/ http://www.cropj.com/miraee_4_3_2010_175_179.pdf http://www.brimrose.com/pdfandwordfiles/I_GRASA-CSIC.pdf http://cdn.intechopen.com/pdfs-wm/36050.pdf (avocados)