/// <summary>
/// 字模学习入库
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_CodeStudy_Click(object sender, EventArgs e)
{
if (cutResult != null)
{
string[] zimos = File.ReadAllLines(zimoPath);
string zimo = string.Empty;
StringBuilder sb = new StringBuilder();
string[] stuCode = new string[] { txt1.Text.Trim(), txt2.Text.Trim(), txt3.Text.Trim(), txt4.Text.Trim(), txt5.Text.Trim( ), txt6.Text.Trim( ), txt7.Text.Trim(), txt8.Text.Trim() };
for (int i = 0; i < cutResult.Count; i++)
{
if (!string.IsNullOrEmpty(stuCode[i]))
{
ImageProcess.WriteZimo(cutResult[i], zimoPath, stuCode[i]);
}
}
//File.AppendAllText(zimoPath, sb.ToString());
txt1.Text = "";
txt2.Text = "";
txt3.Text = "";
txt4.Text = "";
txt5.Text = "";
txt6.Text = "";
txt7.Text = "";
txt8.Text = "";
}
else
{
MessageBox.Show("验证码分割过程错误!");
}
groupBox_Study.Enabled = false;
}