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.opengl.*; | |
import unlekker.util.*; | |
import unlekker.modelbuilder.*; | |
import SimpleOpenNI.*; | |
SimpleOpenNI kinect; | |
boolean scanning = false; | |
boolean scanned = false; | |
int maxZ = 2000; |
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
// poseVector1 and poseVector2 are 52-float vectors composed of: | |
// Values 0-33: are x,y coordinates for 17 body parts in alphabetical order | |
// Values 34-51: are confidence values for each of the 17 body parts in alphabetical order | |
// Value 51: A sum of all the confidence values | |
// Again the lower the number, the closer the distance | |
function weightedDistanceMatching(poseVector1, poseVector2) { | |
let vector1PoseXY = poseVector1.slice(0, 34); | |
let vector1Confidences = poseVector1.slice(34, 51); | |
let vector1ConfidenceSum = poseVector1.slice(51, 52); |
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
const dgram = require('dgram'); | |
const client = dgram.createSocket({ type: 'udp4', reuseAddr: true }); | |
const sdp = require('./sdp'); | |
//config | |
const addr = '10.10.1.100'; | |
const danteMulticast = '239.255.220.221'; | |
const aes67Multicast = '239.69.1.122'; | |
const samplerate = 48000; | |
const channels = 2; |