Software Archive
Read-only legacy content
17061 Discussions

Query Number of faces

HexLord
Beginner
365 Views

hi,

I am stuck with an issue of querying the number of faces . Here is the code

Any help will be appreciated.

01 PXCMSenseManager sm = PXCMSenseManager.CreateInstance();
02  
03       sm.EnableFace();
04         sm.Init();
05  
06  
07         // face is a PXCMFaceModule instance
08  
09         
10  
11  
12         while (sm.AcquireFrame()>= pxcmStatus.PXCM_STATUS_NO_ERROR )
13         {
14  
15             PXCMFaceModule face2 = sm.QueryFace();
16              PXCMFaceData fdata= face2.CreateOutput();
17              Int32 no = fdata.QueryNumberOfDetectedFaces();
18              Console.WriteLine(no);
19           fdata.Dispose();          
20         }
0 Kudos
0 Replies
Reply