Some (very bad) code snippets I'm putting together while attempting to develop an visual positioning system (a.k.a. Motion Capture software).
C++ QMake Matlab
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
epilines.cpp
exto.cpp
openvps-cli-epilines.pro
openvps-cli-exto.pro
openvps-cli-run.pro
openvps-cli-setup.pro
read_vpsserver_data.m
setup.cpp
vpsmath.h
vpsrun.cpp
vpssocket.h
vpsstorage.h

README.md

openvps-dev

Some (very bad) code snippets I'm putting together while attempting to develop an visual positioning system (a.k.a. Motion Capture software). This is nowhere near a finished, used-frendly thing - I'm just dumping some ideas. Feel free to join in.

Wait, what?

This is an early attempt at creating a simple "visual positioning system" (VPS). A more detailed blog post can be found here.

openVPS dev test

Using it

Compiling

You'll need OpenCV 3.1.0 and the aRUco contrib_module - which is totally overkill but I was lazy. I've used Qt Designer (that's why I've kept the .pro files there) but there's no dependency to the Qt libraries.

Each .cpp file is a separate utility:

  • setup.cpp : Computes the rotation and translation between adjacent pairs of cameras. Will compute intrisics, but it's best if they're provided. Saves all to a configuration file.
  • epilines.cpp : Based on the configuration file, draws epilines on the right view, corresponding to markers seen in the left view of any given pair of cameras.
  • exto.cpp : Show an "extrinsic origin" (exto) so that the system can compute the position of the cameras relative to each other.
  • vpsrun.cpp : Runs the whole thing, an optionally streams points over TCP if you want to view them (e.g., with the provided MATLAB script).

Most probably, nothing here will work out of the box, I'm telling you.

Using it

I may never get around writing this. Who knows. Get in touch if you care.