Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
simmons
Posts: 3
Joined: 2016-11-25T09:19:09-07:00
Authentication code: 1151

Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by simmons »

i am looking for a nice solution to classify automatically images, for example to scan lots of images and distribute them in subdirectories which are named as the classification of each image, like Nature, People, Sport or so. Such Classification should be made by the Program on Interpreting the "Content" of the Image ( the Image itself ) and NOT by Metadata, Filename or so. As i understand the Description of the Program, such Classification is NOT YET possible but i suppose the Developers are very close to such a Solutiom which would certainly add big Value to the Program i am shure ! Maybe someone can help me out, with this Program or by giving me a clue to another Solution, another Software ... but of course Integration of such Foncionality would be very nice here in THIS Program ! Thanks a lot, simmons
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by fmw42 »

IM has no such automatic classification functions. Though you can compute lots of measures to the image and try to group them by the combined measures. See -feature and identify -verbose -moments.

Or try some other Image processing system such as OpenCV, which has very advanced image classification processing.
simmons
Posts: 3
Joined: 2016-11-25T09:19:09-07:00
Authentication code: 1151

Re: Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by simmons »

Thank you for answering, fmw42. As i understand openCV, it's some c / c++ libraries to build my own application. Unfortunately i am not specialized in image processing at all, i do not have enough knowledge on that ground. Anyway i will try to find out if ( following your proposal ) i could get some classification with -feature / -verbose / -moments.

I tougth maybe it's easy for people with deep knowledge of ImageMagick to realize ( as a first step, to see if it's usable or not ) with little effort kind of "Classification-File" which contains for each processed image ( path and filename ) the most probable Classification-Criterion, as for Example:

c:/users/x/pictures/blabla.jpg, Urbanisation ( or Town, Village, Buildings )
c:/users/x/pictures/bleble.jpg, Forest ( or Nature )
c:/users/x/pictures/blibli.jpg, unknown
c:/users/x/pictures/bloblo.jpg, People
c:/users/x/pictures/blublu.jpg, Faces

or whatever Criterion "relatively" easy to discover.

Maybe someone could give me a Idea of a Enduser-Software which i could use, instead of a Software-Library ? Thank you a lot, simmons
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by Bonzo »

openCV can be used with php and JavaScript.

It would take a lot of work to write an algorithm to detect any one of the classifications you are after. There are some examples of how to go about face detection here and I suppose the process would be similar for other objects.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by fmw42 »

Open CV can also be coded with Python rather than C++. See http://www.pyimagesearch.com/
simmons
Posts: 3
Joined: 2016-11-25T09:19:09-07:00
Authentication code: 1151

Re: Possibility to classify an Image ( Nature, People, Sport etc. ) ?

Post by simmons »

OK thank you a lot. As i understand now, it's not an easy task to integrate such foncionality into ImageMagick. So i will try the path you are proposing: to use the existing Libraries from OpenCV ( C++ is fine for me, it's more the missing knowledge of Image-Processing etc. ), and / or to use the existing Features from ImageMagick.

Somehow you are confirming that such Functionality of automatic Picture-Classification is not easyly available, it means for me personally, it would be interesting Feature for ImageMagick, i think a lot of People would like to have such a useful Tool to put some Order into tens of tousands of there Photos ( without the need to give Copies of all the Material to Google etc. ) !

Thank you again, simmons
Post Reply