loading

Add to this Thread


17 year
Maryam,

We simplified the robofile just down to the basics to illustrate how to do this.

Note the confusing part is how to detect that a circle has been found by the circle module. In this case we use the If statement module to detect the SIZE of the array being produced is > 1 (i.e. it has some information in it). When you use the If statement module and just specify an array it will grab the size of that array. If you want to test a specific element within the array you then use the variable:1 or variable:2 etc notation.

Hopefully this robofile illustrates the point. Note that we included a test image that should trigger the text display. Try dragging other images into RR to see what happens. Note that if more than 1 circle is found it will also trigger the text display.

You would then replace the text display with whatever else you would prefer to do when a circle is detected. Note that if you are using sound (like the beep module) then you will hear very rapid beeping when using video as each new image will trigger a beep ... using static images you should only hear one.

STeven.

Pick Avatar
* Question/Comment - Only <b>, <i>, <u> tags are allowed. All others will be escaped.
Use the tags [image1], [image2], etc. to place the images within your question/comment.
Upload Images (.jpg, .png, .gif) < 300K, robofiles (.robo) or Zip files (.zip) < 300K.

If you have any questions/issues about RoboRealm or image processing this is your chance to ask a question. Your question and any responses will be posted to the forum section of the website for others to read and learn from.

Note that any submission will be considered property of RoboRealm. If you do not wish your images to be displayed as part of the RoboRealm site please do not submit those images. Any submission may be removed from the website at the discretion of RoboRealm personnel.