Closed Thread
Results 1 to 1 of 1

Thread: converting C++ into C#

  1. #1
    sakaesushi is offline Newbie
    Join Date
    Jun 2009
    Posts
    5
    Rep Power
    0

    converting C++ into C#

    HI, i need help in converting C++ code to C#, below is the attacted code to be converted. thanks

    Code:
    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);
    but instead of loading image from file, i want to "load" my image from webcam that will be displayed at the picture box


    And this
    Code:
    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); }
    once again, thanks
    Last edited by WingedPanther; 06-17-2009 at 08:40 AM. Reason: add code tags (the # button)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Converting PHP to C
    By Nile in forum C and C++
    Replies: 3
    Last Post: 07-05-2011, 08:22 PM
  2. Converting *.swf to *.avi
    By Jackson in forum Software Development Tools
    Replies: 9
    Last Post: 01-03-2010, 05:50 AM
  3. Converting *.swf to *.avi
    By Reji in forum C# Programming
    Replies: 8
    Last Post: 06-18-2009, 03:44 AM
  4. Converting [willing to pay]
    By DarkWalk in forum General Programming
    Replies: 1
    Last Post: 09-28-2007, 01:25 PM
  5. DPI Converting
    By Frantic in forum C# Programming
    Replies: 2
    Last Post: 09-22-2006, 07:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts