ImageEn, unit IEVision

IEVisionStrToHash

IEVisionStrToHash

Declaration

function IEVisionStrToHash(const Hash: AnsiString): TIEVisionVectorByte;

Description

Converts a hexadecimal string created by IEVisionHashToStr or GetPerceptualHash back to a hash for use with similarity.
Raises an exception if the string is not valid hexadecimal.

Example

hasher := IEVisionLib().createImageHasher( ievHashPHash );
sim := hasher.similarity( IEVisionStrToHash( StoredHash ), hasher.compute( ImageEnView1.IEBitmap.GetIEVisionImage() ));

See Also

◼IEVisionHashToStr
◼IEVisionCompareHashes