Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How performance meter in vision assistant calculates estimation time

Hello...

I want to know that how performance meter in vision assistant calculates the estimation time of each step?????

I mean what is the concept behind this???

please i need to know...

 

Thanks in advance..

 

0 Kudos
Message 1 of 11
(4,982 Views)

Hello,

 

I think it should be something similar to this (see the attachment). If you have LV2010 or later (the attachments are saved for LV2010), you can use "High Resolution Relative Seconds.vi" (the second attachment).

 

Best regards,


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Download All
0 Kudos
Message 2 of 11
(4,979 Views)

Thank for the instant reply..

 

But the results are totally different from the results that i obtained from NI vision assistant.

0 Kudos
Message 3 of 11
(4,968 Views)

I believe it runs the steps on the current image multiple times (ten??), then indicates the average time for each step.  It probably does a simple time difference for each step, but I don't know.

 

The reason you are getting different results is most likely because you are using a different image.  For some functions, the speed is highly dependent on the contents of the image.  For other functions, they will simply scale with the size of the image.  For example, particle analysis depends on the number of particles in the image (as well as the size of the image).  Thresholding, on the other hand, only depends on the size of the image.

 

I use the estimated time for two purposes.  It tells me which steps are the bottlenecks that are slowing down my analysis.  If I have four steps that take 5 msec and one that takes 500 msec, I know I should try to improve on the slow one.  It also gives me a rough idea of the total processing time, which I only rely on as an order of magnitude.  Can I run this 100 times per second, or only one?  Obviously, if timing is critical you need to do more elaborate tests with the actual images.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 4 of 11
(4,959 Views)

Thank you so much

0 Kudos
Message 5 of 11
(4,953 Views)

Hello Er.DKD,

 

I cannot reproduce your problem. Looking at the performance of manually coded and NI Vision Assistant coded example (the same image), the results are basically the same:

 

performancecomparison.png

 

I don't know why you got totaly different results.

 

Best regards,


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 6 of 11
(4,942 Views)

I understood know what was the prblem that my results were not matching...

but i have tried to  bulit the code taking your VI as reference.The steps i performed in vision assiatant are:

histogram,line profile,brightness and OCR and same i have used in labview for time estimation but it is showing some errors...

I have attached the vi and the image i have used along with vision assistant.. please have a look... and help me to sort out the errors

 

Thanks in advance..

 

0 Kudos
Message 7 of 11
(4,928 Views)

Hello,

 

I have performed the same operations in Ni Vision Assistant and in LV (without OCR):

 

NIVISION.png

 

The VI is attached.

 

The values are very similar. Maybe I do not understand your problem correctly. Please explain, if I missed the point.

 

Best regards,


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Download All
0 Kudos
Message 8 of 11
(4,915 Views)

I have also tried to do the same and applied OCR also...actually I cant find line coordinates in line profile thats why I am getting different results..may be

I am unable to understand what is the problem..

I have attached the VI along with image and character set file. Please have a look..

 

 

Thanks in advance...

 

0 Kudos
Message 9 of 11
(4,896 Views)

Hello,

 

Now, I really don't understand what are you trying to do. Smiley Indifferent

 

 

Your outputs of "IMAQ Color Histogram" and "IMAQ Line Profile" and "IMAQ ColorBCGLookup" are not used anywhere. Why doing these operations then?

 

I would really like to help you, so please explain what are you trying to achieve step-by-step.

 

Best regards,


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 10 of 11
(4,889 Views)