3.1.0-beta.1 (2020-11-23)
- Added a
pages
option toBeginRecognizeContentOptions
. This option allows for the specification of which pages of a document to include in the content results. If a value is provided, pages that are not included in thepages
field will not be analyzed. - Added an
appearance
property toFormLine
that contains information about the appearance of the line, such as style (e.g. "handwritten"). - Added an optional
boundingBox
property toFormTable
that has a bounding box that contains the entire table. - Added support for the "image/bmp" content type. This content type is supported on all methods that accept a
FormRecognizerRequestBody
except for custom form recognition. - Added a
language
option toBeginRecognizeContentOptions
. By default, when performing layout/content analysis, the service will attempt to detect the language of the document and supports multi-language inputs. Thelanguage
parameter allows you to override this behavior and force the service to use a specific language. - Added support for Invoice recognition through the
beginRecognizeInvoices
andbeginRecognizeInvoicesFromUrl
methods. The Invoice model is prebuilt and may be used without training a model. - Added support for creating composed models through the
beginCreateComposedModel
method ofFormTrainingClient
. It accepts a list of model IDs that refer to labeled custom models that should be composed into a new model. - Added a
formTypeConfidence
property toRecognizedForm
indicating the model's confidence in determining the correct form type (and therefore the correct model to use) during recognition. - Added a
properties
field toCustomFormModelInfo
that may optionally contain extra properties. Currently, the only property isisComposedModel
which will indicate whether the model is a composed model or a single trained model. - Added a
modelId
field to theCustomFormSubmodel
,TrainingDocumentInfo
, andRecognizedForm
types containing the ID of the exact model that they are associated with (for example, in the context of a composed model, themodelId
field can determine which specific component model is associated with the submodel, training document, or recognized form). - Added support for selection marks in form fields. In addition to the previously-existing variants of
FormField
, custom models can now return fields withvalueType: "selectionMark"
and theirvalue
will be the state of the selection mark. - Added a new page element
FormSelectionMark
that represents marks on a page that can be selected (such as checkboxes and radio buttons). TheselectionMarks
field ofFormPage
contains the selection marks that were recognized in the page. A selection mark has a state value that is either "checked" or "unchecked." - Made optimizations to the long-running operation infrastructure that should result in faster and more memory-efficient polling for results of custom form recognition, receipt recognition, and business card recognition.
- Added an option for specifying the locale of a document to receipt and business card methods through the
locale
property of the options bag. - Added support for Business Card recognition through the
beginRecognizeBusinessCards
andbeginRecognizeBusinessCardsFromUrl
methods, which mirror their receipt counterparts. The Invoice model is prebuilt and may be used without training a model. - Added the
modelName
property toCustomFormModelInfo
, reflecting the same property that was added to the model training options. - Altered the type hierarchy so that
CustomFormModel
inherits the properties ofCustomFormModelInfo
. - Added the
modelName
field toBeginTrainingOptions
. The given model name will become an immutable property of the trained model. - Migrated to the 2.1-preview.1 Form Recognizer service endpoint for all REST API calls.