Skip to content

C++ Installation

Note

If your local machines doesn't meet the requirements for native installation we also offer Docker Containers as a deployment option.

Installing C++ SDK

Note

If you are installing Python SDK, please refer to this section.

Install XailientSDK

Download C++ SDK

Go to the Console and navigate to MANAGE AI MODELS. For the model you want to deploy, select the SDK you have build for your target platform.

Note

If you have not build an SDK yet, refer to Build SDK section of the documentation.

Click on the icon left side of the platform to copy the downlooad link.

Click on the target platform for the model to download.

Install C++ SDK

Install using downloaded SDK file
  1. Unzip the downloaded SDK.

  2. 'cd' into the unzipped SDK folder.

  3. Add this line in bashrc to avoid configuring everytime you login using shell.

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/lib/

  4. Go to script directory

    cd scripts

  5. Run xailient-install script

    ./xailient-install

  6. Go back to root xailient directory

    cd ..

Xailient SDK contents

(env) $ ls
  • bin/ -- Executables required for initial registration
  • data/ -- Image files you can use with the sample applications
  • samples/ -- Sample application demonstrating how the Xailient SDK library can be used
  • scripts/ -- Installation script to install xailient-agent
  • example/ -- Sample applications demonstrating how the Xailient Face Detector library can be used
  • lib/ -- Xailient detector shared Library
  • include/ -- Header files to include in your application

Run sample code

Go to samples folder. This folder contains a sample script named "image_ref" that demonstrates how to use the xailient sdk.

The script reads an image named "beatles.jpg" from data folder, runs the detection sdk on this image and saves output to "output/output.jpg".

Now run the sample script.

(env) $ cd example
(env) $ mkdir output
(env) $ ./image_ref -f ../data/beatles.jpg
(env) $ file output/output.jpg

'output/output.jpg' will contain any predicted bounding boxes drawn. '../data/beatles.jpg' is useful for showing the results of an SDK trained to do face detection. So if you don't see any bounding boxes drawn then try running './image_ref -f <<>>' with an image from your dataset.

Input Image Output Image