Skip to content

Conversation

@14790897
Copy link

@14790897 14790897 commented Sep 1, 2023

原理:先从输入文本中随机挑选一个字符(非end_chars)输出,然后在上面画一道斜线表示涂改,接着在旁边写下原来正确的字符

为了增加效果,目前设置是50%的概率进行涂改,同时为了迅速看反响如何,所以并没有将代码按原来的格式修改,如果反响不错,我就继续修改
image

@Gsllchb
Copy link
Owner

Gsllchb commented Sep 1, 2023 via email

@14790897
Copy link
Author

14790897 commented Sep 1, 2023

搞个投票吧

@14790897
Copy link
Author

14790897 commented Sep 7, 2023

  新增参数:
  strikethrough_probability: "涂改出现的几率",
  strikethrough_length_sigma: "涂改线长度的标准差",
  strikethrough_width_sigma: "涂改线宽度的标准差",
  strikethrough_angle_sigma: "涂改线角度的标准差",
  strikethrough_width: "涂改线宽度",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants