Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple ROI for VAS in lab view

Dear sir :

 

   I have drew the attached diagram in labview. Trying to do ocr for 4 different regions in it. Could any body guide me with this ?

I have designed the OCR section in vas.

0 Kudos
Message 1 of 15
(3,799 Views)

Hi there,

 

Could you let us know what you are having difficulties with? Is it the OCR itself or some other element of the code? Additionally, what is your experience level in LabVIEW and Vision?

 

 

0 Kudos
Message 2 of 15
(3,752 Views)

Yes sir. Thanks for answer First.

I'm not an expert in Labview, I have made an Ocr diagram, using vas and lab view, the Ocr section is by vas, as in the picture, and succeeded in defining an roi and could grab image and extract decoded data, the problem is now I need 4 roi within a single image. Trying not to copy paste the function, trying to introduce 4 roi within a single frame and also receive 4 separate encoded data.

0 Kudos
Message 3 of 15
(3,748 Views)

Hai I have an Idea to solve your doubt. you need four ROI where you're about to read the characters.
you can extract ROI from the image refer this video.
--> https://www.youtube.com/watch?v=21zQxUqrPvI
Since you're using VAS you can put the VAS inside the 'for loop' and index the 'array of ROI' to for loop and connect it to VAS. Wham done.

 

0 Kudos
Message 4 of 15
(3,738 Views)

Dear karthikeya:

Thanks a lot. The video was exactly the same as I had done but the for loop you mentioned did the job.

Now there raise another question, how to achieve the data in each of the roi separately ?

I just get one string of result. And the number in it just jumps in between results.

0 Kudos
Message 5 of 15
(3,732 Views)

That would be simple, right click on the tunnel at end of the for loop and change the 'tunnel mode' to 'indexing'

0 Kudos
Message 6 of 15
(3,726 Views)

thanks a lot, the problem was solved. Now I am going for saving them in sql which would be another subject. I have a question now about the diagram that I have attached to the query. 

For the time out, if we adjust the time out to a very high constant value, If the trigger mode for the acquisition is considered, then the adjustments of the ROI would be one step back. For example if I readjust the ROI, In trigger mode, After readjustment, the first frame will give the results with the previous ROI, and the second frame will give me the results with the new ROI, and it is good to mention that the OCR analysis is real time, I mean that the frame that I receive is correct upon the trigger. 

I can also explain it in numbers, The first trigger is analyzed with the previously defined ROI and it is correct, then I readjust the ROI, I trigger the second frame, but the previous ROI is extracted, I then trigger for the third frame, there I will receive the analysis on the newly defined ROI. Is there any possibility to avoid this one step behind.

0 Kudos
Message 7 of 15
(3,722 Views)

Ok i am not able to understand, Can you please give Kudos and mark as Solved.

I think what you are asking must be in a new thread since your're asking about sql.

 

 

Thank You

0 Kudos
Message 8 of 15
(3,719 Views)

Dear karthikeya :

 

  Please forget about the sql. 

Consider it that way, the applied ROI affects the results with one delay in frames. I apply the new ROI on the frame number 5, then I trigger to see the new results in frame number 6, but the results will be the same as frame number 5, even though the frame changes, I will get the result of new ROI on frame 7.

Is there any solution for this 1 step behind ?

 

0 Kudos
Message 9 of 15
(3,717 Views)

Kindly attach the code, i will surely look into it.
Attach the VI which is LabVIEW Version 16 or below

0 Kudos
Message 10 of 15
(3,709 Views)