
NYP.Shank_95
India
Asked
— Edited

Earlier, I have asked about the coding of detecting the colours using the EZ-Script. bhouston gave a very good code and I made a coding of my own similar to what bhouston gave. The coding was working but camera gave flop results for eg. I show Blue, it detects as Green.
So, I tried to do the If Else statement for Face and Motion but I cant find their default variables.
Can anybody here help me out?
Which default values are you looking for? Try adding the variable watcher, this will give realtime feedback on all variables, including default values (when the project is first loaded).
I have just seen your other thread about multi colour detection. When I initially set my camera up I had a couple of issues similar to yours at first. After playing around with the various settings, brightness, contrast ect, I ended up deleting the camera control from my project and selected a new camera control. I then did what Rich mentioned above by placing an object in front of the camera and adjusted the settings needed. After this everything worked fine and detection was pretty good.
In regards to your question regarding face and motion variables, I'm not quite sure what you are looking for, as Richard mentioned in post #4 all the variables needed are in the variables tab in the scripts menu. If it helps, I have supplied a script I use for motion tracking. Maybe what you are looking for is in there.
Code: