1. 程式人生 > >java呼叫tensorflow模型進行圖片分類識別

java呼叫tensorflow模型進行圖片分類識別


https://github.com/tensorflow/tensorflow/tree/master/tensorflow/java

以下是識別結果:

(tensorflow)[email protected]:~/tensorflow/tensorflow/org/tensorflow/examples$ java  -cp ../../../bazel-bin/tensorflow/java/libtensorflow.jar:. -Djava.library.path=../../../bazel-bin/tensorflow/java/ LabelImage ./ p.png 
2017-09-26 17:51:46.413822: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
BEST MATCH: computer keyboard (30.84% likely)


(tensorflow)[email protected]:~/tensorflow/tensorflow/org/tensorflow/examples$