Introduction to Alibaba Cloud Face Recognition (1)
If we write a face recognition program by ourselves is very troublesome, we need to write the code ourselves, import the relevant packages, and build a convolutional neural network. Now Alibaba Cloud has encapsulated the algorithm, and face recognition can be easily and quickly implemented through API interface calls.
Today I will teach you how to compare two faces on Alibaba Cloud.
1. First, you need to open an Alibaba Cloud account and enable the face recognition function.
2. The OSS object storage service needs to be activated because images need to be stored in it. OSS is a service dedicated to storing unstructured data in Alibaba Cloud. After opening OSS, you need to create a bucket and upload pictures to the Object.
3. Log in to the user security information interface and copy the Access Key and Key secret.
4. Log in to the face recognition console, enter the relevant code and the url of the two pictures in the request body column, be sure to remember the format as shown in the figure, do not write wrong, otherwise the result will not be output, click the debug interface later.
5. Check the output result, the confidence acquaintance of the two pictures is 87.377%.
how about it? It's much faster to build a framework than you write the code by hand, try it yourself!
·END·
Please scan the code to follow
Let's
Wechat: Artificial Intelligence and Algorithm Learning