HI, i need help in converting C++ code to C#, below is the attacted code to be converted. thanks
but instead of loading image from file, i want to "load" my image from webcam that will be displayed at the picture boxCode:int img1; TFacePosition FacePosition; FSDK_Initialize(""); FSDK_LoadImageFromFile(&img1, "test.jpg"); FSDK_DetectFace(img1, &FacePosition); printf("face position: %d %d %d", FacePosition.xc, FacePosition.yc, FacePosition.angle);
And this
once again, thanksCode:int img1; int DetectedCount; TFacePosition FaceArray[50]; FSDK_Initialize(""); FSDK_LoadImageFromFile(&img1, "test.jpg"); FSDK_DetectMultipleFaces(img1, &DetectedCount , FaceArray, sizeof(FaceArray)); for (i = 0; i < DetectedCount; i++) { printf("face position: %d %d %d\n", FaceArray[i].xc, FaceArray[i].yc, FaceArray[i].angle); }
Last edited by WingedPanther; 06-17-2009 at 08:40 AM. Reason: add code tags (the # button)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks