Skip to content

Commit

Permalink
[FR] add document annotations, images, formulas, barcodes to Document…
Browse files Browse the repository at this point in the history
…Page (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
  • Loading branch information
kristapratico authored Apr 8, 2023
1 parent a85700c commit 4e1d96d
Show file tree
Hide file tree
Showing 6 changed files with 686 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@
"mymodel",
"heif",
"racwd",
"rrggbb"
"rrggbb",
"UPCA",
"UPCE"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
- Added property `code` to `CurrencyValue`.
- Added properties `unit`, `city_district`, `state_district`, `suburb`, `house`, and `level` to `AddressValue`.
- Added "boolean" `value_type` and `bool` `value` to `DocumentField`.
- Added properties `annotations`, `images`, `formulas`, and `barcodes` to `DocumentPage`.
- Added models `DocumentAnnotation`, `DocumentImage`, `DocumentFormula`, and `DocumentBarcode`.

### Breaking Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
DocumentAnalysisInnerError,
TargetAuthorization,
QuotaDetails,
DocumentFormula,
DocumentImage,
DocumentBarcode,
DocumentAnnotation,
)
from ._generated.models import ( # patched models
ClassifierDocumentTypeDetails,
Expand Down Expand Up @@ -146,6 +150,10 @@
"AzureBlobFileListSource",
"AzureBlobContentSource",
"QuotaDetails",
"DocumentFormula",
"DocumentImage",
"DocumentBarcode",
"DocumentAnnotation",
]

__VERSION__ = VERSION
Loading

0 comments on commit 4e1d96d

Please sign in to comment.