//Add test package related defines here
#define API_NAMESPACE "MEDIA_VISION_ITC"
#define TIMEOUT_CB 15000
-#define VISIONINFERENCEFEATURE "http://tizen.org/feature/vision.inference"
-#define VISIONINFERENCEFACEFEATURE "http://tizen.org/feature/vision.inference.face"
+#define VISIONINFERENCEFEATURE "http://tizen.org/feature/vision.inference"
+#define VISIONTRAININGFEATURE "http://tizen.org/feature/vision.training"
+#define VISIONINFERENCEFACERECOGNITIONFEATURE "http://tizen.org/feature/vision.inference.face_recognition"
+#define VISIONTRAININGFACERECOGNITIONFEATURE "http://tizen.org/feature/vision.training.face_recognition"
#define PATHLEN 1024
g_bMediavisionFaceRecognitionModelCreation = false;
g_bMismatch = false;
- g_bIsFaceRecognitionFeatureSupported = TCTCheckSystemInfoFeatureSupported(VISIONINFERENCEFACEFEATURE, API_NAMESPACE);
+ g_bIsFaceRecognitionFeatureSupported = TCTCheckSystemInfoFeatureSupported(VISIONINFERENCEFEATURE, API_NAMESPACE) &&
+ TCTCheckSystemInfoFeatureSupported(VISIONTRAININGFEATURE, API_NAMESPACE) &&
+ TCTCheckSystemInfoFeatureSupported(VISIONINFERENCEFACERECOGNITIONFEATURE, API_NAMESPACE) &&
+ TCTCheckSystemInfoFeatureSupported(VISIONTRAININGFACERECOGNITIONFEATURE, API_NAMESPACE);
char pszValue[CONFIG_VALUE_LEN_MAX] = { 0, };
static bool is_face_recognition_feature_supported(void)
{
- bool isFaceRecognitionSupported =false;
+ bool isInferenceSupported =false;
+ bool isTrainingSupported =false;
+ bool isInferenceFaceRecognitionSupported =false;
+ bool isTrainingFaceRecognitionSupported =false;
- system_info_get_platform_bool("http://tizen.org/feature/vision.inference.face", &isFaceRecognitionSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.inference", &isInferenceSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.training", &isTrainingSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.inference.face_recognition", &isInferenceFaceRecognitionSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.training.face_recognition", &isTrainingFaceRecognitionSupported);
- if (!isFaceRecognitionSupported)
+ if (!isInferenceSupported || !isTrainingSupported || !isInferenceFaceRecognitionSupported || !isTrainingFaceRecognitionSupported)
printf("Not support face recognition feature.");
- return isFaceRecognitionSupported;
+ return (isInferenceSupported && isTrainingSupported && isInferenceFaceRecognitionSupported && isTrainingFaceRecognitionSupported);
}
/**