Image Analysis Types

NOTE

The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.

PixelMap

type PixelMap = PixelMap

Represents an image pixel map for reading or writing image data and accessing image information.

Atomic service API: This API can be used in atomic services since API version 11.

System capability: SystemCapability.Multimedia.Image.Core

Type Description
PixelMap Image pixel map class for reading or writing image data and accessing image information.

ImageAnalyzerConfig12+

Provides AI image analyzer configuration.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Read-Only Optional Description
types ImageAnalyzerType[] No No AI image analysis types.

ImageAnalyzerType12+

Defines the AI image analysis type. If it is not set, subject recognition and text recognition are enabled by default.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Value Description
SUBJECT 0 Subject recognition.
TEXT 1 Text recognition.
OBJECT_LOOKUP 2 Object lookup.

ImageAIOptions12+

Provides the AI image analysis options.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Read-Only Optional Description
types ImageAnalyzerType[] No Yes AI image analysis types.
aiController ImageAnalyzerController No Yes AI image analysis controller.

NOTE

The types parameter of this API has a higher priority than that of ImageAnalyzerConfig. This means that, if both parameters are set, the value set by this API takes precedence.

This API depends on device capabilities and must be used together with the enableAnalyzer API of the corresponding component (for example, the Image component).

ImageAnalyzerController12+

Implements an AI image analysis controller, which provides control for image analysis features when bound to supported components.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

constructor12+

constructor()

A constructor used to create an ImageAnalyzerController instance.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

getImageAnalyzerSupportTypes12+

getImageAnalyzerSupportTypes(): ImageAnalyzerType[]

Obtains the analysis types supported by the corresponding component.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

Return value

Type Description
ImageAnalyzerType[] Analysis type supported by the corresponding component.

ContentTransitionEffect21+

Defines the content transition effect.

Properties

Atomic service API: This API can be used in atomic services since API version 21.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Read-Only Optional Description
IDENTITY ContentTransitionEffect Yes No Applies no transition effect during content switching.
OPACITY ContentTransitionEffect Yes No Applies a fade-in/fade-out transition animation during content switching.