playing sound when in view of cam
in
Core Library Questions
•
1 year ago
hey
I'm quite new to processing (come from unity).
I'm trying to set up a project where the cam detects if some one is in it's view and if so plays a sample unitl they step out of view.
I was thinking to do it with a top down camera that films a white square on the floor, any other color coming into the view is viewed as black and then simply do something like: if (black > white) player.play();
i got a hard time changing the motion detect script to the compare i need, so not motion based but color based, also with letting the cam see black&white instead of colors.
if someone could give me some example codes for these two part, i can figure out the rest myself ;-)
thanks
J.
1