face_BIF
import { face_BIF } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.
Implementation of bio-inspired features (BIF) from the paper: Guo, Guodong, et al. "Human age estimation using bio-inspired features." Computer Vision and Pattern Recognition, 2009. CVPR 2009.
Constructors and members
static create
Create an owned face_BIF instance with the supplied configuration.
Implementation of bio-inspired features (BIF) from the paper: Guo, Guodong, et al. "Human age estimation using bio-inspired features." Computer Vision and Pattern Recognition, 2009. CVPR 2009.
create(num_bands: number, num_rotations: number): face_BIF | null;3 available overloads
create(): face_BIF | null;create(num_bands: number): face_BIF | null;create(num_bands: number, num_rotations: number): face_BIF | null;num_bandsThe number of filter bands (<=8) used for computing BIF.
num_rotationsThe number of image rotations for computing BIF.
Object for computing BIF.
clone
Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.
clone(): this;The this result.
getNumBands
Return the num bands configured on this face_BIF object.
getNumBands(): number;The number of filter bands used for computing BIF.
getNumRotations
Return the num rotations configured on this face_BIF object.
getNumRotations(): number;The number of image rotations.
compute
Computes features sby input image.
compute(image: Mat, features: Mat): void;imageInput image (CV_32FC1).
featuresOutput destination, filled by the native operation. Feature vector (CV_32FC1).
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.