This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHYSX = /path/PhysXSDK/ | |
var = -I$(PHYSX)/Include | |
var += -L$(PHYSX)/Lib/linux64 | |
var += -L$(PHYSX)/Bin/linux64 | |
var += -L$(PHYSX)/Snippets/lib/linux64 | |
var += -DPHYSX_PROFILE_SDK | |
var += -DRENDER_SNIPPET | |
var += -DPX_DEBUG | |
var += -DPX_CHECKED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
#include "ofAppNoWindow.h" | |
#define WPA_PATH "/etc/wpa_supplicant/wpa_supplicant.conf" | |
class ofApp : public ofBaseApp | |
{ | |
public: | |
string essid; | |
string passwd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
#include <X11/X.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include "ofxTFTTouch.h" | |
Display *display; | |
Window root; | |
ofxTFTTouch touch; | |
int w,h; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "ofxGPIO.h" | |
#define OLED 0x3C | |
#define WIDTH_OLED 128 | |
#define HEIGHT_OLED 64 | |
int main(int argc, char *argv[]) | |
{ | |
if(argc > 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void drawFHOG(ofPixels store, int x, int y) | |
{ | |
ofPixels pix; | |
ofImage debug; | |
ofPushMatrix(); | |
array2d<matrix<float,31,1> > hog; | |
array2d<rgb_pixel> img; | |
toDLib(store,img);//<-- view ofxDLib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
http://dlib.net/train_object_detector.cpp.html | |
Usage: | |
first step create positive train: | |
./bin/imglab_commandline positive/ "30,20,520,520" "person" | |
second step create negative train in append positive train previously created: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <sstream> | |
#include <stdio.h> | |
#include <regex> | |
#include <fstream> | |
#include <curl/curl.h> | |
void write_file(std::string p, std::string d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
const char* ssid = "************"; | |
const char* password = "************"; | |
WiFiServer server(5055); | |
int pinLeft = 13; | |
int pinRight = 12; | |
bool ValLeft = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://en.wikipedia.org/wiki/Kalman_filter#Example_application.2C_technical | |
class Kalman { | |
public: | |
Kalman() { | |
Q_angle = 0.001; | |
Q_bias = 0.003; | |
R_measure = 0.03; | |
angle = 0; | |
bias = 0; |