This widget could not be displayed.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074396120 IMAQ Get Image Info Error "Not an image"

Hello everyone,

I'm currently working on Machine Vision project. It has to measure distance of small metal elements, which moves on a conveyor. I've built and tested measurement algorithm in NI Vision Builder and it worked really cool. Today I tried to migrate inspection to LabVIEW in order to add features connected with sensors which I use in my project. When migration completed I run a VI, and suddenly got error:

 

Error -1074396120 occured at IMAQ Get Image Info
Not an image.

I use in my project Logitech Pro 9000, and I can see it in MAX. I acquire image in 640x480 resolution as RGB2. I read somewhere that it could be caused by RGB colors of image. In my algorithm after acquiring image is thresholded in order to get binary image.
Please tell me which block diagrams should I attach to this post to make it more understandable for you (if it is needed). Is it possible to fix this error ? Did anyone sorted it out already ? Thanks for any help.

 

Best regards,

Michael

0 Kudos
Message 1 of 6
(9,811 Views)

Hello

Did you used gray level images in your Vision Assistant Script? If yes, be sure to convert your RGB image to 8bit first, because the treshold function works on 8 or 16 bit images. In order to do this, use the extract color plane function and select the luminance plane.

Another option is to use the color treshold function.

 

Hope this help

Jérôme

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 6
(9,806 Views)

Hello, 

 

It's nearly impossible to find what is the problem without seeing your code. Is it possible for you to post a snippet of those VIs that give the error?

 

BR, Piotr

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
0 Kudos
Message 3 of 6
(9,797 Views)

First of all I would like to apologize for long delay in replying and thank you for your replies.

@toto26:
Yes, I used before threshold function a function you mentioned. The problem is that my algorithm works correctly in Vision Builder, but after migrating to LabVIEW, when I run a VI it doesn't work. It's strange for me.
The problem also occurs when I made my algorithm as simple as possible - now it includes two steps: acquisition and find edge function. After migration it still cannot acquire an image. Below I present an error and a place where it occurs (process ID already in use):

I think that it would be easier and faster when I understand IMAQ functions. I want to build my algorithm from the beginning in LabVIEW, because I would be aware of every part of my program. Please tell me if it is possible with my camera. Could you suggest me where can I find information about building vision application in LabVIEW for beginners. What keywords should I look for.

 

 

 

Thanks for any advice,

Michael

0 Kudos
Message 4 of 6
(9,781 Views)

Hi MicMac89,

 

did you find a solution for your problem, I have the same ERROR.

 

Kind regards

 

0 Kudos
Message 5 of 6
(8,694 Views)

Dear @MicMac89 and @Vincent_Class

 

This document is describing the error and potential solutions

http://digital.ni.com/public.nsf/allkb/20AB177016DE51C0C1256F03006A74CB?OpenDocument

Please let me know if it helped. If not, it would be highly appreciated to get vi with example situation, so i could reproduce it.

Best Regards,
TK
Certified LabVIEW Architect (CLA)

0 Kudos
Message 6 of 6
(8,677 Views)