Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Capture and save an image to a file using LV and CVS1450

Hello,

My name is Maurice Filo. I am from Lebanon majoring in Electrical Engineering at the Lebanese University.

I am performing my final year project titled as "Demining Robot".

I used the Classification VI found in the examples and modified it to take the image from the CVS 1450 device and analyse it instead of taking the image from a file on the PC.

But it didn't work. Trying to find the problem, I made a small VI which takes an image from the CVS and writes to a file and this also didn't work. I tried to omit the CVS and read an image from a file and write it to another file and it worked. 

I have attached here a picture of the VI that acquires an image and writes it to a file that i specify.

Please, can you check it out and tell me what did i do wrong.

PS: I used IMAQdx in this VI, is it ok? or I should be using IMAQ?  

Any help would be appreciated.

Regards,

Maurice Filo 

0 Kudos
Message 1 of 8
(4,285 Views)

Hey Maurice,

 

  What do You mean exactly under it does not work. Is the file created but there is no content? It does not create anything at all? Do You receive any error message? The best would be to use the error clusters and at the end after IMAQ Write to File function put a Simple Error handler. I suppose there will be some error message that will guide us to the soulution!

 

Let us know the resluts! 

 

Best regards,

 

David Varga

Applications Engineer

NIH

0 Kudos
Message 2 of 8
(4,246 Views)

Thank you for your reply. Your help is apreciated.

This write to file VI didn't create a file. Instead to narrow my problem, I created an empty bmp file and as I run my VI, I can use the path controller to select this empty bmp file as a destination for the write to file VI. And nothing would change, i.e: the bmp file I selected stays empty. I have also tried to put the error handler, it gave me an error that "some hex address in the memory eg: HEX...." is not an image! Is this related to using IMAQdx instead of IMAQ?

 

0 Kudos
Message 3 of 8
(4,239 Views)

Hey Maurice,

 

I don't think it is related to imaqdx. Could You please make a screenshot of the error message? I'll set up a CVS in the office and will try out some things.

 

Best regards,

 

David Varga

Applications Engineer

NIH

0 Kudos
Message 4 of 8
(4,232 Views)

Sir,

The problem was resolved. I was specifying the path of the file to save wrongly. I thought that the path should be specified as seen on the PC. Now, I know that the path should be as seen by the CVS.

If I face other problems I will post my questions.

I appreciate your interest.

Thank you,

Maurice Filo 

0 Kudos
Message 5 of 8
(4,180 Views)

Hello sir,

 

I just want to ask a question. We are working on the NI Classification Training Software. We know the algorithm of the classification. We are using K-nearest neighbor.

But the training procedure is not clear. Can you tell me what is the training algorithm? We learnt how to use this software and manipulate the clf file that it generates. The only thing we want to know is the training algorithm. 

 

Thanks in advance for your help 

0 Kudos
Message 6 of 8
(4,083 Views)
First start a new thread. Explain if you are talking about ocr?
0 Kudos
Message 7 of 8
(4,081 Views)

Maurice Filo wrote:

Hello sir,

 

I just want to ask a question. We are working on the NI Classification Training Software. We know the algorithm of the classification. We are using K-nearest neighbor.

But the training procedure is not clear. Can you tell me what is the training algorithm? We learnt how to use this software and manipulate the clf file that it generates. The only thing we want to know is the training algorithm. 

 

Thanks in advance for your help 


Continued here.

 

 

0 Kudos
Message 8 of 8
(4,074 Views)