public class DHash extends Object
| Constructor and Description |
|---|
DHash() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
distance(String h1,
String h2)
Calculate the Hamming distance between two hashes
|
String |
getDHash(String object) |
boolean |
imagesPerceptuallySimilar(String img1,
String img2)
compares the DHash of two images and return whether they are perceptually similar (max 10
different pixels allowed)
|
boolean |
imagesPerceptuallySimilar(String img1,
String img2,
int threshold)
compares the DHash of two images and return whether they are perceptually similar
(max @threshold different pixels allowed)
|
public boolean imagesPerceptuallySimilar(String img1, String img2)
img1 - img2 - public boolean imagesPerceptuallySimilar(String img1, String img2, int threshold)
img1 - img2 - threshold - Copyright © 2007–2019. All rights reserved.