2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Runtime.InteropServices;
19 using static Interop.Camera;
21 namespace Tizen.Multimedia
24 /// The class contains the details of the detected face.
26 /// <since_tizen> 3 </since_tizen>
27 public class FaceDetectionData
29 internal FaceDetectionData(IntPtr ptr)
31 var unmanagedStruct = Marshal.PtrToStructure<DetectedFaceStruct>(ptr);
33 Id = unmanagedStruct.Id;
34 Score = unmanagedStruct.Score;
35 X = unmanagedStruct.X;
36 Y = unmanagedStruct.Y;
37 Width = unmanagedStruct.Width;
38 Height = unmanagedStruct.Height;
42 /// The ID of each face.
44 /// <since_tizen> 3 </since_tizen>
45 public int Id { get; }
48 /// The confidence level for the detection of the face.
50 /// <since_tizen> 3 </since_tizen>
51 public int Score { get; }
54 /// The X co-ordinate of the face.
56 /// <since_tizen> 3 </since_tizen>
60 /// The Y co-ordinate of the face.
62 /// <since_tizen> 3 </since_tizen>
66 /// The width of the face.
68 /// <since_tizen> 3 </since_tizen>
69 public int Width { get; }
72 /// The height of the face.
74 /// <since_tizen> 3 </since_tizen>
75 public int Height { get; }