Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an IMAQ VI that I can use to load an image automatically?

Hello,

 

glad you have figured it out.

 

If you want to load all images in a given folder try:

 

Example_VI_BD.png

 

Why do you need a string? The "paths to images" can be used to load all the images specified in the path array.

 

Best regards,

K


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."
Message 11 of 15
(1,324 Views)

sir klemen thank you for an immediate response. i am quite new in labview so i try to create vi but it is not quite that correct.

I have another problem sir it is about..

 

IMAQ ReadImageAndVisionInfo

 

when i path someimages an error occured.

 

“-1074395989 --> IMAQ Vision:  (Hex 0xBFF604AB) Unable to read data”

 

"does this means that the IMAQ ReadImageAndVisionInfo can only read some images? if yes, can i know what kind of images?"

 

thank you sir! i read forums but there is none explaining well about this thank you.

0 Kudos
Message 12 of 15
(1,314 Views)

Hello,

 

i think this vi expects a .png image, since this is the format, where the vision info is stored. You can load a png image without the vision info, but you cannot load other types (.jpg for example).

 

You should always read context help and detailed help for more information:

 

Untitled.png

 

So, this basically enables you to read additional information if saved with "IMAQ Write Image And Vision Info File 2".

 

Hope this helps.

 

Best regards,

K


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."
Message 13 of 15
(1,307 Views)

Sir Klemen,

 

you help me a lot sir! but i need again you help sorry sir..

 

the auto path that you gave to me helps me a lot but i want to ask again.. What will i do is this..

 

1) i have images in my folder that i will compare to one image.

2) you thought me how to path.. but i cannot get the path one by one to compare it to an specific image..

 

that is my problem. Thank you sir! and by the way sir do you know how to make the numeric indicator will have two digit values always?

it is like.. instead of '0" it will be "00"

 

Thank you sir for always answering my question!

0 Kudos
Message 14 of 15
(1,290 Views)

Hello,

 

if you want to compare an image "one-by-one" to another image, just perform everything inside the for loop. There you have only one path in each iteration, going through the first path to the last.

 

For displying the numeric indicator with two digits, right click on the indicator and select "display format". Select "advanced editing mode" and add "%02d" to the "format string" (d is for decimal, use f if you want float, etc...).

 

Best regards,

K


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."
Message 15 of 15
(1,268 Views)