Skip to main content
The Object Collection element supports the following parameters in the FlexiLayout language.

Object Collection parameters

ParameterDescription
Void Type( ImageObjectType )Sets the value of the Type parameter. See Element properties > Object Collection > Type.
Void MinObjHeight( Distance )See Object size > Min Height. You can use any units of measurement.
Void MaxObjHeight( Distance )See Object size > Max Height. You can use any units of measurement.
Void MinObjWidth( Distance )See Object size > Min Width. You can use any units of measurement.
Void MaxObjWidth( Distance )See Object size > Max Width. You can use any units of measurement.
Void WholeWordMode( Logic )This flag specifies whether only whole text objects should be considered as hypotheses. When set to true, hypotheses consisting of word parts are ignored. The flag is set to false by default.
Note. Restrictions on the height and width of objects are applied to words if the flag is set to true and to characters if the flag is set to false.
Void UseRawText( Logic )Enables the use in text searches of those unrecognized text-like objects that were assigned the type Raw Text during pre-recognition. To enable this feature, call the method with parameter true. By default, only recognized text is used in text searches (that is, the parameter is set to false).
Void MaxXOutsidePart( Real )Specifies the part of the object that may extend beyond the search area horizontally. The part is specified by a number from 0 to 1. Objects that have the specified or a smaller part outside the search area are included in the hypothesis.
Void MaxYOutsidePart( Real )Specifies the part of the object that may extend beyond the search area vertically. The part is specified by a number from 0 to 1. Objects that have the specified or a smaller part outside the search area are included in the hypothesis.
Example for Type: The following code sets a list of objects of type Barcode and Picture for the current Object Collection element:
Type: BarcodeObject + PictureObject;
This is the same as:
Type(BarcodeObject + PictureObject);
Calling this property finds all the objects of the Barcode and Picture type in the search area of the element. Example for MinObjHeight: The following code sets the minimum height to 10mm:
MinObjHeight(10mm);