ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#9  

I forgot to mention that you can check for the object with $CameraIsTracking (Which is a 0/1 or true/false)

So you can do this...


if ($CameraIsTracking = 1)
  SayEZB("I see an object")
else 
  SayEZB("There is no object ")
endif

-OR-


if ($CameraIsTracking = true)
  SayEZB("I see an object")
else 
  SayEZB("There is no object ")
endif

-OR-


if ($CameraIsTracking)
  SayEZB("I see an object")
else 
  SayEZB("There is no object ")
endif

You can see what the Camera Variables are by...

  1. Pressing the Configuration Gear on the CAmera Control

  2. Selecting SCRIPTS tab from the camera control configuration window

  3. Selecting VARIABLES tab

It will look like this...

User-inserted image

#10  

Thanks , that is a way more elegant way to handle that.

I program in many languages and am still learning the syntax of EZScript.

I know if I started posting code you guys would set me straight.

#11  

@Luis Did you post your project on the cloud? I cannot find it. I would like to learn from what you have done.

Thanks. Wayne

#12  

Sorry @WayneA I have not done that yet. I will get to that later today. I need to clean up some personal stuff from the project first. If you are subscribed to this post . I will post here when I have it up , so you can get notified.

#13  

@Luis Ok. Thank You very much!

#14  

Hello all and @WayneA

Sorry about the delay .. I have posted the project with the vision interaction to the cloud.

file name is JD vission

Let me know if you can find it.

#15  

@Luis I found your code from the cloud. I think it is very good for me to learn from. On a darkside, my poor computer cannot keep up with the vision and microphone listening. I seriously need to update my computer system.

Thank You Very Much.