Documentation

Documentation

  • Conversation
  • Reader
  • Speech
  • Console
  • Languages iconTiếng Việt
    • English
    • Janpanese

›Hướng dẫn

Tổng quan

  • Nhận diện Bằng Lái Xe
  • Nhận diện CMT/CCCD
  • Nhận diện Hộ Chiếu
  • Xác thực khuôn mặt
  • Tìm kiếm khuôn mặt
  • Reader
  • SDK FPT.AI eKYC
  • Nhận diện tính sống

API

  • Nhận diện Bằng Lái Xe
  • Nhận diện CMT/CCCD
  • Nhận diện Hộ Chiếu
  • Tìm kiếm khuôn mặt
  • Xác thực khuôn mặt
  • Nhận diện tính sống

Hướng dẫn

  • Nhận diện Bằng Lái Xe
  • Nhận diện CMT/CCCD
  • Nhận diện Hộ Chiếu
  • Tìm kiếm khuôn mặt
  • Xác thực khuôn mặt
  • SDK eKYC
  • Nhận diện tính sống

Hướng dẫn

FPT.AI Reader - Tìm kiếm khuôn mặt

Hệ thống Facesearch được kết nối với FPT Gateways, vì vậy nhà phát triển cần tạo tài khoản tại Console và tạo API key để sử dụng được API này (mặc định API key mới chỉ sử dụng được 1000 requests)

API key phải được đặt ở headers của tất cả các request như sau:

api_key: generated_API_key

Tạo người dùng trên hệ thống (để thêm ảnh index)

Dùng Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/create"

payload = {

'collection': 'test2',

'id': '1234',

'name': 'Nam'

}

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload)

Dùng Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/create' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'collection=test2' \\

\--form 'id=1234' \\

\--form 'name=Nam'

Dùng phần mềm Postman

Headers

2

Body

3

Index ảnh của người dùng

Dùng Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/add"

payload = {

'collection': 'test2',

'id': '1234'

}

files = [

('file', open('/path/to/photo.jpg', 'rb'))

]

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload, files
= files)

Dùng Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/add' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'file=\@/path/to/photo.jpg' \\

\--form 'collection=test2' \\

\--form 'id=1234'

Dùng phần mềm Postman

Headers

4

Body

5

Tìm kiếm khuôn mặt

Dùng Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/search"

payload = {

'collection': 'test2',

'threshold': '0.9'

}

files = [

('file', open('/path/to/photo.jpg','rb'))

]

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload, files
= files)

Dùng Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/search' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'file=\@/path/to/photo.jpg' \\

\--form 'collection=test2' \\

\--form 'threshold=0.9'

Dùng phần mềm Postman

Headers

6

Body

7

← Nhận diện Hộ ChiếuXác thực khuôn mặt →
  • Tạo người dùng trên hệ thống (để thêm ảnh index)
    • Dùng Python
    • Dùng Shell
    • Dùng phần mềm Postman
  • Index ảnh của người dùng
    • Dùng Python
    • Dùng Shell
    • Dùng phần mềm Postman
  • Tìm kiếm khuôn mặt
    • Dùng Python
    • Dùng Shell
    • Dùng phần mềm Postman
Conversation
DocumentationAPI ReferenceTutorials (Video)
Reader
DocumentationAPI ReferenceTutorials
Speech
DocumentationAPI ReferenceTutorials
Copyright © 2023 FPT Corporation