Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Aug 5, 2024
1 parent ebe097a commit 8b10a83
Show file tree
Hide file tree
Showing 49 changed files with 265 additions and 251 deletions.
10 changes: 7 additions & 3 deletions docx/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
- [裁切图片](./actions/image/CropImage.md)
- [调整尺寸](./actions/image/ResizeImage.md)
- [图像旋转](./actions/image/ImageRotate.md)
- [图像缩放](./actions/image/ImageScale.md)
- [中心裁切](./actions/image/CenterCropImage.md)
- [边缘检测](./actions/image/ImageCanny.md)
- [阈值操作](./actions/image/ImageThreshold.md)
Expand Down Expand Up @@ -222,12 +223,12 @@
- [分组](./actions/control/GroupAction.md)
- 算法
- [分割字符串](./actions/algorithm/SplitString.md)
- [非零像素点](./actions/algorithm/FindNonZero.md)
- [非零图像](./actions/algorithm/ImageIsColored.md)
- [访问数组](./actions/algorithm/AccessArray.md)
- [访问对象](./actions/algorithm/AccessKey.md)
- [数组长度](./actions/algorithm/ArraySize.md)
- [中心坐标](./actions/algorithm/CalculateCenter.md)
- [坐标转换](./actions/algorithm/PointConvert.md)
- [坐标转换](./actions/algorithm/ConvertPoint.md)
- [文本筛选](./actions/algorithm/FilterText.md)
- [面积筛选](./actions/algorithm/FilterArea.md)
- [周长筛选](./actions/algorithm/FilterPerimeter.md)
Expand All @@ -237,7 +238,10 @@
- [随机坐标](./actions/algorithm/RandomPoint.md)
- [图像差值](./actions/algorithm/ImageDifference.md)
- [颜色统计](./actions/algorithm/ColorPercentage.md)
- [颜色统计](./actions/algorithm/JoinString.md)
- [合并字符串](./actions/algorithm/JoinString.md)
- [提取子串](./actions/algorithm/SubString.md)
- [添加元素](./actions/algorithm/PushBack.md)
- [删除元素](./actions/algorithm/PopBack.md)
- 类型
- [字符串](./actions/type/TypeString.md)
- [网址](./actions/type/TypeUri.md)
Expand Down
8 changes: 4 additions & 4 deletions docx/actions/algorithm/AccessArray.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 访问数组
根据索引获取 *数组* 当中的元素。

![action](./images/2022-11-26_194304.png ':size=90%')
![AccessArray](./images/06.png ':size=90%')

## 子流程

Expand All @@ -17,10 +17,10 @@
## 输出

> 数组中的元素
> 数组中的元素


## 资源
## 其它

示例:https://github.com/shelllet/WinUi/blob/main/algorithm/access_array.simple
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/AccessArray.simple
22 changes: 8 additions & 14 deletions docx/actions/algorithm/AccessKey.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
# 访问对象
根据指定的名称,获取 *对象* 的值。

![action](./images/2022-11-26_194304.png ':size=90%')
![AccessKey](./images/07.png ':size=90%')

## 子流程

> 不支持
## 运行参数

* Value: 数组,比如 *python* `dict` 类型, 或者 [`JsonObject`](./types/JsonObject.md) 类型
* Key: 名称,[String](./types/String.md) 类型
* 对象
> 比如 *python* 字典 `Dictionary`
* 键:
> 键名称,[String](./types/String.md) 类型。
## 输出

> 根据不同的动作,输出会不同
> 对象

## 脚本调用
## 其它

```python
import simple


```

## 示例

