From e29c31a4d00f4259b52859833612613461ac045e Mon Sep 17 00:00:00 2001 From: hsgwon Date: Wed, 1 Jul 2020 14:56:17 +0900 Subject: [PATCH] [MediaVision] Support new inference backend engine - MLApi, One (#1755) * [MediaVision] Support new inference backend engine - MLApi, One --- .../MediaVision/InferenceModelConfiguration.cs | 8 ++++++++ .../MediaVision/InferenceType.cs | 21 ++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) mode change 100755 => 100644 src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs mode change 100755 => 100644 src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs old mode 100755 new mode 100644 index 3909f9c..47744f7 --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs @@ -60,6 +60,8 @@ namespace Tizen.Multimedia.Vision private const string _backendTypeOpenCV = "opencv"; private const string _backendTypeTFLite = "tflite"; private const string _backendTypeArmNN = "armnn"; + private const string _backendTypeMLApi = "mlapi"; + private const string _backendTypeOne = "one"; /// /// Initializes a new instance of the class. @@ -157,6 +159,12 @@ namespace Tizen.Multimedia.Vision case _backendTypeArmNN: supportedBackend.Add(InferenceBackendType.ArmNN); break; + case _backendTypeMLApi: + supportedBackend.Add(InferenceBackendType.MLApi); + break; + case _backendTypeOne: + supportedBackend.Add(InferenceBackendType.One); + break; } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs old mode 100755 new mode 100644 index 4c4568a..5e8abbe --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs @@ -37,7 +37,26 @@ namespace Tizen.Multimedia.Vision /// /// ArmNN backend type /// - ArmNN + ArmNN, + + /// + /// ML Single API of NNStreamer backend type + /// + /// + /// Should be set to . + /// + /// 8 + MLApi, + + /// + /// On-device Neural Engine backend type + /// + /// + /// Should be set to or + /// . + /// + /// 8 + One } /// -- 2.7.4