Skip to content

Instantly share code, notes, and snippets.

View stephanschulz's full-sized avatar

Stephan Schulz stephanschulz

View GitHub Profile
void makeGradientEdge_texture(int _x, int _y, float _scale, int _rotate90, ofMatrix4x4 _transformationMatrix, ofFbo & fbo){
ofMatrix4x4 translate_offset;
translate_offset.makeTranslationMatrix(_x,_y,0);
ofMatrix4x4 scale_0;
scale_0.makeScaleMatrix(_scale,_scale,1);
ofMatrix4x4 temp_rotateM;
#include "ofApp.h"
using namespace ofxCv;
using namespace cv;
const float dyingTime = 1;
void Glow::setup(const cv::Rect& track) {
color.setHsb(ofRandom(0, 255), 255, 255);
cur = toOf(track).getCenter();
@stephanschulz
stephanschulz / ofApp.h
Created January 29, 2023 20:01
oscParametersReceiverExample + ofParameter<void>
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
parameters.setName("parameters");
parameters.add(size.set("size",10,0,100));
parameters.add(number.set("number",10,0,100));
parameters.add(check.set("check",false));
parameters.add(voidTest.set("voidTest"));
parameters.add(color.set("color",ofColor(127),ofColor(0,0),ofColor(255)));
@stephanschulz
stephanschulz / ofApp.cpp
Created January 29, 2023 20:00
oscParametersSenderExample + ofParameter<void>
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
parameters.setName("parameters");
parameters.add(size.set("size",10,1,100));
parameters.add(number.set("number",10,1,100));
parameters.add(check.set("check",false));
parameters.add(voidTest.set("voidTest"));
parameters.add(color.set("color",ofColor(127),ofColor(0,0),ofColor(255)));
@stephanschulz
stephanschulz / index.html
Created May 27, 2022 11:54
MediaPipe - Pose
<body>
<style>
.square-box {
width: 33%;
height: 0;
padding-top: 33%;
position: absolute;
right: 20px;
top: 20px;
}
'''
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@stephanschulz
stephanschulz / zed3.py
Created April 13, 2022 14:53
using python + zed + opencv without sdk
'''
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetBackgroundColor(0);
// set up the GUI for tweaking params
gui.setup();
gui.add(ui_useCam.setup ("use webcam", false)); //use live webcam?
gui.add(ui_useVideo.setup ("use video", false));
// Test program for the PEmbroider library for Processing:
// Making a multi-color embroidery based on imdividualy colored pngs
import processing.embroider.*;
PEmbroiderGraphics E;
void setup() {
noLoop();
size (1400, 1400);
float cx = width/2;
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample $ cd ..
pi@raspberrypi:~/openFrameworks/examples/gui $ cd guiExample_macOS
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample_macOS $ make
VER ID IS 10
using newer build and GLFW window
Compiling OF library for Release
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
VER ID IS 10
using newer build and GLFW window
VER ID IS 10