- 0 Login
- 1 System Settings
- 1.1 System Infomation
- 1.2 System Time
- 1.3 System Maintenance
- 1.4 Universal Asynchronous Receiver/Transmitter(UART)
- 1.5 General-purpose input/output(GPIO)
- 1.6 System Reboot
- 1.7 System Reset
- 1.8 System Memory
- 1.9 System Update
- 1.10 RS485
- 2 Network Settings
- 2.1 TCP/IP
- 2.2 4G Network
- 2.3 Wi-Fi Network
- 3 Platform Settings
- 3.1 GB-T28181
- 3.2 Customised platform
- 3.3 File Transfer Protocol (FTP)
- 3.4 Open Network Video Interface Forum(ONVIF)
- 3.5 Real Time Streaming Protocol (RTSP)
- 4 Video Settings
- 4.1 Video Channel Encode
- 4.2 Video Channel OSD
- 4.3 ISP
- 4.4 Day/Night Switching
- 4.5 Lens Distortion Correction(LDC)
- 4.6 Channel Rotation
- 4.7 Screen Flip
- 4.8 Snapshot
- 5 Audio Settings
- 6 Intelligent Settings
- 7 Alarm Settings
- 8 Record Settings
- 9 Pan/Tilt/Zoom(PTZ) Settings
- Appendix
4.2.1 Getting OSD Parameters
POST
/api/channel/config
Request
Cookie Params
access_token
string
required
Default:
{{access_token}}
Body Params application/json
id
string
required
op
string
required
Example
{
"id": "GSF_ID_CODEC_OSD",
"op": "G0C0S0"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.0.168/api/channel/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_CODEC_OSD",
"op": "G0C0S0"
}'
Responses
🟢200请求成功
application/json
Body
code
integer
required
data
object
required
count
integer
required
vec
array[object (OSD Settings) {12}]
required
Example
{
"code": 0,
"data": {
"count": 8,
"vec": [
{
"enable": 0,
"idx": 0,
"type": 0,
"fontsize": 24,
"linesize": 3,
"fg_color": 0,
"bg_color": 0,
"point": [
0,
0
],
"wh": [
0,
0
],
"text": "",
"bind": 0,
"snapwith": 1,
"scorewith": 0
},
{
"enable": 1,
"idx": 1,
"type": 1,
"fontsize": 56,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.009259259328246117
],
"wh": [
0,
0
],
"text": "2021-04-01 15:00:04",
"bind": 0,
"snapwith": 1,
"scorewith": 0
},
{
"enable": 1,
"idx": 2,
"type": 2,
"fontsize": 56,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
1,
0.009259259328246117
],
"wh": [
0,
0
],
"text": "AIPCAM",
"bind": 0,
"snapwith": 0,
"scorewith": 0
},
{
"enable": 0,
"idx": 3,
"type": 3,
"fontsize": 48,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.0555555559694767
],
"wh": [
0,
0
],
"text": "",
"bind": -1,
"snapwith": 1,
"scorewith": 0
},
{
"enable": 0,
"idx": 4,
"type": 3,
"fontsize": 48,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.10185185074806213
],
"wh": [
0,
0
],
"text": "",
"bind": -1,
"snapwith": 0,
"scorewith": 0
},
{
"enable": 0,
"idx": 5,
"type": 3,
"fontsize": 48,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.14814814925193787
],
"wh": [
0,
0
],
"text": "",
"bind": -1,
"snapwith": 0,
"scorewith": 0
},
{
"enable": 0,
"idx": 6,
"type": 3,
"fontsize": 48,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.1944444477558136
],
"wh": [
0,
0
],
"text": "",
"bind": -1,
"snapwith": 0,
"scorewith": 0
},
{
"enable": 0,
"idx": 7,
"type": 3,
"fontsize": 56,
"linesize": 0,
"fg_color": 33554431,
"bg_color": 0,
"point": [
0.0052083334885537624,
0.24074074625968933
],
"wh": [
0,
0
],
"text": "",
"bind": -1,
"snapwith": 0,
"scorewith": 0
}
]
}
}
Modified at 2024-12-27 08:22:32