-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsample.php
23 lines (20 loc) · 1009 Bytes
/
sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require('./include.php');
use TencentYoutuyun\Youtu;
#$uploadRet = YouTu::DetectFace('you_path.jpg');
#$uploadRet = YouTu::NewPerson('you_path.jpg','123456',array('test_groupid','test_groupid2','test_groupid3'));
#$uploadRet = YouTu::FaceVerify('you_path.jpg','123456');
#$uploadRet = YouTu::FaceIdentify('you_path.jpg','test_groupid');
#$uploadRet = YouTu::NewPerson('you_path.jpg','123456',array('test_groupid','test_groupid2','test_groupid3'));
#$uploadRet = YouTu::DelPerson('123456');
#$uploadRet = YouTu::AddFace('123456',array('you_path.jpg'));
#$uploadRet = YouTu::DelFace('123456',array('1027423607359340543'));
#$uploadRet = YouTu::SetInfo('name_groupid','123456');
#$uploadRet = YouTu::GetInfo('123456');
#$uploadRet = YouTu::GetGroupIds();
#$uploadRet = YouTu::GetPersonIds('test_groupid');
#$uploadRet = YouTu::GetFaceIds('123456');
#$uploadRet = YouTu::GetFaceInfo('1027425345818656767');
$uploadRet = YouTu::FaceCompare('you_path_one.jpg', 'you_path_two.jpg');
var_dump($uploadRet);
?>