Go to documentation repository
GET http://IP-Address:port/prefix/live/media/snapshot/{VIDEOSOURCEID}
Tip |
---|
{VIDEOSOURCEID} – three-component source endpoint 세 부분으로 구성된 소스 엔드포인트 ID (비디오 카메라 목록 및 정보 가져오기 참조 참조). For instance예를 들어, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0". |
Parameter파라미터 | Required필수 | Description설명 | |||||
---|---|---|---|---|---|---|---|
w h | No | w – frame width프레임 너비, h – frame height.프레임 높이
| |||||
crop_x crop_y crop_width crop_height | No | crop_x – horizontal indent from the upper left corner. Possible values are 0 to 1. The default is 0 – 왼쪽 상단 코너로부터의 수평 들여쓰기. 가능한 값은 0에서 1까지이며, 기본값은 0입니다. crop_y – vertical indent from the upper left corner. Possible values are 0 to 1. The default is 0. crop_width – the ratio of the original image width. Possible values are 0 to 1. The default is 1. – 왼쪽 상단 코너로부터의 수직 들여쓰기. 가능한 값은 0에서 1까지이며 기본값은 0입니다. crop_width – 원본 이미지 너비의 비율. 가능한 값은 0에서 1까지이며 기본값은 1입니다. crop_height – 원본 이미지 높이의 비율. 가능한 값은 0에서 1까지이며 기본값은 1입니다crop_height – the ratio of the original image hight. Possible values are 0 to 1. The default is 1. |
Info | ||
---|---|---|
| ||
By default, the snapshot update period is 30 seconds. To change this value, create the 기본적으로 스냅샷 업데이트 주기는 30초입니다. 이 값을 변경하려면 NGP_SNAPSHOT_TIMEOUT system variable and set the required value in milliseconds (see 시스템 변수를 생성하고 필요한 값을 밀리초 단위로 설정해야 합니다. (부록 9. 시스템 변수 생성 참조). |
Sample request:
요청 예시:
원본 해상도로 스냅샷을 받으려면To get a snapshot in the original resolution: GET http://IP-Address:port/prefix/live/media/snapshot/Server1/DeviceIpint.23/SourceEndpoint.video:0:0.
To get a snapshot in 640*480 resolution해상도로 스냅샷을 받으려면: GET http://IP-Address:port/prefix/live/media/snapshot/Server1/DeviceIpint.23/SourceEndpoint.video:0:0?w=640&h=480.
To get the right lower particle of a snapshot스냅샷의 오른쪽 하단 부분을 받으려면: GET http://IP-Address:port/prefix/live/media/snapshot/Server1/DeviceIpint.23/SourceEndpoint.video:0:0?crop_x=0.5&crop_y=0.5&crop_width=0.5&crop_height=0.5.
To get the right lower particle of a snapshot in 640*480 resolution해상도로 스냅샷의 오른쪽 하단 부분을 받으려면: GET http://IP-Address:port/prefix/live/media/snapshot/Server1/DeviceIpint.23/SourceEndpoint.video:0:0?w=640&h=480&crop_x=0.5&crop_y=0.5&crop_width=0.5&crop_height=0.5.