From 080634f97cd33da9ebdd28cf5626767ed8a39c99 Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 3 Sep 2024 11:45:05 +0900 Subject: [PATCH] [MediaVision] Deprecate all legacy APIs (#6279) * [MediaVision] Deprecate all legacy APIs --- .../Interop/Interop.MediaVision.Face.cs | 58 +++++++++---------- .../Interop/Interop.MediaVision.Image.cs | 42 +++++++------- .../Interop/Interop.MediaVision.Inference.cs | 38 ++++++------ .../Interop.MediaVision.Surveillance.cs | 34 +++++------ .../MediaVision/DeepLearningFaceRecognizer.cs | 2 +- .../MediaVision/EyeCondition.cs | 3 + .../MediaVision/FaceDetectionConfiguration.cs | 6 ++ .../MediaVision/FaceDetectionResult.cs | 5 +- .../MediaVision/FaceDetector.cs | 4 ++ .../FaceRecognitionConfiguration.cs | 3 + .../MediaVision/FaceRecognitionModel.cs | 13 +++++ .../MediaVision/FaceRecognitionModelType.cs | 3 + .../MediaVision/FaceRecognitionResult.cs | 7 +++ .../MediaVision/FaceRecognizer.cs | 9 +++ .../MediaVision/FaceTracker.cs | 2 + .../MediaVision/FaceTrackingModel.cs | 7 +++ .../MediaVision/FaceTrackingResult.cs | 6 ++ .../MediaVision/FacialExpression.cs | 3 + .../MediaVision/FacialLandmarkDetector.cs | 2 + .../MediaVision/ImageClassificationResult.cs | 6 +- .../MediaVision/ImageClassifier.cs | 2 + .../MediaVision/ImageFillConfiguration.cs | 6 ++ .../MediaVision/ImageObject.cs | 13 +++++ .../ImageRecognitionConfiguration.cs | 12 ++++ .../MediaVision/ImageRecognitionResult.cs | 5 ++ .../MediaVision/ImageRecognizer.cs | 3 + .../MediaVision/ImageTracker.cs | 3 + .../MediaVision/ImageTrackingConfiguration.cs | 14 +++++ .../MediaVision/ImageTrackingModel.cs | 8 +++ .../InferenceModelConfiguration.cs | 12 ++++ .../MediaVision/InferenceType.cs | 3 + .../MediaVision/MovementDetectedEventArgs.cs | 3 + .../MovementDetectionConfiguration.cs | 4 ++ .../MediaVision/MovementDetector.cs | 5 ++ .../MediaVision/ObjectDetectionResult.cs | 7 ++- .../MediaVision/ObjectDetector.cs | 2 + .../PersonAppearanceDetectedEventArgs.cs | 5 ++ .../PersonAppearanceDetectionConfiguration.cs | 4 ++ .../MediaVision/PersonAppearanceDetector.cs | 5 ++ .../PersonRecognitionConfiguration.cs | 3 + .../MediaVision/PersonRecognitionInfo.cs | 7 +++ .../MediaVision/PersonRecognizedEventArgs.cs | 3 + .../MediaVision/PersonRecognizer.cs | 4 ++ .../MediaVision/PoseLandmarkDetector.cs | 5 ++ .../MediaVision/SurveillanceConfiguration.cs | 3 + .../MediaVision/SurveillanceEngine.cs | 5 ++ .../MediaVision/SurveillanceSource.cs | 3 + 47 files changed, 312 insertions(+), 90 deletions(-) diff --git a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Face.cs b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Face.cs index 5babae13e62..be33d6b2474 100755 --- a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Face.cs +++ b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Face.cs @@ -35,49 +35,49 @@ internal static partial class Face { [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_detect")] internal static extern MediaVisionError Detect(IntPtr source, IntPtr engineCfg, - DetectedCallback detectedCb, IntPtr userData = default(IntPtr)); + DetectedCallback detectedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognize")] internal static extern MediaVisionError Recognize(IntPtr source, IntPtr recognitionModel, IntPtr engineCfg, - IntPtr faceLocation, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); + IntPtr faceLocation, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognize")] internal static extern MediaVisionError Recognize(IntPtr source, IntPtr recognitionModel, IntPtr engineCfg, - ref Rectangle faceLocation, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); + ref Rectangle faceLocation, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_track")] internal static extern MediaVisionError Track(IntPtr source, IntPtr trackingModel, IntPtr engineCfg, - TrackedCallback trackedCb, bool doLearn, IntPtr userData = default(IntPtr)); + TrackedCallback trackedCb, bool doLearn, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_eye_condition_recognize")] internal static extern MediaVisionError RecognizeEyeCondition(IntPtr source, IntPtr engineCfg, - Rectangle faceLocation, EyeConditionRecognizedCallback eyeConditionRecognizedCb, IntPtr userData = default(IntPtr)); + Rectangle faceLocation, EyeConditionRecognizedCallback eyeConditionRecognizedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_facial_expression_recognize")] internal static extern MediaVisionError RecognizeFacialExpression(IntPtr source, IntPtr engineCfg, - Rectangle faceLocation, MvFaceFacialExpressionRecognizedCallback expressionRecognizedCb, + Rectangle faceLocation, MvFaceFacialExpressionRecognizedCallback expressionRecognizedCb, // Deprecated in API 12 IntPtr userData = default(IntPtr)); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void DetectedCallback(IntPtr source, IntPtr engineCfg, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] Rectangle[] facesLocations, - int numberOfFaces, IntPtr userData); + int numberOfFaces, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void RecognizedCallback(IntPtr source, IntPtr recognitionModel, - IntPtr engineCfg, IntPtr faceLocation, IntPtr faceLabel, double confidence, IntPtr userData); + IntPtr engineCfg, IntPtr faceLocation, IntPtr faceLabel, double confidence, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void TrackedCallback(IntPtr source, IntPtr trackingModel, IntPtr engineCfg, - IntPtr location, double confidence, IntPtr userData); + IntPtr location, double confidence, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void EyeConditionRecognizedCallback(IntPtr source, IntPtr engineCfg, - Rectangle faceLocation, EyeCondition eyeCondition, IntPtr userData); + Rectangle faceLocation, EyeCondition eyeCondition, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void MvFaceFacialExpressionRecognizedCallback(IntPtr source, - IntPtr engineCfg, Rectangle faceLocation, FacialExpression facialExpression, IntPtr userData); + IntPtr engineCfg, Rectangle faceLocation, FacialExpression facialExpression, IntPtr userData); // Deprecated in API 12 } /// @@ -86,39 +86,39 @@ internal delegate void MvFaceFacialExpressionRecognizedCallback(IntPtr source, internal static partial class FaceRecognitionModel { [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_create")] - internal static extern MediaVisionError Create(out IntPtr handle); + internal static extern MediaVisionError Create(out IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_destroy")] - internal static extern int Destroy(IntPtr handle); + internal static extern int Destroy(IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_clone")] - internal static extern int Clone(IntPtr src, out IntPtr dst); + internal static extern int Clone(IntPtr src, out IntPtr dst); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_save")] - internal static extern MediaVisionError Save(string fileName, IntPtr handle); + internal static extern MediaVisionError Save(string fileName, IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_load")] - internal static extern MediaVisionError Load(string fileName, out IntPtr handle); + internal static extern MediaVisionError Load(string fileName, out IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_add")] internal static extern MediaVisionError Add(IntPtr source, IntPtr recognitionModel, - ref Rectangle exampleLocation, int faceLabel); + ref Rectangle exampleLocation, int faceLabel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_add")] internal static extern MediaVisionError Add(IntPtr source, IntPtr recognitionModel, - IntPtr exampleLocation, int faceLabel); + IntPtr exampleLocation, int faceLabel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_reset")] - internal static extern MediaVisionError Reset(IntPtr recognitionModel, IntPtr faceLabel = default(IntPtr)); + internal static extern MediaVisionError Reset(IntPtr recognitionModel, IntPtr faceLabel = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_reset")] - internal static extern MediaVisionError Remove(IntPtr recognitionModel, ref int faceLabel); + internal static extern MediaVisionError Remove(IntPtr recognitionModel, ref int faceLabel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_learn")] - internal static extern MediaVisionError Learn(IntPtr engineCfg, IntPtr handle); + internal static extern MediaVisionError Learn(IntPtr engineCfg, IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_recognition_model_query_labels")] - internal static extern MediaVisionError QueryLabels(IntPtr handle, out IntPtr labels, out uint numberOfLabels); + internal static extern MediaVisionError QueryLabels(IntPtr handle, out IntPtr labels, out uint numberOfLabels); // Deprecated in API 12 } /// @@ -127,27 +127,27 @@ internal static extern MediaVisionError Add(IntPtr source, IntPtr recognitionMod internal static partial class FaceTrackingModel { [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_create")] - internal static extern MediaVisionError Create(out IntPtr handle); + internal static extern MediaVisionError Create(out IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_destroy")] - internal static extern int Destroy(IntPtr handle); + internal static extern int Destroy(IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_prepare")] internal static extern MediaVisionError Prepare(IntPtr trackingModel, IntPtr engineCfg, - IntPtr source, ref Quadrangle location); + IntPtr source, ref Quadrangle location); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_prepare")] internal static extern MediaVisionError Prepare(IntPtr trackingModel, IntPtr engineCfg, - IntPtr source, IntPtr location); + IntPtr source, IntPtr location); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_clone")] - internal static extern int Clone(IntPtr src, out IntPtr dst); + internal static extern int Clone(IntPtr src, out IntPtr dst); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_save")] - internal static extern MediaVisionError Save(string fileName, IntPtr handle); + internal static extern MediaVisionError Save(string fileName, IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionFace, EntryPoint = "mv_face_tracking_model_load")] - internal static extern MediaVisionError Load(string fileName, out IntPtr handle); + internal static extern MediaVisionError Load(string fileName, out IntPtr handle); // Deprecated in API 12 } /// diff --git a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Image.cs b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Image.cs index 36bebd2ade2..e7de6c780d9 100755 --- a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Image.cs +++ b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Image.cs @@ -35,50 +35,50 @@ internal static partial class Image { [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_recognize")] internal static extern MediaVisionError Recognize(IntPtr source, IntPtr[] imageObjects, - int numberOfObjects, IntPtr engineCfg, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); + int numberOfObjects, IntPtr engineCfg, RecognizedCallback recognizedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_track")] internal static extern MediaVisionError Track(IntPtr source, IntPtr imageTrackingModel, - IntPtr engineCfg, TrackedCallback trackedCb, IntPtr userData = default(IntPtr)); + IntPtr engineCfg, TrackedCallback trackedCb, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_create")] - internal static extern MediaVisionError Create(out IntPtr handle); + internal static extern MediaVisionError Create(out IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_destroy")] - internal static extern int Destroy(IntPtr handle); + internal static extern int Destroy(IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_fill")] - internal static extern MediaVisionError Fill(IntPtr handle, IntPtr engineCfg, IntPtr source, ref Rectangle location); + internal static extern MediaVisionError Fill(IntPtr handle, IntPtr engineCfg, IntPtr source, ref Rectangle location); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_fill")] - internal static extern MediaVisionError Fill(IntPtr handle, IntPtr engineCfg, IntPtr source, IntPtr location); + internal static extern MediaVisionError Fill(IntPtr handle, IntPtr engineCfg, IntPtr source, IntPtr location); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_get_recognition_rate")] - internal static extern MediaVisionError GetRecognitionRate(IntPtr handle, out double recognitionRate); + internal static extern MediaVisionError GetRecognitionRate(IntPtr handle, out double recognitionRate); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_set_label")] - internal static extern MediaVisionError SetLabel(IntPtr handle, int label); + internal static extern MediaVisionError SetLabel(IntPtr handle, int label); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_get_label")] - internal static extern MediaVisionError GetLabel(IntPtr handle, out int label); + internal static extern MediaVisionError GetLabel(IntPtr handle, out int label); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_clone")] - internal static extern int Clone(IntPtr src, out IntPtr dst); + internal static extern int Clone(IntPtr src, out IntPtr dst); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_save")] - internal static extern MediaVisionError Save(string fileName, IntPtr handle); + internal static extern MediaVisionError Save(string fileName, IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_object_load")] - internal static extern MediaVisionError Load(string fileName, out IntPtr handle); + internal static extern MediaVisionError Load(string fileName, out IntPtr handle); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void RecognizedCallback(IntPtr source, IntPtr engineCfg, IntPtr imageObjects, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4)] - IntPtr[] locations, uint numberOfObjects, IntPtr userData); + IntPtr[] locations, uint numberOfObjects, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void TrackedCallback(IntPtr source, IntPtr imageTrackingModel, - IntPtr engineCfg, IntPtr location, IntPtr userData); + IntPtr engineCfg, IntPtr location, IntPtr userData); // Deprecated in API 12 } /// @@ -87,25 +87,25 @@ internal delegate void TrackedCallback(IntPtr source, IntPtr imageTrackingModel, internal static partial class ImageTrackingModel { [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_create")] - internal static extern MediaVisionError Create(out IntPtr imageTrackingModel); + internal static extern MediaVisionError Create(out IntPtr imageTrackingModel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_set_target")] - internal static extern MediaVisionError SetTarget(IntPtr handle, IntPtr imageTrackingModel); + internal static extern MediaVisionError SetTarget(IntPtr handle, IntPtr imageTrackingModel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_destroy")] - internal static extern int Destroy(IntPtr imageTrackingModel); + internal static extern int Destroy(IntPtr imageTrackingModel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_refresh")] - internal static extern MediaVisionError Refresh(IntPtr imageTrackingModel, IntPtr engineCfg); + internal static extern MediaVisionError Refresh(IntPtr imageTrackingModel, IntPtr engineCfg); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_clone")] - internal static extern int Clone(IntPtr src, out IntPtr dest); + internal static extern int Clone(IntPtr src, out IntPtr dest); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_save")] - internal static extern MediaVisionError Save(string fileName, IntPtr imageTrackingModel); + internal static extern MediaVisionError Save(string fileName, IntPtr imageTrackingModel); // Deprecated in API 12 [DllImport(Libraries.MediaVisionImage, EntryPoint = "mv_image_tracking_model_load")] - internal static extern MediaVisionError Load(string fileName, out IntPtr imageTrackingModel); + internal static extern MediaVisionError Load(string fileName, out IntPtr imageTrackingModel); // Deprecated in API 12 } } } diff --git a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Inference.cs b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Inference.cs index 391afd929b5..2e5d9879231 100644 --- a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Inference.cs +++ b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Inference.cs @@ -37,19 +37,19 @@ internal static partial class Inference internal delegate void FaceDetectedCallback(IntPtr source, int numberOfFaces, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] float[] confidences, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Rectangle[] location, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void FacialLandmarkDetectedCallback(IntPtr source, int numberOfLandmarks, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Point[] locations, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void ImageClassifedCallback(IntPtr source, int numberOfClasses, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] int[] indices, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] string[] names, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] float[] confidences, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void ObjectDetectedCallback(IntPtr source, int numberOfObjects, @@ -57,60 +57,60 @@ internal delegate void ObjectDetectedCallback(IntPtr source, int numberOfObjects [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] string[] names, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] float[] confidences, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] Rectangle[] location, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate bool SupportedBackendCallback(string backend, bool isSupported, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void PoseLandmarkDetectedCallback(IntPtr source, IntPtr poses, - IntPtr userData = default(IntPtr)); + IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_create")] - internal static extern MediaVisionError Create(out IntPtr handle); + internal static extern MediaVisionError Create(out IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_destroy")] - internal static extern MediaVisionError Destroy(IntPtr handle); + internal static extern MediaVisionError Destroy(IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_configure")] - internal static extern MediaVisionError Configure(IntPtr handle, IntPtr engineConfig); + internal static extern MediaVisionError Configure(IntPtr handle, IntPtr engineConfig); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_prepare")] - internal static extern MediaVisionError Load(IntPtr handle); + internal static extern MediaVisionError Load(IntPtr handle); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_foreach_supported_engine")] internal static extern MediaVisionError ForeachSupportedBackend(IntPtr handle, - SupportedBackendCallback callback, IntPtr userData = default(IntPtr)); + SupportedBackendCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_image_classify")] internal static extern MediaVisionError ClassifyImage(IntPtr source, IntPtr inference, - IntPtr roi, ImageClassifedCallback callback, IntPtr userData = default(IntPtr)); + IntPtr roi, ImageClassifedCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_object_detect")] internal static extern MediaVisionError DetectObject(IntPtr source, IntPtr inference, - ObjectDetectedCallback callback, IntPtr userData = default(IntPtr)); + ObjectDetectedCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_face_detect")] internal static extern MediaVisionError DetectFace(IntPtr source, IntPtr inference, - FaceDetectedCallback callback, IntPtr userData = default(IntPtr)); + FaceDetectedCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_facial_landmark_detect")] internal static extern MediaVisionError DetectFacialLandmark(IntPtr source, IntPtr inference, - IntPtr roi, FacialLandmarkDetectedCallback callback, IntPtr userData = default(IntPtr)); + IntPtr roi, FacialLandmarkDetectedCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_pose_get_number_of_poses")] - internal static extern MediaVisionError GetPoseNum(IntPtr result, out int numPose); + internal static extern MediaVisionError GetPoseNum(IntPtr result, out int numPose); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_pose_get_number_of_landmarks")] - internal static extern MediaVisionError GetLandmarkNum(IntPtr result, out int numLandmark); + internal static extern MediaVisionError GetLandmarkNum(IntPtr result, out int numLandmark); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_pose_get_landmark")] - internal static extern MediaVisionError GetLandmark(IntPtr result, int index, int part, out Point location, out float score); + internal static extern MediaVisionError GetLandmark(IntPtr result, int index, int part, out Point location, out float score); // Deprecated in API 12 [DllImport(Libraries.MediaVisionInference, EntryPoint = "mv_inference_pose_landmark_detect")] internal static extern MediaVisionError DetectPoseLandmark(IntPtr source, IntPtr inference, - IntPtr roi, PoseLandmarkDetectedCallback callback, IntPtr userData = default(IntPtr)); + IntPtr roi, PoseLandmarkDetectedCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 } } } diff --git a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Surveillance.cs b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Surveillance.cs index 89f0d31d5c1..ad1db3da814 100755 --- a/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Surveillance.cs +++ b/src/Tizen.Multimedia.Vision/Interop/Interop.MediaVision.Surveillance.cs @@ -34,58 +34,58 @@ internal static partial class MediaVision internal static partial class Surveillance { [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_event_trigger_create")] - internal static extern MediaVisionError EventTriggerCreate(string eventType, out IntPtr trigger); + internal static extern MediaVisionError EventTriggerCreate(string eventType, out IntPtr trigger); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_event_trigger_destroy")] - internal static extern int EventTriggerDestroy(IntPtr trigger); + internal static extern int EventTriggerDestroy(IntPtr trigger); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_event_trigger_type")] - internal static extern int GetEventTriggerType(IntPtr trigger, out string eventType); + internal static extern int GetEventTriggerType(IntPtr trigger, out string eventType); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_set_event_trigger_roi")] - internal static extern MediaVisionError SetEventTriggerRoi(IntPtr trigger, int numberOfPoints, Point[] roi); + internal static extern MediaVisionError SetEventTriggerRoi(IntPtr trigger, int numberOfPoints, Point[] roi); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_event_trigger_roi")] - internal static extern MediaVisionError GetEventTriggerRoi(IntPtr trigger, out int numberOfPoints, out IntPtr roi); + internal static extern MediaVisionError GetEventTriggerRoi(IntPtr trigger, out int numberOfPoints, out IntPtr roi); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_subscribe_event_trigger")] internal static extern MediaVisionError SubscribeEventTrigger(IntPtr trigger, int videoStreamId, - IntPtr engineCfg, EventOccurredCallback callback, IntPtr userData = default(IntPtr)); + IntPtr engineCfg, EventOccurredCallback callback, IntPtr userData = default(IntPtr)); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_unsubscribe_event_trigger")] - internal static extern MediaVisionError UnsubscribeEventTrigger(IntPtr trigger, int videoStreamId); + internal static extern MediaVisionError UnsubscribeEventTrigger(IntPtr trigger, int videoStreamId); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_push_source")] - internal static extern MediaVisionError PushSource(IntPtr source, int videoStreamId); + internal static extern MediaVisionError PushSource(IntPtr source, int videoStreamId); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_foreach_supported_event_type")] - internal static extern int ForeachSupportedEventType(EventTypeCallback callback, IntPtr userData); + internal static extern int ForeachSupportedEventType(EventTypeCallback callback, IntPtr userData); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_foreach_event_result_name")] internal static extern int ForeachEventResultName(string eventType, EventResultNameCallback callback, - IntPtr userData); + IntPtr userData); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_result_value")] - internal static extern MediaVisionError GetResultValue(IntPtr result, string name, out int value); + internal static extern MediaVisionError GetResultValue(IntPtr result, string name, out int value); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_result_value")] - internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] int[] value); + internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] int[] value); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_result_value")] - internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] double[] value); + internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] double[] value); // Deprecated in API 12 [DllImport(Libraries.MediaVisionSurveillance, EntryPoint = "mv_surveillance_get_result_value")] - internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] Rectangle[] value); + internal static extern MediaVisionError GetResultValue(IntPtr result, string name, [Out] Rectangle[] value); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void EventOccurredCallback(IntPtr trigger, IntPtr source, - int videoStreamId, IntPtr eventResult, IntPtr userData); + int videoStreamId, IntPtr eventResult, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool EventTypeCallback(string eventType, IntPtr userData); + internal delegate bool EventTypeCallback(string eventType, IntPtr userData); // Deprecated in API 12 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool EventResultNameCallback(string name, IntPtr userData); + internal delegate bool EventResultNameCallback(string name, IntPtr userData); // Deprecated in API 12 } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/DeepLearningFaceRecognizer.cs b/src/Tizen.Multimedia.Vision/MediaVision/DeepLearningFaceRecognizer.cs index 0cf02725a51..5f65776d1b2 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/DeepLearningFaceRecognizer.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/DeepLearningFaceRecognizer.cs @@ -56,7 +56,7 @@ public DeepLearningFaceRecognizer() { Log.Error(MediaVisionLog.Tag, e.ToString()); InteropFace.Destroy(_handle); - throw e; + throw; } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/EyeCondition.cs b/src/Tizen.Multimedia.Vision/MediaVision/EyeCondition.cs index 556dc00f27a..cbac00d082e 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/EyeCondition.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/EyeCondition.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Specifies the eyes state types. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum EyeCondition { /// diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionConfiguration.cs index 6a841ab03d6..827e985cf63 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionConfiguration.cs @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceDetectionConfiguration : EngineConfiguration { private const string KeyModelFilePath = "MV_FACE_DETECTION_MODEL_FILE_PATH"; @@ -38,6 +39,7 @@ public class FaceDetectionConfiguration : EngineConfiguration /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceDetectionConfiguration() : base("face_recognition") { } @@ -47,6 +49,7 @@ public FaceDetectionConfiguration() : base("face_recognition") /// /// is null. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string ModelFilePath { get @@ -72,6 +75,7 @@ public string ModelFilePath /// /// is less than zero. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int? MinHeight { get @@ -100,6 +104,7 @@ public int? MinHeight /// /// is less than zero. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int? MinWidth { get @@ -140,6 +145,7 @@ public int? MinWidth /// The y position of is less than zero. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle? Roi { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionResult.cs index 899e1e60dcb..d338c4c2b16 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetectionResult.cs @@ -14,7 +14,7 @@ * limitations under the License. */ -using System.Collections.ObjectModel; +using System; namespace Tizen.Multimedia.Vision { @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// . /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceDetectionResult { internal FaceDetectionResult(float confidence, global::Interop.MediaVision.Rectangle location) @@ -35,12 +36,14 @@ internal FaceDetectionResult(float confidence, global::Interop.MediaVision.Recta /// Gets the confidence of detected face. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public float Confidence { get; } /// /// Gets the location of detected face. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle Location { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetector.cs index bec227f1385..d9bc59253a6 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceDetector.cs @@ -31,6 +31,7 @@ namespace Tizen.Multimedia.Vision /// please use . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class FaceDetector { /// @@ -47,6 +48,7 @@ public static class FaceDetector /// /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task DetectAsync(MediaVisionSource source) { return await DetectAsync(source, (FaceDetectionConfiguration)null); @@ -63,6 +65,7 @@ public static async Task DetectAsync(MediaVisionSource source) /// The feature is not supported. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task DetectAsync(MediaVisionSource source, FaceDetectionConfiguration config) { @@ -131,6 +134,7 @@ private static InteropFace.DetectedCallback GetCallback(TaskCompletionSourceThe caller has no required privilege. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> DetectAsync(MediaVisionSource source, InferenceModelConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionConfiguration.cs index 9131053591e..97363be0f2e 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionConfiguration.cs @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceRecognitionConfiguration : EngineConfiguration { private const string KeyModelType = "MV_FACE_RECOGNITION_MODEL_TYPE"; @@ -32,6 +33,7 @@ public class FaceRecognitionConfiguration : EngineConfiguration /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceRecognitionConfiguration() : base("face_recognition") { } @@ -42,6 +44,7 @@ public FaceRecognitionConfiguration() : base("face_recognition") /// /// is not valid. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceRecognitionModelType ModelType { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModel.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModel.cs index 4770a52c8ee..86fc1372bc1 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModel.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModel.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceRecognitionModel : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -36,6 +37,7 @@ public class FaceRecognitionModel : IDisposable /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceRecognitionModel() { InteropModel.Create(out _handle).Validate("Failed to create FaceRecognitionModel"); @@ -58,6 +60,7 @@ public FaceRecognitionModel() /// No permission to access the specified file. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceRecognitionModel(string modelPath) { if (modelPath == null) @@ -82,6 +85,7 @@ public FaceRecognitionModel(string modelPath) /// /// The has already been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int[] Labels { get @@ -116,6 +120,7 @@ public int[] Labels /// The has already been disposed of. /// The directory for does not exist. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Save(string path) { if (path == null) @@ -159,6 +164,7 @@ private MediaVisionError InvokeAdd(MediaVisionSource source, int label, Rectangl /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Add(MediaVisionSource source, int label) { if (source == null) @@ -185,6 +191,7 @@ public void Add(MediaVisionSource source, int label) /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Add(MediaVisionSource source, int label, Rectangle area) { if (source == null) @@ -204,6 +211,7 @@ public void Add(MediaVisionSource source, int label, Rectangle area) /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public bool Remove(int label) { var ret = InteropModel.Remove(Handle, ref label); @@ -222,6 +230,7 @@ public bool Remove(int label) /// /// The has already been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Reset() { InteropModel.Reset(Handle).Validate("Failed to reset image example"); @@ -242,6 +251,7 @@ public void Reset() /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Learn() { Learn(null); @@ -266,6 +276,7 @@ public void Learn() /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Learn(FaceRecognitionConfiguration config) { InteropModel.Learn(EngineConfiguration.GetHandle(config), Handle). @@ -276,6 +287,7 @@ public void Learn(FaceRecognitionConfiguration config) /// Releases all the resources used by the object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Dispose() { Dispose(true); @@ -289,6 +301,7 @@ public void Dispose() /// true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModelType.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModelType.cs index 2625ef0727c..667ea154694 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModelType.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionModelType.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Specifies the face recognition model learning algorithms. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum FaceRecognitionModelType { /// diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionResult.cs index 283d6d119ad..5b5b6ae2fd4 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognitionResult.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Represents the result of operations. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceRecognitionResult { internal FaceRecognitionResult(bool recognized, double confidence, int label, Rectangle? area) @@ -34,18 +37,21 @@ internal FaceRecognitionResult(bool recognized, double confidence, int label, Re /// Gets the value indicating the recognition is successful. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public bool Success { get; } /// /// Gets the label of the recognized face. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int Label { get; } /// /// Gets the location of the recognized face. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle? Area { get; } /// @@ -55,6 +61,7 @@ internal FaceRecognitionResult(bool recognized, double confidence, int label, Re /// then threshold can be reduced (0.5-0.85). /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double Confidence { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognizer.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognizer.cs index 8ec7764b959..81cf97eff3d 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognizer.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceRecognizer.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to recognize faces, face expressions, and eye condition on image sources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class FaceRecognizer { @@ -44,6 +45,7 @@ public static class FaceRecognizer /// is untrained model. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel) { @@ -67,6 +69,7 @@ public static async Task RecognizeAsync(MediaVisionSource /// is untrained model. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, Rectangle bound) { @@ -94,6 +97,7 @@ public static async Task RecognizeAsync(MediaVisionSource /// is untrained model. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, FaceRecognitionConfiguration config) { @@ -123,6 +127,7 @@ public static async Task RecognizeAsync(MediaVisionSource /// is untrained model. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeAsync(MediaVisionSource source, FaceRecognitionModel recognitionModel, Rectangle bound, FaceRecognitionConfiguration config) { @@ -216,6 +221,7 @@ private static InteropFace.RecognizedCallback GetRecognizedCallback( /// The feature is not supported. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeEyeConditionAsync(MediaVisionSource source, Rectangle bound) { @@ -238,6 +244,7 @@ public static async Task RecognizeEyeConditionAsync(MediaVisionSou /// The feature is not supported. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeEyeConditionAsync(MediaVisionSource source, Rectangle bound, FaceRecognitionConfiguration config) { @@ -278,6 +285,7 @@ public static async Task RecognizeEyeConditionAsync(MediaVisionSou /// The feature is not supported. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeFacialExpressionAsync(MediaVisionSource source, Rectangle bound) { @@ -300,6 +308,7 @@ public static async Task RecognizeFacialExpressionAsync(MediaV /// The feature is not supported. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task RecognizeFacialExpressionAsync(MediaVisionSource source, Rectangle bound, FaceRecognitionConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceTracker.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceTracker.cs index bc64764533a..d5710b0c4e8 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceTracker.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceTracker.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to track faces on image sources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class FaceTracker { @@ -51,6 +52,7 @@ public static class FaceTracker /// is not prepared. /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task TrackAsync(MediaVisionSource source, FaceTrackingModel trackingModel, bool doLearn) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingModel.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingModel.cs index 6f52d1e214d..2714af06687 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingModel.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingModel.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.face_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceTrackingModel : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -35,6 +36,7 @@ public class FaceTrackingModel : IDisposable /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceTrackingModel() { InteropModel.Create(out _handle).Validate("Failed to create FaceTrackingModel."); @@ -57,6 +59,7 @@ public FaceTrackingModel() /// No permission to access the specified file. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public FaceTrackingModel(string modelPath) { if (modelPath == null) @@ -109,6 +112,7 @@ private MediaVisionError InvokePrepare(MediaVisionSource source, Quadrangle regi /// has already bean disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Prepare(MediaVisionSource source, Quadrangle region) { if (source == null) @@ -128,6 +132,7 @@ public void Prepare(MediaVisionSource source, Quadrangle region) /// The has already been disposed of. /// The directory for does not exist. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Save(string path) { if (path == null) @@ -149,6 +154,7 @@ public void Save(string path) /// Releases all the resources used by the object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Dispose() { Dispose(true); @@ -162,6 +168,7 @@ public void Dispose() /// true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingResult.cs index 99545c11be8..a9938d88a80 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FaceTrackingResult.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Represents the result of face tracking operation. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class FaceTrackingResult { internal FaceTrackingResult(bool success, double confidence, Quadrangle region) @@ -33,12 +36,14 @@ internal FaceTrackingResult(bool success, double confidence, Quadrangle region) /// Gets the value indicating the tracking is successful. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public bool Success { get; } /// /// Gets the region which determines the new position of the tracked face on the source. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Quadrangle Region { get; } /// @@ -46,6 +51,7 @@ internal FaceTrackingResult(bool success, double confidence, Quadrangle region) /// (value from 0.0 to 1.0). If no location was determined during the last track iteration, then the value is 0.0. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double Confidence { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FacialExpression.cs b/src/Tizen.Multimedia.Vision/MediaVision/FacialExpression.cs index 8a722c6de73..c24487a23fe 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FacialExpression.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FacialExpression.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Specifies the expression types for faces. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum FacialExpression { /// diff --git a/src/Tizen.Multimedia.Vision/MediaVision/FacialLandmarkDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/FacialLandmarkDetector.cs index 7a50bdf6d6c..27f53c49cff 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/FacialLandmarkDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/FacialLandmarkDetector.cs @@ -28,6 +28,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to detect facial landmarks on image source using inference engine. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class FacialLandmarkDetector { /// @@ -51,6 +52,7 @@ public static class FacialLandmarkDetector /// The caller has no required privilege. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> DetectAsync(MediaVisionSource source, InferenceModelConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageClassificationResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageClassificationResult.cs index d7741b15eb1..fcaff0512cc 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageClassificationResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageClassificationResult.cs @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -using System.Collections.ObjectModel; +using System; namespace Tizen.Multimedia.Vision { @@ -22,6 +22,7 @@ namespace Tizen.Multimedia.Vision /// . /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageClassificationResult { internal ImageClassificationResult(int indice, string name, float confidence) @@ -35,18 +36,21 @@ internal ImageClassificationResult(int indice, string name, float confidence) /// Gets the indice of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int Indice { get; } /// /// Gets the name of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string Name { get; } /// /// Gets the confidence of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public float Confidence { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageClassifier.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageClassifier.cs index 44ca7b67a52..8b71f375704 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageClassifier.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageClassifier.cs @@ -27,6 +27,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to classify image objects on image source using inference engine. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class ImageClassifier { /// @@ -47,6 +48,7 @@ public static class ImageClassifier /// The caller has no required privilege. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> ClassifyAsync(MediaVisionSource source, InferenceModelConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageFillConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageFillConfiguration.cs index 6a52f42b02d..6475c24fb68 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageFillConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageFillConfiguration.cs @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageFillConfiguration : EngineConfiguration { private const string KeyScaleFactor = "MV_IMAGE_RECOGNITION_OBJECT_SCALE_FACTOR"; @@ -32,12 +33,14 @@ public class ImageFillConfiguration : EngineConfiguration /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultScaleFactor = 1.2; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultMaxKeypoints = 1000; /// @@ -45,6 +48,7 @@ public class ImageFillConfiguration : EngineConfiguration /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageFillConfiguration() : base("image_recognition") { } @@ -56,6 +60,7 @@ public ImageFillConfiguration() : base("image_recognition") /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double ObjectScaleFactor { get @@ -76,6 +81,7 @@ public double ObjectScaleFactor /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int ObjectMaxKeyPoints { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageObject.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageObject.cs index 61de3cca6cd..dcb48999814 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageObject.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageObject.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageObject : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -35,6 +36,7 @@ public class ImageObject : IDisposable /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageObject() { InteropImage.Create(out _handle).Validate("Failed to create image object"); @@ -57,6 +59,7 @@ public ImageObject() /// No permission to access the specified file. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageObject(string path) { if (path == null) @@ -92,6 +95,7 @@ public ImageObject(string path) /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double RecognitionRate { get @@ -111,6 +115,7 @@ public double RecognitionRate /// The has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int? GetLabel() { var ret = InteropImage.GetLabel(Handle, out var label); @@ -130,6 +135,7 @@ public double RecognitionRate /// The label which will be assigned to the image object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void SetLabel(int label) { InteropImage.SetLabel(Handle, label).Validate("Failed to set label"); @@ -147,6 +153,7 @@ public void SetLabel(int label) /// has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Fill(MediaVisionSource source) { InvokeFill(source, null, null); @@ -167,6 +174,7 @@ public void Fill(MediaVisionSource source) /// has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Fill(MediaVisionSource source, ImageFillConfiguration config) { InvokeFill(source, config, null); @@ -186,6 +194,7 @@ public void Fill(MediaVisionSource source, ImageFillConfiguration config) /// has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Fill(MediaVisionSource source, Rectangle rect) { InvokeFill(source, null, rect); @@ -208,6 +217,7 @@ public void Fill(MediaVisionSource source, Rectangle rect) /// has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Fill(MediaVisionSource source, ImageFillConfiguration config, Rectangle rect) { InvokeFill(source, config, rect); @@ -245,6 +255,7 @@ private void InvokeFill(MediaVisionSource source, ImageFillConfiguration config, /// The has already been disposed of. /// The directory for does not exist. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Save(string path) { if (path == null) @@ -269,6 +280,7 @@ public void Save(string path) /// Releases all the resources used by the object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Dispose() { Dispose(true); @@ -282,6 +294,7 @@ public void Dispose() /// true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionConfiguration.cs index aeaa3a67ae9..bae52578ea7 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionConfiguration.cs @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageRecognitionConfiguration : EngineConfiguration { private const string KeySceneScaleFactor = "MV_IMAGE_RECOGNITION_SCENE_SCALE_FACTOR"; @@ -36,30 +37,35 @@ public class ImageRecognitionConfiguration : EngineConfiguration /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultSceneScaleFactor = 1.2; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultSceneMaxKeypoints = 5000; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultMinKeyPointMatches = 30; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultRequiredMatchPart = 0.05; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultTolerantPartMatchError = 0.1; /// @@ -67,6 +73,7 @@ public class ImageRecognitionConfiguration : EngineConfiguration /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageRecognitionConfiguration() : base("image_recognition") { } @@ -80,6 +87,7 @@ public ImageRecognitionConfiguration() : base("image_recognition") /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double SceneScaleFactor { get @@ -103,6 +111,7 @@ public double SceneScaleFactor /// The already has been disposed of. /// is less than zero. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int SceneMaxKeyPoints { get @@ -130,6 +139,7 @@ public int SceneMaxKeyPoints /// The already has been disposed of. /// is less than zero. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int MinKeyPointMatches { get @@ -164,6 +174,7 @@ public int MinKeyPointMatches /// is greater than one. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double RequiredMatchingPart { get @@ -195,6 +206,7 @@ public double RequiredMatchingPart /// is greater than one. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double TolerantPartMatchError { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionResult.cs index 34667ca7da7..6f759de861a 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognitionResult.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Represents a result of RecognizeAsync operations of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageRecognitionResult { @@ -34,12 +37,14 @@ internal ImageRecognitionResult(bool success, Quadrangle region) /// /// The region of recognized image object if successful, otherwise null. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Quadrangle Region { get; } /// /// Gets the value indicating the recognition is successful. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public bool Success { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognizer.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognizer.cs index c2bc20bd1ed..101426bf186 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognizer.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageRecognizer.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to recognize images on image sources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class ImageRecognizer { /// @@ -45,6 +46,7 @@ public static class ImageRecognizer /// has already been disposed of. /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> RecognizeAsync( MediaVisionSource source, ImageObject[] imageObjects) { @@ -74,6 +76,7 @@ public static async Task> RecognizeAsync( /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> RecognizeAsync(MediaVisionSource source, ImageObject[] imageObjects, ImageRecognitionConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageTracker.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageTracker.cs index c888a52c229..2c2d6a60f6c 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageTracker.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageTracker.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to track images on image sources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class ImageTracker { /// @@ -48,6 +49,7 @@ public static class ImageTracker /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task TrackAsync(MediaVisionSource source, ImageTrackingModel trackingModel) { @@ -78,6 +80,7 @@ public static async Task TrackAsync(MediaVisionSource source, /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task TrackAsync(MediaVisionSource source, ImageTrackingModel trackingModel, ImageTrackingConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingConfiguration.cs index abb7f477532..5e56c7e0a8a 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingConfiguration.cs @@ -23,6 +23,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageTrackingConfiguration : ImageRecognitionConfiguration { private const string KeyHistoryAmount = "MV_IMAGE_TRACKING_HISTORY_AMOUNT"; @@ -36,36 +37,42 @@ public class ImageTrackingConfiguration : ImageRecognitionConfiguration /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultHistoryAmount = 3; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultExpectedOffset = 0; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly bool DefaultStabilizationEnabled = true; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultStabilizationTolerantShift = 0.00006; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultStabilizationSpeed = 0.3; /// /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly double DefaultStabilizationAcceleration = 0.1; /// @@ -73,6 +80,7 @@ public class ImageTrackingConfiguration : ImageRecognitionConfiguration /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageTrackingConfiguration() { } @@ -87,6 +95,7 @@ public ImageTrackingConfiguration() /// The already has been disposed of. /// is less than zero. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int HistoryAmount { get @@ -113,6 +122,7 @@ public int HistoryAmount /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double ExpectedOffset { get @@ -140,6 +150,7 @@ public double ExpectedOffset /// is greater than one. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double StabilizationAcceleration { get @@ -166,6 +177,7 @@ public double StabilizationAcceleration /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double StabilizationSpeed { get @@ -191,6 +203,7 @@ public double StabilizationSpeed /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double StabilizationTolerantShift { get @@ -212,6 +225,7 @@ public double StabilizationTolerantShift /// /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public bool IsStabilizationEnabled { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingModel.cs b/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingModel.cs index 98f55914f9c..b1bc25680fd 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingModel.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ImageTrackingModel.cs @@ -25,6 +25,7 @@ namespace Tizen.Multimedia.Vision /// /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ImageTrackingModel : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -35,6 +36,7 @@ public class ImageTrackingModel : IDisposable /// /// The feature is not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageTrackingModel() { InteropModel.Create(out _handle).Validate("Failed to create FaceTrackingModel"); @@ -57,6 +59,7 @@ public ImageTrackingModel() /// No permission to access the specified file. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public ImageTrackingModel(string modelPath) { if (modelPath == null) @@ -87,6 +90,7 @@ public ImageTrackingModel(string modelPath) /// /// Internal error.(Since API level 10) /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void SetTarget(ImageObject imageObject) { if (imageObject == null) @@ -106,6 +110,7 @@ public void SetTarget(ImageObject imageObject) /// /// The has already been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Refresh() { InteropModel.Refresh(Handle, IntPtr.Zero).Validate("Failed to refresh state"); @@ -120,6 +125,7 @@ public void Refresh() /// The has already been disposed of. /// The directory for does not exist. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Save(string path) { if (path == null) @@ -141,6 +147,7 @@ public void Save(string path) /// Releases all resources used by the object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Dispose() { Dispose(true); @@ -154,6 +161,7 @@ public void Dispose() /// true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs index e12c60a8f26..72bab33ead4 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs @@ -35,6 +35,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.inference.face /// http://tizen.org/feature/vision.inference.image /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class InferenceModelConfiguration : EngineConfiguration { private IntPtr _inferenceHandle = IntPtr.Zero; @@ -73,6 +74,7 @@ public class InferenceModelConfiguration : EngineConfiguration /// http://tizen.org/feature/vision.inference.image /// The feature is not supported. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public InferenceModelConfiguration() : base("inference") { InteropInference.Create(out _inferenceHandle).Validate("Failed to create inference configuration"); @@ -101,6 +103,7 @@ public InferenceModelConfiguration() : base("inference") /// Internal operation error. /// The caller has no required privilege. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void LoadInferenceModel() { InteropInference.Configure(_inferenceHandle, GetHandle(this)). @@ -130,6 +133,7 @@ internal IntPtr GetHandle() /// /// If there's no supported backend, empty collection will be returned. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable SupportedBackend { get @@ -193,6 +197,7 @@ private void GetSupportedBackend() /// /// Input file path is null. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string ConfigurationFilePath { get @@ -215,6 +220,7 @@ public string ConfigurationFilePath /// /// Input file path is null. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string WeightFilePath { get @@ -240,6 +246,7 @@ public string WeightFilePath /// /// Input file path is null. /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string CategoryFilePath { get @@ -265,6 +272,7 @@ public string CategoryFilePath /// /// Metadata file path is null. /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string MetadataFilePath { get @@ -340,6 +348,7 @@ public double StdValue /// The engine type is not supported. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public InferenceBackendType Backend { get @@ -370,6 +379,7 @@ public InferenceBackendType Backend /// /// is not valid. /// 8 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public InferenceTargetDevice Device { get @@ -601,6 +611,7 @@ public double ConfidenceThreshold /// /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle? Roi { get @@ -651,6 +662,7 @@ private static void ValidateRoi(Rectangle roi) /// true to release both managed and unmanaged resources, otherwise false to release only unmanaged resources. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected override void Dispose(bool disposing) { base.Dispose(disposing); diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs index 29b844b611c..0d1f74147ba 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceType.cs @@ -22,6 +22,7 @@ namespace Tizen.Multimedia.Vision /// Specifies the type of inference backend. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum InferenceBackendType { /// @@ -77,6 +78,7 @@ public enum InferenceBackendType /// Specifies the target device which is used for running . /// /// 8 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum InferenceTargetDevice { /// @@ -99,6 +101,7 @@ public enum InferenceTargetDevice /// Specifies the data type. /// /// 8 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public enum InferenceDataType { /// diff --git a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectedEventArgs.cs b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectedEventArgs.cs index 0cb70fcc392..1b162a8427f 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectedEventArgs.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectedEventArgs.cs @@ -23,12 +23,14 @@ namespace Tizen.Multimedia.Vision /// Provides data for the event. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class MovementDetectedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public MovementDetectedEventArgs(IEnumerable areas) { Areas = areas; @@ -38,6 +40,7 @@ public MovementDetectedEventArgs(IEnumerable areas) /// Gets a set of rectangular regions where movement was detected. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable Areas { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectionConfiguration.cs index 833a59e0732..d45417db880 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetectionConfiguration.cs @@ -24,6 +24,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.face_recognition /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class MovementDetectionConfiguration : SurveillanceEngineConfiguration { private const string KeyThreshold = "MV_SURVEILLANCE_MOVEMENT_DETECTION_THRESHOLD"; @@ -32,6 +33,7 @@ public class MovementDetectionConfiguration : SurveillanceEngineConfiguration /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultThreshold = 10; /// @@ -39,6 +41,7 @@ public class MovementDetectionConfiguration : SurveillanceEngineConfiguration /// /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public MovementDetectionConfiguration() { } @@ -61,6 +64,7 @@ public MovementDetectionConfiguration() /// is greater than 255. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int Threshold { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetector.cs index e49e994bd7c..ddd689b9653 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/MovementDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/MovementDetector.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.image_recognition /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class MovementDetector : SurveillanceEngine { private const string KeyNumberOfRegions = "NUMBER_OF_MOVEMENT_REGIONS"; @@ -38,6 +39,7 @@ public class MovementDetector : SurveillanceEngine /// /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public MovementDetector() : base(MovementDetectedEventType) { } @@ -47,6 +49,7 @@ public MovementDetector() : base(MovementDetectedEventType) /// /// The event handler will be executed on an internal thread. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public event EventHandler Detected; private void RegisterEvent() @@ -88,6 +91,7 @@ private static MovementDetectedEventArgs CreateMovementDetectedEventArgs(IntPtr /// The has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void AddSource(SurveillanceSource source) { AddSource(source, null); @@ -106,6 +110,7 @@ public void AddSource(SurveillanceSource source) /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void AddSource(SurveillanceSource source, MovementDetectionConfiguration config) { RegisterEvent(); diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetectionResult.cs b/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetectionResult.cs index 9922341cf7a..faec5aa6c04 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetectionResult.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetectionResult.cs @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -using System.Collections.ObjectModel; +using System; namespace Tizen.Multimedia.Vision { @@ -22,6 +22,7 @@ namespace Tizen.Multimedia.Vision /// . /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class ObjectDetectionResult { internal ObjectDetectionResult(int indice, string name, float confidence, @@ -37,24 +38,28 @@ internal ObjectDetectionResult(int indice, string name, float confidence, /// Gets the indice of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int Indice { get; } /// /// Gets the name of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string Name { get; } /// /// Gets the confidence of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public float Confidence { get; } /// /// Gets the location of detected object. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle Location { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetector.cs index 31caef671e1..4b356a416c8 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/ObjectDetector.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// Provides the ability to detect objects and get its locations on image source using inference engine. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class ObjectDetector { /// @@ -46,6 +47,7 @@ public static class ObjectDetector /// The caller has no required privilege. /// /// 6 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task> DetectAsync(MediaVisionSource source, InferenceModelConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectedEventArgs.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectedEventArgs.cs index 70d4a09e83f..027ed74beb2 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectedEventArgs.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectedEventArgs.cs @@ -23,12 +23,14 @@ namespace Tizen.Multimedia.Vision /// Provides data for the event. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonAppearanceDetectedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonAppearanceDetectedEventArgs(IEnumerable appeared, IEnumerable disappeared, IEnumerable tracked) { @@ -41,18 +43,21 @@ public PersonAppearanceDetectedEventArgs(IEnumerable appeared, /// Gets a set of rectangular regions where appearances of the persons were detected. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable AppearanceAreas { get; } /// /// Gets a set of rectangular regions where disappearances of the persons were detected. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable DisappearanceAreas { get; } /// /// Gets a set of rectangular regions where persons were tracked. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable TrackedAreas { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectionConfiguration.cs index 4a713770047..29a2407cfa0 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetectionConfiguration.cs @@ -24,6 +24,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.face_recognition /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonAppearanceDetectionConfiguration : SurveillanceEngineConfiguration { private const string KeySkipFramesCount = "MV_SURVEILLANCE_SKIP_FRAMES_COUNT"; @@ -32,6 +33,7 @@ public class PersonAppearanceDetectionConfiguration : SurveillanceEngineConfigur /// A read-only field that represents the default value of . /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static readonly int DefaultSkipFramesCount = 0; /// @@ -39,6 +41,7 @@ public class PersonAppearanceDetectionConfiguration : SurveillanceEngineConfigur /// /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonAppearanceDetectionConfiguration() { } @@ -57,6 +60,7 @@ public PersonAppearanceDetectionConfiguration() /// is less than zero. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int SkipFramesCount { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetector.cs index d6c4de3c17c..4525a08298c 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonAppearanceDetector.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.image_recognition /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonAppearanceDetector : SurveillanceEngine { private const string KeyAppearedNumber = "NUMBER_OF_APPEARED_PERSONS"; @@ -42,6 +43,7 @@ public class PersonAppearanceDetector : SurveillanceEngine /// /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonAppearanceDetector() : base(PersonAppearanceEventType) { } @@ -51,6 +53,7 @@ public PersonAppearanceDetector() : base(PersonAppearanceEventType) /// /// The event handler will be executed on an internal thread. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public event EventHandler Detected; private void RegisterEvent() @@ -93,6 +96,7 @@ private static Rectangle[] GetResultAreas(IntPtr result, string countKey, string /// The has already been disposed of. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void AddSource(SurveillanceSource source) { AddSource(source, null); @@ -111,6 +115,7 @@ public void AddSource(SurveillanceSource source) /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void AddSource(SurveillanceSource source, PersonAppearanceDetectionConfiguration config) { RegisterEvent(); diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionConfiguration.cs index 792320d4aa6..88a2c435c2f 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionConfiguration.cs @@ -24,6 +24,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.face_recognition /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonRecognitionConfiguration : SurveillanceEngineConfiguration { private const string KeyFaceRecognitionModelFilePath = "MV_SURVEILLANCE_FACE_RECOGNITION_MODEL_FILE_PATH"; @@ -35,6 +36,7 @@ public class PersonRecognitionConfiguration : SurveillanceEngineConfiguration /// is null. /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonRecognitionConfiguration(string modelPath) { FaceRecognitionModelPath = modelPath; @@ -46,6 +48,7 @@ public PersonRecognitionConfiguration(string modelPath) /// is null. /// The already has been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public string FaceRecognitionModelPath { get diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionInfo.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionInfo.cs index eb622bb0243..970f3456525 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionInfo.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognitionInfo.cs @@ -14,18 +14,22 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// /// Represents a result of instances. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonRecognitionInfo { /// /// Initializes a new instance of the class. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonRecognitionInfo(Rectangle area, int label, double confidence) { Area = area; @@ -37,18 +41,21 @@ public PersonRecognitionInfo(Rectangle area, int label, double confidence) /// Gets the rectangular location where person face was recognized. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Rectangle Area { get; } /// /// Gets the label that correspond to the recognized person. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public int Label { get; } /// /// Gets the confidence value that correspond to the recognized person. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public double Confidence { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizedEventArgs.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizedEventArgs.cs index e28e981a52b..1009d4d6ac9 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizedEventArgs.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizedEventArgs.cs @@ -23,12 +23,14 @@ namespace Tizen.Multimedia.Vision /// Provides data for the event. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonRecognizedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonRecognizedEventArgs(IEnumerable recognitionInfo) { Recognitions = recognitionInfo; @@ -38,6 +40,7 @@ public PersonRecognizedEventArgs(IEnumerable recognitionI /// Gets a set of information that correspond to the recognized persons. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public IEnumerable Recognitions { get; } } } diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizer.cs b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizer.cs index 69c4e25e65f..cd963373ce3 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizer.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PersonRecognizer.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.image_recognition /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class PersonRecognizer : SurveillanceEngine { private const string KeyCount = "NUMBER_OF_PERSONS"; @@ -40,6 +41,7 @@ public class PersonRecognizer : SurveillanceEngine /// /// The required features are not supported. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public PersonRecognizer() : base(PersonRecognizedEventType) { @@ -51,6 +53,7 @@ public PersonRecognizer() : base(PersonRecognizedEventType) /// The event handler will be executed on an internal thread. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public event EventHandler Recognized; private void RegisterEvent() @@ -114,6 +117,7 @@ private PersonRecognizedEventArgs CreatePersonRecognizedEventArgs(IntPtr result) /// The model file is not supported format or file. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void AddSource(SurveillanceSource source, PersonRecognitionConfiguration config) { if (config == null) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/PoseLandmarkDetector.cs b/src/Tizen.Multimedia.Vision/MediaVision/PoseLandmarkDetector.cs index 1ff688a221e..0e01df90db6 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/PoseLandmarkDetector.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/PoseLandmarkDetector.cs @@ -30,12 +30,14 @@ namespace Tizen.Multimedia.Vision /// Represents a Landmark in pose detection. /// /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public struct Landmark { /// /// Represents a location in the 2D space. /// /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Point Location { get; @@ -45,6 +47,7 @@ public Point Location /// Confidence score of point. /// /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public float Score { get; @@ -55,6 +58,7 @@ public float Score /// Provides the ability to detect Pose landmarks on image source using inference engine. /// /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static class PoseLandmarkDetector { /// @@ -77,6 +81,7 @@ public static class PoseLandmarkDetector /// The caller has no required privilege. /// /// 9 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public static async Task DetectAsync(MediaVisionSource source, InferenceModelConfiguration config) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceConfiguration.cs index 1fadd6d4063..2bbc1406071 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceConfiguration.cs @@ -14,6 +14,8 @@ * limitations under the License. */ +using System; + namespace Tizen.Multimedia.Vision { /// @@ -22,6 +24,7 @@ namespace Tizen.Multimedia.Vision /// http://tizen.org/feature/vision.face_recognition /// http://tizen.org/feature/vision.image_recognition /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class SurveillanceEngineConfiguration : EngineConfiguration { internal SurveillanceEngineConfiguration() : base("face_recognition", "image_recognition") diff --git a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceEngine.cs b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceEngine.cs index cfbd25abe22..6a05ff2142f 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceEngine.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceEngine.cs @@ -30,6 +30,7 @@ namespace Tizen.Multimedia.Vision /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public abstract class SurveillanceEngine : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -70,6 +71,7 @@ internal IntPtr Handle /// /// The has already been disposed of. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public Point[] Roi { get @@ -123,6 +125,7 @@ internal void InvokeAddSource(SurveillanceSource source, SurveillanceEngineConfi /// The has already been disposed of. /// has not been added. /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void RemoveSource(SurveillanceSource source) { if (source == null) @@ -136,6 +139,7 @@ public void RemoveSource(SurveillanceSource source) /// Releases all the resources used by the object. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Dispose() { Dispose(true); @@ -149,6 +153,7 @@ public void Dispose() /// true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] protected virtual void Dispose(bool disposing) { if (_disposed) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceSource.cs b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceSource.cs index 7a1eb5031d5..815cc78e1c9 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceSource.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/SurveillanceSource.cs @@ -26,6 +26,7 @@ namespace Tizen.Multimedia.Vision /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public class SurveillanceSource { private static int _nextStreamId = int.MinValue; @@ -47,6 +48,7 @@ private static int GetNextStreamId() /// Initializes a new instance of the class. /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public SurveillanceSource() { StreamId = GetNextStreamId(); @@ -65,6 +67,7 @@ public SurveillanceSource() /// /// /// 4 + [Obsolete("Deprecated since API12. Will be removed in API15.")] public void Push(MediaVisionSource source) { if (source == null)