你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentIntelligenceModelFactory.DocumentBarcode Method

Definition

Initializes a new instance of DocumentBarcode.

public static Azure.AI.DocumentIntelligence.DocumentBarcode DocumentBarcode (Azure.AI.DocumentIntelligence.DocumentBarcodeKind kind = default, string value = default, System.Collections.Generic.IEnumerable<float> polygon = default, Azure.AI.DocumentIntelligence.DocumentSpan span = default, float confidence = 0);
static member DocumentBarcode : Azure.AI.DocumentIntelligence.DocumentBarcodeKind * string * seq<single> * Azure.AI.DocumentIntelligence.DocumentSpan * single -> Azure.AI.DocumentIntelligence.DocumentBarcode
Public Shared Function DocumentBarcode (Optional kind As DocumentBarcodeKind = Nothing, Optional value As String = Nothing, Optional polygon As IEnumerable(Of Single) = Nothing, Optional span As DocumentSpan = Nothing, Optional confidence As Single = 0) As DocumentBarcode

Parameters

kind
DocumentBarcodeKind

Barcode kind.

value
String

Barcode value.

polygon
IEnumerable<Single>

Bounding polygon of the barcode, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

span
DocumentSpan

Location of the barcode in the reading order concatenated content.

confidence
Single

Confidence of correctly extracting the barcode.

Returns

A new DocumentBarcode instance for mocking.

Applies to