LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

improving Image processing time and efficiency

To get Help on NI Vision from within LabVIEW, go to Help, NI Vision for LabVIEW Help, and look at entries in the Contents Tab (where you will find NI Vision Concepts Help), or use the Index or Search facilities.  There is also Help entries for NI-IMAQ Reference and NI-IMAQdx Reference.  

 

Bob Schor

0 Kudos
Message 11 of 15
(889 Views)

Hi all

 

Thanks for your inputs. I cleaned up my program and in INIT state , i opend my camera and closed it in END state. ( just once) I was able to save quite a good amount of time by that. Some of my test steps worked well with Camera session which was initialised in the INIT state. But some teststeps which included TEXT recognition didnt work. It gave me an error message: Error -1074396154 occurred at IMAQ OCR  Read Text. But when i run that test step directly using Open, snap and close function, it works without any problem. OCR Error.png

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 12 of 15
(881 Views)

The Error Message you posted suggests that "the image is not large enough for the operation".

 

Here is a suggestion -- write the smallest program that you can which exhibits this behavior.  I suggest the following states -- one to initialize things, one to acquire images, one to analyze (a few) things, and one to close.  You should be able to create a small enough VI that you can post the entire VI (and all the sub-VIs it needs so that we can try it, too), as well as post the data that you are feeding it.  A trick that lets you get around the "three files" restriction is to put things in a Folder, compress the Folder, and attach the .ZIP file.

 

Actually, if you create a simple, small VI and try it yourself, you may find the problem yourself, as well.  If not, show us the code and let us try.

 

Bob Schor

0 Kudos
Message 13 of 15
(873 Views)
Usually that error thrown if the image is deleted or the image is modified and no longer meets the requirements for IMAQ Read OCR.
-Without seeing proper code it is difficult to guess where it is wrong.
-Are you using the tests sequentially?
-What are the other tests you are using?
-Are you modifying the image before IMAQ Read OCR?
-Keep probe before IMAQ Read OCR and see whether you get the image or not.
-Does it throw error always or at some specific time?
Thanks
uday
0 Kudos
Message 14 of 15
(869 Views)

Hi all

@ Bob:sorry for the late response. Here is a small version of what i am doing.

 

I was able to eliminate the IMAQ error message by setting the image size for the created memory resoucre, befor processing.

 

@ uday: attached is only a small version. The first two tests( tex recognition & Histogram) are being repeated in other tests ( like test 7, 9 etc) By using the IMAQ set Image size function. i dont get the the error message anymore.

Yes, test are sequentially executed.

Previously, I checked the image before and after with a probe. all was good. Error was always at the text recog test. I also tried disabling test 1 for text recog and checked another text reco test( e.g test4). I had the same error.

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 15 of 15
(848 Views)