face recognition
face recognition
face recognition
face recognition face recognition face recognition face recognition face recognition
face recognition face recognition
face recognition
face recognition
face recognition
Luxand FaceSDK – Using with .NET (C# and VB) face recognition
face recognition face recognition

For Microsoft .NET applications, you need to add the .NET component into your project.

Follow these steps to add the component in Visual Studio 2005/2008:

  • Select Project – Add Reference – Browse
  • For 32-bit applications, choose the file bin\win32\FaceSDK.NET.dll
  • For 64-bit native applications, choose the file bin\win64\FaceSDK.NET.dll
  • Add the following statement to the beginning of your application:

using Luxand

After that you may use the methods of the Luxand.FSDK namespace for general FaceSDK functions, and Luxand.FSDKCam namespace for webcam-related functions. You may refer just to FSDK and FSDKCam namespaces if using Luxand is specified.

Once FaceSDK.NET.dll is added to the references, it will be redistributed automatically with your application, so no specific deployment actions are required. You do not need to redistribute facesdk.dll with your application. However, you need to redistribute Microsoft Visual C++ 2008 SP1 Runtime.

By default, the documentation refers to C/C++ declarations of FaceSDK functions. For example, the function to detect a face is referred to as FSDK_DetectFace function. To refer to this function in .NET, replace the FSDK_ prefix with FSDK. namespace. Thus, the reference to this function becomes FSDK.DetectFace (note that webcam-specific functions are located in the FSDKCam. namespace; refer to Working with Cameras for details).

Note: This .NET component is available in a binary form, compatible with .NET 2.0, 3.0, 3.5 and 4.0. To use the component with .NET 4.0, just add the useLegacyV2RuntimeActivationPolicy="true" attribute to the <startup> section of the app.config file of your project. If there is no such file in your project, just create the file with the following content:

<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"
sku=".NETFramework,Version=v4.0"/>

</startup>
</configuration>

If you need a component for a specific .NET version, you may use the source code available in the samples\advanced\.NET wrapper directory. Note that this component is actually a wrapper for facesdk.dll that is linked dynamically, so facesdk.dll must be redistributed with the application that uses this wrapper.

 

Next chapterUsing CImage class in .NET

Contents

face recognition
Top Downloads

Blink! Pro
Log in to your PC by simply looking at it.
BabyMaker
Don't wait nine months to see your baby! All you need is two pictures.
ProphecyMaster
What Will You Look Like in 20 Years?
Glamourizer
Turn ordinary photos into glamour portraits, hundreds at a time.

Latest News

07.12.2011 FaceSDK 4.0 Released
FaceSDK 4.0 goes real-time, making better use of multi-core systems

16.11.2011 Get Help with Your Project with Luxand Partner Network
Luxand is excited to announce the launch of its Partner Network.

20.04.2011 Luxand’s New Mirror Reality Technology Immerses Users in Augmented Reality
Luxand, Inc. introduces Mirror Reality, a facial feature detection technology that makes augmented reality possible.

face recognition

Solutions  |  Products  |  Download  |  Privacy  |  Support  |  Development  |  Press  |  About Luxand
© 2005-2012 Luxand, Inc.
face recognition
face recognition
face recognition
face recognition