I hereby claim:
- I am bakercp on github.
- I am bakercp (https://keybase.io/bakercp) on keybase.
- I have a public key ASBZ3ejlA1s6ZG2RwP0zvfscT3WosEMIhaU7j_cR26xQmwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Control PWM via a transistor. | |
| class MotorController | |
| { | |
| public: | |
| MotorController(int motorPin) | |
| { | |
| pin = motorPin; | |
| startTime = endTime = millis(); |
| #include <dlib/image_io.h> | |
| #include <dlib/image_transforms.h> | |
| using namespace std; | |
| using namespace dlib; | |
| int main(int argc, char** argv) | |
| { |
| // | |
| // Copyright (c) 2017 Christopher Baker <https://christopherbaker.net> | |
| // | |
| // SPDX-License-Identifier: MIT | |
| // | |
| #include "ConvexHull.h" | |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
| import processing.serial.*; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| Serial myPort; | |
| int lineFeedChar = 10; | |
| String lastRow = ""; | |
| int currentY = 0; |
| ofVideoGrabber grabber; | |
| ofPixels filteredPixels; | |
| ofTexture filteredTexture; | |
| std::vector<ofTexture> buffer; | |
| int numFramesInBuffer; | |
| ofEasyCam cam; |
| ofSoundPlayer dubstep; // From bensound.com | |
| ofSoundPlayer ping; // From bensound.com | |
| ofSoundPlayer pong; // From freesound.org. | |
| ofSoundPlayer laser; // From freesound.org | |
| void setup() { | |
| dubstep.loadSound("bensound-dubstep.mp3"); | |
| dubstep.setVolume(0.75f); | |
| dubstep.play(); | |
| ########################################################################################## | |
| # CONFIGURE CORE PLATFORM MAKEFILE | |
| # This file is where we make platform and architecture specific configurations. | |
| # This file can be specified for a generic architecture or can be defined as variants. | |
| # For instance, normally this file will be located in a platform specific subpath such | |
| # as $(OF_ROOT)/libs/openFrameworksComplied/linux64. | |
| # | |
| # This file will then be a generic platform file like: | |
| # |
| class Ball{ | |
| public: | |
| ofVec2f position; | |
| ofVec2f velocity; | |
| int radius; | |
| ofColor color; |