Skip to content

Instantly share code, notes, and snippets.

"cv::BriefDescriptorExtractor::BriefDescriptorExtractor(int)", referenced from:
"vtable for cv::BriefDescriptorExtractor", referenced from:
"cv::FeatureDetector::~FeatureDetector()", referenced from:
"cv::FlannBasedMatcher::FlannBasedMatcher(cv::Ptr<cv::flann::IndexParams> const&, cv::Ptr<cv::flann::SearchParams> const&)", referenced from:
"VTT for cv::FastFeatureDetector", referenced from:
Undefined symbols for architecture armv7:
"cinder::Timeline::Timeline()", referenced from:
cinder::Timeline::create() in libcinder-iphone_d.a(libcinder-iphone_d.a-armv7-master.o)
"cinder::Timeline::stepTo(float)", referenced from:
cinder::app::App::privateSetup__() in libcinder-iphone_d.a(libcinder-iphone_d.a-armv7-master.o)
cinder::app::App::privateUpdate__() in libcinder-iphone_d.a(libcinder-iphone_d.a-armv7-master.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
@joshuajnoble
joshuajnoble / trainingCreator
Last active December 10, 2015 16:58
Simple processing app for creating a training file w/bounding boxes && descriptors for training RTrees, SVMs, etc in OpenCV or conceivably any CV-framework.
int currentIndex;
boolean hasBB;
PImage currentImage;
// we'll have a look in the data folder
String absolutePath = "path/to/images";
java.io.File folder = new java.io.File(absolutePath);
ArrayList<String> bbOutput;
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/foreach.hpp>
#include <omp.h>
#include "CinderOpenCV.h"
using namespace boost::filesystem;
//Processing
dev.write('x');
dev.write(r, INT);
dev.write(g, INT);
dev.write(b, INT);
//Arduino
@joshuajnoble
joshuajnoble / gist:4986115
Created February 19, 2013 13:57
Simple sensor logging application for Processing Android
import ketai.sensors.*;
import android.content.Context;
import android.hardware.SensorManager;
import android.os.Environment;
import java.io.File;
ArrayList<String> logString;
KetaiSensor sensor;
float[] accelerometer = new float[3];
@joshuajnoble
joshuajnoble / MicAccess
Created February 19, 2013 15:41
Mic Access on Android Processing
import android.media.AudioRecord;
import android.media.AudioFormat;
import android.media.MediaRecorder;
final int RECORDER_SAMPLERATE = 44100;
final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO;
final int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
short[] buffer = null;
AudioRecord audioRecord = null;
@joshuajnoble
joshuajnoble / VoiceRecorder.pde
Last active June 28, 2020 11:45
android processing voice recorder
import android.media.MediaRecorder;
import android.media.MediaPlayer;
import android.os.Environment;
import android.content.Context;
import java.io.IOException;
import ketai.ui.*;
MediaRecorder mRecorder = null;
@joshuajnoble
joshuajnoble / HOGTrain.cpp
Created March 10, 2013 21:11
Cinder based Histogram of Oriented Gradients creation using SVMLight (svmlight.joachims.org) requires lots of images to work properly
#include "cinder/app/AppBasic.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/Texture.h"
#include "cinder/Capture.h"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/foreach.hpp>
#include <stdio.h>
@joshuajnoble
joshuajnoble / gist:6217752
Created August 13, 2013 03:50
how ofMaterial could work
ofMaterial m;
m.setSpecular(ofColor(1, 1, 0, 1));
m.setEmissive(ofColor(0.1, 0.1, 0.1, 1));
m.setAmbient(ofColor(1, 1, 0, 1));
m.setDiffuse(ofColor(1, 1, 0, 1));
ofSpherePrimitive p;
p.scale(100);
// need to have material per vertex as an attribute to be able to set multiple materials in the