<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SetDatabaseBuffer loading dynamically in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/SetDatabaseBuffer-loading-dynamically/m-p/1062528#M54690</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have an application which inserts the facedata and name of a person in to database using below code.&lt;/P&gt;

&lt;P&gt;PXCMFaceData.RecognitionModuleData recognitionModuleData = faceData.QueryRecognitionModule();&lt;BR /&gt;
	&amp;nbsp;Int32 nBytes = recognitionModuleData.QueryDatabaseSize();&lt;BR /&gt;
	&amp;nbsp;Byte[] buffer = new Byte[nBytes];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;// Retrieve the database buffer&lt;BR /&gt;
	&amp;nbsp;recognitionModuleData.QueryDatabaseBuffer(buffer);&lt;BR /&gt;
	&amp;nbsp;ErollFace(userName, buffer); // stores the user name and face data to database.)&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Here for recognizing i just take each person face data from database and the buffer is set in &lt;/SPAN&gt;SetDatabaseBuffer using below code.&lt;/P&gt;

&lt;P&gt;Byte[] buffer = dr.Field&amp;lt;Byte[]&amp;gt;("FaceData");&lt;BR /&gt;
	recognitionConfig.SetDatabaseBuffer(buffer);&lt;BR /&gt;
	recognitionData = face.QueryRecognition();&lt;/P&gt;

&lt;P&gt;if (recognitionData.IsRegistered())&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;userRecognized = dr.Field&amp;lt;String&amp;gt;("UserName");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;userDetected = true;&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;Is this the correct logic to recognize a face? What my understanding is, I get the face data buffer of a person from db and use it in the SetDatabaseBuffer. Then calling&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;face.QueryRecognition(); will check the DatabaseBuffer and compare and recognize. Is it right? If wrong can anyone please guide me here?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 09:23:33 GMT</pubDate>
    <dc:creator>Hashim_K_</dc:creator>
    <dc:date>2016-09-02T09:23:33Z</dc:date>
    <item>
      <title>SetDatabaseBuffer loading dynamically</title>
      <link>https://community.intel.com/t5/Software-Archive/SetDatabaseBuffer-loading-dynamically/m-p/1062528#M54690</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have an application which inserts the facedata and name of a person in to database using below code.&lt;/P&gt;

&lt;P&gt;PXCMFaceData.RecognitionModuleData recognitionModuleData = faceData.QueryRecognitionModule();&lt;BR /&gt;
	&amp;nbsp;Int32 nBytes = recognitionModuleData.QueryDatabaseSize();&lt;BR /&gt;
	&amp;nbsp;Byte[] buffer = new Byte[nBytes];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;// Retrieve the database buffer&lt;BR /&gt;
	&amp;nbsp;recognitionModuleData.QueryDatabaseBuffer(buffer);&lt;BR /&gt;
	&amp;nbsp;ErollFace(userName, buffer); // stores the user name and face data to database.)&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Here for recognizing i just take each person face data from database and the buffer is set in &lt;/SPAN&gt;SetDatabaseBuffer using below code.&lt;/P&gt;

&lt;P&gt;Byte[] buffer = dr.Field&amp;lt;Byte[]&amp;gt;("FaceData");&lt;BR /&gt;
	recognitionConfig.SetDatabaseBuffer(buffer);&lt;BR /&gt;
	recognitionData = face.QueryRecognition();&lt;/P&gt;

&lt;P&gt;if (recognitionData.IsRegistered())&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;userRecognized = dr.Field&amp;lt;String&amp;gt;("UserName");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;userDetected = true;&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;Is this the correct logic to recognize a face? What my understanding is, I get the face data buffer of a person from db and use it in the SetDatabaseBuffer. Then calling&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;face.QueryRecognition(); will check the DatabaseBuffer and compare and recognize. Is it right? If wrong can anyone please guide me here?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 09:23:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/SetDatabaseBuffer-loading-dynamically/m-p/1062528#M54690</guid>
      <dc:creator>Hashim_K_</dc:creator>
      <dc:date>2016-09-02T09:23:33Z</dc:date>
    </item>
  </channel>
</rss>

