Retrieve Camera Screenshot
# Retrieve Camera Screenshot
Path:
/api/camera
Method: GET
API Description: This can be used to return the current camera screenshot. If there's a USB camera, report the image taken by USB camera. If not, return the image taken by IPC.
Request
Name | Type | Example | Description |
---|---|---|---|
exposure | String | 10 | IPC exposure, ranging from -12 to 12. |
whitebalance | String | 1 | White balance. 0: Auto. 1: Fluorescent; 3: Incandescent; 6: Daylight; 7: Cloudy. |
size | String | 200x200 | Size of photo taken by the cloud camera (length×width). |
interval | String | 5 | Update interval of IPC image. Unit: second. |
auto_upload | String | 1 | Indicate if the image is reported automatically. 1: yes; 0: no. |
quality | String | 80 | Image quality, ranging from 0 to 100. |
ip | String | 192.168.1.83 | IP address of the IPC. |
username | String | admin | Username of the IPC. |
password | String | 123456 | Password of the IPC. |
Request Example
http://192.168.42.129/api/camera?size=200x200&exposure=10
Response Example