문서의 이전 판입니다!


Face API > BS2_GetNormalizedImageFaceEx


[+ 2.8] FaceStation F2 WARP 되어지지 않은(가공되어지지 않은) 얼굴 이미지로, WARP 이미지를 만듭니다.
서버는 WARP 이미지를 사용자 별로 보관하다가,
서버매칭 요청 시 해당 사용자의 WARP 이미지를 장치에 내려주는 형태로 서버매칭의 구현이 가능합니다.
WARP에 대한 설명은 BS2FaceExflag 필드를 참고 바랍니다.

함수

#include "BS_API.h"
 
int BS2_GetNormalizedImageFaceEx(void* context, uint32_t deviceId, const uint8_t* unwarpedImage, uint32_t unwarpedImageLen, uint8_t* warpedImage, uint32_t* warpedImageLen);

파라미터

  • [In] context : Context
  • [In] deviceId : 장치 식별자
  • [In] unwarpedImage : WARP 되어지지 않은 일반 얼굴 이미지 정보를 가리키는 포인터
  • [In] unwarpedImageLen : unwarpedImage 데이터의 크기
  • [Out] warpedImage : WARP된 이미지 정보를 취득할 버퍼의 포인터
  • [Out] warpedImageLen : 취득된 warpedImage 데이터의 크기

반환값

성공적으로 수행될 경우 BS_SDK_SUCCESS를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.