User Tools

Site Tools


http_api |

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
http_api [2024/02/27 15:58]
anthony [Overlay]
http_api [2024/04/05 15:05]
cflintiii [Overlay]
Line 834: Line 834:
 zoom_wide_std zoom_wide_std
 zoom_wide_var ​ p (0 (Low) .. 7 (High)) zoom_wide_var ​ p (0 (Low) .. 7 (High))
 +
 +</​code>​
 +
 +Tau2 Specific
 +
 +<code python>
 +The Color are done in the FPGA:
 +
 +OFF:
 +SetColorPallette+off
 +
 +RESET:
 +SetColorPallette+reset
 +
 +COLORS:
 +SetColorPallette+blackhot
 +SetColorPallette+whitehot
 +SetColorPallette+sepia
 +SetColorPallette+rainbow
 +SetColorPallette+rain
 +SetColorPallette+ironbow2
 +SetColorPallette+ironbow1
 +SetColorPallette+icefire
 +SetColorPallette+glowbow
 +SetColorPallette+fusion
 +SetColorPallette+color2
 +SetColorPallette+color1
  
 </​code>​ </​code>​
Line 852: Line 879:
  
 ---- ----
 +
  
 ==== ClearHistory ==== ==== ClearHistory ====
Line 1620: Line 1648:
 //​**chn**// ​ Get the encoder channel number. The default is encoder channel 1. Select between encoder channels. Possible values: 1, 2, 3, or 4. //​**chn**// ​ Get the encoder channel number. The default is encoder channel 1. Select between encoder channels. Possible values: 1, 2, 3, or 4.
  
-**//​rgn_idx//​** ​ Index to map overlay. The region index value can be in the range of 1 to 16. Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table is in use. +**//rgn_idx // **//​(Ambarella Specific)// ​Index to map overlay. The region index value can be in the range of 1 to 16 for the system(not per channel), all channels ​. Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table(CLUT) ​is in use
 +<​code>​ 
 + TEXT type=text source=”Channel 1” instance=1 rgn_idx=1 
 +      type=text source=”Channel 2” instance=2 rgn_idx=1 
 + 
 +</​code>​ 
 + 
 +The text will be correct on each individual channel as while using the (rgn_idx) at 1\\ 
 +When changing the color of the text on the OVERLAY using the same rgn_idx=1 the last command issued will override both channels, the text will still be different but the color will be the same because they are using the same shared rgn_idx 
 + 
 +<​code>​ 
 + PNG type=png source=”/​opt/​config/​images/​image.png” instance=1 rgn_idx=2 
 +     ​type=png source=”/​opt/​config/​images/​image.png” instance=2 rgn_idx=2 
 + 
 +</​code>​ 
 + 
 +PNG will work in the same way but you would only want to do this for 2 of the same PNG\\ 
 +Using different PNGs would cause colors to go wonky (CLUT is now different at the rgn_idx) 
 + 
 +This is because we write the entire CLUT at the rgn_idx with each overlay cmd 
 + 
 +//**rgn_idx ** (//Qualcomm and DCK//)// Index to map overlay.The region index value can be in the range of 0 to 128, per channel.
  
 //​**​type**// ​ Type of overlay to be used possible values: text or png. //​**​type**// ​ Type of overlay to be used possible values: text or png.
Line 1630: Line 1679:
 //​**char_size**// ​ For text overlay this is the character size. Possible values: 16,32,64, 128. //​**char_size**// ​ For text overlay this is the character size. Possible values: 16,32,64, 128.
  
-//​**layer**// ​ This will set the layer for the overly higher numbers and will overlay over lower numbers if overlapping. The range of layer values are 0 to 7. +//​**layer**// ​ This will set the layer for the overly higher numbers and will overlay over lower numbers if overlapping. The range of layer values are 0 to 7.
  
 **//​text_color//​** ​ Text color, which is in RGB values with Alpha **//​text_color//​** ​ Text color, which is in RGB values with Alpha
Line 1638: Line 1687:
 //​**outline_enable**// ​ Whether outline is enabled or disabled. Possible values: on, off //​**outline_enable**// ​ Whether outline is enabled or disabled. Possible values: on, off
  
-//​**outline_stroke **//  The width of the outline stroke is in the range of 1, 2 and 4. +//​**outline_stroke **//  The width of the outline stroke is in the range of 1, 2 and 4. If the font sizes value are less than 64 then outline stroke value as 1, if the font size value is equal to 64 then outline stroke value is 2 and if the font size value is more than 64 then outline stroke value is 4.
-If the font sizes value are less than 64 then outline stroke value as 1,  +
-if the font size value is equal to 64 then outline stroke value is 2 and +
-if the font size value is more than 64 then outline stroke value is 4.  +
 == Returns: == == Returns: ==
  
Line 1655: Line 1700:
 ---- ----
  
