This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM object data as metadata on videocamera's stream
#1
Hi [Image: smile.png]

Please help me adapt script from other system to LM. In result we will see any object data on videostream (Works with Hikvision cameras). In simple words - if we open videocamera videostream on it we will see our data. I use Hikvision camera and now when I connect to it remotely using Hikvision videosoftware I see outside temperature and my heating device temperature. . etc..

How it works on my other system - at C:/ disk (win10) located 1.xml file. In 1.xml file also located coordinates in pixel where our data will be shown at videostream (from upper left corner - X and Y position of starting place for our text).. I insert values I need to show at my camera videostream to this 1.xml file. After that with curl.exe it sends to camera. This repeated every minute (Just cycle how often we want to update values at videostream..).

So, questions:
1. how put on LM SD card 1.xml file and later put data in 1.xml using script???
2. how execute curl command and use it with string in script above?



My script on other system:

$CONNSTRING = "http://camera_loginandpass@cameraIP/Video/inputs/channels/1/overlays/text/";
$value=getGlobal('Mainsity.Today_temp'); -- in our case we take LM's needed object's value and put it in 1.xml

file_put_contents('C:\1.xml', $xml);
exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1');
//$answer=exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1'); 
//echo $answer;


Alex
Reply


Messages In This Thread
LM object data as metadata on videocamera's stream - by AlexLV - 27.12.2018, 11:19

Forum Jump: