How do i programmatically access the face cache in Windows Live Photo Gallery?

Posted by acorderob on Stack Overflow See other posts from Stack Overflow or by acorderob
Published on 2011-01-02T13:51:00Z Indexed on 2011/01/02 13:53 UTC
Read the original article Hit count: 252

I'm not talking about the "people tags" embeded in the XMP packets of JPEGs. I'm talking about the face database used to recognize new faces.

I want to add to my program the option to recognize faces using the already trained database of WLPG. I managed to use the API (a type library dll) to detect faces, but to recognize them it needs an Exemplar Cache object that is not available in the same API. I could create my own object, but i want to use the already existing one to avoid duplicate training for the user.

I know the database is in C:\Users\\AppData\Local\Microsoft\Windows Live Photo Gallery and that it is in an SQL Server Compact format. I tried to open the database with Visual Studio 2010, but it says that it is in an older version (pre-3.5) and needs to be upgraded. I don't want to change the database, just read it. I don't know how the WPLG reads it since apparently i don't have the correct OLEDB provider version. I would also prefer to read it without accesing the database directly but i don't see any DLL that exports that functionality.

BTW, i'm using Delphi 2010.

Any ideas?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about api