#include "tensorflow_lite_support/cc/task/vision/utils/image_tensor_specs.h"
#include "absl/algorithm/container.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/types/optional.h"
#include "tensorflow_lite_support/cc/common.h"
#include "tensorflow_lite_support/cc/port/integral_types.h"
#include "tensorflow_lite_support/cc/port/status_macros.h"
#include "tensorflow_lite_support/cc/port/statusor.h"
#include "tensorflow_lite_support/cc/task/core/tflite_engine.h"
namespace tflite {
namespace task {
namespace vision {
namespace {
StatusCode;
ColorSpaceType_RGB;
ContentProperties;
ContentProperties_ImageProperties;
EnumNameContentProperties;
ImageProperties;
TensorMetadata;
ModelMetadataExtractor;
CreateStatusWithPayload;
StatusOr;
TfLiteSupportStatus;
TfLiteEngine;
StatusOr<const TensorMetadata*> GetInputTensorMetadataIfAny(
const ModelMetadataExtractor& metadata_extractor) { … }
StatusOr<const ImageProperties*> GetImagePropertiesIfAny(
const TensorMetadata& tensor_metadata) { … }
StatusOr<absl::optional<NormalizationOptions>> GetNormalizationOptionsIfAny(
const TensorMetadata& tensor_metadata) { … }
}
StatusOr<ImageTensorSpecs> BuildInputImageTensorSpecs(
const TfLiteEngine::Interpreter& interpreter,
const tflite::metadata::ModelMetadataExtractor& metadata_extractor) { … }
}
}
}