Restore Faces
Action
RestoreFaces
Introduction
This interface is used to restore deformed faces in an image.
Request
Parameter Name | Type | Description | Required |
---|---|---|---|
Action | String | The corresponding API instruction name | ✓ |
PublicKey | String | User's public key, which can be obtained from the PICPIK User Center (opens in a new tab) | ✓ |
Signature | String | User's signature generated based on the public key and API instruction, see Signature for details | ✓ |
request_uuid | String | Request UUID, randomly generated by using the UUID generation method. This parameter can be utilized to manage the requests of your business and clients. |
Parameter Name | Type | Description | Required |
---|---|---|---|
RestoreStrength | Float | Restore strength (0~1). Step: 0.01. Default: 0.5 | |
RawImage | String | The raw image encoded in Base64 | ✓ |
Request Example
{
"Action": "RestoreFaces",
"PublicKey": "ALLak9M4cNdHXKOJAJJ4k8Hh1hZS2EgJF1D0FlPwfl",
"Signature": "c46eacd2dcde770b43cbceea81d900f34d31d95e",
"request_uuid": "fe6d53f4-b4de-4c64-90bd-8991df85e145",
"RestoreStrength": 0.5,
"RawImage": "data:image/png;base64,xxx",
}
Response
Parameter Name | Type | Description | Required |
---|---|---|---|
Action | String | The corresponding API instruction name | ✓ |
PublicKey | String | User's public key, which can be obtained from the PICPIK User Center (opens in a new tab) | ✓ |
Signature | String | User's signature generated based on the public key and API instruction, see Signature for details | ✓ |
request_uuid | String | Request UUID, randomly generated by using the UUID generation method. This parameter can be utilized to manage the requests of your business and clients. |
Parameter Name | Type | Description | Required |
---|---|---|---|
TaskUID | String | Task UID, used to query task details and get results | ✓ |
Response Example
{
"Action": "RestoreFaces",
"RetCode": 0,
"Message": "",
"request_uuid": "8482d350-04f9-421b-817b-1d98b3a4dcfa",
"TaskUID": "cktlm6lrh4miq8ng9nf0"
}