03-16-2021 02:28 AM
Hi, all.
I'm trying to make an application that get image from camera and detect patterns in the image.
This program is FPGA program.
First, HOST VI on cRio run to get and transfer image from camera.
Second, PFGA VI get transferred image from host and make binary image, then send image to host.
Third, in HOST VI, I use "IMAQ Find Pattern 4.vi" and want to detect patterns.
My problem is, the error -1074396154 happens from "IMAQ Find Pattern 4.vi".
This error means "The image is not large enough for the operation.".
So, My question is what size is enough for pattern detection?
Now, the size I take is 424 x 240.
If anyone know this or have some solutions to avoid this error, please give me some advice.
Best regard,
cleska.
Solved! Go to Solution.
03-17-2021 12:45 AM
Hi,
I maybe find the reason of error.
The problem occurs by the wrong path of template image.
My HOST VI is on the cRio system and I mistakenly point the directory(template image file is in) of my PC, that's why, my program can't find template file and then the size error happens.
I can't solve my problem but this make me advanced.
I make another thread for more help.
Thank you for your attention.
11-21-2021 05:52 AM
Hi Cleska,
I have a folder named images under the myRio device
And I would like to read an image from that folder by specifying its path
While debbuging my VI on the RIO system, I noticed that the Read File VI returns the following error
Error -1074395995 occurred at an unidentified location
Possible reason(s):
File not found.
I tried to run the same code on a VI located on my PC and the image at the specified path can be read. So I came to the conclusion that the Rio system can not read file paths located on my Windows PC.
Could you please tell how I can read an image located on the pc from a VI located in the RIO system?
11-21-2021 06:43 PM
Hi, FabFet.
I see your attachment, and have some questions.
1. Where is your vi to grab image in your structure?
When I see your project tree, I think the folder is under your Rio system.
2. Do this folder and image file exist in the specific path you coded?
When I added a image file under my Rio system in my project, I could see that the image is in my project tree, but in reality, the file didn't exist in Rio system.
To solve this problem, I used file transfer application to send the image file to Rio system.
Also, as I mentioned above, I put my image file in the Rio system and use the path that is start from '/home/lvuser/...' in my case.
The vi is under my Rio system in the tree structure.
I know my case is different from your case but I hope this will be helpful for you.
Cleska.
11-22-2021 02:15 PM
Hi Cleska,
thanks a lot for your very quick reply. I could make it work. I appreciate your help a lot.