openface 얼굴 인식 오픈 플랫폼
1237 단어 open
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QSFaceSDK;
namespace SDKTest
{
class Program
{
public static string image_file_1 = " _1.jpg";
static void Main(string[] args)
{
int app_key = 1000;
string app_secret = "dd6da32bcd4c356ebf42733054e8a6ae";
// OpenFace
OpenFace openface = new OpenFace(app_key, app_secret);
if (openface.state == 1)//state == 1
{
// ( )
Response response = openface.FaceAnalysis(image_file_1, " ");
if (response != null)
{
int code = response.status.code;
TaskModel result = response.result.taskInfo;
if(1000 == code)
{
//
}
}
}
else
{
if (openface.state == 0)
{
Console.WriteLine("QSFaceSDK.dll !");
}
else if (openface.state == -1)
{
Console.WriteLine("[Key | Secret] !");
}
}
}
}
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
openid에 따라 사용자의 기본 정보를 가져와 데이터베이스에 저장합니다//根据用户的openid获取用户昵称(基本信息) public function loadConcerners() $openidarr=$this->getOpenIds(); $concernerbaseinfolist=array(...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.