完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在尝试使用SDK中的面部跟踪解决方案来跟踪视频中的表情和脉冲。 我使用openCV获取视频中的每个图像,然后将它们转换为PXCImage并将它们提供给面部模块进行处理。 但我遇到的问题是,当我使用2D模式,并且选择了“脉冲”模块时,第一帧是正常的,但是从下一帧开始,尽管图像与第一帧相同,但它找不到任何面部。 当模式为“3D IR”或未选择“Pulse”模块时,一切正常。 有没有人遇到过同样的问题? 谢谢。 以上来自于谷歌翻译 以下为原文 Hello everyone, I'm trying to use the face tracking solution from the SDK for tracking expression and pulse from a video. I use openCV to get each image in the video, then convert them to PXCImage and feed them to face module to process. But I meet a problem that when I use 2D mode, and the "Pulse" module is selected, the first frame is OK but from the next frame, it can't find any face though the picture is the same as the first frame. Everything is OK when the mode is "3D IR" or the "Pulse" module is not selected. Is there anyone who have met the same problem? Thanks. |
|
相关推荐
9个回答
|
|
你能告诉我你正在使用哪种RealSense SDK吗?
是'2016 R2'还是'2016 R3',还是现在的RealSense SDK 2.0。 谢谢! 以上来自于谷歌翻译 以下为原文 Could you tell me which RealSense SDK you are using please? Is it '2016 R2' or '2016 R3', or is it the current RealSense SDK 2.0. Thanks! |
|
|
|
nywerwer 发表于 2018-11-20 19:04 你好, 我正在使用的SDK是“2016 R2”。 以上来自于谷歌翻译 以下为原文 Hello, The SDK I'm using is "2016 R2". |
|
|
|
非常感谢您的确认。 您正在使用R2 SDK附带的Pulse Estimation模块的脉冲模块吗? 或者它是OpenCV脉冲模块? 英特尔®实感™SDK 2016 R2文档 以上来自于谷歌翻译 以下为原文 Thank you very much for the confirmation. Is the pulse module that you are using the Pulse Estimation module that comes with the R2 SDK? Or is it an OpenCV pulse module? Intel® RealSense™ SDK 2016 R2 Documentation |
|
|
|
对不起我说的不清楚。 我想我正在使用R2 SDK附带的Pulse Estimation模块。 实际上,我选择了面部跟踪样本解决方案界面上的“脉冲”复选框。 然后我将“Profile”设置为“2D”,并将“Mode”设置为“playback”。 我选择一个播放文件,然后单击“开始”按钮。 在处理时,我创建了一张图片并将其转换为PXCImage。 然后我把它喂给一个样品并用它处理 ProcessSample(PXCCapture :: Sample * sample) 谢谢你这么耐心。 以上来自于谷歌翻译 以下为原文 I'm sorry what I said is unclear. I think I'm using the Pulse Estimation module that comes with the R2 SDK. Actually I select the "Pulse" check box on the interface of the face tracking sample solution. Then I set "Profile" to "2D", and set "Mode" to "playback". I choose a playback file and click "Start" button. While it is processing, I create a picture and convert it to PXCImage. Then I feed it to a sample and process it with ProcessSample(PXCCapture::Sample *sample)Thank you for being so patient. |
|
|
|
呜哇哇66 发表于 2018-11-20 19:27 我试着用我拥有的软件复制你的测试。 我用我的SR300运行了Face Tracking(C ++)程序,并用它在2D模式下录制了一个RSSDK文件,并选择了脉冲。 然后我使用相同的设置将文件加载到播放模式,它工作正常。 由于我没有使用您的PXC处理例程,因此问题可能出在项目的这个方面。 编辑:我不得不离开办公室一个小时。 我回来后会立即回复任何新评论。 谢谢! 以上来自于谷歌翻译 以下为原文 I tried replicating your test with the software that I have. I ran the Face Tracking (C++) program with my SR300 and used it to record an RSSDK file in 2D mode with pulse selected. Then I loaded the file into Playback mode with the same settings and it worked fine. Since I am not using your PXC processing routine, it is likely that the problem is with that aspect of the project. Edit: I have to go out of office for an hour. I will reply to any new comments as soon as I'm back. Thanks! |
|
|
|
nywerwer 发表于 2018-11-20 19:34 我做的替换样品是: PXCCapture :: Sample * sample = senseManager-> QueryFaceSample(); 这是解决方案中的示例代码。 将其替换为: PXCCapture :: Sample sample = {}; PXCImage :: ImageInfo iinfo = {}; memset(& iinfo,0,sizeof(iinfo)); iinfo.width = 1280; iinfo.height = 720; //读取原始文件并将其转换为PXCImage PXCImage :: PixelFormat format = PXCImage :: PIXEL_FORMAT_Y8_IR_RELATIVE; iinfo.format = format; PXCImage :: ImageData data = {}; data.format = format; 文件* pFile; pFile = fopen(“e:\ ir_result.dat”,“rb”); //这是我的原始文件 long len = 1280 * 720 * 1; pxcBYTE * planes0 = new pxcBYTE [len]; memset(planes0,0,len); fread(planes0,1,len,pFile); FCLOSE(PFILE); data.planes [0] = planes0; data.pitches [0] =(iinfo.width * 1); PXCImage * pxcImagec = senseManager-> QuerySession() - > CreateImage(& iinfo,& data); //提供样品并加工 PXCImage :: ImageInfo info = pxcImagec-> QueryInfo(); sample.color = session-> CreateImage(& info); sample.color-> CopyImage(pxcImagec); pxcImagec->释放(); VM-> ProcessSample(安培;样品); 然后在DrawBitmap函数中,将“sample”替换为“& sample” 你能帮我找到问题所在吗? 我发现好几天但我找不到问题。 谢谢。 以上来自于谷歌翻译 以下为原文 What I do to replace sample is: PXCCapture::Sample* sample = senseManager->QueryFaceSample();This is the sample code in the solution. Replace it to: PXCCapture::Sample sample = {};Then in DrawBitmap function, replace "sample" to "&sample" Can you help me find what is the problem? I find several days but I can't find the problem. Thanks. |
|
|
|
呜哇哇66 发表于 2018-11-20 19:52 不幸的是,我没有能力在我的电脑上测试脚本。 我将把RealSense流编程专家***455链接到这个讨论中作为他的输入,因为他的脚本知识可以追溯到早期SDK的语言。 以上来自于谷歌翻译 以下为原文 I do not have the ability to test scripts on my PC, unfortunately. I will link RealSense stream programming expert ***455 into this discussion for his input, as his scripting knowledge goes back to that earlier SDK's language. |
|
|
|
nywerwer 发表于 2018-11-20 20:07 非常感谢你! 以上来自于谷歌翻译 以下为原文 Thank you very much! |
|
|
|
我从来没有使用过脸部跟踪,所以无法帮助,抱歉。 我可以做的最好的建议是完全避免使用旧的SDK,因为它不再受支持。 最好使用新的SDK来获取相机流,然后使用OpenCV等第三方库来获取您需要的任何其他内容。 以上来自于谷歌翻译 以下为原文 I never used face tracking so can't help, sorry. Best suggestion I can make is to avoid using the old SDK altogether as it's no longer supported. Better to use the new SDK for obtaining the camera streams then third party libraries like OpenCV for anything else you need. |
|
|
|
只有小组成员才能发言,加入小组>>
475浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 19:12 , Processed in 0.666152 second(s), Total 62, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号