SET(CMAKE_INSTALL_PREFIX /usr)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-# Configure for porting layer:
-
-option(MEDIA_VISION_INFERENCE_LICENSE_PORT
- "Turn on building of licensed port of the inferece module (if OFF - open port will be built)." OFF)
-
-
set(MV_COMMON_LIB_NAME "mv_common")
set(MV_BARCODE_DETECTOR_LIB_NAME "mv_barcode_detector" CACHE STRING
"Name of the library will be built for barcode detecting module (without extension).")
SET(INC_IMAGE "${PROJECT_SOURCE_DIR}/mv_image/image/include")
SET(INC_FACE "${PROJECT_SOURCE_DIR}/mv_face/face/include")
SET(INC_SURVEILLANCE "${PROJECT_SOURCE_DIR}/mv_surveillance/surveillance/include")
-
-if(MEDIA_VISION_INFERENCE_LICENSE_PORT)
- add_definitions(-DMEDIA_VISION_INFERENCE_LICENSE_PORT)
- SET(INC_INFERENCE "${PROJECT_SOURCE_DIR}/mv_machine_learning/mv_inference/inference_lic/include")
-else()
- SET(INC_INFERENCE "${PROJECT_SOURCE_DIR}/mv_machine_learning/mv_inference/inference/include")
-endif()
+SET(INC_INFERENCE "${PROJECT_SOURCE_DIR}/mv_machine_learning/mv_inference/inference/include")
INCLUDE_DIRECTORIES(${INC_DIR}
${INC_COMMON}
#include "mv_private.h"
#include "mv_inference.h"
-
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
-/* Include headers of licensed inference module here. */
-//#include "mv_inference_lic.h"
-
-#else
-
-/* Include headers of open inference module here. */
#include "mv_inference_open.h"
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
/**
* @file mv_inference.c
* @brief This file contains Media Vision inference module.
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- //ret = mv_inference_create_lic(infer);
-
-#else
-
ret = mv_inference_create_open(infer);
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
}
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- //ret = mv_inference_destroy_lic(infer);
-
-#else
-
ret = mv_inference_destroy_open(infer);
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
}
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- //ret = mv_inference_configure_lic(infer);
-
-#else
-
ret = mv_inference_configure_engine_open(infer, engine_config);
if (ret != MEDIA_VISION_ERROR_NONE) {
LOGE("Fail to configure engine and target");
return ret;
}
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
}
mv_engine_config_h engine_config = mv_inference_get_engine_config(infer);
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- //ret = mv_inference_prepare_lic(infer);
-
-#else
-
ret = mv_inference_configure_model_open(infer, engine_config);
if (ret != MEDIA_VISION_ERROR_NONE) {
LOGE("Fail to configure model");
ret = mv_inference_prepare_open(infer);
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
}
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENCE_PORT
-
- // ret = mv_inference_foreach_supported_engine_lic(infer, callback, user_data);
-
-#else
-
ret = mv_inference_foreach_supported_engine_open(infer, callback,
user_data);
-#endif
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- /*
- ret = mv_inference_image_classify_lic(source, infer, classified_cb, user_data);
- */
-
-#else
-
ret = mv_inference_image_classify_open(source, infer, roi, classified_cb,
user_data);
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENSE_PORT
-
- /*
- ret = mv_inference_object_detect_lic(source, infer, classified_cb, user_data);
- */
-
-#else
-
ret = mv_inference_object_detect_open(source, infer, detected_cb,
user_data);
-#endif /* MEDIA_VISION_INFERENCE_LICENSE_PORT */
-
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENCE_PORT
- /*
- ret = mv_inference_face_detect_lic(source, infer, detected_cb, user_data);
- */
-#else
-
ret = mv_inference_face_detect_open(source, infer, detected_cb, user_data);
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
-
-#endif
}
int mv_inference_facial_landmark_detect(
int ret = MEDIA_VISION_ERROR_NONE;
-#ifdef MEDIA_VISION_INFERENCE_LICENCE_PORT
- /*
- ret = mv_inference_facial_landmark_detect_lic(source, infer, detected_cb, user_data);
- */
-#else
-
ret = mv_inference_facial_landmark_detect_open(source, infer, roi,
detected_cb, user_data);
MEDIA_VISION_FUNCTION_LEAVE();
return ret;
-
-#endif
}
int mv_inference_pose_landmark_detect(