Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I programmatically access the facial recognition cache in Windows Live Photo Gallery with SQL?

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 "%localappdata%\Local\Microsoft\Windows Live Photo Gallery\" and that it is in SQL Server Compact Edition 3.1 format. I opened the database with Visual Studio 2010 but I would prefer to read it without accesing the database directly and I don't see a DLL that exports that functionality.

BTW, I'm using Delphi 2010.

Any ideas?

like image 612
acorderob Avatar asked Jan 02 '11 13:01

acorderob


1 Answers

Cautionary Note: I have never written a line of Delphi in my life.

Since this is not supported by Microsoft, there is unlikely to be any sort of obvious API. Consequently, doing what you're talking about will probably break the moment a new version of Windows Live Photo Gallery comes out.

That being said, your best hope is to connect directly to the database. You will need to read up on how to create a SQL Server to Delphi connection. Then, create a connection string to connect to the Windows Live Photo Gallery database.

like image 120
Zian Choy Avatar answered Sep 20 '22 22:09

Zian Choy