{
printf("capi-media-vision 3d tests STARTUP is launched\n");
- system_info_get_platform_bool(MV3D_DEPTH_FEATURE, &gIsMv3dDepthSupported);
- system_info_get_platform_bool(MV3D_POINTCLOUD_FEATURE, &gIsMv3dPointCloudSupported);
-
- if (gIsMv3dDepthSupported || gIsMv3dPointCloudSupported)
- gIsMv3dSupported = true;
- else
- gIsMv3dSupported = false;
-
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
+ return;
}
+ system_info_get_platform_bool(MV3D_DEPTH_FEATURE, &gIsMv3dDepthSupported);
+ system_info_get_platform_bool(MV3D_POINTCLOUD_FEATURE, &gIsMv3dPointCloudSupported);
+
+ if (gIsMv3dDepthSupported || gIsMv3dPointCloudSupported)
+ gIsMv3dSupported = true;
+ else
+ gIsMv3dSupported = false;
+
gStartupError = mv_create_engine_config(&gEngineConfigHandle);
if (MEDIA_VISION_ERROR_NONE != gStartupError) {
gEngineConfigHandle = NULL;
{
printf("capi-media-vision tests STARTUP is launched\n");
- bool isBarcodeDetectionSupported = false;
- bool isBarcodeGenerationSupported = false;
-
- system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_detection", &isBarcodeDetectionSupported);
- system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_generation", &isBarcodeGenerationSupported);
-
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
PRINT_UTC_LOG("[Line: %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received = %s\\n", __LINE__, API_NAMESPACE, pszValue);
snprintf(test_data_path, path_size, "%s/data", pszValue);
} else {
PRINT_UTC_LOG("[Line: %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
+ return;
}
+ bool isBarcodeDetectionSupported = false;
+ bool isBarcodeGenerationSupported = false;
+
+ system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_detection", &isBarcodeDetectionSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_generation", &isBarcodeGenerationSupported);
if (isBarcodeDetectionSupported || isBarcodeGenerationSupported)
isVisionSupported = true;
{
printf("capi-media-vision mv_face tests STARTUP is launched\n");
- bool isFaceRecognitionSupported = false;
-
- system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported);
-
- if (isFaceRecognitionSupported)
- isVisionSupported = true;
- else
- isVisionSupported = false;
-
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
snprintf(path_to_rec_model, strlen(pszValue)+strlen("/res/res/model/test_rec_model")+1, "%s/res/res/model/test_rec_model", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
+ return;
}
+
+ bool isFaceRecognitionSupported = false;
+
+ system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported);
+
+ if (isFaceRecognitionSupported)
+ isVisionSupported = true;
+ else
+ isVisionSupported = false;
+
printf("capi-media-vision mv_face tests STARTUP is completed\n");
}
{
printf("capi-media-vision mv_image tests STARTUP is launched\n");
- bool isImageRecognitionSupported = false;
- system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported);
-
- if (isImageRecognitionSupported)
- isVisionSupported = true;
- else
- isVisionSupported = false;
-
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
snprintf(pInternalDataPath, strlen(pszValue)+strlen("/data")+1, "%s/data", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
+ return;
}
+ bool isImageRecognitionSupported = false;
+ system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported);
+
+ if (isImageRecognitionSupported)
+ isVisionSupported = true;
+ else
+ isVisionSupported = false;
+
gStartupError = mv_image_tracking_model_create(&g_tracking_model);
if (MEDIA_VISION_ERROR_NONE != gStartupError) {
g_tracking_model = NULL;
*/
void utc_capi_media_vision_surveillance_startup(void)
{
- bool isFaceRecognitionSupported = false;
- bool isImageRecognitionSupported = false;
-
printf("capi-media-vision surveillance tests STARTUP is launched\n");
- system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported);
- system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported);
-
- if (isFaceRecognitionSupported || isImageRecognitionSupported)
- isVisionSupported = true;
- else
- isVisionSupported = false;
-
char pszValue[CONFIG_VALUE_LEN_MAX] = {0,};
if (true == GetValueForTCTSetting("DEVICE_SUITE_TARGET_30", pszValue, API_NAMESPACE)) {
PRINT_UTC_LOG("[Line : %d][%s] 'DEVICE_SUITE_TARGET_30' Values Received %s\\n", __LINE__, API_NAMESPACE, pszValue);
snprintf(pInternalStoragePath, strlen(pszValue)+1, "%s", pszValue);
} else {
PRINT_UTC_LOG("[Line : %d][%s] GetValueForTCTSetting returned error for 'DEVICE_SUITE_TARGET_30'\\n", __LINE__, API_NAMESPACE);
+ return;
}
+ bool isFaceRecognitionSupported = false;
+ bool isImageRecognitionSupported = false;
+
+ system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported);
+ system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported);
+
+ if (isFaceRecognitionSupported || isImageRecognitionSupported)
+ isVisionSupported = true;
+ else
+ isVisionSupported = false;
+
gStartupError = MEDIA_VISION_ERROR_NONE;
gStartupError = mv_surveillance_event_trigger_create(