- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, please advice me how to load image.
I want to load pre-recorded image and detect face.
when I use PerC SDK 2013, I can load it and get face data.
However, RealSense SDK might hide the function to load an image, don't it?
PerC SDK 2013
---------------------------------------------------
sts = face->ProcessImageAsync(&img1, sps.ReleaseRef(1));
---------------------------------------------------
PXCVideoModule class has ProcessImageAsync method.
I don't know how to get instance of PXCVideoModule.
Could you give me an advice or sample to load an image not live camera?
Thanks.
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here you go. Hope it will give you help.
PXCSyncPoint* sp = NULL; PXCImage* image = NULL; createImage(&image); PXCCapture::Sample* sample = new PXCCapture::Sample(); sample->color = image; do { sts = psm->QueryCaptureManager()->ReadModuleStreamsAsync(pFaceConfig->CUID, sample, &sp); }while (sts < PXC_STATUS_NO_ERROR); sp->Synchronize(); faceOutput->Update(); faceOutput->QueryFaceByIndex(0)->QueryRecognition()->RegisterUser();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, David.
Thank you very much!
I tried your code.
But the process loops infinitely from LINE08 to LINE10.
LINE09 ReadModuleStreamAsync method returns PXC_STATUS_ITEM_UNAVAILABLE(-3)
Do you know why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That means the SDK did not find the device meet the requirement. Do you have Intel 3D camera? The 3D camera is default in facial module. You need pFaceConfig->SetTrackingMode(PXCFaceConfiguration::TrackingModeType::FACE_MODE_COLOR); if you want to use 2D camera in facial module. Enjoy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't have Intel 3D camera.
I'm using Surface Pro 3 with inner camera "Microsft LifeCam Front".
I did pFaceConfig->SetTrackingMode(PXCFaceConfiguration::TrackingModeType::FACE_MODE_COLOR);
the result is same.
LINE09 ReadModuleStreamAsync method returns PXC_STATUS_ITEM_UNAVAILABLE(-3)
I tried to change CUID.
sts = captureManager->ReadModuleStreamsAsync(PXCFaceModule::CUID, sample, &sp);
Then, ReadModuleStreamAsync method returns PXC_STATUS_NO_ERROR(0).
But m_output->QueryFaceByIndex(0) returns NULL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please help me.
I haven't yet solve my problem.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page