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 <Servo.h> | |
Servo servoY; // create servo object to control a servo | |
Servo servoX; | |
int ValX; | |
int ValY; | |
byte Processing; |
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
import processing.serial.*; | |
import gab.opencv.*; | |
import processing.video.*; | |
import java.awt.Rectangle; | |
Capture video; | |
Serial serial; | |
OpenCV cvFlip; // just to flip the image |
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
import processing.video.*; | |
Capture cam; | |
void setup() { | |
size(1280, 960); | |
String[] cameras = Capture.list(); | |
if (cameras == null) { |
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
import gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
Capture video; | |
OpenCV opencv; | |
void setup() { | |
size(640, 480); | |
video = new Capture(this, 640/2, 480/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
import gab.opencv.*; | |
import java.awt.Rectangle; | |
OpenCV opencv; | |
Rectangle[] faces; | |
void setup() { | |
opencv = new OpenCV(this, "profile_test.jpg"); | |
size(960, 960); |
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
import gab.opencv.*; | |
import java.awt.Rectangle; | |
OpenCV opencv; | |
Rectangle[] faces; | |
void setup() { | |
opencv = new OpenCV(this, "test.jpg"); | |
size(1080, 720); |
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
import gab.opencv.*; | |
import processing.video.*; | |
Movie video; | |
OpenCV opencv; | |
void setup() { | |
size(1440, 1080); | |
video = new Movie(this, "test2.mov"); | |
opencv = new OpenCV(this, 1440, 1080); |
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
import gab.opencv.*; | |
OpenCV opencv; | |
void setup() { | |
PImage src = loadImage("test2.JPG"); | |
src.resize(800, 0); | |
size(800, 533); | |
opencv = new OpenCV(this, src); |
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
import gab.opencv.*; | |
OpenCV opencv; | |
void setup() { | |
PImage src = loadImage("robot_light.jpg"); | |
src.resize(800, 0); | |
size(800, 533); | |
opencv = new OpenCV(this, src); |
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
import gab.opencv.*; | |
import processing.video.*; | |
Movie video; | |
OpenCV opencv; | |
void setup() { | |
size(720, 480); | |
video = new Movie(this, "street.mov"); | |
opencv = new OpenCV(this, 720, 480); |
NewerOlder