Skip to content

Commit 4e1d96d

Browse files
[FR] add document annotations, images, formulas, barcodes to DocumentPage (Azure#29710)
* add document annotations, images, formulas, barcodes to DocumentPage * expose new page properties like we do with others * fix lint and tests * fix polygon access
1 parent a85700c commit 4e1d96d

File tree

6 files changed

+686
-6
lines changed

6 files changed

+686
-6
lines changed

.vscode/cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,9 @@
652652
"mymodel",
653653
"heif",
654654
"racwd",
655-
"rrggbb"
655+
"rrggbb",
656+
"UPCA",
657+
"UPCE"
656658
]
657659
},
658660
{

sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
- Added property `code` to `CurrencyValue`.
2121
- Added properties `unit`, `city_district`, `state_district`, `suburb`, `house`, and `level` to `AddressValue`.
2222
- Added "boolean" `value_type` and `bool` `value` to `DocumentField`.
23+
- Added properties `annotations`, `images`, `formulas`, and `barcodes` to `DocumentPage`.
24+
- Added models `DocumentAnnotation`, `DocumentImage`, `DocumentFormula`, and `DocumentBarcode`.
2325

2426
### Breaking Changes
2527

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
DocumentAnalysisInnerError,
6969
TargetAuthorization,
7070
QuotaDetails,
71+
DocumentFormula,
72+
DocumentImage,
73+
DocumentBarcode,
74+
DocumentAnnotation,
7175
)
7276
from ._generated.models import ( # patched models
7377
ClassifierDocumentTypeDetails,
@@ -146,6 +150,10 @@
146150
"AzureBlobFileListSource",
147151
"AzureBlobContentSource",
148152
"QuotaDetails",
153+
"DocumentFormula",
154+
"DocumentImage",
155+
"DocumentBarcode",
156+
"DocumentAnnotation",
149157
]
150158

151159
__VERSION__ = VERSION

0 commit comments

Comments
 (0)