<?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 Hi Hape, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077055#M60269</link>
    <description>&lt;P&gt;Hi Hape,&lt;/P&gt;

&lt;P&gt;In your case you're using RealSense cameras as a source, right? So, it should be possible to use existing SenseManager pipeline for all stream setup and streaming operations. Take Face sample as a starting point. You should be able to select desired stream profile with FilterByStreamProfiles(). Then start streaming. When you need to switch, stop SenseManager and re-initialize it with new parameters.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 10:15:04 GMT</pubDate>
    <dc:creator>Dmitry_Z_Intel</dc:creator>
    <dc:date>2016-02-19T10:15:04Z</dc:date>
    <item>
      <title>FaceTracking from a video</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077037#M60251</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm able to use the&amp;nbsp;FaceTracking solution from the SDK with a standard 2D webcam&amp;nbsp;for detecting expression and pulse; but I would like to know if it's possible to load a recorded video (such as a .avi file for example) to process it with the SDK.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 08:40:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077037#M60251</guid>
      <dc:creator>olivier_a_</dc:creator>
      <dc:date>2016-01-07T08:40:08Z</dc:date>
    </item>
    <item>
      <title>Yes, you can. You can use</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077038#M60252</link>
      <description>&lt;P&gt;Yes, you can. You can use OpenCV to get each image and then convert to PXCImage format then feed to face module to process. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:11:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077038#M60252</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2016-01-07T21:11:43Z</dc:date>
    </item>
    <item>
      <title>And here is a video tutorial</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077039#M60253</link>
      <description>&lt;P&gt;And here is a video tutorial that shows exactly how to get the raw images from the camera and convert them into OpenCV:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=wIkIdjN6Oyw" target="_blank"&gt;https://www.youtube.com/watch?v=wIkIdjN6Oyw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 00:11:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077039#M60253</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2016-01-08T00:11:58Z</dc:date>
    </item>
    <item>
      <title>Thanks David and Samontab for</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077040#M60254</link>
      <description>&lt;P&gt;Thanks David and Samontab for your prompt answers.&lt;BR /&gt;
	Samontab, in your video you show how to convert a RealSense image into an OpenCV but what I want to do is the other way around. As said David, I need to convert an OpenCV image to PXCImage.&lt;BR /&gt;
	&lt;BR /&gt;
	Actually, I'm working in C#, so I would like to know if there is a way to convert a Bitmap image to &lt;SPAN class="f_CodeExample"&gt;PXCMImage. But actually, even if I can do it, PXCMImage is not used in the sample code so I don't understand how can I give it to the face module:&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;            // Create the SenseManager instance
            PXCMSenseManager sm = PXCMSenseManager.CreateInstance();

            // Enable face trackcing
            sm.EnableFace();

            // Get a face instance here (or inside the AcquireFrame/ReleaseFrame loop) for configuration
            PXCMFaceModule face = sm.QueryFace();

            // Initialize the pipeline
            sm.Init();

            // Stream data
            while (sm.AcquireFrame(true).IsSuccessful())
            {
                // retrieve the face tracking results
                PXCMFaceModule face2 = sm.QueryFace();
                if (face2 != null)
                {

                }

                // Resume next frame processing
                sm.ReleaseFrame();
            }

            // Clean up
            sm.Dispose();&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 02:07:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077040#M60254</guid>
      <dc:creator>olivier_a_</dc:creator>
      <dc:date>2016-01-08T02:07:12Z</dc:date>
    </item>
    <item>
      <title>You can get the raw image</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077041#M60255</link>
      <description>&lt;P&gt;You can get the raw image data from the OpenCV cv::Mat image, and pass it to the CreateImage method of the RealSense SDK:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//First define an ImageInfo object
PXCImage::ImageInfo info={};
info.format=PXCImage::PIXEL_FORMAT_RGB32; //Change this to match your data
//You can get these easily from an OpenCV Mat
info.width=image_width;
info.height=image_height;

 
//And now define the actual Image data
PXCImage::ImageData data={};
data.format=PXCImage::PIXEL_FORMAT_RGB32;//This should match the info object I reckon
data.planes[0]=image_buffer; //This is the critical bit. This is the actual data, the uchar array from cv::Mat
data.pitches[0]=ALIGN64(info.width*4); //This is because RGB32 is used (8bits * 4), change accordingly

