TIEVisionImageHasher.similarity
Declaration
function similarity(hash1, hash2: TIEVisionVectorByte): Double; safecall;
Description
Returns the similarity of two hashes in the range 0 (unrelated) to 1 (identical).
The result is scaled so that 0.75 or higher means the images are the same or near-duplicates, whichever
algorithm is used. Use a higher value for fewer, closer matches.
Both hashes must have been created by the same algorithm, otherwise an exception is raised.
Example
if hasher.similarity( hash1, hash2 ) >= 0.75 then
ShowMessage( 'Duplicate' );
See Also
◼compare
◼IEVisionCompareHashes