From: Inki Dae Date: Fri, 6 Dec 2024 05:10:01 +0000 (+0900) Subject: mv_machine_learning: load backend path ini file X-Git-Tag: accepted/tizen/8.0/unified/20241224.162115^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_8.0;p=platform%2Fcore%2Fapi%2Fmediavision.git mv_machine_learning: load backend path ini file Load backend path ini file in default. MV_INFERENCE_BACKEND_MLAPI type has been deprecated so inference engine mlapi backend should be used in default by inference_engine_backend_path.ini file. Change-Id: If0fbdbfa07fba60e9d8939f9ce3cfe49ff9e01e4 Signed-off-by: Inki Dae --- diff --git a/mv_machine_learning/inference/src/Inference.cpp b/mv_machine_learning/inference/src/Inference.cpp index 9169d673..21fe3603 100644 --- a/mv_machine_learning/inference/src/Inference.cpp +++ b/mv_machine_learning/inference/src/Inference.cpp @@ -754,14 +754,9 @@ int Inference::bind(int backend_type, int device_type) return MEDIA_VISION_ERROR_OUT_OF_MEMORY; } - ret = MEDIA_VISION_ERROR_NONE; - - // Load configuration file if a given backend type is mlapi. - if (config.backend_type == MV_INFERENCE_BACKEND_MLAPI) { - ret = mBackend->LoadConfigFile(); - if (ret != INFERENCE_ENGINE_ERROR_NONE) { - return MEDIA_VISION_ERROR_INVALID_OPERATION; - } + ret = mBackend->LoadConfigFile(); + if (ret != INFERENCE_ENGINE_ERROR_NONE) { + return MEDIA_VISION_ERROR_INVALID_OPERATION; } // Bind a backend library. diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index 06eed333..3ae853bf 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,7 +1,7 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.28.22 -Release: 1 +Version: 0.28.23 +Release: 0 Group: Multimedia/Framework License: Apache-2.0 Source0: %{name}-%{version}.tar.gz