imagededup icon indicating copy to clipboard operation
imagededup copied to clipboard

encode_images can not run out.

Open ming076 opened this issue 5 years ago • 4 comments

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

ming076 avatar Dec 26 '19 01:12 ming076

Hi

Is the issue reproducible?

tanujjain avatar Dec 30 '19 17:12 tanujjain

Yes,It can be reproducible. I tried some times on my computer and my friend's computer. It didn't run out .

ming076 avatar Dec 31 '19 15:12 ming076

@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 avatar Jan 02 '20 16:01 tanujjain

@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.

ming076 avatar Jan 03 '20 06:01 ming076