summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHyunwoo Kim <hw4444.kim@samsung.com>2012-08-27 15:17:26 +0900
committerHyunwoo Kim <hw4444.kim@samsung.com>2012-08-27 15:17:26 +0900
commit1a0dbda71f40c1e2e3cf5e95462e7b02e341896b (patch)
tree069dc8ff38fa2dd65c520ec472f5eb5106711144 /include
parent45f262118125fbade14623e122c136f0ddf50727 (diff)
downloadface-1a0dbda71f40c1e2e3cf5e95462e7b02e341896b.tar.gz
face-1a0dbda71f40c1e2e3cf5e95462e7b02e341896b.tar.bz2
face-1a0dbda71f40c1e2e3cf5e95462e7b02e341896b.zip
Add api for setting detection_mode
Change-Id: I726bd89a3cab5401ae854dc76240186af10153a8
Diffstat (limited to 'include')
-rwxr-xr-xinclude/face.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/face.h b/include/face.h
index 2ad6bdd..72295a1 100755
--- a/include/face.h
+++ b/include/face.h
@@ -102,6 +102,14 @@ typedef enum {
FACE_IMAGE_TYPE_CONTINIOUS, /**< video frame */
} face_image_type_e;
+/**
+ * @brief Enumerations for face detection option.
+ * @see face_attr_set_detect_mode(), face_attr_get_detect_mode()
+ */
+typedef enum {
+ FACE_DETECT_MODE_FAST, /**< Mode to detect faces as fast as possible even if the accuracy is low */
+ FACE_DETECT_MODE_ROBUST, /**< Mode to detect faces as accurate as possible even if it takes more time */
+} face_detect_mode_e;
/**
* @brief Represents a rectangular region in a coordinate space
@@ -375,6 +383,34 @@ int face_attr_get_detect_inteval(face_h face, int *detect_interval);
/**
+ * @brief Sets detection mode for single image detection
+ * @details Sets detection mode for single image detection
+ * @remarks Interval has to positive number
+ * @param[in] face The facial engine handle
+ * @param[in] detect_mode Detection mode
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #FACE_ERROR_NONE Successful
+ * @retval #FACE_ERROR_INVALID_PARAMTER Invalid parameter
+ * @retval #FACE_ERROR_ENGINE_NOT_FOUND Facial engine not found
+ * @see face_attr_get_detect_mode()
+ */
+int face_attr_set_detect_mode(face_h face, face_detect_mode_e detect_mode);
+
+/**
+ * @brief Gets detection mode for single image detection
+ * @details Sets detection mode for single image detection
+ * @param[in] face The facial engine handle
+ * @param[out] detect_mode Detection mode
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #FACE_ERROR_NONE Successful
+ * @retval #FACE_ERROR_INVALID_PARAMTER Invalid parameter
+ * @retval #FACE_ERROR_ENGINE_NOT_FOUND Facial engine not found
+ * @see face_attr_set_detect_mode()
+ */
+int face_attr_get_detect_mode(face_h face, face_detect_mode_e *detect_mode);
+
+
+/**
* @brief Detects faces from the image data.
* @param[in] face The facial engine handle
* @param[in] image_type The type of the image