ImageLibProps
Properties for defining a ImageLib
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-imagelib
Initializer
import { ImageLibProps } from '@alicloud/ros-cdk-aligreen'
const imageLibProps: ImageLibProps = { ... }
Properties
Name | Type | Description |
---|---|---|
category |
string | @alicloud/ros-cdk-core.IResolvable |
Property category: The category of the image library. |
imageLibName |
string | @alicloud/ros-cdk-core.IResolvable |
Property imageLibName: The name of the image library defined by the customer. |
scene |
string | @alicloud/ros-cdk-core.IResolvable |
Property scene: The moderation scenario to which the custom image library applies. |
bizTypes |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property bizTypes: List of business scenarios. |
enable |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property enable: Specifies whether to enable the image library. |
category
Required
public readonly category: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property category: The category of the image library.
Valid values: BLACK: a blacklist, WHITE: a whitelist, REVIEW: a review list.
imageLibName
Required
public readonly imageLibName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property imageLibName: The name of the image library defined by the customer.
It can contain no more than 20 characters in Chinese, English, and underscore (_).
scene
Required
public readonly scene: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property scene: The moderation scenario to which the custom image library applies.
Valid values: PORN: pornography detection, AD: ad detection, ILLEGAL: terrorist content detection.
bizTypes
Optional
public readonly bizTypes: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property bizTypes: List of business scenarios.
For example: ["bizTypeA", "bizTypeB", "bizTypeC"].
enable
Optional
public readonly enable: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property enable: Specifies whether to enable the image library.
Valid values: true: Enable the image library. This is the default value. false: Disable the image library.