You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Sales receipts. See fields found on a receipt [here][service_recognize_receipt].
140
140
- Business cards. See fields found on a business card [here][service_recognize_business_cards].
141
141
- Invoices. See fields found on an invoice [here][service_recognize_invoice].
142
-
-Id documents. See fields found on an id document [here][service_recognize_id_documents].
142
+
-ID documents. See fields found on an ID document [here][service_recognize_id_documents].
143
143
- Recognizing form content, including tables, lines, words, and selection marks, without the need to train a model. Form content is returned in a collection of `FormPage` objects.
144
144
145
145
Sample code snippets are provided to illustrate using a FormRecognizerClient [here](#recognize-forms-using-a-custom-model"Recognize Forms Using a Custom Model").
@@ -174,10 +174,7 @@ The following section provides several code snippets covering some of the most c
174
174
175
175
*[Recognize Forms Using a Custom Model](#recognize-forms-using-a-custom-model"Recognize Forms Using a Custom Model")
*[Manage Your Models](#manage-your-models"Manage Your Models")
183
180
@@ -260,8 +257,10 @@ for content in form_pages:
260
257
))
261
258
```
262
259
263
-
### Recognize Receipts
264
-
Recognize data from sales receipts using a prebuilt model. Receipt fields recognized by the service can be found [here][service_recognize_receipt].
260
+
### Using Prebuilt Models
261
+
Extract fields from certain types of common forms such as receipts, invoices, business cards, and identity documents using prebuilt models provided by the Form Recognizer service.
262
+
263
+
For example, to extract fields from a sales receipt, use the prebuilt receipt model provided by the `begin_recognize_receipts` method:
265
264
266
265
```python
267
266
from azure.ai.formrecognizer import FormRecognizerClient
@@ -290,81 +289,12 @@ for receipt in result:
290
289
print("{}: {} has confidence {}".format(name, field.value, field.confidence))
291
290
```
292
291
293
-
### Recognize Business Cards
294
-
Recognize data from business cards using a prebuilt model. Business card fields recognized by the service can be found [here][service_recognize_business_cards].
295
-
296
-
```python
297
-
from azure.ai.formrecognizer import FormRecognizerClient
298
-
from azure.core.credentials import AzureKeyCredential
print("{}: {} has confidence {}".format(name, field.value, field.confidence))
344
-
```
345
-
346
-
### Recognize Id documents
347
-
Recognize data from id documents using a prebuilt model. Id document fields recognized by the service can be found [here][service_recognize_id_documents].
292
+
You are not limited to receipts! There are a few prebuilt models to choose from, each of which has its own set of supported fields:
293
+
- Analyze receipts through the `begin_recognize_receipts` method (fields recognized by the service can be found [here][service_recognize_receipt])
294
+
- Analyze business cards through the `begin_recognize_business_cards` method (fields recognized by the service can be found [here][service_recognize_business_cards]).
295
+
- Analyze invoices through the `begin_recognize_invoices` method (fields recognized by the service can be found [here][service_recognize_invoice]).
296
+
- Analyze identity documents through the `begin_recognize_id_documents` method (fields recognized by the service can be found [here][service_recognize_id_documents]).
348
297
349
-
```python
350
-
from azure.ai.formrecognizer import FormRecognizerClient
351
-
from azure.core.credentials import AzureKeyCredential
Copy file name to clipboardExpand all lines: sdk/formrecognizer/azure-ai-formrecognizer/samples/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ All of these samples need the endpoint to your Form Recognizer resource ([instru
25
25
|[sample_recognize_receipts.py][sample_recognize_receipts] and [sample_recognize_receipts_async.py][sample_recognize_receipts_async]|Recognize data from a file of a sales receipt using a prebuilt model|
26
26
|[sample_recognize_receipts_from_url.py][sample_recognize_receipts_from_url] and [sample_recognize_receipts_from_url_async.py][sample_recognize_receipts_from_url_async]|Recognize data from a URL of a sales receipt using a prebuilt model|
27
27
|[sample_recognize_business_cards.py][sample_recognize_business_cards] and [sample_recognize_business_cards_async.py][sample_recognize_business_cards_async]|Recognize data from a file of a business card using a prebuilt model|
28
-
|[sample_recognize_id_documents.py][sample_recognize_id_documents] and [sample_recognize_id_documents_async.py][sample_recognize_id_documents_async]|Recognize data from a file of an id document using a prebuilt model|
28
+
|[sample_recognize_id_documents.py][sample_recognize_id_documents] and [sample_recognize_id_documents_async.py][sample_recognize_id_documents_async]|Recognize data from a file of an ID document using a prebuilt model|
29
29
|[sample_recognize_invoices.py][sample_recognize_invoices] and [sample_recognize_invoices_async.py][sample_recognize_invoices_async]|Recognize data from a file of an invoice using a prebuilt model|
30
30
|[sample_recognize_custom_forms.py][sample_recognize_custom_forms] and [sample_recognize_custom_forms_async.py][sample_recognize_custom_forms_async]|Recognize forms with your custom model|
31
31
|[sample_train_model_without_labels.py][sample_train_model_without_labels] and [sample_train_model_without_labels_async.py][sample_train_model_without_labels_async]|Train a custom model with unlabeled data|
0 commit comments