// Finally Create the image instance
PXCImage *image=session-&amp;gt;CreateImage(&amp;amp;info,0,&amp;amp;data);

//Now you have image ready to roll.&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/manuals_image_and_audio_data.html" target="_blank"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/manuals_image_and_audio_data.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 04:29:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077041#M60255</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2016-01-08T04:29:11Z</dc:date>
    </item>
    <item>
      <title>Great! Thanks for the</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077042#M60256</link>
      <description>&lt;P&gt;Great! Thanks for the detailed answer. I can now create a image. I missed that in the documentation, thanks for pointing it out.&lt;/P&gt;

&lt;P&gt;Now I get this &lt;CODE class="plain"&gt;PXCImage, how can I gave it &lt;/CODE&gt;to the PXCMSenseManager ? I understood that &lt;SPAN class="f_CodeExample"&gt;&lt;SPAN class="typ"&gt;AcquireFrame&lt;/SPAN&gt;&lt;/SPAN&gt;() get an image from the camera but I didn't find a way to give the PXCImage instead of this. When I call QueryFaceSample() or QueryFace() it process the image from AcquireFrame()... Or maybe I need to use another function for processing?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 07:39:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077042#M60256</guid>
      <dc:creator>olivier_a_</dc:creator>
      <dc:date>2016-01-08T07:39:58Z</dc:date>
    </item>
    <item>
      <title>Quote:David Lu (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077043#M60257</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;David Lu (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes, you can. You can use OpenCV to get each image and then convert to PXCImage format then feed to face module to process. Thanks!&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi David, thank you for your helpful answers and hints in so many threads.&lt;/P&gt;

&lt;P&gt;I would like to know how to "feed an image to face module to process".&lt;/P&gt;

&lt;P&gt;I'am thinking of&amp;nbsp;an image whose origin is not the color-stream of a realsense camera. My problem is not how to create an PXCImage buffer out of my image data, but how to feed an PXCImage instance to the face module (or any other module) for processing by the algorithms.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Hape&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 12:33:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077043#M60257</guid>
      <dc:creator>hape</dc:creator>
      <dc:date>2016-01-14T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Quote:hape wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077044#M60258</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;hape wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;My problem is not how to create an PXCImage buffer out of my image data, but how to feed an PXCImage instance to the face module (or any other module) for processing by the algorithms.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have that same problem. I tried to run the face tracking application in the Playback mode using a .rssdk video, obviously the AcquireFrame() function was called, and I tried to change the PXCImage of the color channel in the current frame,&amp;nbsp;but&amp;nbsp;it looks like the face tracking were applied over the&amp;nbsp;background .rssdk video. Finally in&amp;nbsp;this is what I got:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2016-01-14_0950.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8388i301BEBC6F78B28A3/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="2016-01-14_0950.png" alt="2016-01-14_0950.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As you can see, the application is not working in my wished image. Thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 15:57:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077044#M60258</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-14T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Quote:(name withheld) wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077045#M60259</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;(name withheld) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;data.pitches[0]=ALIGN64(info.width*4); //This is because RGB32 is used (8bits * 4), change accordingly&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;What is ALIGN64? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:10:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077045#M60259</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-14T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Same challenge to me - did</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077046#M60260</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Same challenge to me - did you found a solution (for feeding an image to the face-module) ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 13:57:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077046#M60260</guid>
      <dc:creator>Frank_F_1</dc:creator>
      <dc:date>2016-01-15T13:57:21Z</dc:date>
    </item>
    <item>
      <title>I am thinking that the image</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077047#M60261</link>
      <description>&lt;P&gt;I am thinking that the image is processed in Acquireframe(), and this is a function of the libraries, but I am&amp;nbsp;still working on it&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 15:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077047#M60261</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-15T15:29:00Z</dc:date>
    </item>
    <item>
      <title>@David and @Alejandro,</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077048#M60262</link>
      <description>&lt;P&gt;@David and @Alejandro,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;So the reality is that you can't feed an image to the face tracking library? &amp;nbsp;In other words, that the RealSense SDK get's the image directly from a device during AcquireFrame and currently does not offer you way to "feed" it an image of your own?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 20:35:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077048#M60262</guid>
      <dc:creator>Robert_Oschler</dc:creator>
      <dc:date>2016-01-16T20:35:08Z</dc:date>
    </item>
    <item>
      <title>Quote:Robert Oschler wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077049#M60263</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Robert Oschler wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;So the reality is that you can't feed an image to the face tracking library? &amp;nbsp;In other words, that the RealSense SDK get's the image directly from a device during AcquireFrame and currently does not offer you way to "feed" it an image of your own?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Well, that's what I am trying to figure it out, but no one has told me how&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 15:48:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077049#M60263</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-18T15:48:48Z</dc:date>
    </item>
    <item>
      <title>You may try to get</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077050#M60264</link>
      <description>&lt;P&gt;You may try to get PXCVideoModule interface from the Face implementation:&lt;/P&gt;

&lt;P class="p_CodeExample"&gt;&lt;SPAN class="typ" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;PXCVideoModule&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;module&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;=face&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;QueryInstance&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="typ" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;PXCVideoModule&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Then use&amp;nbsp;&lt;SPAN class="typ" style="font-size: 1em; line-height: 1.5; font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif;"&gt;PXCVideoModule&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 1em; line-height: 1.5; font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;APIs to setup the Face profile (&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;PXCVideoModule::SetCaptureProfile&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;) and feed the samples with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ProcessImageAsync(PXCCapture::Sample* images, PXCSyncPoint** sp).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I haven't tried it but this should be fastest way. Another way it to create your own Device and Capture implementations but it's probably longer way.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:53:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077050#M60264</guid>
      <dc:creator>Dmitry_Z_Intel</dc:creator>
      <dc:date>2016-01-21T15:53:47Z</dc:date>
    </item>
    <item>
      <title>Quote:DMITRY Z. (Intel) wrote</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077051#M60265</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;DMITRY Z. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;use&amp;nbsp;PXCVideoModule&amp;nbsp;APIs to setup the Face profile (PXCVideoModule::SetCaptureProfile)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi, I am a newbie in the use of RealSense technology, How should I setup the Face profile using the PXCVideoModule?, I would also appreciate a tutorial of how to use the &lt;FONT color="#608b4e" face="Consolas" size="2"&gt;&lt;FONT color="#608b4e" face="Consolas" size="2"&gt;&lt;FONT color="#608b4e" face="Consolas" size="2"&gt;ProcessImageAsync()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;function Thank's!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077051#M60265</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-25T16:05:00Z</dc:date>
    </item>
    <item>
      <title>To setup profile you need</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077052#M60266</link>
      <description>&lt;P&gt;You need to set Face configuration to color only (&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;CreateConfiguration,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;SetTrackingMode(2D) ).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;To setup profile you need something like:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;for (int i = 0; ; i++) 
{
	PXCVideoModule::DataDesc inputs;
	pxcStatus status;
	status = videoModule-&amp;gt;QueryCaptureProfile(i, &amp;amp;inputs);
	if (status &amp;lt; PXC_STATUS_NO_ERROR) {
		break;
	}
	if (inputs.deviceInfo.model == CamModel &amp;amp;&amp;amp; 
		inputs.streams.color.sizeMax.width == width &amp;amp;&amp;amp; 
		inputs.streams.color.sizeMin.width == width &amp;amp;&amp;amp;
		...) // Check your camera type and streams parameters 
	{
		status = videoModule-&amp;gt;SetCaptureProfile(&amp;amp;inputs);
		if (status &amp;lt; PXC_STATUS_NO_ERROR) { // handle fail}
	}
}&lt;/PRE&gt;

&lt;P&gt;To feed the sample, something like:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;pxcStatus status;

PXCCapture::Sample images;

//fill sample images with your data here

PXCSyncPoint* sp;

status = videoModule-&amp;gt;ProcessImageAsync(&amp;amp;images, &amp;amp;sp);
if (status &amp;lt; PXC_STATUS_NO_ERROR) { // handle fail}

sp-&amp;gt;Synchronize();

//face processing is done at this point, you can query face data

images.ReleaseImages();&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 11:00:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077052#M60266</guid>
      <dc:creator>Dmitry_Z_Intel</dc:creator>
      <dc:date>2016-01-26T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Thank you so much DMITRY Z. </title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077053#M60267</link>
      <description>&lt;P&gt;Thank you so much &lt;U&gt;&lt;FONT color="#0066cc"&gt;DMITRY Z.&lt;/FONT&gt;&lt;/U&gt;&amp;nbsp; finally I could load the images using your help!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:37:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077053#M60267</guid>
      <dc:creator>Alejandro_S_Intel1</dc:creator>
      <dc:date>2016-01-26T17:37:22Z</dc:date>
    </item>
    <item>
      <title>Thank you Dimitry for your</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077054#M60268</link>
      <description>&lt;DIV&gt;Thank you Dimitry for your explenations. With your help, I also was able to load the non-color stream images through the PXCVideoModule to the face module. Nevertheless, I'm still facing problems.&lt;/DIV&gt;

&lt;DIV&gt;My current approach uses the sensemanager to setup the streams, get a face module and then query a video-module instance.&lt;/DIV&gt;

&lt;DIV&gt;Unfortunately I could not setup the stream configuration through the&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;videoModule-&amp;gt;SetCaptureProfile(&amp;amp;inputs)&lt;/PRE&gt;

	&lt;P&gt;method as described in your last post. In fact, all profiles from QueryCaptureProfile(i, &amp;amp;inputs) loaded by this method result in PXC_STATUS_ITEM_UNAVAILABLE(-3). This is very confusing to me and I do not know what I'm doing wrong. My cameras in use are F200, R200 or SR300 (not used in parallel). All show the same behaviour but work normal in all other situations.&lt;BR /&gt;
		Another problem is the following. During program execution I want to switch from time to time between two different (different resollution, image format and camera) image streams for the face module. This does not seem to work with my current approach using the sensemanager.&lt;/P&gt;

	&lt;P&gt;I suppose that I need to work with two face module instances and two video module instances obtained by:&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;session-&amp;gt;CreateImpl(&amp;amp;face_desc, &amp;amp;face_a)
session-&amp;gt;CreateImpl(&amp;amp;face_desc, &amp;amp;face_b)

vm_a = face_a-&amp;gt;QueryInstance&amp;lt;PXCVideoModule&amp;gt;();
vm_b = face_b-&amp;gt;QueryInstance&amp;lt;PXCVideoModule&amp;gt;();&lt;/PRE&gt;

	&lt;P&gt;Now I would like to setup the stream profiles for each image source with the above mentioned approach.&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;Thank you for any hint!&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Feb 2016 08:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077054#M60268</guid>
      <dc:creator>hape</dc:creator>
      <dc:date>2016-02-18T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Hi Hape,</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077055#M60269</link>
      <description>&lt;P&gt;Hi Hape,&lt;/P&gt;

&lt;P&gt;In your case you're using RealSense cameras as a source, right? So, it should be possible to use existing SenseManager pipeline for all stream setup and streaming operations. Take Face sample as a starting point. You should be able to select desired stream profile with FilterByStreamProfiles(). Then start streaming. When you need to switch, stop SenseManager and re-initialize it with new parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 10:15:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077055#M60269</guid>
      <dc:creator>Dmitry_Z_Intel</dc:creator>
      <dc:date>2016-02-19T10:15:04Z</dc:date>
    </item>
    <item>
      <title>Quote:DMITRY Z. (Intel) wrote</title>
      <link>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077056#M60270</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;DMITRY Z. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Hape,&lt;/P&gt;

&lt;P&gt;In your case you're using RealSense cameras as a source, right? So, it should be possible to use existing SenseManager pipeline for all stream setup and streaming operations. Take Face sample as a starting point. You should be able to select desired stream profile with FilterByStreamProfiles(). Then start streaming. When you need to switch, stop SenseManager and re-initialize it with new parameters.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;DIV&gt;Hi Dimitry,&lt;/DIV&gt;

&lt;DIV&gt;Yes, I only use Intel RealSense (front facing) cameras, but not in parallel. Thus, there is only one camera connected. Unfortunately, the FilterByStreamProfiles(...) method does not work. More details below.&lt;/DIV&gt;

&lt;DIV&gt;The main purpose of the setup is the following:&lt;BR /&gt;
	- under normal circumstances use the color+depth streams for the face module processing&lt;BR /&gt;
	- in the case the color stream quality is too bad, i.e. too dark light conditions, use the ir+depth-streams for the face module processing&lt;/DIV&gt;

&lt;DIV&gt;This is basically my current test code:&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;const pxcI32 width = 640; const pxcI32 height = 480;

// activate and obtain the face module interface
sm-&amp;gt;EnableFace(); face = sm-&amp;gt;QueryFace();

// query the video configuration from the face module
vm = face-&amp;gt;QueryInstance&amp;lt;PXCVideoModule&amp;gt;();

// setup stream configuration HERE, with one of the methods below
...
initFaceModule(...); // setup face module configuration

sm-&amp;gt;Init();

while (sm-AcquireFrame(true) &amp;gt;= PXC_STATUS_NO_ERROR) {
&amp;nbsp; PXCCapture::Sample* sample = sm-&amp;gt;QuerySample();

&amp;nbsp; info_ir = sample-&amp;gt;ir-&amp;gt;QueryInfo();
&amp;nbsp; info_depth = sample-&amp;gt;depth-&amp;gt;QueryInfo();
&amp;nbsp; info_color = info_ir; info_color.format = PXCImage::PIXEL_FORMAT_RGB24;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; PXCCapture::Sample images{};
&amp;nbsp; images.ir = session-&amp;gt;CreateImage(&amp;amp;info_ir);
&amp;nbsp; images.color = session-&amp;gt;CreateImage(&amp;amp;info_color);
&amp;nbsp; images.depth = session-&amp;gt;CreateImage(&amp;amp;info_depth);

&amp;nbsp; // fill sample images with data
&amp;nbsp; images.ir-&amp;gt;CopyImage(sample-&amp;gt;ir);
&amp;nbsp; images.color-&amp;gt;CopyImage(sample-&amp;gt;ir); // USE ir-stream for face module, instead of color stream
&amp;nbsp; images.depth-&amp;gt;CopyImage(sample-&amp;gt;depth);

&amp;nbsp; PXCSyncPoint* sp;
&amp;nbsp; status = vm-&amp;gt;ProcessImageAsync(&amp;amp;images, &amp;amp;sp);
&amp;nbsp; if (status &amp;gt;= PXC_STATUS_NO_ERROR) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; status = sp-&amp;gt;Synchronize();
&amp;nbsp;&amp;nbsp;&amp;nbsp; // face processing is done at this point, query face data
&amp;nbsp;&amp;nbsp;&amp;nbsp; status = face_data-&amp;gt;Update();

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status == PXC_STATUS_NO_ERROR) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pxcI32 fnum = face_data-&amp;gt;QueryNumberOfDetectedFaces();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DEBUG output
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; std::cout &amp;lt;&amp;lt; "#faces = " &amp;lt;&amp;lt; fnum &amp;lt;&amp;lt; std::endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (fnum &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do face processing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; sp-&amp;gt;Release();
&amp;nbsp; }
&amp;nbsp; images-&amp;gt;ReleaseImage();
&amp;nbsp; sm-&amp;gt;ReleaseFrame();
}&lt;/PRE&gt;

	&lt;P&gt;&lt;BR /&gt;
		Until now I figured out 5 different possibilities to setup stream configurations:&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;1) PXCSenseManager::EnableStreams(...)&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;PXCVideoModule::DataDesc inputs{};
inputs.streams.color.sizeMax = { width, height };
inputs.streams.depth.sizeMax = { width, height };
inputs.streams.ir.sizeMax = { width, height };

sm-&amp;gt;EnableStreams(&amp;amp;inputs);&lt;/PRE&gt;

	&lt;P&gt;problem: calling sp-&amp;gt;Synchronize() results in: Unhandled Exception: Access Violation reading location 0x0&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;2) PXCSenseManager::EnableStream(...)&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_IR, width, height)
sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, width, height)
sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_DEPTH, width, height)&lt;/PRE&gt;

	&lt;P&gt;problem: it basically works, but the face detection and the landmarks are not stable.&lt;BR /&gt;
		&lt;BR /&gt;
		In the case I occlude the color camera, the accuracy and stability of the landmarks are much better.&lt;BR /&gt;
		&lt;BR /&gt;
		In the case I omit enabling the color stream, which, at least from my understanding, also should work, the same problem as in method 1) occurs.&lt;BR /&gt;
		&lt;BR /&gt;
		That's why I assume that with this method I do not have enough control about the stream settings of the face module.&lt;BR /&gt;
		&lt;BR /&gt;
		Of course it could also be a problem with my method copying the data from the ir-image to the color-image, but the returned status value does not hint something.&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;3) PXCCaptureManager::FilterByStreamProfiles(...)&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;PXCCapture::Device::StreamProfileSet profiles = {};
memset(&amp;amp;profiles, 0, sizeof(profiles));

profiles.color.imageInfo.width = width;
profiles.color.imageInfo.height = height;
profiles.depth.imageInfo.width = width;
profiles.depth.imageInfo.height = height;
profiles.ir.imageInfo.width = width;
profiles.ir.imageInfo.height = height;

cm-&amp;gt;FilterByStreamProfiles(&amp;amp;profiles);&lt;/PRE&gt;

	&lt;P&gt;problem: sample = sm-&amp;gt;QuerySample() does not contain an ir image, sample-&amp;gt;ir is a null pointer. Why?&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;4) PXCCaptureManager::RequestStreams(...)&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;PXCVideoModule::DataDesc inputs{};
