Introduction to Alibaba Cloud Face Recognition (2)

Introduction to Alibaba Cloud Face Recognition (2)

Introduction to Alibaba Cloud Face Recognition (2)

Last time we briefly introduced how to use Alibaba Cloud to implement the face comparison function in face recognition. This time we will introduce in detail the detection and location and attribute recognition in face recognition.

Face detection and positioning, as shown

Introduction to Alibaba Cloud Face Recognition (2)

Face attribute recognition, as shown

Introduction to Alibaba Cloud Face Recognition (2)

Face comparison, as shown

Introduction to Alibaba Cloud Face Recognition (2)

These three functions are independent APIs on Alibaba Cloud, which can be switched freely according to needs. They are face attribute recognition, face detection and positioning, and face comparison.

Introduction to Alibaba Cloud Face Recognition (2)

The area and request method are the default East China 2 and POST, so there is no need to fill in. The request address will be determined according to the interface name. The key is to pay attention when writing the request body, because only this part is really necessary for us to fill in. After filling in the wrong part, debugging will result in an error.

I now teach you how to write the request body:

1. Face attribute recognition

{ "type":0

"image url":"Fill in the url address here"

}

2. Face detection and positioning (same as above)

{ "type":0

"image url":"Fill in the url address here"

}

3. Face comparison (applicable to two pictures)

{"type":0,

"image_url_1":"First image url",

"image_url_2":"Second image url"

}

Then enter the Access key ID and Access key secret, and click the debug interface.

For example: the output result of face detection and positioning

Introduction to Alibaba Cloud Face Recognition (2)

For the output return value analysis, you can view the API call description, please refer to:

1. Face attribute recognition: https://help.aliyun.com/knowledge_detail/53520.html
2. Face detection and positioning: https://help.aliyun.com/knowledge_detail/53399.html
3. Face comparison : Https://help.aliyun.com/knowledge_detail/53535.html
Introduction to Alibaba Cloud Face Recognition (2)

Introduction to Alibaba Cloud Face Recognition (2)

Guess you like

Origin blog.51cto.com/14993422/2548631