Leap Motion C 環境的配置

2021-07-06 07:59:27 字數 1607 閱讀 1272

先是建乙個c++的win32專案

然後配置專案的包含目錄和庫目錄

包含目錄中新增

c:\users\chengk\documents\leapdeveloperkit_2.3.0+31542_win\leapsdk\include

當然,路徑要改為你自己的。

然後在庫目錄中新增:

接下來級可以開始寫**了:

#include 

#include

#include "opencv2/core.hpp"

#include "opencv2/core/utility.hpp"

#include "opencv2/core/ocl.hpp"

#include "opencv2/imgcodecs.hpp"

#include "opencv2/highgui.hpp"

#include "opencv2/features2d.hpp"

#include "opencv2/calib3d.hpp"

#include "opencv2/imgproc.hpp"

#include"opencv2/flann.hpp"

#include"opencv2/xfeatures2d.hpp"

#include"opencv2/ml.hpp"

#include"leap.h"

#pragma comment ( lib, "leap.lib" )

using

namespace cv;

using

namespace

std;

using

namespace cv::xfeatures2d;

using

namespace cv::ml;

using

namespace leap;

class samplelistener : public listener

;void samplelistener::onconnect(const controller& controller)

void samplelistener::onframe(const controller& controller)

int main()

這裡重寫了listener類,讓在leap motion連線時和frame可用是輸出。

中間需要暫停下,防止還沒開始程序就結束了。

VirtualBox Vagrant環境配置

兩個軟體的安裝,除了安裝位址改一下,其他一路預設即可。還有就是vagrant安裝完了後要重啟一下電腦。然後cmd中 輸入 vagrant 驗證 有些慢,等待5s左右 出現命令提示,則安裝成功 這裡演示的是centos 7 開啟方才生成的vagrantfile配置檔案,找到如下一行配置 config....

up squared openvino環境配置

使用balenaetcher對u盤進行燒錄 balenaetcher 將u盤插入up squared按照提示安裝ubuntu sudo add apt repository ppa ubilinux up sudo apt update sudo apt get autoremove purge l...

Hyperledger Fabric 環境配置

簡單說一下 1.第一步,安裝curl brew install curl2.安裝docker 3.安裝golang,安裝go brew install go3.1.設定gopath export gopath home go export path path gopath bin 4.安裝制定版本n...