2016年6月27日 星期一
2016年6月23日 星期四
build openkincet in raspberry
sudo apt-get install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev git clone git://github.com/OpenKinect/libfreenect.git cd libfreenect mkdir build cd build cmake .. make sudo make install sudo ldconfig /usr/local/lib64/ sudo freenect-glview
core.c
#include "libfreenect.h" FREENECTAPI int freenect_init(freenext_context **ctx, freenect_usb_context *usb_ctx); #include "libfreenect.h" FREENECTAPI int freenect_shutdown(freenect_context *ctx); #include "libfreenect.h" FREENECTAPI int freenect_process_events(freenect_context *ctx); #include "libfreenect.h" FREENECTAPI int freenect_num_devices(freenect_context *ctx); #include "libfreenect.h" FREENECTAPI int freenect_open_device(freenect_context *ctx, freenect_device **dev, int index); #include "libfreenect.h" FREENECTAPI int freenect_close_device(freenect_device *dev); #include "libfreenect.h" FREENECTAPI void freenect_set_user(freenect_device *dev, void *user); #include "libfreenect.h" FREENECTAPI void *freenect_get_user(freenect_device *dev); #include "libfreenect.h" FREENECTAPI void freenect_set_log_level(freenect_context *ctx, freenect_loglevel level); #include "libfreenect.h" FREENECTAPI void freenect_set_log_callback(freenect_context *ctx, freenect_log_cb cb); fn_log()
tilt.c
freenect_get_tilt_state() freenect_update_tilt_state() freenect_set_tilt_degs() freenect_set_led() freenect_get_tilt_degs() freenect_get_tilt_status() freenect_get_mks_accel()
cameras.c
stream_process() stream_init() stream_freebufs() stream_setbuf() convert_packed_to_16bit() convert_packed_to_8bit() convert_packed11_to_16bit() depth_process() convert_uyuy_to_rgb() convert_bayer_to_rgb() video_process() send_cmd() write_register() freenect_start_depth() freenect_start_video() freenect_stop_depth() freenect_stop_video() freenect_set_depth_callback() freenect_set_video_callback() freenect_get_video_mode_count() freenect_get_video_mode() freenect_get_current_video_mode() freenect_find_video_mode() freenect_set_video_mode() freenect_get_depth_mode_count() freenect_get_depth_mode() freenect_get_current_depth_mode() freenect_find_depth_mode() freenect_set_depth_mode() freenect_set_depth_buffer() freenect_set_video_buffer()
Ref : https://openkinect.org/wiki/Getting_Started
Ref : https://github.com/OpenKinect/libfreenect
Ref : https://openkinect.org/wiki/Protocol_Documentation
ref : https://openkinect.org/wiki/Low_Level
2016年6月8日 星期三
訂閱:
文章 (Atom)