Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create a simple OCR application without using an FDL file to analyze a single field on the image?

0
Posted

How do I create a simple OCR application without using an FDL file to analyze a single field on the image?

0

Please refer to the sample code listed below. Note: If you were performing ICR analysis the FieldType property would be set to FIELDTYPE_ICR. 1) Pass the image to the SmartScan control and create the form. ssx.ImageSource = IMGSRC_DIB ssx.hDIB = Xpress.CopyDIB ssx.CreateForm “MyForm” 2) Set Default Segmentation Parameters ssx.SetFormBounds 0, 0, Xpress.IWidth, Xpress.IHeight ssx.AddFormField “MyField” ssx.SetFieldSegProperty_Bool SEG_DETECT_BLANKS__BOOL, True ssx.SetFieldSegProperty_Bool SEG_COMPRESS_BLANKS__BOOL, False ssx.SetFieldSegProperty_Bool SEG_MULTIPLE_LINES__BOOL, True ssx.SetFieldSegProperty_Bool SEG_SPLIT_MERGED__BOOL, True ssx.SetFieldSegProperty_Bool SEG_SPLIT_OVERLAPPING__BOOL, True ssx.SetFieldSegProperty_Bool SEG_SPLIT_OVERLAPPING__BOOL, True ssx.SetFieldSegProperty_Long SEG_HORIZONTAL_THRESHOLD__LONG, 1 ssx.SetFieldSegProperty_Long SEG_VERTICAL_THRESHOLD__LONG, 1 ssx.SetFieldSegProperty_Long SEG_MAX_SPECK_HEIGHT__LONG, 4 ssx.SetFieldSegProperty_Long SEG_MIN_BLANK_WIDT

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123