5

I like the facial recognition feature introduced into the Photos app in Windows 10; however, something is causing it to fail occasionally, and on restarting the app, indexing does not continue.

Deleting the database file at %USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState\MediaDb.v1.sqlite does make it start form scratch again, but with in excess of 55000 pictures for it to first find, and then index, this is taking a long time to run, and is dying horribly leaving the app in a position where it consumes a lot of CPU time but doesn't actually do anything beyond showing the photos.

Is there any way to restart the indexing, beyond destroying the database?

3
  • I just tried disabling facial recognition and making sure photos has had time to complete all of the other tasks like photo/video thumbnail generation. Re-enabled facial recognition and it doesn't seem to kick on. Even re-indexing doesn't seem to work on large data sets. I wish Microsoft would simply add a 'start facial recognition' button somewhere with a progress bar.
    – Citricguy
    May 12, 2019 at 8:28
  • @RowlandShaw how many gigs of photos are you getting the facial recognition feature to work with before it freezes up? Can you try incrementally?
    – user900431
    May 24, 2019 at 12:43
  • I've got about 490Gb of photos in my OneDrive, so it takes several weeks to get through them all (as it takes about a second per image, and its only indexing whist the PC is on, and even then, it'll stop after a while if left unattended) May 24, 2019 at 16:17

1 Answer 1

1
+50

What Setting is there to reset facial recognition within the Microsoft Photos app?

  1. Turn off and back on Peoples setting in Microsoft Photos App
  • Open Photos.
  • Click on three dots in top right.
  • Open Settings.
  • Turn off the People option where is says:

People
Allow people in your photos and videos to be named and grouped and for this data to be stored on your device by turning on face detection and recognition.

  • and Wait or Reboot.
  • Repeat and turn back on, wait for re-indexing.

Source


Why is Microsoft Photos App Not Doing What I Want?

Unfortunately most the fixes found for various Microsoft Photos App problems seem to take more of a systematic/ drastic approach of seeing if there is any corruption or problems that are causing the underlying issues to begin with.

For many of the procedure you may need to reboot, to see if the issue is resolved.

There is hope, one user here has indexed 85 Gig of photos with the app.


  1. Can this be replicated on another machine? This is a good way to rule out many things.

  1. Does the computer have lots of Ram and SSD Harddrive? This is a very heavy program.

  1. Check that the default location for photos is set.
  • Open File, Explorer Click Libraries on the left of File Explorer.
  • Right-click Pictures and select Properties
  • In the bottom right select Restore
  • Defaults, Apply, OK.

  1. Check App Permissions to rule out conflicting settings:
  • Go to the Privacy page to choose which apps can use a particular feature.
  • Select Start > Settings > Privacy.
  • Select the Photos app and select app permissions as on.

Source


  1. Check for App Updates
  • Open Store App, Click three-dotted menu on top right,
  • select downloads and updates option.
  • Click Get Updates, if any available, apply.

  1. Try Repairing App
  • Open Start > Settings > Apps > Apps & features
  • Scroll down to Photos
  • Select it
  • Click Advanced options
  • Click Repair

  1. Try Resetting App
  • Open Start > Settings > Apps > Apps & features
  • Scroll down to Photos
  • Select it
  • Click Advanced options
  • Click Reset

  1. Try With and Without Photos App Addon

To Remove

  • Settings app > Apps
  • Click on the Photos app
  • Click Advanced options link.
  • See the Photos.DLC.Main entry
  • Click on the same to see Uninstall button.
  • Click the Uninstall button and then
  • Click the Uninstall button again when you see the confirmation dialog to remove the Photos Add-on.
  • Remove

To get Photos App Addon

Source One and Source Two


  1. If still not working, close app and go to:

    %USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState

and delete all files there in and reboot [this folder is also removed during uninstall and reinstall].

Source 1 and Source 2


  1. Try Uninstalling the App and Reinstalling
  • Use the grid view and select the Photos App

  • Use elevated powershell; For a single user enter:
    Get-AppxPackage | Out-GridView -Passthru | Remove-AppXPackage

  • Or for all users
    Get-AppxProvisionedPackage -Online | Out-GridView -PassThru | Remove-AppxProvisionedPackage -Online

  • Tick the Photos App / Click OK to Uninstall / Reboot.

  • To install from computer cache to all users go:

    Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

  • Or download new version of Microsoft Photos from the App Store, Install.

  • Reboot and Check.

Source


  1. Are you giving enough time?
  • After reinstall, or deleting cache allow the program some hours to re-index.

Source


  1. Elevate CMD run System file Checker

    sfc /scannow

Use the System File Checker


  1. If Fails: Run Deployment Image Servicing and Management (DISM) from elevated cmd one at a time:
  • Dism /Online /Cleanup-Image /CheckHealth

  • Dism /Online /Cleanup-Image /ScanHealth

  • DISM /Online /Cleanup-Image /RestoreHealth

Source 1 and Source 2


  1. If fails get matching windows image and run DISM again, instructions here or here.

  1. Windows Registry Checker Tool (Scanreg.exe)
  • Backup Registery
  • Open elevated cmd and run:
  • scanreg /fix

Source


  1. Editing Registry looking for duplicate values are found:
  • Log on to your PC as administrator.
  • Click Win key + R, type regedit, and press Enter.
  • Use the left pane and navigate to the [below] directory:
HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Families Microsoft.Windows.Photos_8wekyb3d8bbwe
  • Here you should see several entries each of which has a version number, for example, Microsoft.Windows.Photos_15.1201.10020.0_ or similar. If this folder contains 8 Microsoft Windows Photos App entries, it means that the outdated registry keys have been left intact after the application update. Therefore, the outdated keys have to be removed. (In some cases, people have 4 entries, two of which are outdated. In this case, the old two should also be removed.)
  • Select the outdated entry, right-click on it, and open Properties.
  • Select Security and open Permissions tab.
  • Click Advanced in Select User or Group window.
  • Select Find Now, pick your user name, and click OK. Steps 5-8 explain how to take the property of the obsolete entry.
  • Without doing so, you won’t be allowed to delete the outdated entries.
  • Once done, right-click on the outdated entry and select Delete.
  • Repeat the same steps with each four outdated Windows Photos Apps’ entries.
  • Finally, close everything and reboot your PC.

Source


  1. Run App Troubleshooter
  • Run troubleshooter for Microsoft Store apps:
  • Select the Start button > Settings > Update & Security
  • Troubleshoot > Windows Store Apps > Run the Troubleshooter.

Source


  1. Review Microsoft Forum Postings

  1. Lodge Feedback with Microsoft:
  • Press Windows Key + F to open Feedback Hub

  • Sign in to Microsoft Account so that you can track your feedback.

  • Under settings in lower corner there is some additional diagnostic settings.

  • Be sure to Add Screen Shots and all information for a single idea, so that the problem can be reproduced.

  • Send Feedback

  • Click Share, copy link

  • Create new forum post (see points below to choose forum) and paste link as part of question with all information.

     - ***Send a different feedback per problem, don't combine them.***
     - **Don't overlook the feedback hub**, as this is the way Microsoft knows it is getting feedback from its real Windows 10 users, and can properly track your questions on the forums.
    

Source 1, Source 2


  1. Ask a Question on Microsoft Forum

    • Lodge Question Here
      • Post a Question
      • Category: Windows
      • Windows Version: Apps on Windows 10
      • Windows Topics: Photos
      • Use link from feedback in section 20.

  1. Join the Windows Insider Program
  • With the Windows Insider Program, you’ll get all the latest Windows 10 builds as soon as they’re available. more info here
  • Join Windows Insider Program here

  • There is a range of programs that users get to access and test.

  • Microsoft Photos may be posted here again for peer review testing (as it has before), get involved and help shape the app.

  • When the photos app comes up for peer review; there is its own forum section for insider. Submission can be made here.

    • Post a Question
    • Category: Windows Insider Program
    • Products: Apps on Insider Preview
    • Topics and apps: Photos
    • PC or phone: PC
    • Use link from feedback in section 20.

Example of prior listing of Photos App on Insider here.


  1. Microsoft Developer Feedback Site

Also there is a developer feedback site also here.

Consumer suggestions for Windows and Windows Phone are usually closed as being in the wrong forum - you should be posted via the Windows Feedback app (available on all Windows 10 devices)

Read through the posts, there may be existing threads, or you may be fortunate and find other users and your self gain traction with your request, which results in more timely development of the apps capacity issues for example.


  1. Set Priority of the App to Real-Time

Due to the heavy load of your work, and the app is not working as you would like, it might be worth try changing the priority of the program, see its effect.

Windows shares processor resources between all running processes based upon their priority level. If a process (application) has a higher priority level, it gets more processor resources for better performance compared to a process having lower priority.

  • Open Task Manager as Admin
  • Click on the details tab
  • Right click go to Microsoft.Photos.exe
  • Right Click -> Set Priority -> Realtime (or High)

Source One, Source Two


Final Thoughts

On the question of 50,000 plus photos, if the above have not fixed the problem, it may be that the program is not perfected yet, or simply they have focused the higher demands via the Azure Cognitive Services.

They may have neglected higher demands in the Microsoft Photos App while focusing more on its common user use, and working towards increasing its capacity in the future.

So likely without feature requests they will not test and produce the program to work as the users would like, under higher demands, rather leaving this for big business building there own applications and web services privately, as there have not been much request for it. Please see points 19, 20, 21, 22 and 23 to get involved.


Microsoft Azure Cognitive Services looking at Face Recognition.

  • Microsoft have made available the facial recognition services for a cost via the Azure API...

Jim Bennet noted noted:

For the pricing tier, there is a free tier called F0 that gives you 30,000 calls per month at a rate of no more than 20 per minute, and you can have one face resource per subscription with this tier. After this there is a paid tier limited to 10 calls per second and you pay per 1,000 calls - at the time of writing this is US$0.25 per 1,000 calls.

Here is his sample face app using the api on Github.

Information on Cognitive Services API

Sample Apps and Code


Further Reading:

3
  • None of those solutions work May 22, 2019 at 19:03
  • Point 10 was the option I've had to do, as mentioned in the question May 24, 2019 at 16:18
  • I'd already determined that the sqllite files was the minimal step to destroy the index and start again - I'm after a solution that can recover a damaged index. As a side note, changing the process priority does little to help (it seems to not be multi-threaded enough) May 28, 2019 at 8:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .