1# Image Analysis Types
2
3>**NOTE**
4>
5>The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
6
7
8## ImageAnalyzerConfig
9
10Provides AI analyzer configuration.
11
12**Atomic service API**: This API can be used in atomic services since API version 12.
13
14**System capability**: SystemCapability.ArkUI.ArkUI.Full
15
16| Name    | Type               | Mandatory  | Description                  |
17| ------ | ----------------- | ---- | -------------------- |
18| types | [ImageAnalyzerType[]](#imageanalyzertype) | Yes| AI analysis types. |
19
20## ImageAnalyzerType
21
22Defines the AI analysis type. If it is not set, subject recognition and text recognition are enabled by default.
23
24**Atomic service API**: This API can be used in atomic services since API version 12.
25
26**System capability**: SystemCapability.ArkUI.ArkUI.Full
27
28| Name    | Description          |
29| -------- | -------- |
30| SUBJECT | Subject recognition.|
31| TEXT | Text recognition.|
32| OBJECT_LOOKUP | Object lookup.|
33
34## ImageAIOptions
35
36Provides the AI analysis options.
37
38**Atomic service API**: This API can be used in atomic services since API version 12.
39
40**System capability**: SystemCapability.ArkUI.ArkUI.Full
41
42| Name    | Type               | Mandatory  | Description                  |
43| ------ | ----------------- | ---- | -------------------- |
44| types | [ImageAnalyzerType[]](#imageanalyzertype) | No| AI analysis types.|
45| aiController | [ImageAnalyzerController](#imageanalyzercontroller) | No| AI analysis controller.|
46
47> **NOTE**
48>
49> The **types** parameter of this API has a higher priority than that of [ImageAnalyzerConfig](#imageanalyzerconfig). This means that, if both parameters are set, the value set by this API takes precedence.
50>
51> This API depends on device capabilities and must be used together with the **enableAnalyzer** API of the corresponding component (for example, the [Image](ts-basic-components-image.md#enableanalyzer11) component).
52
53## ImageAnalyzerController
54
55Implements an **ImageAnalyzerController** object, which can be bound to a supported component and then call the supported method through the controller.
56
57**System capability**: SystemCapability.ArkUI.ArkUI.Full
58
59### constructor
60
61constructor()
62
63A constructor used to create an **ImageAnalyzerController** instance.
64
65**Atomic service API**: This API can be used in atomic services since API version 12.
66
67**System capability**: SystemCapability.ArkUI.ArkUI.Full
68
69### getImageAnalyzerSupportTypes
70
71getImageAnalyzerSupportTypes(): ImageAnalyzerType[]
72
73Obtains the analysis types supported by the corresponding component.
74
75**Atomic service API**: This API can be used in atomic services since API version 12.
76
77**System capability**: SystemCapability.ArkUI.ArkUI.Full
78
79**Return value**
80
81| Type    | Description                     |
82| ------ | ----------------------- |
83| ImageAnalyzerType[] | Analysis type supported by the corresponding component.|
84