LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triangle detection in image

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.

Download All
0 Kudos
Message 1 of 20
(4,504 Views)

Try pattern matching available with the Vision development module.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 20
(4,495 Views)

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.

0 Kudos
Message 3 of 20
(4,488 Views)

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

0 Kudos
Message 4 of 20
(4,474 Views)

Kaus please try this

Download All
Message 5 of 20
(4,459 Views)

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.

0 Kudos
Message 6 of 20
(4,453 Views)

@muks: thanks gor sharing. yeah if we want we can develop the triangular overlay through hough lines and can start as a new thread.

0 Kudos
Message 7 of 20
(4,441 Views)

@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 threadSmiley Happy

 

0 Kudos
Message 8 of 20
(4,435 Views)

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. 

0 Kudos
Message 9 of 20
(4,431 Views)

Then i require a image that has all the shapes in the same image

0 Kudos
Message 10 of 20
(4,424 Views)