diff options
author | Inki Dae <inki.dae@samsung.com> | 2023-08-23 10:46:19 +0900 |
---|---|---|
committer | Kwanghoon Son <k.son@samsung.com> | 2023-09-04 13:57:02 +0900 |
commit | cd137aa10873b5f77961ae52ecd9cd9e01b44e56 (patch) | |
tree | ff513eb464823c417c91d79fb41af3c3bd69cfe1 /mv_machine_learning/object_detection | |
parent | 13cf2cb1983a2d2f53179b8ba1bfdb10f4d36f27 (diff) | |
download | mediavision-cd137aa10873b5f77961ae52ecd9cd9e01b44e56.tar.gz mediavision-cd137aa10873b5f77961ae52ecd9cd9e01b44e56.tar.bz2 mediavision-cd137aa10873b5f77961ae52ecd9cd9e01b44e56.zip |
mv_machine_learning: drop dead code
[Issue type] : code cleanup
Drop the dead code. mv_face_detection_open.h and mv_object_detection_open.h
files aren't used anymore.
Change-Id: I5cbc98ee87b59c599d2790706dc32d8d8cec2944
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'mv_machine_learning/object_detection')
-rw-r--r-- | mv_machine_learning/object_detection/include/mv_face_detection_open.h | 302 | ||||
-rw-r--r-- | mv_machine_learning/object_detection/include/mv_object_detection_open.h | 333 |
2 files changed, 0 insertions, 635 deletions
diff --git a/mv_machine_learning/object_detection/include/mv_face_detection_open.h b/mv_machine_learning/object_detection/include/mv_face_detection_open.h deleted file mode 100644 index 63cc92d5..00000000 --- a/mv_machine_learning/object_detection/include/mv_face_detection_open.h +++ /dev/null @@ -1,302 +0,0 @@ -/** - * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __MEDIA_VISION_FACE_DETECTION_OPEN_H__ -#define __MEDIA_VISION_FACE_DETECTION_OPEN_H__ - -#include <mv_common.h> -#include <mv_private.h> -#include <mv_face_detection_type.h> - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @brief Create face detection object handle. - * @details Use this function to create an face detection object handle. - * After creation the handle has to be prepared with - * @ref mv_face_detection_prepare_open() function to prepare - * an face detection object. - * - * @since_tizen 8.0 - * - * @param[out] handle The handle to the face detection object to be created - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * - * @post Release @a handle by using - * @ref mv_face_detection_destroy_open() function when it is not needed - * anymore - * - * @see mv_face_detection_destroy_open() - */ -int mv_face_detection_create_open(mv_face_detection_h *handle); - -/** - * @brief Destroy face detection handle and releases all its resources. - * - * @since_tizen 7.0 - * - * @param[in] handle The handle to the face detection object to be destroyed. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * - * @pre Create an face detection handle by using @ref mv_face_detection_create_open() - * - * @see mv_face_detection_create_open() - */ -int mv_face_detection_destroy_open(mv_face_detection_h handle); - -/** - * @brief Set user-given model information. - * @details Use this function to change the model information instead of default one after calling @ref mv_face_detection_create(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the face detection object. - * @param[in] model_name Model name. - * @param[in] model_file Model file name. - * @param[in] meta_type Model meta file name. - * @param[in] label_file Label file name. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a face detection handle by calling @ref mv_face_detection_create() - */ -int mv_face_detection_set_model_open(mv_face_detection_h handle, const char *model_name, const char *model_file, - const char *meta_file, const char *label_file); - -/** - * @brief Configure the backend to the inference handle - * - * @since_tizen 8.0 - * - * @param [in] handle 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_NOT_SUPPORTED Not supported - */ -int mv_face_detection_configure_open(mv_face_detection_h handle); - -/** - * @brief Prepare inference. - * @details Use this function to prepare inference based on - * the configured network. - * - * @since_tizen 8.0 - * - * @param [in] handle 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_INVALID_DATA Invalid model data - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - */ -int mv_face_detection_prepare_open(mv_face_detection_h handle); - -/** - * - * @brief Inference with a given face on the @a source - * @details Use this function to inference with a given source. - * - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the face detection object. - * @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_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace - * isn't supported - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * - * @pre Create a source handle by calling @ref mv_create_source() - * @pre Create an face detection handle by calling @ref mv_face_detection_create_open() - * @pre Prepare an inference by calling mv_object_detect_configure_open() - * @pre Prepare an face detection by calling @ref mv_face_detection_prepare_open() - */ -int mv_face_detection_inference_open(mv_face_detection_h handle, mv_source_h source); - -/** - * @brief Gets the face detection inference result on the @a source. - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the inference - * @param[out] number_of_objects A number of objects detected. - * @param[out] indices Label indices to detected objects. - * @param[out] confidences Probability to detected objects. - * @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_open() - * @pre Prepare an inference by calling mv_object_detect_configure_open() - * @pre Prepare an inference by calling mv_object_detect_prepare_open() - * @pre Prepare an inference by calling mv_object_detect_inference_open() - */ -int mv_face_detection_get_result_open(mv_face_detection_h handle, unsigned int *number_of_objects, - const unsigned int **indices, const float **confidences, const int **left, - const int **top, const int **right, const int **bottom); - -/** - * @brief Gets the label string to a given index. - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the inference - * @param[in] index Label index to get the label string. - * @param[out] label Label string to a given index. - * - * @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_face_detection_get_label_open(mv_face_detection_h handle, const unsigned int index, const char **label); - -/** - * @brief Sets user-given backend and device types for inference. - * @details Use this function to change the backend and device types for inference instead of default ones after calling @ref mv_face_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] backend_type A string of backend type. - * @param[in] device_type A string of device type. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_face_detection_create_open() - */ -int mv_face_detection_set_engine_open(mv_face_detection_h handle, const char *backend_type, const char *device_type); - -/** - * @brief Gets a number of inference engines available for image classification task API. - * @details Use this function to get how many inference engines are supported for image classification after calling @ref mv_face_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[out] engine_count A number of inference engines available for image classification API. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_face_detection_create_open() - */ -int mv_face_detection_get_engine_count_open(mv_face_detection_h handle, unsigned int *engine_count); - -/** - * @brief Gets engine type to a given inference engine index. - * @details Use this function to get inference engine type with a given engine index after calling @ref mv_face_detection_get_engine_count(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_index A inference engine index for getting the inference engine type. - * @param[out] engine_type A string to inference engine. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Get a number of inference engines available for image classification task API by calling @ref mv_face_detection_get_engine_count() - */ -int mv_face_detection_get_engine_type_open(mv_face_detection_h handle, const unsigned int engine_index, - char **engine_type); - -/** - * @brief Gets a number of device types available to a given inference engine. - * @details Use this function to get how many device types are supported for a given inference engine after calling @ref mv_face_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_type A inference engine string. - * @param[out] device_count A number of device types available for a given inference engine. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_face_detection_create_open() - */ -int mv_face_detection_get_device_count_open(mv_face_detection_h handle, const char *engine_type, - unsigned int *device_count); - -/** - * @brief Gets device type list available. - * @details Use this function to get what device types are supported for current inference engine type after calling @ref mv_face_detection_configure(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_type A inference engine string. - * @param[in] device_index A device index for getting the device type. - * @param[out] device_type A string to device type. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_face_detection_create_open() - * @pre Configure image classification task by calling @ref mv_face_detection_configure_open() - */ -int mv_face_detection_get_device_type_open(mv_face_detection_h handle, const char *engine_type, - const unsigned int device_index, char **device_type); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __MEDIA_VISION_INFERENCE_OPEN_H__ */ diff --git a/mv_machine_learning/object_detection/include/mv_object_detection_open.h b/mv_machine_learning/object_detection/include/mv_object_detection_open.h deleted file mode 100644 index 4a6b5b97..00000000 --- a/mv_machine_learning/object_detection/include/mv_object_detection_open.h +++ /dev/null @@ -1,333 +0,0 @@ -/** - * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __MEDIA_VISION_OBJECT_DETECTION_OPEN_H__ -#define __MEDIA_VISION_OBJECT_DETECTION_OPEN_H__ - -#include <mv_common.h> -#include <mv_private.h> -#include <mv_object_detection_type.h> - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @brief Create object detection object handle. - * @details Use this function to create an object detection object handle. - * After creation the handle has to be prepared with - * @ref mv_object_detection_prepare_open() function to prepare - * an object detection object. - * - * @since_tizen 7.0 - * - * @param[out] out_handle The handle to the object detection object to be created - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * - * @post Release @a handle by using - * @ref mv_object_detection_destroy_open() function when it is not needed - * anymore - * - * @see mv_object_detection_destroy_open() - */ -int mv_object_detection_create_open(mv_object_detection_h *out_handle); - -/** - * @brief Destroy object detection handle and releases all its resources. - * - * @since_tizen 7.0 - * - * @param[in] handle The handle to the object detection object to be destroyed. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * - * @pre Create an object detection handle by using @ref mv_object_detection_create_open() - * - * @see mv_object_detection_create_open() - */ -int mv_object_detection_destroy_open(mv_object_detection_h handle); - -/** - * @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(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the object detection object. - * @param[in] model_name Model name. - * @param[in] model_file Model file name. - * @param[in] meta_type Model meta file name. - * @param[in] label_file Label file name. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a object detection handle by calling @ref mv_object_detection_create() - */ -int mv_object_detection_set_model_open(mv_object_detection_h handle, const char *model_name, const char *model_file, - const char *meta_file, const char *label_file); - -/** - * @brief Configure the backend to the inference handle - * - * @since_tizen 7.0 - * - * @param [in] handle 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_NOT_SUPPORTED Not supported - */ -int mv_object_detection_configure_open(mv_object_detection_h handle); - -/** - * @brief Prepare inference. - * @details Use this function to prepare inference based on - * the configured network. - * - * @since_tizen 7.0 - * - * @param [in] handle 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_INVALID_DATA Invalid model data - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - */ -int mv_object_detection_prepare_open(mv_object_detection_h handle); - -/** - * - * @brief Inference with a given face on the @a source - * @details Use this function to inference with a given source. - * - * - * @since_tizen 7.0 - * - * @param[in] handle The handle to the object detection object. - * @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_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT Source colorspace - * isn't supported - * @retval #MEDIA_VISION_ERROR_OUT_OF_MEMORY Out of memory - * - * @pre Create a source handle by calling @ref mv_create_source() - * @pre Create an object detection handle by calling @ref mv_object_detection_create_open() - * @pre Prepare an inference by calling mv_object_detect_configure_open() - * @pre Prepare an object detection by calling @ref mv_object_detection_prepare_open() - */ -int mv_object_detection_inference_open(mv_object_detection_h handle, mv_source_h source); - -/** - * @internal - * @brief Performs asynchronously the object detection inference on the @a source. - * - * @since_tizen 7.5 - * @remarks This function operates asynchronously, so it returns immediately upon invocation. - * Therefore, user needs to receive the result though a given callback function. - * - * @param[in] handle The handle to the inference - * @param[in] source The handle to the source of the media - * @param[in] completion_cb A callback which is called internally by the framework - * once the given inference request is completed. - * @param[in] user_data A pointer to user data object. - * - * @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_open(mv_object_detection_h handle, mv_source_h source, - mv_completion_cb completion_cb, void *user_data); - -/** - * @brief Gets the object detection inference result on the @a source. - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the inference - * @param[out] number_of_objects A number of objects detected. - * @param[out] indices Label indices to detected objects. - * @param[out] confidences Probability to detected objects. - * @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_open() - * @pre Prepare an inference by calling mv_object_detect_configure_open() - * @pre Prepare an inference by calling mv_object_detect_prepare_open() - * @pre Prepare an inference by calling mv_object_detect_inference_open() - */ -int mv_object_detection_get_result_open(mv_object_detection_h handle, unsigned int *number_of_objects, - const unsigned int **indices, const float **confidences, const int **left, - const int **top, const int **right, const int **bottom); - -/** - * @brief Gets the label string to a given index. - * - * @since_tizen 8.0 - * - * @param[in] infer The handle to the inference - * @param[in] index Label index to get the label string. - * @param[out] out_label Label string to a given index. - * - * @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_label_open(mv_object_detection_h handle, const unsigned int index, const char **out_label); - -/** - * @brief Set user-given backend and device types for inference. - * @details Use this function to change the backend and device types for inference instead of default ones after calling @ref mv_object_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] backend_type A string of backend type. - * @param[in] device_type A string of device type. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_object_detection_create_open() - */ -int mv_object_detection_set_engine_open(mv_object_detection_h handle, const char *backend_type, - const char *device_type); - -/** - * @brief Get a number of inference engines available for image classification task API. - * @details Use this function to get how many inference engines are supported for image classification after calling @ref mv_object_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[out] engine_count A number of inference engines available for image classification API. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_object_detection_create_open() - */ -int mv_object_detection_get_engine_count_open(mv_object_detection_h handle, unsigned int *engine_count); - -/** - * @brief Get engine type to a given inference engine index. - * @details Use this function to get inference engine type with a given engine index after calling @ref mv_object_detection_get_engine_count(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_index A inference engine index for getting the inference engine type. - * @param[out] engine_type A string to inference engine. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Get a number of inference engines available for image classification task API by calling @ref mv_object_detection_get_engine_count() - */ -int mv_object_detection_get_engine_type_open(mv_object_detection_h handle, const unsigned int engine_index, - char **engine_type); - -/** - * @brief Get a number of device types available to a given inference engine. - * @details Use this function to get how many device types are supported for a given inference engine after calling @ref mv_object_detection_create_open(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_type A inference engine string. - * @param[out] device_count A number of device types available for a given inference engine. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_object_detection_create_open() - */ -int mv_object_detection_get_device_count_open(mv_object_detection_h handle, const char *engine_type, - unsigned int *device_count); - -/** - * @brief Get device type list available. - * @details Use this function to get what device types are supported for current inference engine type after calling @ref mv_object_detection_configure(). - * - * @since_tizen 8.0 - * - * @param[in] handle The handle to the image classification object. - * @param[in] engine_type A inference engine string. - * @param[in] device_index A device index for getting the device type. - * @param[out] device_type A string to device type. - * - * @return @c 0 on success, otherwise a negative error value - * @retval #MEDIA_VISION_ERROR_NONE Successful - * @retval #MEDIA_VISION_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_VISION_ERROR_INVALID_OPERATION Invalid operation - * - * @pre Create a image classification handle by calling @ref mv_object_detection_create_open() - * @pre Configure image classification task by calling @ref mv_object_detection_configure_open() - */ -int mv_object_detection_get_device_type_open(mv_object_detection_h handle, const char *engine_type, - const unsigned int device_index, char **device_type); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __MEDIA_VISION_INFERENCE_OPEN_H__ */ |