[https://github.com/shelllet/WinUi/blob/main/algorithm/access_array.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/access_array.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/AccessKey.simple
8 changes: 4 additions & 4 deletions docx/actions/algorithm/ArraySize.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# 数组长度
获取 *数组/列表* 的长度。

![ArraySize](./images/2022-11-26_193743.png ':size=90%')
![ArraySize](./images/08.png ':size=90%')

## 子流程

> 不支持
## 运行参数

*
* 数据
> 可计算长度的 *数组* 或者 *字符串*
## 输出

> 长度, [`Number`](./types/Number.md) 类型。

## 资源
## 其它

示例:https://github.com/shelllet/WinUi/blob/main/algorithm/access_size.simple
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/ArraySize.simple
17 changes: 5 additions & 12 deletions docx/actions/algorithm/CalculateCenter.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 中心坐标
计算矩形框,或者轮廓的中心位置。

![action](./images/2022-11-17_184608.png ':size=90%')
![CalculateCenter](./images/09.png ':size=90%')


## 子流程
Expand All @@ -10,21 +10,14 @@
## 运行参数

* Source:可计算中心坐标的数据
*
> 可计算中心坐标的数据。
## 输出

> 中心坐标。类型为:[`Point`](./types/Point.md)

### 脚本调用
### 其它

```python
import simple


```

### 示例

[https://github.com/shelllet/WinUi/blob/main/algorithm/ClientToScreen.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/ClientToScreen.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/CalculateCenter.simple
12 changes: 2 additions & 10 deletions docx/actions/algorithm/ColorPercentage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@

> 所要统计的颜色所占的百分比,参考:[Number](./types/Number.md)
## 其它

## 脚本调用

```python
import simple;

```

## 资源

例子:https://github.com/shelllet/WinUi/blob/main/algorithm/ColorPercentage.simple
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/ColorPercentage.simple
30 changes: 30 additions & 0 deletions docx/actions/algorithm/ConvertPoint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 坐标转换
窗口坐标转屏幕坐标,或者屏幕坐标转窗口坐标。

![ConvertPoint](./images/10.png ':size=90%')


## 子流程

> 不支持
## 运行参数

* 窗口
> 执行坐标转换所关联的窗口。
* 坐标
> 待转换的坐标。 窗口坐标或者屏幕坐标, 类型为:[`Point`](./types/Point.md)
* 方法
> 坐标转换方法,参考:[PointConvertMethod](./enums/PointConvertMethod.md)
* 标题栏
> 计算出来坐标是否包含标题栏的高度(前提是窗口有标题栏)。
## 输出
> 转换后的坐标,类型为:[`Point`](./types/Point.md)
### 其它

示例:https://github.com/shelllet/WinUi/blob/main/algorithm/ClientToScreen.simple
24 changes: 9 additions & 15 deletions docx/actions/algorithm/FilterArea.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 面积筛选
通过计算数组中元素的面积来筛选列表中的元素
通过计算数组中元素的面积来筛选列表中的元素


![action](./images/2022-11-17_184608.png ':size=90%')
![FilterArea](./images/11.png ':size=90%')


## 子流程
Expand All @@ -12,22 +12,16 @@
## 运行参数


* Value: 包含多个可以计算面积的元素列表
* Area: 面积范围
*
> 包含多个可以计算面积的元素列表,比如检测到的轮廓列表。
* 面积
> 指定面积范围。
## 输出

> 和输入数组的类型相同
> 包含指定面积的元素列表。如果列表长度不为 `0`, 走左侧分支,否则走右侧分支。

### 脚本调用
### 其它

```python
import simple


```

### 示例

[https://github.com/shelllet/WinUi/blob/main/algorithm/ClientToScreen.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/ClientToScreen.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/FilterArea.simple
23 changes: 8 additions & 15 deletions docx/actions/algorithm/FilterEllipse.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 椭圆筛选
通过 *椭圆* 或者 ** 的特征筛选 *椭圆* 列表中的元素
通过 *椭圆* ** 的特征筛选列表中的元素

![action](./images/03.png ':size=90%')
![FilterEllipse](./images/13.png ':size=90%')

## 子流程

Expand All @@ -12,31 +12,24 @@


*
> 椭圆数组[`Ellipses`](./types/Ellipse.md)
> 包含圆或者椭圆的数组[`Ellipses`](./types/Ellipse.md)
* 短轴
> 短轴的范围,只有该范围内的椭圆才会保留
> 短轴的范围,只有该范围内的椭圆或圆才会保留
* 长轴
> 长轴的范围,只有该范围内的椭圆才会保留
> 长轴的范围,只有该范围内的椭圆或圆才会保留
* 角度

> 椭圆角度范围, 圆的角度始终为: *0*
## 输出
> 椭圆数组:`Ellipses`
> 筛选后的列表,参考:[`Ellipses`](./types/Ellipse.md)。如果列表长度不为 `0`, 走左侧分支,否则走右侧分支。

## 脚本调用
## 其它

```python
import simple

```

## 资源

[https://github.com/shelllet/WinUi/blob/main/algorithm/filter_ellipse.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/filter_ellipse.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/FilterEllipse.simple


!> 如果短轴的最小值和长轴的最小值相同, 短轴的最大值和长轴的最大值相同,则可以筛选该半径范围内的的圆。
20 changes: 9 additions & 11 deletions docx/actions/algorithm/FilterPerimeter.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
# 周长筛选
计算数组中元素的周长,筛选符合条件的元素
计算数组中元素的周长,筛选符合条件的元素

![action](./images/03.png ':size=90%')
![FilterPerimeter](./images/03.png ':size=90%')

## 子流程

> 不支持

## 运行参数
*
> 包含多个可以计算周长的元素列表,比如检测到的轮廓列表。
* 周长
> 指定周长范围。

## 输出
> 窗口类型:`Ellipses`
> 包含指定周长的元素列表。如果列表长度不为 `0`, 走左侧分支,否则走右侧分支。

## 脚本调用

```python
import simple
## 其它

```

## 示例

[https://github.com/shelllet/WinUi/blob/main/algorithm/filter_ellipse.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/filter_ellipse.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/FilterPerimeter.simple
22 changes: 8 additions & 14 deletions docx/actions/algorithm/FilterText.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
# 文本筛选
在数组或者列表中,筛选包含指定文本元素。

![action](./images/02.png ':size=90%')
![FilterText](./images/02.png ':size=90%')

## 子流程

> 不支持
## 运行参数

* Value: 含有文本的列表,例如 *文字识别* 动作。
*
> 含有文本的列表,例如 *文字识别* 动作。
* [Text](./types/String.md): 文本,*字符串* 类型, 支持 [*通配符(WildCard)*](./introduction/process/wildcard.md) 匹配。
* 文本
> 文本,*字符串* 类型,参考:[String](./types/String.md), 支持 [*通配符(WildCard)*](./introduction/process/wildcard.md) 匹配。
## 输出

> 和输入类型相同
> 包含指定文本的字符串列表。如果列表长度不为 `0`, 走左侧分支,否则走右侧分支。

## 脚本调用
## 其它

```python
import simple


```

## 示例

[https://github.com/shelllet/WinUi/blob/main/algorithm/filter_text.simple](https://github.com/shelllet/WinUi/blob/main/algorithm/filter_text.simple)
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/FilterText.simple

Loading

0 comments on commit 8b10a83

Please sign in to comment.