Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically control OCR threashold

Hi,

I am working in Vision Builder AI and I have a question regarding the OCR function. I have the ROI set up with the annulus tool for the OCR to pick up cavity numbers of caps. The question I have is is there a way I can dynamically change the threashold of the OCR from Dark to Light and vise versa? Thank you!   

0 Kudos
Message 1 of 3
(3,056 Views)

I use NI Vision and it has the control you are looking for.  Unfortunately I don't know how to do this in Vision Builder.

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 3
(3,049 Views)

I think the easiest way to accomplish switching between the “Dark on Light” and “Light on Dark” OCR settings in VBAI would be to use two different inspection states (one for dark on light and one for light on dark). You could leave the other parameters the same and just toggle between the two states using some logic based on when the different states are needed.

 

I do not think we can dynamically change this parameter like you could in LabVIEW with the VDM, or using the Variable Manager in VBAI for that matter. Though, switching between states should accomplish the same thing.

------------------------------
Bill E. | Applications Engineer | National Instruments
0 Kudos
Message 3 of 3
(3,037 Views)