[URI]
Method | URI |
---|---|
POST | https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general |
[Request Header]
Name | Value | Description |
---|---|---|
Authorization | {secretKey} | Security key issued from the console |
Content-Type | multipart/form-data | Content type |
[Request Body]
curl -X POST 'https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general' \
-F 'image=@sample.png' \
-H 'Authorization: ${secretKey}' \
-H 'Content-Type: multipart/form-data'
[Field]
Name | Type | Description |
---|---|---|
image | multipart/form-data | Image file |
[Request Header]
Name | Value | Description |
---|---|---|
Authorization | {secretKey} | Security key issued from the console |
Content-Type | application/json | Content type |
[Request Body]
curl -X POST 'https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general' \
-H 'Authorization: ${secretKey}' \
-H 'Content-Type: application/json' \
--data '{ "imageUrl": "https://example.com/example.jpg" }'
[Field]
Name | Type | Description |
---|---|---|
imageUrl | String | Image URL |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"result": {
"fileType": "png",
"listOfInferTexts": [
{
"inferTexts": [
{
"value":"stella",
"conf":0.99
},
{
"value":"artois",
"conf":0.98
}
],
"inferTexts": [
{
"value":"belgium",
"conf":0.99
}
]
}
],
"listOfBoundingBoxes": [
{
"boundingBoxes": [
{
"x1": 32,
"y1": 23,
"x2": 65,
"y2": 23,
"x3": 65,
"y3": 35,
"x4": 32,
"y4": 35
}
]
}
]
}
}
[Header]
Name | Type | Description |
---|---|---|
isSuccessful | Boolean | Analysis API success or not |
resultCode | Integer | Result code |
resultMessage | String | Result message (success on success, error content on failure) |
[Field]
Name | Type | Description |
---|---|---|
fileType | String | File extension (jpg, png) |
values | List | List of recognition results |
listOfInferTexts[0].inferTexts[0].value | String | Recognized content |
listOfInferTexts[0].inferTexts[0].conf | Double | Confidence score of the recognition result |
listOfBoundingBoxes | List | List of bounding box coordinates |
listOfBoundingBoxes[0].boundingBoxes[0] | Object | Coordinates of recognized area { x1, y1, x2, y2, x3, y3, x4, y4 } |
[URI]
Method | URI |
---|---|
POST | https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general/cropping |
[Request Header]
Name | Value | Description |
---|---|---|
Authorization | {secretKey} | Security key issued from the console |
Content-Type | multipart/form-data | Content type |
[Request Body]
curl -X POST 'https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general/cropping' \
-F 'image=@sample.png' \
-H 'Authorization: ${secretKey}' \
-H 'Content-Type: multipart/form-data'
[Field]
Name | Type | Description |
---|---|---|
image | multipart/form-data | Image file |
[Request Header]
Name | Value | Description |
---|---|---|
Authorization | {secretKey} | Security key issued from the console |
Content-Type | application/json | Content type |
[Request Body]
curl -X POST 'https://ocr.api.nhncloudservice.com/v1.0/appkeys/{appKey}/general/cropping' \
-H 'Authorization: ${secretKey}' \
-H 'Content-Type: application/json' \
--data '{ "imageUrl": "https://example.com/example.jpg" }'
[Field]
Name | Type | Description |
---|---|---|
imageUrl | String | Image URL |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"result": {
"fileType": "png",
"listOfInferTexts": [
{
"inferTexts": [
{
"value":"stella",
"conf":0.99
},
{
"value":"artois",
"conf":0.98
}
],
"inferTexts": [
{
"value":"belgium",
"conf":0.99
}
]
}
],
"listOfBoundingBoxes": [
{
"boundingBoxes": [
{
"x1": 32,
"y1": 23,
"x2": 65,
"y2": 23,
"x3": 65,
"y3": 35,
"x4": 32,
"y4": 35
}
]
}
],
"slicesImages": 2
}
}
[Header]
Name | Type | Description |
---|---|---|
isSuccessful | Boolean | Analysis API success or not |
resultCode | Integer | Result code |
resultMessage | String | Result message (success on success, error content on failure) |
[Field]
Name | Type | Description |
---|---|---|
fileType | String | File extension (jpg, png) |
values | List | List of recognition results |
listOfInferTexts[0].inferTexts[0].value | String | Recognized content |
listOfInferTexts[0].inferTexts[0].conf | Double | Confidence score of the recognition result |
listOfBoundingBoxes | List | List of bounding box coordinates |
listOfBoundingBoxes[0].boundingBoxes[0] | Object | Coordinates of recognized area { x1, y1, x2, y2, x3, y3, x4, y4 } |
slicesImages | Integer | Number of images internally split based on the image's aspect ratio |