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/9.0/unified/20241227.020948^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_9.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 69145f3a..a472fdd0 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 39f639bc..7e54b9c5 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,6 +1,6 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 1.0.12 +Version: 1.0.13 Release: 0 Group: Multimedia/Framework License: Apache-2.0