ImageEn, unit IEVision

TIEVisionImageHasher.compute

TIEVisionImageHasher.compute

Declaration

function compute(image: TIEVisionImage): TIEVisionVectorByte; safecall;

Description

Calculates the perceptual hash of an image. The size of the hash depends on the algorithm.
The image can be gray, color (with or without alpha), 1-bit or 16-bit. The alpha channel is ignored.
Use IEVisionHashToStr to convert the hash to a string (e.g. to store it in a database).

Example

hash := IEVisionLib().createImageHasher().compute( ImageEnView1.IEBitmap.GetIEVisionImage() );
Edit1.Text := string( IEVisionHashToStr( hash ));

See Also

◼similarity
◼GetPerceptualHash