01-30-2013 10:05 PM
I should acquire real time images and recognise the pattern and give an audio output.
I want to replace the target image load with camera acquisition.
When I tried I encountered the following problem."Error -1074395989 occurred at IMAQ ReadFile
Possible reason(s):
IMAQ Vision: Unable to read data".
I tried to save the acquired images using IMAQ Write 2 and then connected it to IMAQ read
file. Still the same error.
I do not understand what is causing the problem.
Thanks for your help.
01-31-2013 01:02 AM
Good effort, your code is clean and well documented!
However there were a few mistakes, I corrected some of them , see below :
First there are only 3 images in your image folder and you try to read 4.
Then the way you build the image path is slightly incorrect, it use to produce a path ending like "~\Temp1.png" instead of "~\Temp\1.png", that's why the read image info VIO was returning an error.
Another thing you could do to improve your code is to get the list of PNG file in the "Temp" folder and then index the for loop on that array instead of linking a constant.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-31-2013 01:35 AM
Thankyou for your response.
I want the main vi modified.vi to be fixed.
I want to acquire real time images using the camera.
I tried to save the acquired images using imaq write file 2 and then read them using imaq read file 2.
But it shows error.
Please help me fix it.
01-31-2013 01:42 AM
I think the original developper gave you a hint :
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-31-2013 07:39 AM
I have the vision acquisition express to replace.
I am trying to save the acquired images and then read them.
Iam facing problem there only
.
01-31-2013 07:43 AM
Sorry I don't know how to use the Express VIs... can't help you with that.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus