- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 |
} |
Link Copied
0 Replies

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