hi, im working on a motion detector using the pix_movement object. Im trying to find a way of automating the threshold value of the second inlet. Presently i am having to use an arduino and a photoresistor to measure the light value of the scene, the analogue values are then sent into PD to dynamically adjust the threshold value in order to compensate for changing light conditions.
Is there a way to find the luminance of the webcam feed within pd