face_loadFacePoints
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
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;filenameThe filename of file contains the facial landmarks data.
pointsOutput destination, filled by the native operation. The loaded facial landmark points.
offsetAn 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.