imagededup
imagededup copied to clipboard
encode_images can not run out.
I use the example code "encode_images" to run the image dir, run a long time(1 hour for 6 images) but didn't run out any result. when I use the code to run a single image, it ran out very soon. My code: import os from imagededup.methods import PHash
phasher = PHash()
imgDir = 'D:/Project_Xray/Image/test/test/' files = os.listdir(imgDir) encodings = []*1000
for file in files: print(imgDir+file) # 生成图像目录中所有图像的二值hash编码 encoding = phasher.encode_image(imgDir+file) encodings.append(encoding)
生成图像目录中所有图像的二值hash编码
encodings1 = phasher.encode_images(imgDir)
Environment: OS: windows 10 64bit Anaconda IDE: spyder Python 3.6
Hi
Is the issue reproducible?
Yes,It can be reproducible. I tried some times on my computer and my friend's computer. It didn't run out .
@ming076 Can you please share some of the images for which you are trying to find the duplicates? We have a better chance of debugging it then.
@tanujjain I just used the images on the example, but it did run out too. So, I think it's not about the images. https://idealo.github.io/imagededup/readme_figures/plot_dups.png P.S. I saved the images at jpg type.