inputs.streams.color.sizeMax = { width, height };
inputs.streams.depth.sizeMax = { width, height };
inputs.streams.ir.sizeMax = { width, height };

cm-&amp;gt;RequestStreams(face-&amp;gt;CUID, &amp;amp;inputs);
cm-&amp;gt;LocateStreams();&lt;/PRE&gt;

	&lt;P&gt;problem: (same as method 3) sample = sm-&amp;gt;QuerySample() does not contain an ir image, sample-&amp;gt;ir is a null pointer. Why?&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;5) not using senseManager, as described in my last message&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;for (int i = 0;; i++) {
&amp;nbsp; PXCVideoModule::DataDesc inputs;
&amp;nbsp; status = vm-&amp;gt;QueryCaptureProfile(i, &amp;amp;inputs);
&amp;nbsp; // filter streams of interest
&amp;nbsp; ...&amp;nbsp;&amp;nbsp; 
&amp;nbsp; status = vm-&amp;gt;SetCaptureProfile(&amp;amp;inputs);
&amp;nbsp; if (status &amp;lt; PXC_STATUS_NO_ERROR) { continue; }
&amp;nbsp; status = vm-&amp;gt;QueryCaptureProfile(&amp;amp;current);
&amp;nbsp; if (status &amp;lt; PXC_STATUS_NO_ERROR) { continue; }
&amp;nbsp; std::wcout &amp;lt;&amp;lt; "SUCCESS! " &amp;lt;&amp;lt; PXCCapture::DeviceModelToString(current.deviceInfo.model) &amp;lt;&amp;lt; std::endl; // never reached until here
}&lt;/PRE&gt;

	&lt;P&gt;problem: does not work at all. See my last message...&lt;BR /&gt;
		&lt;BR /&gt;
		Thus, I'm stuck. Any hint for resolving these issues would be very helpful :)&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Feb 2016 07:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FaceTracking-from-a-video/m-p/1077056#M60270</guid>
      <dc:creator>hape</dc:creator>
      <dc:date>2016-02-22T07:01:00Z</dc:date>
    </item>
  </channel>
</rss>

