2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
20 * @file FUixVision_ImageRecognizerImpl.h
21 * @brief This is the header file for the %Tizen::Uix::_ImageRecognizerImpl class.
25 #ifndef _FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_
26 #define _FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_
28 #include <FUixVisionImageObject.h>
29 #include <FUixVisionImageRecognizer.h>
30 #include "ImageRecognizer.h"
31 #include "ImageFeatureManager.h"
34 namespace Tizen { namespace Uix { namespace Vision
37 static const int MAX_TRACKABLE_OBJECTS = 10;
39 class _ImageRecognizerImpl
42 _ImageRecognizerImpl(void);
43 ~_ImageRecognizerImpl(void);
45 static _ImageRecognizerImpl* GetInstance(ImageRecognizer& imageRecognizer);
46 static const _ImageRecognizerImpl* GetInstance(const ImageRecognizer& imageRecognizer);
48 void SetMultiTracking(bool useMultiTracking);
49 bool SetImageSize(unsigned int width, unsigned int height);
50 void SetSceneTransform(const float* left, const float* right);
51 bool SetImageDatabase(const Tizen::Uix::Vision::ImageFeatureManager* imgFMan);
52 int ProcessImage(const unsigned char* frame);
53 void FillObjectStorage(void);
55 const ImageObject* GetRecognizedObjectBegin(void) const;
56 const ImageObject* GetRecognizedObjectEnd(void) const;
58 int GetRecognizedObjectsCount(void);
59 const ImageObject* GetRecognizedObject(int index);
62 _ImageRecognizerImpl(const _ImageRecognizerImpl&);
63 _ImageRecognizerImpl& operator=(const _ImageRecognizerImpl&);
64 ImageObject* __objectStorage;//[MAX_TRACKABLE_OBJECTS];
65 int __objectStorageSize;
66 sari2::ImageRecognizer __imageRecognizer;
67 sari2::ImageFeatureManager __featureManager;
70 } } } //Tizen::Uix::Vision
72 #endif //_FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_