Skip to main content
Participant
April 22, 2015
Question

How to reindex facial recognition data in LR 6?

  • April 22, 2015
  • 9 replies
  • 17118 views

I accidentally deleted all of the faces that Lightroom recognized in my photos upon the initial indexing. Is there anyway to reset the facial recognition index so that I can go through the process again?

This topic has been closed for replies.

9 replies

Participant
July 31, 2018

I cannot find "Find Faces Again" and I have the most recent version of Lightroom CC.  Any more specific directions as to where it is? When I follow these instructions I still do not see the option.

Recommended steps to upgrade the face records

  • In Library module, select All Photographs in the Catalog panel.

  • Select all photos in the Grid view or the Filmstrip. To select all photos, choose Edit > Select All or press Ctrl+A (Windows) or Command+A (macOS).

  • From the menu bar, choose Library > Find Faces Again.

  • In the Find Faces Again dialog, ensure that the following options are selected.
    • Skip Over Photos That Have Not Been Previously Indexed
    • Skip Over Photos With Manually Confirmed Faces

philc30713433
Known Participant
April 3, 2018

PROGRESS! 

"Find Faces Again" feature in v7.3

Use Intelligent facial recognition in Lightroom Classic CC

TheDigitalDog
Inspiring
April 3, 2018

philc30713433  wrote

Use Intelligent facial recognition in Lightroom Classic CC

Is #3 correct?

From the menu bar, choose Library > Find Faces Again.

Author “Color Management for Photographers" & "Photoshop CC Color Management/pluralsight"
TheDigitalDog
Inspiring
April 3, 2018

My bad, I was viewing 7.2; it's correct in 7.3.

Author “Color Management for Photographers" & "Photoshop CC Color Management/pluralsight"
AE-FTW
Inspiring
August 22, 2016

I recently imported my 80,000 photo library. Things were progressing well until I discovered whole folders and many images missing (~5000) . I could not add these folders and images because they were already imported?! Doing a search for missing images I found many had been "unable to be found" and manually reconnecting each folder,fixed many issues, but now none of these 5000 photos have any facial recognition and there's no way to initiate it. They were clearly skipped (because they were missing, even though the paths were correct), so that's it. No 2nd chances! This is madness.

Participant
July 12, 2016

This is the easiest way I know to reindex photos for facial recognition:

Select the photos you want to reindex

Select "Go to Folder in Library"

<Delete>

Select "Remove" (Obviously NOT "Delete from Disk")

Reimport from the library the photos are in

You can then apply face recognition again to the photos

Obviously not ideal, but better than doing them one-by-one

javaap
Participant
July 26, 2015

The solution:

1. Backup your lrcat file

2. Open your lrcat file in sqlitestudio

3. Bring SQL console (Alt-E)

Run SQL query

delete from Adobe_LibraryImageFaceProcessHistory where id_local in (select face.id_local from AgLibraryFile file join AgLibraryFolder folder on file.folder = folder.id_local join Adobe_images image on file.id_local = image.rootFile join Adobe_LibraryImageFaceProcessHistory face on face.image = image.id_local where folder.pathFromRoot like "2009/japan%")

where you replace the last part (2009/japan) by the path you want reindex. Do not forget % sign at the end - it means all paths staring by 2009\japan
Probably you need replace backslash \ by slash / on Mac

Participant
May 4, 2015

On the question of how well LR recognizes faces and matches for a given face, I did do a comparison with Picasa and Apple Photos. Picasa seems to do the best job (substantially better than LR) and seems to have the most efficient user interface for accepting and confirming matches. Picasa does not otherwise suit me for management and processing, so I am hopeful Adobe will raise their game in future releases.

Participant
April 28, 2015

Hi friends!

Sorry for any mistakes in English, I used Google Translate.

For a start, I recommend to make a copy of your catalog.

I solved this problem as follows:

1) File "lrcat" is a database, similar in structure to mdb databases (MS Access), but they are not compatible. In order to view its contents, we will need a small free program - "DB Browser for SQLite" - you can download it on the site http://sqlitebrowser.org/

I used version 3.5.1, the latest version 3.6.0 gives me an error at startup.

