set-in-cropping
Added at V2.3 Use this interface to generate a thumbnail image for cropping.
Use the interface get-info to get the thumbnails path:
{
"main-crop-snapshot": "", // thumbnail image path for the main stream video cropping
"sub-crop-snapshot": "", // thumbnail image path for the sub stream video cropping
}
HTTP Request
GET http://ip/usapi?method=set-in-cropping&stream-idx=1
Parameter | Description |
---|---|
method | set-in-cropping |
stream-idx | 0: main stream 1: sub stream |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | Returned status. 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |