06-20-2014 11:59 PM
Hi. i need help on making a vi for detecting triangles in an image. IMAQ Detect shapes has no provision for triangle but for circle, ellipse an d rectangle. Please help. Anyone developed this can elp me please.
06-21-2014 12:14 AM
Try pattern matching available with the Vision development module.
06-21-2014 12:27 AM
Anand,
I dont have to pattern match cuz pattern match you need to feed another image for pattern detectiion. I need that within a single image i should detect circle,triangle and rectangle. I am successful for cirle and rectangle cuz of IMAQ Detect shapes , but have no idea how to do for triangle.
06-21-2014 01:03 AM
Do you want the red overlay you mentioned in the output image to be a triangle or is rectangle overlay ok? We can do both and thanks for starting a new thread
06-21-2014 03:56 AM
Kaus please try this
06-21-2014 04:22 AM
Anand,
I dont have to pattern match cuz pattern match you need to feed another image for pattern detectiion. I need that within a single image i should detect circle,triangle and rectangle. I am successful for cirle and rectangle cuz of IMAQ Detect shapes , but have no idea how to do for triangle.
If want you can use pattern matching. You can use more than one template if required.
06-21-2014 05:19 AM
@muks: thanks gor sharing. yeah if we want we can develop the triangular overlay through hough lines and can start as a new thread.
06-21-2014 05:34 AM
@kaus wrote:
@muks: thanks gor sharing. yeah if we want we can develop the triangular overlay through hough lines and can start as a new thread.
Kaus,
Creating triangular overlay through lines will a bit tricky. The triangle you posted are all same so you might be able to do it but for a rotated and scalene triangle the overlay will be difficult one.
You can continue in the same thread if your overlay part needs some modidication. This is afterall your thread
06-21-2014 05:40 AM
thanks yeah. But this vi has a short coming. If i attach rectanglar shapes, it is detecting them too which it shouldnt. I am in need of a pure, only trianlge detector.
06-21-2014 06:00 AM
Then i require a image that has all the shapes in the same image