loading
 
triangle direction
mehdi from Iran  [32 posts]
8 years
hi!
how can i find a triangle direction using RR?
Anonymous 8 years
Care to post an image with that question? It will really depend on the image content.

For example if it is something like this



borrowed from this site (not robotics related but we need to give credit)

http://sonohang.blogspot.com/2007/11/uncommon-triangle.html

you could use the RGB filter and then the blob filter to look for a "triangular blob" to result in



See attached robofile.

STeven.
program.robo
Anonymous 8 years
And then for the direction use the Geometric module and see the angle variable. Note that this only works for an asymmetric triangle as a symmetrical one has no intrinsic angle.

STeven.


program.robo
mehdi from Iran  [32 posts] 8 years
thanks for your help!
can i ask whats the algorithm?
i khnow moments can give me direction but how can i get angle?
teta or pi+teta ??????????????
help me plz!
Anonymous 8 years
mehdi,

You can try looking in open source solutions for source code. See the list we maintain at

http://www.roborealm.com/links/vision_software.php

that have a lot of source code available for investigation. We're not sure exactly which package would have an orientation algorithm but I'd probably start with ImageJ.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index