ameingast / cocoaimagehashing

Perceptual Image Hashing for macOS, iOS, tvOS and watchOS
Other
262 stars 66 forks source link

Different phash same image #1

Closed ediogodias closed 8 years ago

ediogodias commented 8 years ago

Hi,

I was testing out this pod but i realize that it gives different phash for the same image if we are using original phash on OSX and then using this pod on the iOS.

Using the arquitecture1.bmp:

original phash: "101000000110001100011000111100100011100111011110100110101110110"

Pod Phash: "110001000001000101100100111100000011010100110101110100000000000"

Giving a distance of 29.

ameingast commented 8 years ago

I'm not entirely sure what problems you ran into.

First of all, this library is not compatible with the original pHash implementation available at www.phash.org.

If you're comparing hashes on different platforms (i.e. OS X vs iOS), I'm not sure that would work properly, because iOS and OS X have different CoreGraphics implementations and all heavy lifting in CocoaImageHashing is executed through it.

ameingast commented 8 years ago

Closing due to inactivity.