From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding circles problem

Hello,

 

I have a usb camera connected and I want to detect circles on images.

My code is very simple (see attachment).

 

First, I convert my RGB to Grayscale and then apply  "IMAQ Find circles VI"

but even in very simple cases, it finds 0 circle.

 

Can someone help me ?

Thanks

Youm

Download All
0 Kudos
Message 1 of 5
(2,518 Views)

A code snippet rather than an image would help you get an answer quicker. 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 5
(2,486 Views)

here is the code.

Thanks

0 Kudos
Message 3 of 5
(2,470 Views)

Hello youm,

 

Thank you for posting on National Instruments' forum.

 

I think this link could help you in using circle data in output of the IMAQ Find Circles VI : here

 

However, put the IMAQ Create in your loop and use IMAQ Dispose afterwards (like the example).

Romain P.
National Instruments France

0 Kudos
Message 4 of 5
(2,424 Views)

Exactly what I was looking for ! Thanks.

0 Kudos
Message 5 of 5
(2,406 Views)