firstOnly method

Class: TextRegionSettingsPlatform: ImagesLanguage: Java SDK:

Use this method to define that only the first text found should be returned.

If this method is called with a value of true, only the first match found for each pattern is returned. If it is called with a value of false, all of the matches that are found are returned for each pattern. Calling this value is optional, by default all the matches are returned.

For more information see Eyes OCR support .

This feature is experimental. Please note that the functionality and/or API may change.

Syntax


TextRegionSettings value = obj.firstOnly(firstOnly);

Parameters

firstOnly
Type:boolean
A value of means that only the first match found for each pattern is returned.

Return value

Type: TextRegionSettings
This method returns the object that called it so that it can be used to call other methods supportd by this class in a fluent API style.