pub fn draw_facemarks(
image: &mut impl ToInputOutputArray,
points: &impl ToInputArray,
color: Scalar,
) -> Result<()>Expand description
Utility to draw the detected facial landmark points
§Parameters
- image: The input image to be processed.
- points: Contains the data of points which will be drawn.
- color: The color of points in BGR format represented by cv::Scalar.
Example of usage
std::vector<Rect> faces;
std::vector<std::vector<Point2f> > landmarks;
facemark->getFaces(img, faces);
facemark->fit(img, faces, landmarks);
for(int j=0;j<rects.size();j++){
face::drawFacemarks(frame, landmarks[j], Scalar(0,0,255));
}§C++ default parameters
- color: Scalar(255,0,0)