Coder Social home page Coder Social logo

cpp-example-opencv-eigen's Introduction

C++ Example with OpenCV and Eigen

This is a minimal CMake project that shows how to use Rerun in your code in conjunction with Eigen and OpenCV.

Using pixi

The easiest way to get started is to install pixi.

The pixi environment described in pixi.toml contains all of the dependencies, including the rerun viewer, allowing you to run the example with a single command:

  • pixi run example

Without pixi

If you choose not to use pixi, you will need to install a few things yourself before you get started.

Installing the Rerun Viewer

The Rerun C++ SDK works by connecting to an awaiting Rerun Viewer over TCP.

If you need to install the viewer, follow the installation guide. Two of the more common ways to install the Rerun are:

  • Via cargo: cargo install rerun-cli
  • Via pip: pip install rerun-sdk

After you have installed it, you should be able to type rerun in your terminal to start the viewer.

Installing dependencies:

This project depends on a few libraries and toolchains. Installing these is outside the scope of this README, but your OS should have these available though a common package manager:

  • eigen and opencv (required by this example)
  • cmake (for building)

Build and run on Linux & Mac

Build:

cmake -B build
cmake --build build -j

Then run the binary with: build/rerun_ext_example

Build and run on Windows using Visual Studio 2022

Build

cmake -B build  -G 'Visual Studio 17 2022'
cmake --build build

Instead of building via CMake you can also open build/rerun_external_cpp_proj.sln in Visual Studio and build & run from there.

Then run the binary with

build\RelWithDebInfo\rerun_ext_example.exe

Make sure that all dependent dlls (OpenCV & Eigen) are in PATH or next to the executable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.