3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.tizenopensource.org/license
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
21 using namespace Tizen::Uix::Vision;
22 using namespace Tizen::Graphics;
24 FaceData::FaceData(void)
26 , __isFaceDetected(false)
27 , __isThreadCompleted(true)
31 FaceData::~FaceData(void)
36 FaceData::SetRectangle(Tizen::Graphics::Rectangle rect)
38 __faceRect.x = rect.x;
39 __faceRect.y = rect.y;
40 __faceRect.width = rect.width;
41 __faceRect.height = rect.height;
45 FaceData::SetSimilarity(int similarity)
47 __similarity = similarity;
51 FaceData::SetFaceDetected(bool isFaceDetect)
53 __isFaceDetected = isFaceDetect;
57 FaceData::SetThreadCompleted(bool isThreadComplete)
59 __isThreadCompleted = isThreadComplete;
62 Tizen::Graphics::Rectangle
63 FaceData::GetRectangle(void)
69 FaceData::GetSimilarity(void)
75 FaceData::GetFaceDetected(void)
77 return __isFaceDetected;
81 FaceData::GetThreadCompleted(void)
83 return __isThreadCompleted;