> Hi, you don't have to detect a color to do what you want. You can simply detect a specific object which happens to be red. There are several ways to accomplish this:
>
> - If the red object is an independent object it can be simply detected by its name
> - If the red object is a clone of an existing object you can give it an instance variable Red = 1, Red = 0 for other objects
>
> Next for the detection area, if it is the entire area there is a "is visible" feature that you can use and/or right click on that after adding and click Reverse which then means "is not visible".
>
> Another way is to detect using the distance from the camera object. So if it is within say 300 pixels then you consider it detected. A simple distance formula should easily work for this.
>
> Best of luck,
> COSMOS
>
I believe he's talking about an actual, physical, object he wants to be detected through the actual image capture of an actual camera. Not the game camera, not a sprite, virtual, object. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
Hi Bruno. thanks for replying and Yes you r correct. I am trying to detect color in real time video. Here is sample of what I want to do
https://trackingjs.com/examples/color_camera.html
Steps
1 open camera
2 select colors from check box that u want to get detected and then u can see it shows boxes of detected color.
Can we do like that in construct 2?