Skip to content

Instantly share code, notes, and snippets.

@cyrusbehr
Created October 9, 2020 23:28
Show Gist options
  • Select an option

  • Save cyrusbehr/64679f00cfc4bf494676323d47facd07 to your computer and use it in GitHub Desktop.

Select an option

Save cyrusbehr/64679f00cfc4bf494676323d47facd07 to your computer and use it in GitHub Desktop.
Sample doxygen syntax
struct FaceBoxAndLandmarks {
/** The top left corner of the bounding box */
Point topLeft;
/** The bottom right corner of the bounding box */
Point bottomRight;
/** The facial landmark points: left eye, right eye, nose, left mouth corner, right mouth corner */
std::array<Point, 5> landmarks;
};
/**
*
* Detect all the faces in an image and return the corresponding face bounding boxes and landmarks
*
* @param[in] imgPath path to the image which will be used for face detection.
* @param[out] faceDetected indicates if one or more faces were detected in the image.
* @param[out] fbAndLandmarksVec the resulting bounding boxes and landmarks for the detected faces.
* @return error code, see ErrorCode
*/
ErrorCode getFaceBoxAndLandmarks(const std::string& imgPath, bool& faceDetected, std::vector<FaceBoxAndLandmarks>& fbAndLandmarksVec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment