h@h-B360M-D2VX-SI:~/models/DupImageDetection$ python3 gen_phash.py --img_dir ./dog/ --n_thread 3 --out_path ./result.txt
Hash value may be generated directly
in the second instruction:
python3 dup_img_detection.py --pHashs_path /home/h/models/DupImageDetection/result.txt --sim_thres 5
Current json file folder is the result
can also be used to view python
>>> import json
>>> d = json.load(open("duplicated_images.json"))
>>> d
[['/home/h/手相/006uSzdIly1g3hd07m3nvj30u018wqb8.jpg', '/home/h/手相/006uSzdIly1g3hd0etvkbj30u018wqb8.jpg']]
Reference github address https://github.com/xuehuachunsheng/DupImageDetection