recognizing faces and people

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
jms
Posts: 8
Joined: Thu Aug 18, 2016 3:02 pm

recognizing faces and people

Post by jms » Tue Feb 13, 2018 5:26 pm

I'm just playing with openCV and I made python programs that can recognize when there is a face in a picture, and if the face is trained in the database, they know the name of the person. With openCV this is quiet easy.

I loved google-picasa because it had virtual folders for your friends and relatives. For example in the folder "daddy" you found all pictures with your daddy. This feature was great.

Maybe it is possible to integrate this into XNView?

User avatar
xnview
Author of XnView
Posts: 29471
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recognizing faces and people

Post by xnview » Thu Feb 15, 2018 2:36 pm

i'll check
Pierre.

User avatar
schultzter
Posts: 27
Joined: Tue Aug 26, 2014 4:38 pm
Location: Montreal, Qc
Contact:

Re: recognizing faces and people

Post by schultzter » Fri Mar 02, 2018 4:18 pm

jms wrote:Maybe it is possible to integrate this into XNView?
Facial recognition would be awesome!!! It's something I would happily pay for!

I loved XnViewMP when I used it on my Linux desktop (but that computer has died and gone). More than digikam and Shotwell.

I haven't had much time for organising my photos lately, but before I do I need to find something with facial recognition (or at least detection then I can add the names). On Windows or Linux.

I've tried Mylio and MAGIX. Mylio looks great and has an amazing sync system, truly innovative. MAGIX is meh but at least has facial recog.

Unfortunately Mylio is subscription based beyond the free limit and that just doesn't work for me. I plan to keep my photos forever so that means paying the subscription FOREVER!!!

I would only be willing to buy the software outright, one-time payment (paying again for major updates is fine). And I would gladly support XnView. Facial recognition is critical though. So is hierarchical tags, an efficient UI (keyboard short cuts for everything and not too many levels), and support for removable drives (i.e.: store the photos and database on the drive and don't freak out when the drive isn't there - a solution like Mylio's would be awesome but I guess that's their thing).

<pipe dream>XnView for Chrome OS where all the photos and data are on USB or a local NAS or media server</pipe dream>
Version 0.72 x64 (Dec 19 2014) on Arch Linux

Headed for the second star to the right and straight on 'til morning...

jms
Posts: 8
Joined: Thu Aug 18, 2016 3:02 pm

Re: recognizing faces and people

Post by jms » Fri Mar 02, 2018 5:46 pm

To detect the faces in a photo is very easy with openCV. Then people can add the name manually.
The next step is to train openCV with the manual names and to automatically recognize people.

For finding the faces, you convert the picture to grayscale and use openCV array faces = face_cascade.detectMultiScale(....).

For training, you use cv2.face.LBPHFaceRecognizer_create().
Then you cut out the faces from above and train the thing with facerecognizer.train(faces, names).

After the training you make facerecognizer.predict(face) to find out the name of the person.

michaauskiel
Posts: 42
Joined: Tue Nov 17, 2009 8:22 pm

Re: recognizing faces and people

Post by michaauskiel » Thu Mar 08, 2018 6:15 pm

A facial recognition would be great. The identified faces could then be proposed as filenames. In addition, the names could be entered automatically into the IPTC. - i would pay 100 € for this feature!!!

User avatar
xnview
Author of XnView
Posts: 29471
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recognizing faces and people

Post by xnview » Fri Mar 30, 2018 7:37 am

which features will be needed?
Pierre.

jms
Posts: 8
Joined: Thu Aug 18, 2016 3:02 pm

Re: recognizing faces and people

Post by jms » Fri Mar 30, 2018 8:05 am

For the first version, you could find and mark faces and allow the user to type the name. This is the same what facebook does.

michaauskiel
Posts: 42
Joined: Tue Nov 17, 2009 8:22 pm

Re: recognizing faces and people

Post by michaauskiel » Wed Apr 11, 2018 3:41 pm

Hi,

i have got a folder with all the persons i know (Peter, Mike, Jane...), the names of the persons are in the iptc and the filenames (Peter 1.jpg, Peter 2.jpg, Peter 3.jpg, Mike 1.jpg, Mike 2.jpg, ...)

So it would be great, if, when i open a folder with xnview, xnview would look, if there are any persons i already know. If there are it would be great if xnview would rename the files (Peter 4.jpg, Peter 5.jpg; Mike 3.jpg, Mike 4...). If the Information would be written into the iptc as well (this is Peter). That would be very great.

User avatar
xnview
Author of XnView
Posts: 29471
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recognizing faces and people

Post by xnview » Thu Apr 12, 2018 1:16 pm

michaauskiel wrote:
Wed Apr 11, 2018 3:41 pm
Hi,

i have got a folder with all the persons i know (Peter, Mike, Jane...), the names of the persons are in the iptc and the filenames (Peter 1.jpg, Peter 2.jpg, Peter 3.jpg, Mike 1.jpg, Mike 2.jpg, ...)

So it would be great, if, when i open a folder with xnview, xnview would look, if there are any persons i already know. If there are it would be great if xnview would rename the files (Peter 4.jpg, Peter 5.jpg; Mike 3.jpg, Mike 4...). If the Information would be written into the iptc as well (this is Peter). That would be very great.
It's specific use, you would like to rename filename with name of person, right?
Pierre.

michaauskiel
Posts: 42
Joined: Tue Nov 17, 2009 8:22 pm

Re: recognizing faces and people

Post by michaauskiel » Sun Apr 15, 2018 5:37 pm

Hi,

"you would like to rename filename with name of person, right?" - yes, absolute right!!!

michel038
Posts: 175
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: recognizing faces and people

Post by michel038 » Sun Apr 15, 2018 9:22 pm

I'm using iptc and xmp keywords for persons ...

michaauskiel
Posts: 42
Joined: Tue Nov 17, 2009 8:22 pm

Re: recognizing faces and people

Post by michaauskiel » Mon Apr 16, 2018 4:11 pm

Yes, and it would be great, if the name of the recognised person, will be transferred automatically into iptc and xmp keywords, too.

Post Reply