SnackValues

  1. This is a Snack nutritional value prediction Application built on caffe-android-demo. It can predict snacks on the mobile phone. The application is designed based on Material Design Principle.

  2. The CNN(convolutional neural networks) model is trained by Caffe with 94.7% accuracy and it can classify 15 kinds of snacks.

  3. To run the application, you need to have the trained snack model, the mean file and the deploy file, which you can download it Here (Just download the whole directory and then push to your mobile phone follow the following instructions.)

  4. A simple NodeJs server is included in this project, it can receive images sent from the application.

  5. Contact me if you want to know more details. Email: 39872463@qq.com

Some useful Directory:

NodeServer Dictory: A simple server implemented by NodeJs, which can receive images and labels from mobile phone.

test_images Dictory: some images which can be used to test the application

Quick Look:

Main Page 1:

图片名称

Main Page 2: After click Camera icon

图片名称

Main Page 3: After click FAB

图片名称

Result Page:

图片名称

Correct Page:

图片名称

Quick Start

Basic

If you want to have a try on this app, please follow the steps below to get the required stuff:

# 1. push things to your device
adb shell mkdir -p /sdcard/caffe_mobile/
adb push new_snack_model /sdcard/caffe_mobile/new_snack_model/

If the app crashes, first make sure it is not an out of memory issue - modify deploy.prototxt such that the mini batch size is 1 instead of 10