Home | History | Annotate | Download | only in label_image
      1 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
      2 
      3 Licensed under the Apache License, Version 2.0 (the "License");
      4 you may not use this file except in compliance with the License.
      5 You may obtain a copy of the License at
      6 
      7     http://www.apache.org/licenses/LICENSE-2.0
      8 
      9 Unless required by applicable law or agreed to in writing, software
     10 distributed under the License is distributed on an "AS IS" BASIS,
     11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 See the License for the specific language governing permissions and
     13 limitations under the License.
     14 ==============================================================================*/
     15 
     16 #ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H
     17 #define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H
     18 
     19 #include "tensorflow/contrib/lite/string.h"
     20 
     21 namespace tflite {
     22 namespace label_image {
     23 
     24 struct Settings {
     25   bool verbose = false;
     26   bool accel = false;
     27   bool input_floating = false;
     28   int loop_count = 1;
     29   float input_mean = 127.5f;
     30   float input_std = 127.5f;
     31   string model_name = "./mobilenet_quant_v1_224.tflite";
     32   string input_bmp_name = "./grace_hopper.bmp";
     33   string labels_file_name = "./labels.txt";
     34   string input_layer_type = "uint8_t";
     35   int number_of_threads = 4;
     36 };
     37 
     38 }  // namespace label_image
     39 }  // namespace tflite
     40 
     41 #endif  // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H
     42