Skip to content

Instantly share code, notes, and snippets.

View stephanschulz's full-sized avatar

Stephan Schulz stephanschulz

View GitHub Profile
/Users/stephanschulz/.zshrc:.:25: no such file or directory: /opt/home
(base) stephanschulz@MacBook-Pro-2 shader_pixelMapper % make -j -s 2>&1 && make RunRelease
Compiling OF library for Release
Done!
Compiling shader_pixelMapper for Release
Compiling /Applications/of_v0.12-2.0_osx_release/apps/brokenMirror/shader_pixelMapper/src/OrthoEasyCam.cpp
Compiling /Applications/of_v0.12-2.0_osx_release/apps/brokenMirror/shader_pixelMapper/src/ofApp.cpp
Compiling /Applications/of_v0.12-2.0_osx_release/apps/brokenMirror/shader_pixelMapper/src/main.cpp
@stephanschulz
stephanschulz / ofxVisionDetection.h
Last active February 19, 2025 13:30
hopefully fixed the model load crash mentioned here: https://github.com/roymacdonald/ofxVision/issues/9
//
// ofxVisionDetection.h
// example
//
// Created by Roy Macdonald on 20-03-24.
//
#pragma once
#include "ofxVisionResults.h"
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));