It also doesn't help that all of the information needed would either need to be stored on the 3DS or have a continuous internet connection. Bar codes are both universal and independent. You will find some stores all have the same item with the same barcode, but then you will find items with store's own bar code.
But this will all require a database stored locally or online.