LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT HELP NEEDED: counting number of particles from image

this image on the left is showing particles
hello i want to create a small VI that can count number of particles from a image that i load up. please see the attached image of particles and the VI printshot.
I have used the tutorial "counting number of particles" but still the above VI does not work. it shows the number of particles = 1.. I do not know why it is doing so??
I am not an expert in Labview so please can someone tell me where the problem is. sorry i could not attach the VI file itself but i have given an image of it..
 
after anyone has solved this problem, i have to create a live system that will get live images from the camera - four frames every sec and the above VI has to count the
number of particles for each frame and output to the user?? is this possible can anyone do it for me???
 
p.s. in the above VI i read the image from file and count the number of particles. i do not do it to the binary image becuase the binary image is only a black screen
when i run it
 
thankyou
0 Kudos
Message 1 of 11
(5,217 Views)
anyone!!!
0 Kudos
Message 2 of 11
(5,188 Views)
Hi Farhan,
I would suggest you to try the VBAI or the Vision Assistant to fine tune the Image processing Module.
this would give you good idea of the step by step processing after applying filters.
Then you could export the same algorithm to LabVIEW and use it there.
 
Regards,
Sundar.
0 Kudos
Message 3 of 11
(5,177 Views)
Hi Farhan,

Vision Assistant would be the best option to create some steps which you can then export to LabVIEW. You should try using the IMAQ Find Circles.vi. The attached image helps you find the number of circles of an image acquired from a camera. I have used the IMAQdx VIs in this example.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 11
(5,166 Views)

Hi Farhan,

Please find the evaluation version of VBAI and hope this will prove to be help to be help full.

http://digital.ni.com/demo.nsf/websearch/21A7B90A7502DA5B86256C93005ACD7F?OpenDocument&node=157200_U...

 

Regards,

Sundar.

0 Kudos
Message 5 of 11
(5,157 Views)

Thankyou everybody and Sundar N for your help. The VBAI was very helpful and did exactly what i wanted - to count particles from

an image. it now works. now i am working with the camera to count particles rather then reading the image from a file.

i set the camera four frames per sec. so for each frame i will count the particles and add it to the rest of the frames count particles.

i hope it should be easy and also can you do it in a loop so when i click run it should keep on doing it until i click stop?

thankyou 

0 Kudos
Message 6 of 11
(5,149 Views)
Hello Adnan Z,
Thankyou for replying and providing the file vision.vi. But if i could please request that you provide me a file which can work with Labview 8.2 as i do not have labview 8.5.. you simply have to save it as labview 8.2
thankyou.
farhan
0 Kudos
Message 7 of 11
(5,148 Views)
Here you go.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 8 of 11
(5,145 Views)

Hello Adnan Z

when I run the vision file it gives me an error which i do not understand:

Error -1074396080 occurred at IMAQ Find Circles
  Invalid image type.

Possible reason(s):

IMAQ Vision:  (Hex 0xBFF60450) Invalid image type.

do you know what the problem is: i have the camera connected fine and works under MAX

 

0 Kudos
Message 9 of 11
(5,123 Views)
Hi Farhan,

Is it possible for you to tell me which exact VI is throwing this error? I am assuming it's IMAQ Threshold. You can search our knowledge base. I think this article should be helpful:
Error 1074396080 from IMAQ Threshold.vi When Performing Particle Analysis
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 10 of 11
(5,117 Views)