Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Issues in running a sample

HexLord
Beginner
486 Views

Hi ,

I am trying to run a sample code but there seems to be an issue.

PXCSenseManager *sm=PXCSenseManager::CreateInstance();

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR,0,0)

 

It gives the Invalid arguments error.

Any help will be appreciated.

 

Thanks,

Shaleen Sharda

0 Kudos
2 Replies
Xusheng_L_Intel
Employee
486 Views

Should use PXCSenseManager sm = PXCMSenseManager.CreateInstance(); Thanks!

0 Kudos
HexLord
Beginner
486 Views

hi David.

Thanks for the reply.

I am stuck with another issue. I am trying to print a message indicating the no of faces in front of the camera.

Here's my code. This is right out of the SDK but I still  cant get it to work. It just prints 0 again and again.

Pls help.

 

 PXCMSenseManager sm = PXCMSenseManager.CreateInstance();

          sm.EnableFace();
            sm.Init();              

          while (sm.AcquireFrame()>= pxcmStatus.PXCM_STATUS_NO_ERROR )
            {

                PXCMFaceModule face2 = sm.QueryFace();
                 PXCMFaceData fdata= face2.CreateOutput();
                 Int32 no = fdata.QueryNumberOfDetectedFaces();
                 Console.WriteLine(no);
              fdata.Dispose();           
            }

0 Kudos
Reply