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 – Thread Safety face recognition
face recognition face recognition

This chapter describes the use of FaceSDK in applications, processing multiple threads. If your program is executed in a single thread (by default it happens in almost all environments), you can skip this chapter.

Most of FaceSDK functions are safe for multithreaded operations except webcam-related functions. It is strongly recommended to use these functions only within one thread. The functions not guaranteed to be thread-safe are:

FSDK_Initialize,
FSDK_Finalize,
FSDK_ActivateLibrary,
FSDK_GetLicenseInfo,
FSDK_GetHardware_ID,
FSDK_SetNumThreads.

When working with cameras in multiple threads on Windows platforms, make sure that each thread calls the FSDK_InitializeCapturing function and the FSDK_FinalizeCapturing function when the thread is done. The following functions are thread safe (on all supported platforms) given that no different threads are simultaneously accessing the same camera handle:

FSDK_GetVideoFormatList,
FSDK_FreeVideoFormatList,
FSDK_SetVideoFormat,
FSDK_OpenVideoCamera,
FSDK_CloseVideoCamera,
FSDK_GrabFrame.

The following functions set global parameters that have effect on each thread:

FSDK_SetFaceDetectionParameters,
FSDK_SetFaceDetectionThreshold,
FSDK_SetJpegCompressionQuality,
FSDK_SetCameraNaming,
FSDK_SetHTTPProxy,
FSDK_SetNumThreads.

Note that HImage is safe only for multiple simultaneous reads or single write. Do not read from (e.g. with FSDK_DetectFace) and write to (e.g. with FSDK_FreeImage) the same HImage handle at one time.

 

Next chapterMigration from FaceSDK 3.0

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