Android : Get data from a barcode?

柔情痞子 提交于 2019-12-13 17:37:54

问题


I am building an android application which should allow the user to scan the barcode of a food and display as much detail as possible - ie Food name, nutritional information etc.

So far I have implemented a barcode scanner using Zxing which will scan the barcode and display the barcode number.

My question is, is there a way I can use the scanned barcode to get information on the particular food product? I know the barcode is just a number, and that in supermarkets barcodes information are stored in a supermarket database.

Is there anyway I would have access to an online db of food products (open source) and then add the scanned food to my own firebase DB?


回答1:


There are a few groups who have tried to do something like this, including Open Grocery Database and UPC Food Search. The barcode value is known as a SKU in retail terms, so using that term might help you to find more information and resources on this. Good Luck!



来源:https://stackoverflow.com/questions/48550107/android-get-data-from-a-barcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!