v1.2: finally found out why the compare function crashed: OpenCV's image hash functions don't like being called concurrently, had to add "pauses" at the right places to circumvent v1.1: added ...