Skip to content

查询重采用户列表

离线刷脸业务中,偶尔会出现前期采集头像质量不高,导致算法升级后,旧的头像无法生成有效的人脸特征,影响用户使用刷脸服务。因此,需要对用户的头像进行重采。

请求参数类型描述
queryobject声明请求的查询参数
organization_idstring机构ID
offsetinteger列表偏移
limitinteger资源个数
php
$instance->v3->offlineface->faceCollections->getAsync([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlineface/face-collections')->getAsync([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlineface/face-collections']->getAsync([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlineface->faceCollections->get([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/face-collections')->get([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/face-collections']->get([
  'query' => [
    'organization_id' => 'Ofewewfwefweewf',
    'offset'          => 30,
    'limit'           => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
face_collectionsobject[]重采对象
collection_idstring重采ID
use_idstring用户ID
organization_idstring机构ID
collection_statestring重采状态
COLLECTION_REQUIRED | PHOTO_UPLOADED | COMPLETE 枚举值之一
register_photo_upload_timestring注册照上传时间
confirm_timestring支付用户确认时间

参阅 官方文档

Published on the GitHub by TheNorthMemory