Skip to content

Commit 4bf41a6

Browse files
committed
update for 0.39
1 parent 5a17ff3 commit 4bf41a6

File tree

16 files changed

+102
-58
lines changed

16 files changed

+102
-58
lines changed

docx/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# [0.39](https://github.com/shelllet/winui/compare/main...dev) (2024-09-30)
2+
3+
### Changed:
4+
1. 修复动作分组隐藏问题。
5+
2. 修复一些其它崩溃问题。
6+
3. 调整部分 *UI* 界面。
7+
4. [颜色统计](./actions/algorithm/ColorPercentage.md),运行时参数 *差值* 变更为 *HSV* 三个分量的差值。
8+
9+
### Note
10+
11+
1. 使用管理员权限运行 *winui++*, 无法显示 *动作* 的拖动效果(已知问题)。
12+
2. 64位下载(x64):https://bitbucket.org/winui-release/version/downloads/winui0.39.0-setup.x64.exe
13+
114
# [0.38](https://github.com/shelllet/winui/compare/main...dev) (2024-09-06)
215

316
### Changed:

docx/_sidebar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- [动作](./actions/README.md)
2222
- 系统
2323
- [等待](./actions/system/Wait.md)
24-
- [启动应用程序](./actions/system/StartProcess.md)
24+
- [启动应用](./actions/system/StartProcess.md)
2525
- [添加用户](./actions/system/UserAdd.md)
2626
- [打开应用](./actions/system/OpenApplication.md)
2727
- [打开文件](./actions/system/LaunchFile.md)
@@ -118,6 +118,7 @@
118118
- [特征匹配](./actions/detection/FeatureDetect.md)
119119
- [模板匹配](./actions/detection/MatchTemplate.md)
120120
- [查找轮廓](./actions/detection/FindContours.md)
121+
- [颜色辨识](./actions/detection/ImageColorDiscrimination.md)
121122
- 绘图
122123
- [绘制矩形](./actions/draw/DrawRect.md)
123124
- [填充颜色](./actions/draw/FillColor.md)
@@ -239,11 +240,10 @@
239240
- [周长筛选](./actions/algorithm/FilterPerimeter.md)
240241
- [形状筛选](./actions/algorithm/FilterVertex.md)
241242
- [椭圆筛选](./actions/algorithm/FilterEllipse.md)
242-
- [随机数](./actions/algorithm/RandomNumber.md)
243+
- [随机数字](./actions/algorithm/RandomNumber.md)
243244
- [随机坐标](./actions/algorithm/RandomPoint.md)
244245
- [图像差值](./actions/algorithm/ImageDifference.md)
245246
- [颜色统计](./actions/algorithm/ColorPercentage.md)
246-
- [非零图像](./actions/algorithm/ImageIsColored.md)
247247
- [添加元素](./actions/algorithm/PushBack.md)
248248
- [删除元素](./actions/algorithm/PopBack.md)
249249
- 类型
@@ -286,7 +286,7 @@
286286
- [主机地址](./types/HostAddress.md)
287287
- [元组](./types/Tuple.md)
288288
- 枚举类型
289-
- [ThresholdTypes](./enums/ThresholdTypes.md)
289+
- [Colors](./enums/Colors.md)
290290
- [Directions](./enums/Directions.md)
291291
- [ColorConversionCodes](./enums/ColorConversionCodes.md)
292292
- [ContourShape](./enums/ContourShape.md)

docx/actions/algorithm/ColorPercentage.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 颜色统计
2-
该动作可以统计某一颜色在图像当中所占的比例
2+
该动作可以统计某一颜色在整个图像当中所占的比例
33

44
![ColorPercentage](./images/04.png ':size=90%')
55

@@ -12,15 +12,22 @@
1212
## 运行参数
1313

1414
* 图像
15-
> 要进行颜色统计的图像,通常可以选择一个区域进行统计
15+
> 要进行颜色统计的图像。
1616
* 颜色
17-
> 所要统计的颜色。 由于 *HSV* 颜色空间更符合人的主观视觉感知, 通常使用 *HSV* 颜色空间。
18-
* 误差
19-
> 包含近似颜色的差值。
17+
> 所要统计的颜色。 由于 *HSV* 颜色空间更符合人的主观视觉感知, 通常使用 *HSV* 颜色空间执行颜色统计。
18+
19+
* 色相差值
20+
> 包含近似颜色的色相差值,取值范围:`0 ~ 359`。当前颜色的 *H* 值 减去 最小值,当前颜色的 *H* 值 加上 最大值,作为 *色相* 的取值范围。
21+
22+
* 饱和度差值
23+
> 包含近似颜色的饱和度差值,取值范围:`0 ~ 100`。当前颜色的 *S* 值 减去 最小值,当前颜色的 *S* 值 加上 最大值,作为 *饱和度* 的取值范围。
24+
25+
* 亮度差值
26+
> 包含近似颜色的亮度范围,取值范围:`0 ~ 100`。当前颜色的 *V* 值 减去 最小值,当前颜色的 *V* 值 加上 最大值,作为 *亮度* 的取值范围。
2027
2128
## 输出
2229

