primitives.visual¶
visual ¶
类:
| 名称 | 描述 |
|---|---|
Frame |
运行时图像数据。 |
Image |
图像类。 |
ImageSlice |
|
Template |
模板图像类。 |
Frame ¶
Image ¶
图像类。
方法:
| 名称 | 描述 |
|---|---|
__init__ |
从内存数据或图像文件创建图像类。 |
binary |
Deprecated: return a grayscale copy of the image. |
属性:
| 名称 | 类型 | 描述 |
|---|---|---|
name |
str | None
|
图像名称。 |
description |
str | None
|
图像描述。 |
file_path |
str | None
|
图像的文件路径。 |
pixels |
MatLike
|
图像的像素数据。 |
path |
str | None
|
Deprecated alias for |
data |
MatLike
|
Deprecated alias for |
data_with_alpha |
MatLike
|
Deprecated: return image including alpha channel when available. |
ImageSlice ¶
Bases: Image
方法:
| 名称 | 描述 |
|---|---|
binary |
Deprecated: return a grayscale copy of the image. |
属性:
| 名称 | 类型 | 描述 |
|---|---|---|
slice_rect |
图像切片的矩形区域。 |
|
name |
str | None
|
图像名称。 |
description |
str | None
|
图像描述。 |
file_path |
str | None
|
图像的文件路径。 |
pixels |
MatLike
|
图像的像素数据。 |
path |
str | None
|
Deprecated alias for |
data |
MatLike
|
Deprecated alias for |
data_with_alpha |
MatLike
|
Deprecated: return image including alpha channel when available. |
data_with_alpha
property
¶
data_with_alpha: MatLike
Deprecated: return image including alpha channel when available.
Template ¶
Bases: Image
模板图像类。
方法:
| 名称 | 描述 |
|---|---|
__init__ |
从内存数据或图像文件创建图像类。 |
binary |
Deprecated: return a grayscale copy of the image. |
属性:
| 名称 | 类型 | 描述 |
|---|---|---|
name |
str | None
|
图像名称。 |
description |
str | None
|
图像描述。 |
file_path |
str | None
|
图像的文件路径。 |
pixels |
MatLike
|
图像的像素数据。 |
path |
str | None
|
Deprecated alias for |
data |
MatLike
|
Deprecated alias for |
data_with_alpha |
MatLike
|
Deprecated: return image including alpha channel when available. |