Using Flameshot to find all similar pictures on computer #4468
gnusupport
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is an idea that works well on my computer, utilizing the power of new Large Language Models (LLMs), or so-called artificial intelligence, along with Flameshot to crop and find similar pictures on the computer.
See here video how it works: https://www.youtube.com/watch?v=axjuTzF6FqM
There is "AI" used, that i am using nomic-ai/nomic-embed-vision-v1.5 model that runs always in memory, and if someone needs help running it, feel free to ask.
https://huggingface.co/nomic-ai/nomic-embed-vision-v1.5/
There is also a use of PostgreSQL database to index the embeddings of those files and images. Think of an embedding as a way to turn words, phrases, or sentences into numbers – like a secret code that computers can understand. Each image is indexed in the database with its embedding. I use Emacs Lisp for that.
flameshot-find-similar.sh
flameshot-to-image-path.sh:
rcd-llm-get-image-embeddings.sh:
rcd-find-similar-images.sh:
rcd-open-images-temp-dir-pipe.sh:
and then I have bound flameshot-find-similar.sh to Control-Mouse-Button 9 on my Redragon M908 but you can bind it as you wish, or invoke script from menu or by short cut.
Beta Was this translation helpful? Give feedback.
All reactions