Skip to content

face_loadFacePoints

facefunctionOpenCV 5.0.0
import { face_loadFacePoints } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSfilename, points, offset
FUNCTIONface_loadFacePoints
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

A utility to load facial landmark information from a given file.

std::vector<Point2f> points;
face::loadFacePoints("filename.txt", points, 0.0f);

The annotation file should follow the default format which is

version: 1
n_points:  68
{
212.716603 499.771793
230.232816 566.290071
...
}

where n_points is the number of points considered and each point is represented as its position in x and y.

face_loadFacePoints(filename: EmbindString, points: Mat, offset: number): boolean;
2 available overloads
face_loadFacePoints(filename: EmbindString, points: Mat): boolean;
face_loadFacePoints(filename: EmbindString, points: Mat, offset: number): boolean;
filename

The filename of file contains the facial landmarks data.

points

Output destination, filled by the native operation. The loaded facial landmark points.

offset

An offset value to adjust the loaded points.

<B>Example of usage</B>

Returns

The boolean result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.