ga.camMotionY()
Examplesmotion = 0.0
motionY = 0.0
function setup()
of.setCircleResolution(50)
end
function update()
motion = ga.camMotionQ(0) -- get the motion detection from device 0
motionY = ga.camMotionY(0) -- get the motion detection Y center mass from device 0
end
function draw()
ga.background(0.0,1.0)
of.setColor(255,0,0)
of.fill()
of.circle(OUTPUT_W/2, OUTPUT_H * motionY,motion*1000)
end
DescriptionmotionY = 0.0
function setup()
of.setCircleResolution(50)
end
function update()
motion = ga.camMotionQ(0) -- get the motion detection from device 0
motionY = ga.camMotionY(0) -- get the motion detection Y center mass from device 0
end
function draw()
ga.background(0.0,1.0)
of.setColor(255,0,0)
of.fill()
of.circle(OUTPUT_W/2, OUTPUT_H * motionY,motion*1000)
end
Returns the motion detection Y center mass, on specified camera device. If you have three cameras connected on your machine, then you can use this funtion with 0, 1 or 2 as specified camera device; the order will be the same order of openFrameworks console listing available devices, or instead the videoTracking tab order in GAmuza GUI.
Be sure to activate the video tracking module in the settingManager and have, at least, one camera connected and up&running, in order to have this function working.
Syntaxga.camMotionY(device)
Parameters| device | the camera device id |

sending...