Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to obtain the hash representation from the image_hash module

I 'm trying to compute the perceptual hash for an image (Using for example the phash algorithm). I want to compute and save the hash in a database for future comparissons.

The compute method from the PHashImpl class set an cv::OutputArray with the result of the computation (the hash). Is it posible to convert it into a alphanumeric of numeric representation of the hash?

Like: image -> phash_algrithm -> 8a0303f6df3ec8cd

Am i thinking in the right way or my limited knowledge at the moment of the OpenCv is leading me to the wrong path?