05-18-2017 03:11 AM
Hello to all.
I have an application where Users have to train OCR characters. That is done.
Now I would like to have a button an a display that when the user presses the button all the characters trained appear in the display.
The same that in NI OCR Training interface:
But all of characters in a single display (because I don't know how many characters are going to have the users in every moment)
I think I have to use This VI in a for where N is the number of characters trained.
But my problems are:
Can anybody help me?
Thanks a lot.
05-19-2017 05:48 AM
-You can get number of trained characters using IMAQ OCR Property and using Get mode and property as Size of Char Set :http://zone.ni.com/reference/en-XX/help/370281AC-01/imaqvision/imaq_ocr_property/
-For your second question about joining images
http://forums.ni.com/t5/Example-Program-Drafts/Combine-Four-Images-Into-One-Image/ta-p/3512437
05-19-2017 06:00 AM
Hello.
Thanks for replying!
For the first question your answer works fine!! Thanks!
For the second question about joining images I have the next problem that I can not solve:
- In example you post the source code is just for four images and you know before running the code that there is 4 images.
- My problem is that I dont know how many characters are trained in the OCR Session.
- So I would like to visualize: 5 first character in the first display arrow, next 5 in second arrow, next 5 in third arrow.... check image attached.
I dont know hoe to split the visualization characters by arrows.
I think that I have to use a for structure where N is equal to characters trained but I dont know how to do that split (because if I visualiza all characters in the same arrow that really anoying for the user)
Could you help me?
Thanks a lot!
05-19-2017 06:09 AM
The example shows the joining logic for four images but you can use the logic as per your requirements.
-If you understand the logic how image 2 is joined with image 1 and image 4 with image 3 and then together(image1&image 2) & (image 3 & image4) is simply inserting into the array( If you don't know this look into LabVIEW basic Tutorials)
-in your case you need to insert five image into row-1 and so on and then you can combine them as together.
05-19-2017 07:40 AM
Thanks I am going to try.
I will post my results here.