04-22-2020 09:06 PM
Hi,
I am trying to create a simple Sub Vi for comparing images. A user is supposed to choose an image from a certain folder, after which the picture should get compared to a template. However, I get a "Not an image" error from IMAQ learn color pattern even though I am sending it a png.
Solved! Go to Solution.
04-22-2020 09:59 PM
You are using Express VIs, and who knows what's happening inside them! Can you please attach the image file (.png) that caused the problem? I'll try to use regular LabVIEW "Read Image" function, and if successful, I'll share the code with you here.
Bob Schor
04-23-2020 04:09 AM - edited 04-23-2020 04:11 AM
Here it is .
Thank you a lot for help
04-23-2020 07:41 AM - edited 04-23-2020 07:55 AM
Got it. I hope to be back shortly ...
Bob Schor
That was quick -- I'm able to edit my earlier response from about 5 minutes ago. Here is the code -- an IMAQ Create to create the Buffer needed to hold the Image, and an IMAQ ReadFile 2 to read the Image and send it to an Image Display. The last function is the Simple Error Handler, which (since there was no error) just sits there silently.
Here's the result:
04-23-2020 01:30 PM
Yup that solved it. Thank you!