Skip to content

Commit

Permalink
fakenect: Update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed Jun 13, 2017
1 parent 73b7d09 commit 072c210
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 45 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# CMake directives
######################################################################################

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.8.12)

######################################################################################
# Project declaration and options
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,22 @@ Wrappers are not guaranteed to be API stable or up to date.
- actionscript
- Java (JNA)

# Using Fakenect
# Fakenect

To use a fakenect recorded stream, just provide the fakenect lib as a pre loaded library with `LD_PRELOAD` and indicates the recorded files directory with `FAKENECT_PATH`
Using fakenect, you can record a session to a directory and play it back later.

mkdir session
fakenect-record ./session

To use a fakenect recorded stream, just provide the fakenect lib as a pre loaded library with `LD_PRELOAD` and indicates the recorded files directory with `FAKENECT_PATH`.

- Sample with python wrappers :
```shell
LD_PRELOAD="/usr/local/lib/fakenect/libfreenect_faked.so" FAKENECT_PATH="./sample/hand1" python ./wrappers/python/demo_cv_sync.py
LD_PRELOAD="/usr/local/lib/fakenect/libfakenect.so" FAKENECT_PATH="./session" python ./wrappers/python/demo_cv_sync.py
```
- Sample with C bin :
```shell
LD_PRELOAD="/usr/local/lib/fakenect/libfreenect_faked.so" FAKENECT_PATH="./sample/hand1" freenect-glview
LD_PRELOAD="/usr/local/lib/fakenect/libfakenect.so" FAKENECT_PATH="./session" freenect-glview
```

# Code Contributions
Expand Down
2 changes: 1 addition & 1 deletion fakenect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ add_library (fakenect SHARED fakenect.c)
set_target_properties ( fakenect PROPERTIES
VERSION ${PROJECT_VER}
SOVERSION ${PROJECT_APIVER}
OUTPUT_NAME freenect_faked)
OUTPUT_NAME fakenect)
target_link_libraries(fakenect ${MATH_LIB})

install (TARGETS fakenect
Expand Down
39 changes: 0 additions & 39 deletions fakenect/README

This file was deleted.

0 comments on commit 072c210

Please sign in to comment.