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]   !");
				}
			}
		}
	}
}

좋은 웹페이지 즐겨찾기