Mobile Music Score Classifier
This repository contains a mobile Android application that uses TensorFlow and a pre-trained model to classify the live camera-feed into two categories: Scores or something else. It is part of a set of three tools:
|Model Trainer||Mobile App||Manual Classifier|
|Trains a deep network to automatically classify images into scores or something else.||Mobile Android application that uses a trained model to perform real-time classification on a mobile device.||A small C#/WPF application that can be used manually classify images, used during evaluation|
You might also be interested to check out my follow-up work.
Building the application
The repository contains a gradle-based build-script that can be used to assemble the application in Android Studio.
Basically what you need is to run
The repository contains only a tiny model that was trained on 128x128 pixel images.
To improve the results, you can train
the model with more data using the Model Trainer.
To use the output from there, replace the
output_graph.pb in the assets folder and
change Line 62 in ClassifierActivity.java
to reflect the actual size of input images used for training, likely 256 instead of 128.
Published under MIT License,
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.