-=== Command to execute: ​ ===+=== Command to execute: ===
  
 <​code>​ <​code>​
 python3 z3overlay.py -ip 192.168.10.127 -username admin -passwd admin -aim -track -moon -rtsp python3 z3overlay.py -ip 192.168.10.127 -username admin -passwd admin -aim -track -moon -rtsp
 +
 </​code>​ </​code>​
  
Line 1670: Line 1716:
 Video Stream Dimensions:​3840x2160 Video Stream Dimensions:​3840x2160
 Weather Read From File in 171  Position:​top_left MSG:1 {"​ret":"​0","​status":"​!Invalid rgn_idx 53\r\n"​} AimTrack:​[574,​ 2914] - [2060, 1628] Weather Read From File in 171  Position:​top_left MSG:1 {"​ret":"​0","​status":"​!Invalid rgn_idx 53\r\n"​} AimTrack:​[574,​ 2914] - [2060, 1628]
 +
 </​code>​ </​code>​
  
 ---- ----
  
-=== Another method to execute: ​ ===+=== Another method to execute: ===
  
 <​code>​ <​code>​
 curl -s --connect-timeout 30 --max-time 60 --data "​action=Overlay&​chn=1&​rgn_idx=1&​source=/​opt/​z3/​images/​fmoon-96.png&​type=png&​location=top_center"​ "​http://​192.168.10.127/​cgi-bin/​control.cgi"​ curl -s --connect-timeout 30 --max-time 60 --data "​action=Overlay&​chn=1&​rgn_idx=1&​source=/​opt/​z3/​images/​fmoon-96.png&​type=png&​location=top_center"​ "​http://​192.168.10.127/​cgi-bin/​control.cgi"​
 +
 </​code>​ </​code>​
  
Line 1686: Line 1734:
 <​code>​ <​code>​
 {"​ret":"​0","​status":"​+OK"​} {"​ret":"​0","​status":"​+OK"​}
 +
 </​code>​ </​code>​
  
Line 9844: Line 9893:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**interface**// ​ TEXT, //​**interface**// ​ TEXT,
Line 9861: Line 9910:
  
 ---- ----
 +
  
 ==== GetCronJobs ==== ==== GetCronJobs ====
Line 9878: Line 9928:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 **//​enable//​** ​ INTEGER, **//​enable//​** ​ INTEGER,
Line 9901: Line 9951:
  
 ---- ----
 +
  
 ==== GetNFSMount ==== ==== GetNFSMount ====
Line 9918: Line 9969:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 **//​mounted//​** ​ TEXT, **//​mounted//​** ​ TEXT,
  
 ---- ----
 +
  
 ==== aspect_info ==== ==== aspect_info ====
Line 9941: Line 9993:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**numerator**// ​ INTEGER, //​**numerator**// ​ INTEGER,
Line 9948: Line 10000:
  
 ---- ----
 +
  
 ==== boardinfo ==== ==== boardinfo ====
Line 9965: Line 10018:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**logo_enable**// ​ TEXT, //​**logo_enable**// ​ TEXT,
Line 9984: Line 10037:
  
 ---- ----
 +
  
 ==== cam_state ==== ==== cam_state ====
Line 10001: Line 10055:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT, //​**preset**// ​ TEXT,
Line 10014: Line 10068:
  
 ---- ----
 +
  
 ==== camera ==== ==== camera ====
Line 10032: Line 10087:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**zoom_direct_value**// ​ INTEGER. //​**zoom_direct_value**// ​ INTEGER.
Line 10127: Line 10182:
  
 ---- ----
 +
  
 ==== camera_exposure ==== ==== camera_exposure ====
Line 10145: Line 10201:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**ae_mode**// ​ TEXT, //​**ae_mode**// ​ TEXT,
Line 10178: Line 10234:
  
 ---- ----
 +
  
 ==== camera_monitor_mode ==== ==== camera_monitor_mode ====
Line 10196: Line 10253:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**modes**// ​ TEXT. //​**modes**// ​ TEXT.
Line 10203: Line 10260:
  
 ---- ----
 +
  
 ==== dec ==== ==== dec ====
Line 10221: Line 10279:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT. //​**preset**// ​ TEXT.
Line 10260: Line 10318:
  
 ---- ----
 +
  
 ==== download ==== ==== download ====
Line 10280: Line 10339:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**FileName**// ​ TEXT. //​**FileName**// ​ TEXT.
Line 10289: Line 10348:
  
 ---- ----
 +
  
 ==== drs_tamarisk_settings ==== ==== drs_tamarisk_settings ====
Line 10307: Line 10367:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**color_pallette**// ​ TEXT. //​**color_pallette**// ​ TEXT.
Line 10316: Line 10376:
  
 ---- ----
 +
  
 ==== enc ==== ==== enc ====
Line 10334: Line 10395:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT, //​**preset**// ​ TEXT,
Line 10531: Line 10592:
  
 ---- ----
 +
  
 ==== filepicker ==== ==== filepicker ====
http_api.txt · Last modified: 2024/04/05 15:35 by anthony