Skip to content
/ casper Public

Official implementation of Casper DPM: Cascaded Perceptual Dynamic Projection Mapping onto Hands

Notifications You must be signed in to change notification settings

yoterel/casper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Page | Paper | Supplementary

Casper DPM

This is the official implementation of Casper DPM: Cascaded Perceptual Dynamic Projection Mapping onto Hands

Installation

Requirements

  • OS: Windows 10 or above
  • Visual Studio 19 or above
  • CMAKE 3.20 or above
  • OpenCV 4.6 or above
  • A python interpreter 3.9 or above (with dev tools, which is usually included in windows versions), with numpy, mediapipe and nanobind installed: pip install numpy mediapipe nanobind
  • Gemini Ultra Leap - for leap motion controller API (this is in principle optional, but requires some work to seperate dependencies)

Optional:

  • Pylon SDK - for basler camera control
  • pip install openai - if you want casper interactive Projegraphy to work with GPT4.

How to install

  1. Clone the repo (let's assume you cloned into "C:\src\casper"):

git clone https://github.com/yoterel/casper.git

  1. Change dir:

cd C:\src\casper

  1. setup paths in CMakeLists.txt This step is manual.

    • set the variable Python_EXECUTABLE to the python executable you will use, for now only a system python was tested and not virtual environments.
    • set the variable OpenCV_DIR to the Opencv install path. Or, place the openCV install path under casper/third-party/opencv.
    • other paths should be detected automatically using environment variables, check error msgs in the next step and replace any missing path.
  2. configure cmake (this assumes visual studio 2019 is your generator):

cmake -SC:/src/casper =BC:/src/casper/build -G "Visual Studio 16 2019" -T host=x64 -A x64

  1. build project:

cmake --build C:/src/casper/build --config Release --target ALL_BUILD -j 10 --

Usage

Please set the following environment variables before running any of the following commands:

  • PYTHONHOME should be a path to the python interpreter with numpy and mediapipe installed e.g.:

set PYTHONHOME=C:/Users/sens/AppData/Local/Programs/Python/Python311

  • OPENAI_API_KEY should be set to your openai api key, if you want casper to interact with GPT4 to probe for animals on the fly.

  • to run casper in sandbox mode (this will allow you to perform any task that was described in the paper):

    casper.exe

Right clicking with the mouse will open a gui with all configurations

  • to run a discrete simulation: casper.exe --mode simulation

To start you can open the menu and check "Debug Playback" under playback settings.

  • if you don't have a projector or a camera, but still wish to check out casper, you can run with a simulated camera and projector:

    casper.exe --simcam --simproj

About

Official implementation of Casper DPM: Cascaded Perceptual Dynamic Projection Mapping onto Hands

Resources

Stars

Watchers

Forks

Packages

No packages published