search image to CLI and copy matches (within a defined match value) to a folder #122
Replies: 15 comments 9 replies
-
Hey @rleaver152, how's it going? Thanks for the idea! So, just let us check if we really understood this idea. Are you saying that would be great to do something like this using the pupyl --data_dir /path/to/your/data/dir search /path/to/image/query.jpg --results /path/to/output/results where |
Beta Was this translation helpful? Give feedback.
-
Hi - yes, exactly. Maybe also with a threshold setting for the similarity test.
The benefit over imgdupes and other similarity programs is that with this, you can see on the serve interface the file images AND get copies to a directory of choice.
Otherwise you just see on the web serve the matching pictures but no way of locating them easily (IMHO)
Richard
… On 26 Nov 2021, at 14:47, policratus ***@***.***> wrote:
Hey @rleaver152, how's it going? Thanks for the idea!
So, just let us check if we really understood this idea. Are you saying that would be great to do something like this using the CLI:
pupyl --data_dir /path/to/your/data/dir search /path/to/output/results
where pupyl will search inside database located in /path/to/your/data/dir and copy the image files associated with the search results to /path/to/output/results?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Awesome @rleaver152! Just opened issue #123 to address this. Please check if you agree with the specification and succeeding with that, we'll start to work on this. |
Beta Was this translation helpful? Give feedback.
-
Hey @rleaver152, just opened pull request #133 implementing this idea. After merging it, this will be possible: pupyl --data_dir /tmp/pupyl search https://pbs.twimg.com/media/E-4t8mbVQAoK4Dd.jpg
pupyl --data_dir /tmp/pupyl export https://pbs.twimg.com/media/E-4t8mbVQAoK4Dd.jpg /tmp/output --top 100 Please check there, because the above is only the beginning of the new features. |
Beta Was this translation helpful? Give feedback.
-
Hi - I've pulled the latest version ( (0.13.0) but its not showing the export cli from a "pip install --upgrade pupyl". In anticipation, here is the revised search bash code for it (which assumes the pupyl build database bit has been done)
|
Beta Was this translation helpful? Give feedback.
-
It would be useful to preserve the original name of the exported near-matches, rather than renumber them. |
Beta Was this translation helpful? Give feedback.
-
@rleaver152, version |
Beta Was this translation helpful? Give feedback.
-
Hi - hope you are not having too many sleepless nights with the new arrival :-) Just wondering how 0.13.2 is coming along. The reason I mention is that I have a great usage case for "preserving the original ids on the export". Basically I do a lot of keyframe b/w-> colorisation work including the great EbSynth. This requires generation of keyframes using eg github keplerlab/katna or github video-keyframe-detector. The problem is that these latter programs output renumbered keyframes (0000.png etc) when EbSynth requires the actual numbered frame (so 0000.png might actually refer to 00201.png in the video frame sequence by way of example). This is a horrible task to do manually with up to 200 keyframes a movie, but its perfect for Pupyl if and only if the output is the original id on export. I tested it and it works perfectly. Massive time saver if I can get the original ids. A huge number of people use EbSynth so its going to be a lifesaver for them This is my invocation (having first built an index using pupyl on directory "video" which contains all the video frames)
where reverse_search_images_my_pupyl_search_and_export is
|
Beta Was this translation helpful? Give feedback.
-
Hi - brilliant news and many thanks.
all best
Richard
… On 9 Feb 2022, at 00:17, policratus ***@***.***> wrote:
Hi @rleaver152,
I'm so sorry, I couldn't even answer before this message: paternity is taking all my time right now. It's really simple to add this feature of keeping the original ids, but I can see how this can be a massive help on some pipelines like yours. So, this week I'll try to implement everything related with that and maybe next week, we'll have version 0.13.2 with this feature. Thanks again for all your help and support, users like you is everything that an open source project needs!
Therefore, stay tuned this week, maybe the keep_ids feature is coming!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Hi @rleaver152, version |
Beta Was this translation helpful? Give feedback.
-
brilliant - many thanks!!
Richard
… On 26 Feb 2022, at 06:48, policratus ***@***.***> wrote:
Hi @rleaver152, version 0.13.2 was just released, with the feature you requested, implemented. Hope you enjoy!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
A couple of examples would be welcome if you have time 😊
Thanks
Richard
…Sent from my iPhone
On 26 Feb 2022, at 16:43, policratus ***@***.***> wrote:
If you have any doubts on how to use, please let me know.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Here's an example run. (.pupyl_A index, A source and results ). Invoked as
|
Beta Was this translation helpful? Give feedback.
-
Python 3.9.10 |
Beta Was this translation helpful? Give feedback.
-
@rleaver152, now this is part of release |
Beta Was this translation helpful? Give feedback.
-
It would be great to be able to batch interrogate the database using a Bash script (within the virtual environment) and the CLI to:
eg input (eg -in flag) search image to CLI and copy matches (within a defined match value) to a (-o flag) named folder
Beta Was this translation helpful? Give feedback.
All reactions