blace.ai
5 Minute Quickstart

Getting Started

Running your first ai model with our demo project will take you less than 5 minutes. Simply follow the steps below. By examining the contents of the demo folder you will get familiar with the main concepts of this library.

Prerequities:

  • cmake
  • Visual Studio (on Windows)
  • XCode with Clang (on Mac)

Steps

  1. Download the package for your desired OS & hardware combination from github.com/blace-ai/blace-ai/releases.
  2. Unpack the .zip file, you end up with a folder structure like
    package/
    - cmake
    - demo
    - include
    - lib / BlaceAI.app (on MacOS)
    - licenses
  3. In a terminal navigate into the demo folder: cd package/demo.
  4. Invoke cmake configuration command:
    cmake -G "Visual Studio 17 2022" -A x64 -T v142 -S . -B build (Windows)
    cmake -S . -B build (MacOS and Linux) This creates project files in the build folder
  5. Invoke build command: cmake --build build --config Release
    This builds the demo executable and copies all needed libraries, the ai model file and an input image next to the executable.
  6. Run the demo executable:
    .\build\Release\demo.exe (Windows)
    ./build/demo (MacOS and Linux) After the run you will have an image depth_result.png next to the executable.