[−][src]Function opencv::face::draw_facemarks
pub fn draw_facemarks(
image: &mut dyn ToInputOutputArray,
points: &dyn ToInputArray,
color: Scalar
) -> Result<()>
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)