yuki-inaho / pico_zense_cython_wrapper

just simple wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. Install PicoZenseSDK from https://www.picozense.com/en/sdk.html

  2. Create /usr/lib/pkgconfig/libpicozense.pc:

prefix=/home/[*** put your PicoZenseSDK install location here ***]
exec_prefix=${prefix}
includedir=${prefix}/Include
libdir=${exec_prefix}/Lib/x64
Name: libpicozense
Description: The Library for Pico Zense
Version: 1.0.0
Cflags: -I${includedir}/
Libs: -L${libdir} -lpicozense_api
  1. Write and add below settings to your ~/.bashrc or something.
export PICOZENSE_PATH="$HOME/Libraries/PicoZenseSDK"
export LD_LIBRARY_PATH="$PICOZENSE_PATH/Lib/x64:$LD_LIBRARY_PATH"
  1. git clone this repository and move current working space to cloned directory
git clone https://github.com/yuki-inaho/pico_zense_cython_wrapper.git
cd pico_zense_cython_wrapper
  1. Install python dependency
pip install -r requirements.txt
  1. Build cython code
sudo python setup.py install
(or python setup.py install --user)

Scripts

  • main.py : Generate TOML setting File
  • capture.py : Scripts to capture RGB-D images using Pico Zense

Usage of capture.py

  1. Connect your PicoZense and Wait until its Green LED turns on
  2. Generate TOML setting file
python main.py
  1. Run capture the script
python capture.py

About

just simple wrapper


Languages

Language:Python 52.6%Language:C++ 47.4%