README.md 593 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Image Classification Example

1. Download the model:
   - If you have [TensorFlow 1.4+ for Python installed](https://www.tensorflow.org/install/),
     run `python ./download.py`
   - If not, but you have [docker](https://www.docker.com/get-docker) installed,
     run `download.sh`.

2. Compile [`LabelImage.java`](src/main/java/LabelImage.java):

   ```
   mvn compile
   ```

3. Download some sample images:
   If you already have some images, great. Otherwise `download_sample_images.sh`
   gets a few.

3. Classify!

   ```
   mvn -q exec:java -Dexec.args="<path to image file>"
   ```