Constants

IMAGE

IMAGE = __DIR__ . '/../resource/face/'

OUTPUT

OUTPUT = __DIR__ . '/../output/face/'

IMAGE1

IMAGE1 = self::IMAGE . 'wxc.jpg'

IMAGE2

IMAGE2 = self::IMAGE . 'wxc2.jpg'

IMAGE3

IMAGE3 = self::IMAGE . 'wxc3.jpg'

IMAGE5

IMAGE5 = self::IMAGE . 'wxc5.jpg'

DETECT_CROSS_IMAGE_1

DETECT_CROSS_IMAGE_1 = self::IMAGE . 'peterye1.jpg'

DETECT_CROSS_IMAGE_2

DETECT_CROSS_IMAGE_2 = self::IMAGE . 'peterye2.jpg'

PERSON_ID

PERSON_ID = 'testPersonId'

PERSON_NAME

PERSON_NAME = 'testPersonName'

PERSON_TAG

PERSON_TAG = 'testPersonTag'

Properties

$ai

$ai : \TencentAI\TencentAI

Type

\TencentAI\TencentAI

$name

$name : 

Type

$array

$array : 

Type

Methods

ai()

ai() 

testDeleteForce()

testDeleteForce() 

Throws

\TencentAI\Error\TencentAIError

testCreatePerson()

testCreatePerson() : mixed

人体创建.

Throws

\TencentAI\Error\TencentAIError
\Exception

Returns

mixed

testGetPersonList()

testGetPersonList() 

获取人体列表.

Throws

\TencentAI\Error\TencentAIError

testGetGroupList()

testGetGroupList() 

获取组列表.

Throws

\TencentAI\Error\TencentAIError

testAdd()

testAdd() 

个体 => 增加人脸.

Throws

\TencentAI\Error\TencentAIError
\Exception

testGetList()

testGetList() 

个体 => 获取人脸列表.

Throws

\TencentAI\Error\TencentAIError

testGetInfo()

testGetInfo(string  $faceId) 

获取人脸信息.

Parameters

string $faceId

Throws

\TencentAI\Error\TencentAIError

testDelete()

testDelete(array  $faceIds) 

个体 => 删除人脸.

Parameters

array $faceIds

Throws

\TencentAI\Error\TencentAIError

testSetPersonInfo()

testSetPersonInfo() 

设置个体信息.

Throws

\TencentAI\Error\TencentAIError

testGetPersonInfo()

testGetPersonInfo() 

获取个体信息.

Throws

\TencentAI\Error\TencentAIError

testDetect()

testDetect() 

人脸分析.

Throws

\TencentAI\Error\TencentAIError

testMultiDetect()

testMultiDetect() 

多人脸识别.

Throws

\TencentAI\Error\TencentAIError

testShape()

testShape() 

五官检测.

Throws

\TencentAI\Error\TencentAIError

compare()

compare() 

如果一个测试函数添加了 @test 注解,那么测试函数名字就不必以 test 开头.

人脸对比

Throws

\TencentAI\Error\TencentAIError

testIdentify()

testIdentify() 

人脸识别.

Throws

\TencentAI\Error\TencentAIError

testDetectCrossAge()

testDetectCrossAge() 

跨年龄人脸识别.

Throws

\TencentAI\Error\TencentAIError

testVerify()

testVerify() 

人脸验证

Throws

\TencentAI\Error\TencentAIError

testDeletePerson()

testDeletePerson() 

删除个体.

Throws

\TencentAI\Error\TencentAIError

tearDown()

tearDown() 

face()

face()