Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Size which IMAQ can deal

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(1,777 Views)
Solution
Accepted by topic author cleska

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.

0 Kudos
Message 2 of 5
(1,728 Views)

Hi Cleska,

 

I have a folder named images under the myRio device 

FabFet_0-1637494983070.png

And I would like to read an image from that folder by specifying its path

FabFet_1-1637495249921.png

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?

 

0 Kudos
Message 3 of 5
(1,563 Views)

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.

 

Download All
Message 4 of 5
(1,556 Views)

Hi Cleska,

 

thanks a lot for your very quick reply. I could make it work. I appreciate your help a lot.

0 Kudos
Message 5 of 5
(1,548 Views)