photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Quin on June 25, 2014, 11:03:37 AM

Title: Categorize images which contain a single person
Post by: Quin on June 25, 2014, 11:03:37 AM
When I want to select images of a particular person who is the sole person in the image, how should I go about this?
I don't particularly want to to have to 'NOT' all the other people who may be in images with this person.
Is the best trick to have a Category called, for example, 'Alone', for all images where there is only one (relevant) person in the image?  Then the search could be for 'Fred' AND 'Alone'.
Or is there a far better way?
Title: Re: Categorize images which contain a single person
Post by: axel.hennig on June 25, 2014, 11:29:46 AM
Hello Quin,

there is a similar question in the old IMatch forum. There, this 'problem' is solved by a script. I don't know (haven't tested) if this script also works in IM5.

Two links to the old forum:

http://ptforum.photoolsweb.com/ubbthreads.php?ubb=showflat&Main=1772&Number=9974 (http://ptforum.photoolsweb.com/ubbthreads.php?ubb=showflat&Main=1772&Number=9974)

http://ptforum.photoolsweb.com/ubbthreads.php?ubb=showflat&Main=4358&Number=2425 (http://ptforum.photoolsweb.com/ubbthreads.php?ubb=showflat&Main=4358&Number=2425)
Title: Re: Categorize images which contain a single person
Post by: Quin on June 25, 2014, 12:00:09 PM
Hi Axel,
Many thanks for pointing me in the direction of using scripts for this.  I will try to unravel these scripts (for my own benefit).
I am, to use a camera analogy, still in the 'P' mode of the 'PASM' model of iMatch5 ! (Or, using a woodworking analogy, have just managed to plunge holes with a router.)
In searches I will need to combine the 'Alone' category with others, eg 'Queen' AND 'Alone' AND 'Windsor', and I am not sure how this could be done by combining a script with, say, @Builder.
Title: Re: Categorize images which contain a single person
Post by: Mario on June 25, 2014, 02:06:17 PM
This is actually quite complicated, and cannot be solved with the available set of category functions.

It is easy to find all files assigned to People|Mary.
To find all files only assigned to a category People|Mary you can use the "@CatDistinct[People|Mary]" formula.

But I think that your files are assigned to more than one category, and what you are looking for is something like:

"Give me all files which are assigned to the category People|Angie, but to no other category under the People category hierarchy."

Such a formula does not exist. I you think that having this will be useful for other users as well, please add a feature request to the feature request board.
Title: Re: Categorize images which contain a single person
Post by: Quin on June 25, 2014, 03:09:44 PM
Quote from: Mario on June 25, 2014, 02:06:17 PM
This is actually quite complicated, and cannot be solved with the available set of category functions.

It is easy to find all files assigned to People|Mary.
To find all files only assigned to a category People|Mary you can use the "@CatDistinct[People|Mary]" formula.

But I think that your files are assigned to more than one category, and what you are looking for is something like:

"Give me all files which are assigned to the category People|Angie, but to no other category under the People category hierarchy."


Hi Mario,
This is exactly what I was looking for!  I think I had in mind a @CatDistinct type of function with 2 parameters: (1) The root of a category sub-tree; and (2) the the distinct Category within that sub-tree.
Title: Re: Categorize images which contain a single person
Post by: axel.hennig on June 25, 2014, 03:44:22 PM
Hi Quin, hi Mario,

I agree that this could be an interesting/helpful formula, so that there is no need to write a script or to migrate an IM3 script to IM5.
Title: Re: Categorize images which contain a single person
Post by: Mario on June 25, 2014, 04:08:43 PM
Quote from: Quin on June 25, 2014, 03:09:44 PM
Hi Mario,
This is exactly what I was looking for!  I think I had in mind a @CatDistinct type of function with 2 parameters: (1) The root of a category sub-tree; and (2) the the distinct Category within that sub-tree.
Why not write a feature request (https://www.photools.com/community/index.php?board=12.0)
Title: Re: Categorize images which contain a single person
Post by: Quin on June 25, 2014, 04:32:42 PM
Hi Mario,
Feature request posted!