[Version] 0.18.3-0
[Issue type] : bug fix
Handled an exception case correctly. In case that internal model file
doesn't exist, this patch returns MEDIA_VISION_ERROR_INVALID_PATH
so that app can check such exception case correctly.
Change-Id: I2494ebaf69931c470ff1a7b82e581745030a0edd
Signed-off-by: Inki Dae <inki.dae@samsung.com>
output_tensor_info[0].shape[0] = _label_manager->GetMaxLabel();
_internal->UpdateLayerInfo(input_layers, output_layers, input_tensor_info, output_tensor_info);
+ if (!FaceRecogUtil::IsFileExist(_config.internal_model_file_path)) {
+ LOGE("Internal model file(%s) doesn't exist.", _config.internal_model_file_path.c_str());
+ return MEDIA_VISION_ERROR_INVALID_PATH;
+ }
+
// model file could be created in runtime so just return -1 if the model file doesn't exist.
ret = _internal->Load(_config.internal_model_file_path);
if (ret != INFERENCE_ENGINE_ERROR_NONE) {
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.18.2
+Version: 0.18.3
Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause