This demo pretends to show the potential to access the camera using the Camera API.

It is an application which helps maintaining a price history for the products you usually consume.

The use is simple, click on the camera icon to take a photo of the product code bar. You can also more easily write the code in the input text just to the right. I’ve left some test codes already filled: 1111111111116, 1111111111123 y 1111111111130.

If it’s the first time you add the product, you should enter its name. You can also click on the space reserved to the photo and the camera will be activated to take a photo, and finally you should complete the date of purchase and the price.

If the product has already been created, a graphic will be displayed with the evolution of prices, where you could add how much did it cost this time, and you can change the photo or title/name of the product.

There are some limitations anyway; the scanning script, developed by Tobias Schneider, is quite small so it does not include all the functions of the professional code bar scanners, as for example: recognizing rotated codes, cutting the image to only leave the bar code or adjusting the black and white levels, and ignoring shadows and shines to distinguish with more reliability the bars from the gaps.

For this reason, if you are not able to get any code recognized, you could download these images (1), (2), (3), (4) and (5) use them instead of taking photos with the camera.

Price history (Instructions and details)

New product

Price history graph

Average: 0.00