23-
> 所要统计的颜色所占的百分比,参考:[Number](./types/Number.md)
30+
> 所要统计的颜色在整个图像中所占的比例,`0 ~ 1` 之间的小数,参考:[Number](./types/Number.md)
2431
2532
## 其它
2633

docx/actions/algorithm/ImageDifference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 图像差值
2-
这个动作可以比较两个图像,并返回一个显示相似性的度量。结果越低,匹配越好。即使图像旋转、缩放也不会对该比较产生太大影响
2+
这个动作可以比较两个图像,并返回一个显示相似性的度量。结果越低,匹配越好。即使图像旋转、缩放也不会对该比较结果产生太大影响
33

4-
* 为了获得更高的准确性,请使用二值图像
4+
* 为了获得更高的准确性,请使用二值图像
55
* 要找到的对象应该是白色的,背景应该是黑色的。
66

77
![ImageDifference](./images/15.png ':size=90%')
@@ -19,7 +19,7 @@
1919
2020
## 输出
2121

22-
> 相似性的指标(小数)。越低,表示匹配越好。*0*表示完全匹配,参考[Number](./types/Number.md)
22+
> 相似性的指标(小数)。越低,表示匹配越好。如果是 *0*表示完全匹配,类型参考[Number](./types/Number.md)
2323
2424

2525
## 其它

docx/actions/algorithm/ImageIsColored.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docx/actions/algorithm/PopBack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 删除元素
2-
删除容器中的最后一个元素
2+
删除容器当中的最后一个元素
33

44
![PopBack](./images/20.png ':size=90%')
55

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# 随机数
2-
生成随机数字
1+
# 随机数字
2+
生成一个随机数字
33

44

55
![RandomNumber](./images/01.png ':size=90%')
@@ -10,11 +10,8 @@
1010
1111
## 运行参数
1212

13-
* 最小值
14-
>
15-
16-
* 最大值
17-
>
13+
* 范围
14+
> 生成随机数的范围。
1815
1916
## 输出
2017

@@ -25,5 +22,12 @@
2522

2623
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/random_num.simple
2724

25+
## 脚本
26+
27+
````
28+
import random
29+
30+
random.randint(1, 100)
2831
29-
!> 该动作被执行之后就会生成确定的随机数。其他所有引用该动作的运行参数,都会是相同的值。如果想使用不同的随机数值,请创建多个*随机数*动作,或者使用*Python* 表达式:https://learnku.com/docs/pymotw/random-pseudorandom-number-generators/3387
32+
````
33+
!> 该动作被执行之后就会生成确定的随机数。所有引用该动作的运行参数,都会使用相同的随机数。

docx/actions/algorithm/RandomPoint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 随机坐标
2-
生成随机坐标
2+
生成随机坐标位置
33

44
![RandomPoint](./images/14.png ':size=90%')
55

@@ -12,7 +12,7 @@
1212
* 中心坐标
1313
> 参考: [Point](./types/Point.md)
1414
* 半径
15-
> 参考: [Number](./types/Number.md)
15+
> 指定一个半径,可以生成一个以中心坐标为圆心,该半径范围内的一个随机位置。 参考: [Number](./types/Number.md)
1616
1717
## 输出
1818

@@ -24,4 +24,4 @@
2424
示例:https://github.com/shelllet/WinUi/blob/main/algorithm/RandomPoint.simple
2525

2626

27-
!> 该动作被执行之后就会生成确定的随机坐标。其他所有引用该动作的运行参数,都会是相同的值。如果想使用不同的随机坐标,请创建多个*随机坐标*动作,或者使用*Python*脚本动作
27+
!> 该动作被执行之后就会生成确定的随机坐标。其他所有引用该动作的运行参数,都会使用相同的随机坐标
-295 KB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# 颜色辨识
2+
3+
辨别图像的颜色是否为指定颜色。
4+
5+
![ImageColorDiscrimination](./images/09.png ':size=90%')
6+
7+
## 子流程
8+
9+
> 不支持
10+
11+
## 运行参数
12+
13+
* 图像
14+
> 待辨识的图像,一般使用纯色图像辨识。
15+
16+
* 颜色
17+
> 参考:[Colors](./enums/Colors.md)。注意:`RED`(红色) 和 `BLUE`(蓝色)使用 *BGR* 颜色模式。
18+
19+
## 输出
20+
21+
> 参考:[Boolean](./types/Boolean.md), 图像符合指定的颜色走左边分支流程,否则走右边流程分支。
22+
23+
24+
25+
## 其它
26+
27+
示例: https://github.com/shelllet/WinUi/blob/main/algorithm/ImageIsColored.simple

0 commit comments

Comments
 (0)