img_hash_pHash
import { img_hash_pHash } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSinputArr, outputArr
FUNCTIONimg_hash_pHash
RETURN TYPEvoid
Computes pHash value of the input image
img_hash_pHash(inputArr: Mat, outputArr: Mat): void;inputArrinput image want to compute hash value, type should be CV_8UC4, CV_8UC3, CV_8UC1.
outputArrOutput destination, filled by the native operation. Hash value of input, it will contain 8 uchar value
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.