<?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 Emotion analysis ONLY in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Emotion-analysis-with-another-image-resolution/m-p/1023923#M39332</link>
    <description>&lt;P&gt;Emotion analysis ONLY supports 640x480 resolution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2014 16:29:20 GMT</pubDate>
    <dc:creator>Xusheng_L_Intel</dc:creator>
    <dc:date>2014-10-27T16:29:20Z</dc:date>
    <item>
      <title>Emotion analysis with another image resolution</title>
      <link>https://community.intel.com/t5/Software-Archive/Emotion-analysis-with-another-image-resolution/m-p/1023922#M39331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to run the Emotion analysis with another resolution different from the default 640x480, but if I try to change it the program gets stuck on the Init() method.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;PXCSenseManager *sm = g_session-&amp;gt;CreateSenseManager();
if(!sm){
	std::cout &amp;lt;&amp;lt; "Failed to create SenseManager" &amp;lt;&amp;lt; std::endl;
	return 1;
}
sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, 1920, 1080);
sm-&amp;gt;EnableEmotion();

Handler handler(0);

if(sm-&amp;gt;Init(&amp;amp;handler) &amp;gt;= PXC_STATUS_NO_ERROR) {

	int numFaces = 0;
	while(!g_stop){
		if(sm-&amp;gt;AcquireFrame(true) &amp;lt; PXC_STATUS_NO_ERROR)
			break;

		PXCEmotion *emotionDet = sm-&amp;gt;QueryEmotion();
		if(emotionDet != NULL) {
			PXCEmotion::EmotionData arrData[10];
			const PXCCapture::Sample *sample = sm-&amp;gt;QueryEmotionSample();

			if(sample)
				convert_image(sample-&amp;gt;color);
		}

		cv::imshow("Camera Feed", g_mat_image);

		sm-&amp;gt;ReleaseFrame();

		char c = cv::waitKey(31);

		if(c == 27) {
			g_stop = true;
		}
	}
}&lt;/PRE&gt;

&lt;P&gt;This something wrong with my code?&lt;/P&gt;

&lt;P&gt;If it isn't possible to run the emotion algorithm with a different resolution is there a way to get the feed from, for exemple, opencv crop it and send it to Intel Real Sense SDK?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 15:01:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Emotion-analysis-with-another-image-resolution/m-p/1023922#M39331</guid>
      <dc:creator>Nelson_B_</dc:creator>
      <dc:date>2014-10-14T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Emotion analysis ONLY</title>
      <link>https://community.intel.com/t5/Software-Archive/Emotion-analysis-with-another-image-resolution/m-p/1023923#M39332</link>
      <description>&lt;P&gt;Emotion analysis ONLY supports 640x480 resolution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:29:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Emotion-analysis-with-another-image-resolution/m-p/1023923#M39332</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2014-10-27T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