2) I ran "DB Browser" and after examining its internal structure, decided that the table "Adobe_LibraryImageFaceProcessHistory" contains information about the process of face recognition.

To select it, you need to find it in the drop-down list in the "Browse Data". I think that the field "lastTryStatus" just says LR, whether it is necessary to look for the person or not.

Unfortunately, the program "DB Browser" can not change the data in many cells at once, so I had to delete all the contents of the table. (It's pretty simple - highlight the line as well as in Excel - while holding down the Shift key and press the button after selecting in the upper-right-hand side - "Delete Record"). In the case of a very large table, I singled out by 5000 lines, otherwise the program was conceived a long time.

3) Exit the program and agree to save the changes (we made a backup, did not you?)

4) Run the LR, and it re-starts the process of face recognition! 

(If you do not delete the entire table, it will scan only what you deleted)

Obviously, this database contains all the information for all the images, but I have not found a simple way how to selectively delete the information about images, for example from one directory.

Analyzing tables inside the database, you can see what fields are responsible for that, find a table with directories, select their codes to find files that belong to these directories, find the codes for these files, find these codes in the table with the results of the scan persons ... but this program is not designed for such deep analysis.

If you can translate the Lrcat base in mdb format, and then back, it would have been possible. The program "DB Browser" allows you to export and import tables to CSV format. The same format understands and MS Access, but it is too complicated path for me).

I hope what helped you)

Bob Somrak
Legend
April 28, 2015

Good Info, thanks.  In that case than it shouldn't be to hard for Adobe to implement a reindex or unindex of a group of selected photos.  Getting them to do it is another matter.  Seems like a feature many people would like including me.  If Adobe won't do it then maybe one of the great plugin authors will implement it.

M4 Pro Mac Mini. 48GB
ianbutty
Known Participant
April 23, 2015

As far as I am aware at present face recoginition is a one shot.  If you delete the face recognition box, the only way to get it back is to manually draw it on each and every image! (Not good).

I am sure Adobe will have to add this in the future.  Especially if/when they improve the recognition algorithm.  I am finding that the scan is missing a significant number of faces in images.  It finds about 60-70% of faces that exist in images, but some of that 30-40% are ones that are really clear and yet it misses them.

At the moment - don't delete any face rectangles unless you KNOW you don't want them.  (I know that doesn't help right now).  The only other option is to go back to your LR5 and recovert it to LR6/LRCC and let it find the faces again.

TheDigitalDog
Inspiring
April 23, 2015

ianbutty wrote:

As far as I am aware at present face recoginition is a one shot.  If you delete the face recognition box, the only way to get it back is to manually draw it on each and every image! (Not good).

It's not good but worse is it appears that you can't rescan to add more faces after the initial work. I hope that's not true and there is a workaround.

So the product is designed such that I have 30K worth of images. I scan them all. I only pick 10 of 20 possible people so I build keywords for those 10, all good and fine. Now I decide I want to go back and add the other 10 people. There's no way to rescan and have the grid exclude the first group of people and allow me to add the other 10? That's awful. Really bad design. If this is true, I'm bummed.

Author “Color Management for Photographers" &amp; "Photoshop CC Color Management/pluralsight"
Bob Somrak
Legend
April 24, 2015

ianbutty wrote:

Not only do we need a 'please rescan these images' option, but we need some sort of threshold so we can tell the algorithm to be a bit more aggressive in what it thinks is a face and what it doesn't. 

I agree. Plus it finds faces that are totally out of focus due to DOF, image that are really dark and may have no faces etc. We need a better 'quality' granularity. IOW, if it tags something that clearly looks like a stop sign (I've seen this), OK I can see how the algorithm would think it's a face. If it tags something that looks like a blob of out of focus image or so dark it doesn't look anything like a face or the side of a building, don't tag it.


Also, it seems to do a really bad job of finding people with totally white or really light gray hair.

M4 Pro Mac Mini. 48GB
mattl5631332
Participant
April 23, 2015

I have the same issue - but I'm not sure it was user error. I just lost a lot of photos that I had indexed to a particular person from their person keyword.

I'll let you know if I find a solution. Nothing is jumping out right now!

Did you delete the keyword?