diff options
Diffstat (limited to 'include/mv_object_detection_internal.h')
-rw-r--r-- | include/mv_object_detection_internal.h | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/include/mv_object_detection_internal.h b/include/mv_object_detection_internal.h index 54cfa8d5..80d83f22 100644 --- a/include/mv_object_detection_internal.h +++ b/include/mv_object_detection_internal.h @@ -37,50 +37,6 @@ extern "C" { /** * @internal - * @brief Creates a inference handle for object detection object. - * @details Use this function to create a inference handle. After the creation - * the object detection 3d task has to be prepared with - * mv_object_detection_prepare() function to prepare a network - * for the inference. - * - * @since_tizen 9.0 - * - * @remarks The @a infer should be released using mv_object_detection_destroy(). - * - * @param[out] infer The handle to the inference to be created. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * - * @see mv_object_detection_destroy() - * @see mv_object_detection_prepare() - */ -int mv_object_detection_create(mv_object_detection_h *infer); - -/** - * @internal - * @brief Destroys inference handle and releases all its resources. - * - * @since_tizen 9.0 - * - * @param[in] infer The handle to the inference to be destroyed. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * - * @pre Create inference handle by using mv_object_detection_create() - * - * @see mv_object_detection_create() - */ -int mv_object_detection_destroy(mv_object_detection_h infer); - -/** - * @internal * @brief Set user-given model information. * @details Use this function to change the model information instead of default one after calling @ref mv_object_detection_create(). * @@ -104,150 +60,6 @@ int mv_object_detection_set_model(mv_object_detection_h handle, const char *mode /** * @internal - * @brief Configures the backend for the object detection inference. - * - * @since_tizen 9.0 - * - * @param [in] infer The handle to the inference - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - */ -int mv_object_detection_configure(mv_object_detection_h infer); - -/** - * @internal - * @brief Prepares the object detection inference - * @details Use this function to prepare the object detection inference based on - * the configured network. - * - * @since_tizen 9.0 - * - * @param[in] infer The handle to the inference. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_PERMISSION_DENIED Permission denied - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_DATA Invalid model data - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Not supported format - */ -int mv_object_detection_prepare(mv_object_detection_h infer); - -/** - * @internal - * @brief Performs the object detection inference on the @a source. - * - * @since_tizen 9.0 - * @remarks This function is synchronous and may take considerable time to run. - * - * @param[in] source The handle to the source of the media - * @param[in] infer The handle to the inference - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INTERNAL Internal error - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace - * isn't supported - * - * @pre Create a source handle by calling mv_create_source() - * @pre Create an inference handle by calling mv_object_detect_create() - * @pre Prepare an inference by calling mv_object_detect_configure() - * @pre Prepare an inference by calling mv_object_detect_prepare() - */ -int mv_object_detection_inference(mv_object_detection_h infer, mv_source_h source); - -/** - * @internal - * @brief Performs asynchronously the object detection inference on the @a source. - * - * @since_tizen 9.0 - * @remarks This function operates asynchronously, so it returns immediately upon invocation. - * The inference results are inserted into the outgoing queue within the framework - * in the order of processing, and the results can be obtained through mv_object_detection_get_result() - * and mv_object_detection_get_label(). - * - * @param[in] handle The handle to the inference - * @param[in] source The handle to the source of the media - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INTERNAL Internal error - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace - * isn't supported - * - * @pre Create a source handle by calling mv_create_source() - * @pre Create an inference handle by calling mv_object_detect_create() - * @pre Prepare an inference by calling mv_object_detect_configure() - * @pre Prepare an inference by calling mv_object_detect_prepare() - */ -int mv_object_detection_inference_async(mv_object_detection_h handle, mv_source_h source); - -/** - * @internal - * @brief Gets the object detection inference result on the @a source. - * - * @since_tizen 9.0 - * - * @param[in] handle The handle to the inference - * @param[out] frame_number A frame number inferenced. - * @param[out] result_cnt A number of results. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INTERNAL Internal error - * - * @pre Create a source handle by calling mv_create_source() - * @pre Create an inference handle by calling mv_object_detect_create() - * @pre Prepare an inference by calling mv_object_detect_configure() - * @pre Prepare an inference by calling mv_object_detect_prepare() - * @pre Request an inference by calling mv_object_detect_inference() - */ -int mv_object_detection_get_result_count(mv_object_detection_h handle, unsigned long *frame_number, - unsigned int *result_cnt); - -/** - * @internal - * @brief Gets a bound box to detected object region - * - * @since_tizen 9.0 - * - * @param[in] handle The handle to the inference - * @param[in] index A result index. - * @param[out] left An left position array to bound boxes. - * @param[out] top An top position array to bound boxes. - * @param[out] right An right position array to bound boxes. - * @param[out] bottom An bottom position array to bound boxes. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED Not supported - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INTERNAL Internal error - * - * @pre Create a source handle by calling mv_create_source() - * @pre Create an inference handle by calling mv_object_detect_create() - * @pre Prepare an inference by calling mv_object_detect_configure() - * @pre Prepare an inference by calling mv_object_detect_prepare() - * @pre Prepare an inference by calling mv_object_detect_inference() - */ -int mv_object_detection_get_bbox(mv_object_detection_h handle, unsigned int index, int *left, int *top, int *right, - int *bottom); - -/** - * @internal * @brief Set user-given inference engine and device types for inference. * @details Use this function to change the inference engine and device types for inference instead of default ones after calling @ref mv_object_detection_create(). * |