img_hash_PHash
import { img_hash_PHash } 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 img_hash_ImgHashBase.
pHash
Slower than average_hash, but tolerant of minor modifications
This algorithm can combat more variation than averageHash, for more details please refer to [lookslikeit]
Constructors and members
static create
Create an owned img_hash_PHash instance with the supplied configuration.
pHash
create(): img_hash_PHash | null;The img_hash_PHash | null result.
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.
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.