The following procedure provides step-by-step instructions for installing the SDK on both Linux and Windows based machines:
Linux Installation
sudo dpkg -i <filename>
./usr/local/<project_name>
.Windows Installation
Unzip the files into the project directory.
The Meerkat SDK contains the following directories:
doc
: includes pictures of the Meerkat engine modules and HTML files available for configurationinclude
: Engine header fileslib
:
bin
: SDK dll files (on Windows)docker load -i <project_name>.tar.gz
docker run \
--rm \
--network host \
--gpus all \
-v /var/sightx/.docker_output:/root \
-d \
<project_name>:<version_tag>
The following procedure provides instructions for testing Meerkat before implementation in your configuration.
Supported video sources are as follows:
Configuring a GeniCam source
Edit the following part of the demo.cpp
file according to requirements.
Code example:
// start new stream
StartStreamConfiguration startConfiguration;
startConfiguration.getGcSource().setUrl(""); // set device URL
startConfiguration.getGcSource().setDeviceAccessMode
(DeviceAccess::Control); // set to ReadOnly for multicast
setParam(startConfiguration.getGcSource(), "Width","768");
setParam(startConfiguration.getGcSource(), "Height","577");
setParam(startConfiguration.getGcSource(), "PixelFormat", "RGB8Packed"); // Alternative: "BGR8"
Edit sGstSourceUrl
in the demo.cpp
file to the RTSP stream address.
The stream output is using Gstreamer and the RTSP protocol.
Edit the RTSP server port and IP as desired
sGstSourceUrl
Section in demo.cpp
file example:
// stream URL, in this case through local RTSP server
std::string sGstSourceUrl = "rtsp://127.0.0.1:8554/input_stream";
// start new stream
StartStreamConfiguration startConfiguration;
startStreamConfiguration.getGstSource().setUrl(sGstSourceUrl);
// set URL
Stream Output URL Example:
// stream output URL, in this case through local RTSP server
std::string sGstSinkUrl = "rtsp://127.0.0.1:8554/output_stream";
startStreamConfiguration.getGstSink().setUrl(sGstSourceUrl);
// set URL
demo.cpp
file.discoverServers
function in the demo.my-computer@127.0.0.1:50051
mic-730ai@192
.168.16.25:50051
startStream
.
demo.cpp
Code example:
std::vector<sightx::sdk::ServerInfo> vMeerkats = sdk::discoverServers();
for(sightx::sdk::ServerInfo meerkatInfo : vMeerkats)
{
std::cout << meerkatInfo.HostName.toString() << "@"
<< meerkatInfo.IP.toString() << ":" << meerkatInfo.Port
<< std::endl;
}