Changes

Line 42: Line 42:  
This plugin uses the camera and get the position of an object of a color.
 
This plugin uses the camera and get the position of an object of a color.
 
The plugin add this palette:
 
The plugin add this palette:
[[File:turtleart-followme-palette.png]]
+
[[File:turtleart-followme-palette.png|800px]]
    
Download: [http://www.fing.edu.uy/inco/proyectos/butia/files/followme_ta_plugin.zip followme_ta_plugin.zip]
 
Download: [http://www.fing.edu.uy/inco/proyectos/butia/files/followme_ta_plugin.zip followme_ta_plugin.zip]
Line 48: Line 48:  
Examples:
 
Examples:
   −
The "classic" use. After the "Start", the "Calibrate" block open a windows that show the capture of the camera. In the center of that capture there are an red square. The FollowMe Plugin uses an algorithm that obtain the "promedial" color of the object in the square. The result of that algorithm is showed in an little square in the corner. When you consider that the color is a good "representation of the object" you press any key, and the windows close, and the Plugin obtain the latest color calibrated. After, when you calibrate, you can use the "X position" and "Y position" when you want, don't need re-calibrate. The block "X position" return the "center" of the object that the camera "see" in the "X" axis. This value is an integer between 0 and 320. When the object is not detected, the camera have problems, the algorithm returns -1. The operation of the "Y position" block are the same, but returns the position respect the "Y" axis. The value returned is between 0 and 240.
+
The "classic" use: on "Start", use the "Calibrate" block to open a window that shows the camera output. In the center of that window there is red square. The FollowMe Plugin uses an algorithm that obtains the "promedial" color of the object in the square. The result of that algorithm is shown in a small square in the corner. When you consider that the color is a good "representation of the object"press any key, the window will close, and FollowMe will use this color. After calibration, you can use the "X position" and "Y position" blocks. The block "X position" is the "center" of the object seen by the camera along the "X" (horizontal) axis. This value is an integer between 0 and 320. When the object is not detected,the algorithm returns -1. The operation of the "Y position" block are the same, but returns the position respect the "Y" (vertical) axis. The value returned is between 0 and 240.
    
[[File:turtleart-followme-classic.png|250px]]
 
[[File:turtleart-followme-classic.png|250px]]
   −
When you know the color to "follow" (it occurs rarely, since the color is very variable light conditions) you can use the "Follow RGB" block. This block sets the color directly to the algorithm. In all cases, the color have a bit of threshold in each component (25 of each color) seted by default. In future version, this can be modify.
+
When you know the color to "follow" (it occurs rarely, since the color varies under changing light conditions) you can use the "Follow RGB" block. This block sets the color directly to the algorithm. In all cases, the color has a threshold of 25 in each component set by default. In a future version, this threshold will be modifiable.
    
[[File:turtleart-followme-specificcolor.png|250px]]
 
[[File:turtleart-followme-specificcolor.png|250px]]
   −
The third option, is use the "FollowMe" block that "follow" a generic color similar to that shown.
+
The third option, is to use the "FollowMe" block that "follows" a generic color similar to that shown.
    
[[File:turtleart-followme-turtlecolor.png|250px]]
 
[[File:turtleart-followme-turtlecolor.png|250px]]