Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zhao_x_
Beginner
69 Views

How can I use Face tracking module with R200 placed vertically?

Can I rotate the raw stream 90 before feed to face tracking module?  But I can not find any code or function to do that in sdk manual or samples. Thanks!

0 Kudos
5 Replies
Xusheng_L_Intel
Employee
69 Views

You can rotate the image during AcquireAccess. The API will be 

pxcStatus AcquireAccess(Access access, PixelFormat format, Rotation rotation, Option options, ImageData *data);

Please find detail @https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/acquireaccess_pxcimage.html?zoom_highlightsub=AcquireAccess

Thanks!

zhao_x_
Beginner
69 Views

Thanks! I can get the rotated image data now.

Then, How can I feed the rotated image to face tracking module? Should I do any thing before call "(PXCFaceData*) output ->Update();"?

Keith_B_1
Beginner
69 Views

I was just wondering this as well. Is it possible to track a face after rotating the image? Thanks to both of you!

Wei-chieh_H_
Beginner
69 Views

hello, after I rotate image, I meet the problom. coloBitmap.Dispose(); nullreferenceException. How can I solve?

hape
Beginner
69 Views

zhao x. wrote:

Thanks! I can get the rotated image data now.

Then, How can I feed the rotated image to face tracking module? Should I do any thing before call "(PXCFaceData*) output ->Update();"?

Hi Zhao X.,

feeding the face module with "modified" images is indeed possible. However, I doubt you can feed them directly in the rotated form - I suppose that the face module depends on the dimensions of the image. But this should not be to hard to be solved with some after-processing.

You need to obtain an instance of the PXCVideoModule from the face module instance and then after you prepared the images call the member function ProcessImageAsync(images, sp) of the PXCVideoModule instance. Since the processing is asynchronous, you need to synchronize (call sp->Synchronize())with the PXCSyncPoint* sp before updating the face data.

You can also have a look here https://software.intel.com/en-us/forums/realsense/topic/606341#comment-1861247​ (this first big block of code in message 20) for some example code and more details.

Good luck!

Reply