查询重采用户列表
离线刷脸业务中,偶尔会出现前期采集头像质量不高,导致算法升级后,旧的头像无法生成有效的人脸特征,影响用户使用刷脸服务。因此,需要对用户的头像进行重采。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
organization_id | string | 机构ID |
offset | integer | 列表偏移 |
limit | integer | 资源个数 |
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_collections | object[] | 重采对象 |
collection_id | string | 重采ID |
use_id | string | 用户ID |
organization_id | string | 机构ID |
collection_state | string | 重采状态COLLECTION_REQUIRED | PHOTO_UPLOADED | COMPLETE 枚举值之一 |
register_photo_upload_time | string | 注册照上传时间 |
confirm_time | string | 支付用户确认时间 |
参阅 官方文档