gemini-testing / looks-same

Node.js library for comparing images
MIT License
669 stars 55 forks source link

Is it possible to save image descriptors to database and compare? #70

Open pluzmedia opened 4 years ago

pluzmedia commented 4 years ago

Is it possible to save image descriptors to database and compare new images with old ones?. Any idea would be helpful.

DudaGod commented 4 years ago

Hello.

Can you describe your problem in more details? I don't understand why you want save file descriptor to database. File descriptor - it is uniq id to the file in some running process. If the file or process closes, the file descriptor gets freed and you can't do with it number anything.

Currently looks-same can compare images only by image paths on file system. So you can save image somewhere on your fs and write path to it in database. Or you can save binary data of the image and before compare save it to the file in file system.

hamdallah90 commented 10 months ago

@DudaGod lets say we need to compare a images using elasticsearch, and the search done by elasticsearch