- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am working with an application using the RealSense. In my App I need to transform a set of Images for a processing with the Emotion detector, but at this moment I haven't found the way to do that. I am using c++. I have found some ways but those need a object of the class PXCAccelerator but I can't find its library. Thank's for the help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I got help from someone else to do it so I copy paste here his solution:
You can get the raw image data from the OpenCV cv::Mat image, and pass it to the CreateImage method of the RealSense SDK:
//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->CreateImage(&info,0,&data);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm someone else, and this is the original thread that olivier is referring to:
https://software.intel.com/en-us/forums/realsense/topic/606341
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
samontab wrote:
I'm someone else, and this is the original thread that olivier is referring to:
https://software.intel.com/en-us/forums/realsense/topic/606341
Hi, Thank you, this could solve my first problem. My real problem is that I have a lot of images corresponding to a video generated by the realsense. But I am not able to convert them in a video cause the log file is empty. I want to use the whole bunch of images to feed a realsense application. I am running the "Emotion Viewer" on the "RealSense SDK Sample Browser". I am able to change the color image of the PXCCaptureManager, but where can I replace the depth image?. I have tested a .rsdk file and it looks like the depth PXCImage is not used in the PXCSenseManager::QueryEmotionSample()->depth. Where are used then the depth files?
![](/skins/images/CFFB2A61F54C801D3848FE691F0698E4/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page