2 * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __MEDIA_VISION_INPUTMETADATA_H__
18 #define __MEDIA_VISION_INPUTMETADATA_H__
24 #include "MetadataType.h"
25 #include <inference_engine_type.h>
26 #include <json-glib/json-glib.h>
29 * @file InputMetadata.h
30 * @brief This file contains the metadata class definition which
31 * provides metadata of a model.
41 std::vector<double> mean;
42 std::vector<double> std;
48 std::vector<double> scale;
49 std::vector<double> zeropoint;
54 Normalization normalization;
55 Quantization quantization;
61 * @brief Creates an InputMetadata class instance.
68 * @brief Destroys an InputMetadata class instance including
73 ~InputMetadata() = default;
76 * @brief Parses an InputMetadata
80 int Parse(JsonObject *root, std::string key_name);
85 std::map<std::string, LayerInfo> &GetLayer()
89 std::map<std::string, Options> &GetOption()
95 std::map<std::string, inference_tensor_shape_type_e> mSupportedShapeType;
96 std::map<std::string, mv_inference_data_type_e> mSupportedDataType;
97 std::map<std::string, mv_colorspace_e> mSupportedColorSpace;
98 std::map<std::string, LayerInfo> layer;
99 std::map<std::string, Options> option;
101 int GetTensorInfo(JsonObject *root, std::string key_name);
102 int GetPreProcess(JsonObject *root);
108 #endif /* __MEDIA_VISION_INPUTMETADATA_H__ */