Image Composition - Rectify Image
Voer de bewerking voor het corrigeren van de installatiekopieën uit op een afbeelding met 4 besturingspunten die zijn opgegeven in de parameter.
POST /imagecomposition:rectify?api-version=2023-04-01-preview
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
Aangevraagde API-versie. |
Aanvraagbody
Media Types: "application/json-patch+json"
Name | Vereist | Type | Description |
---|---|---|---|
controlPoints | True |
Vier hoekbesturingspunten voor correctie. De oorsprong bevindt zich linksboven. |
|
url | True |
string (uri) |
Blob-URL van bronafbeelding. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
file |
Geslaagd Media Types: "image/jpeg", "application/json" |
Other Status Codes |
Fout Media Types: "image/jpeg", "application/json" Kopteksten x-ms-error-code: string |
Voorbeelden
ImageComposition_Rectify
Voorbeeldaanvraag
POST /imagecomposition:rectify?api-version=2023-04-01-preview
{
"url": "https://example.com/image.jpg",
"controlPoints": {
"topLeft": {
"x": 0.1,
"y": 0.1
},
"topRight": {
"x": 0.9,
"y": 0.1
},
"bottomLeft": {
"x": 0.1,
"y": 0.9
},
"bottomRight": {
"x": 0.9,
"y": 0.9
}
}
}
Voorbeeldrespons
"Ynl0ZXM="
Definities
Name | Description |
---|---|
Error |
Antwoord geretourneerd wanneer er een fout optreedt. |
Error |
Foutinformatie. |
Error |
Gedetailleerde fout. |
Image |
Vier hoekbesturingspunten voor correctie. De oorsprong bevindt zich linksboven. |
Image |
Afbeeldingsinvoer. |
Normalized |
Genormaliseerd XY-coördinaat. |
ErrorResponse
Antwoord geretourneerd wanneer er een fout optreedt.
Name | Type | Description |
---|---|---|
error |
Foutinformatie. |
ErrorResponseDetails
Foutinformatie.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode. |
details |
Lijst met gedetailleerde fouten. |
|
innererror |
Gedetailleerde fout. |
|
message |
string |
Foutmelding. |
target |
string |
Doel van de fout. |
ErrorResponseInnerError
Gedetailleerde fout.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode. |
innererror |
Gedetailleerde fout. |
|
message |
string |
Foutmelding. |
ImageRectificationControlPointsApiModel
Vier hoekbesturingspunten voor correctie. De oorsprong bevindt zich linksboven.
Name | Type | Description |
---|---|---|
bottomLeft |
Genormaliseerd XY-coördinaat. |
|
bottomRight |
Genormaliseerd XY-coördinaat. |
|
topLeft |
Genormaliseerd XY-coördinaat. |
|
topRight |
Genormaliseerd XY-coördinaat. |
ImageRectificationRequestApiModel
Afbeeldingsinvoer.
Name | Type | Description |
---|---|---|
controlPoints |
Vier hoekbesturingspunten voor correctie. De oorsprong bevindt zich linksboven. |
|
url |
string (uri) |
Blob-URL van bronafbeelding. |
NormalizedCoordinateApiModel
Genormaliseerd XY-coördinaat.
Name | Type | Description |
---|---|---|
x |
number (double) minimum: 0maximum: 1 |
Horizontale coördinaat. |
y |
number (double) minimum: 0maximum: 1 |
Verticale coördinaat. |