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
"description": "Extract detailed structured information from images extracted from documents.",
26
-
"baseAnalyzerId": "prebuilt-image",
27
-
"scenario": "image",
28
-
"config": {"returnDetails": False},
29
-
"fieldSchema": {
30
-
"name": "ImageInformation",
31
-
"descriptions": "Description of image.",
32
-
"fields": {
33
-
"Description": {
34
-
"type": "string",
35
-
"description": "Description of the image. If the image has a title, start with the title. Include a 2-sentence summary. If the image is a chart, diagram, or table, include the underlying data in an HTML table tag, with accurate numbers. If the image is a chart, describe any axis or legends. The only allowed HTML tags are the table/thead/tr/td/tbody tags.",
36
-
},
37
-
},
38
-
},
39
-
}
40
12
13
+
classMediaDescriber(ABC):
41
14
42
-
classContentUnderstandingManager:
15
+
asyncdefdescribe_image(self, image_bytes) ->str:
16
+
raiseNotImplementedError
17
+
18
+
19
+
classContentUnderstandingDescriber:
20
+
CU_API_VERSION="2024-12-01-preview"
21
+
22
+
analyzer_schema= {
23
+
"analyzerId": "image_analyzer",
24
+
"name": "Image understanding",
25
+
"description": "Extract detailed structured information from images extracted from documents.",
26
+
"baseAnalyzerId": "prebuilt-image",
27
+
"scenario": "image",
28
+
"config": {"returnDetails": False},
29
+
"fieldSchema": {
30
+
"name": "ImageInformation",
31
+
"descriptions": "Description of image.",
32
+
"fields": {
33
+
"Description": {
34
+
"type": "string",
35
+
"description": "Description of the image. If the image has a title, start with the title. Include a 2-sentence summary. If the image is a chart, diagram, or table, include the underlying data in an HTML table tag, with accurate numbers. If the image is a chart, describe any axis or legends. The only allowed HTML tags are the table/thead/tr/td/tbody tags.",
0 commit comments