资源简介
试卷图像的理解和自动分割系统主要包括图像文件操作(打开和保存)、图像的预处理(灰度化、二值化、锐化等)、图像的识别(矩形区域、文字、数字、中括号)、常用工具(复制图像、截取图像、图像格式转换)、试卷的管理(增删改查)五个功能。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace graduation_project
{
public partial class add_papertest : Form
{
public add_papertest()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
if (textBox1.Text == ““ || textBox2.Text == ““)
{
String caption = “提示!“;
MessageBox.Show(“请输入学号和姓名,再单击添加试卷按钮!“ caption);
}
else
{
SqlConnection myConnection = new SqlConnection(“user id=xnh;password=xnh;initial catalog=graduation_database;Server=‘PC-201002041600\\SQLEXPRESS‘;“);
string storage_path = “D://Pictures//databasePictures//“ + textBox1.Text + “.bmp“;
string strSQL = “insert into Test_Paper_Pictures(student_numbernamestorage_path) values(‘“ + textBox1.Text + “‘‘“ + textBox2.Text + “‘‘“ + storage_path + “‘)“;
try
{
myConnection.Open();
SqlCommand mySqlCommand = new SqlCommand(strSQL myConnection);
mySqlCommand.ExecuteNonQuery();
String caption = “提示!“;
MessageBox.Show(“添加成功!“ caption);
}
catch
{
String caption = “提示!“;
MessageBox.Show(“数据库中数据已存在添加失败!“ caption);
}
finally
{
myConnection.Close();
}
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-01-29 10:52 graduation_project\
目录 0 2012-01-29 10:52 graduation_project\graduation_project\
文件 510 2012-01-31 10:54 graduation_project\graduation_project\Program.cs
目录 0 2012-01-29 10:52 graduation_project\graduation_project\Properties\
文件 1392 2012-01-21 09:02 graduation_project\graduation_project\Properties\AssemblyInfo.cs
文件 2886 2012-01-21 09:02 graduation_project\graduation_project\Properties\Resources.Designer.cs
文件 5612 2012-01-21 09:02 graduation_project\graduation_project\Properties\Resources.resx
文件 1103 2012-01-21 09:02 graduation_project\graduation_project\Properties\Settings.Designer.cs
文件 249 2012-01-21 09:02 graduation_project\graduation_project\Properties\Settings.settings
文件 4346 2012-01-31 10:56 graduation_project\graduation_project\add_papertest.Designer.cs
文件 1910 2012-01-31 10:56 graduation_project\graduation_project\add_papertest.cs
文件 5817 2012-01-21 09:09 graduation_project\graduation_project\add_papertest.resx
目录 0 2012-01-29 10:52 graduation_project\graduation_project\bin\
目录 0 2012-01-29 10:52 graduation_project\graduation_project\bin\Debug\
文件 11264 2012-01-24 10:19 graduation_project\graduation_project\bin\Debug\AxInterop.MODI.dll
文件 33280 2012-01-24 10:19 graduation_project\graduation_project\bin\Debug\Interop.MODI.dll
文件 271872 2012-01-27 09:04 graduation_project\graduation_project\bin\Debug\graduation_project.exe
文件 110080 2012-01-27 09:04 graduation_project\graduation_project\bin\Debug\graduation_project.pdb
文件 11600 2012-01-27 09:04 graduation_project\graduation_project\bin\Debug\graduation_project.vshost.exe
目录 0 2012-01-29 10:52 graduation_project\graduation_project\bin\Release\
文件 11264 2012-01-20 14:55 graduation_project\graduation_project\bin\Release\AxInterop.MODI.dll
文件 33280 2012-01-20 14:55 graduation_project\graduation_project\bin\Release\Interop.MODI.dll
文件 268800 2012-01-27 09:04 graduation_project\graduation_project\bin\Release\graduation_project.exe
文件 99840 2012-01-27 09:04 graduation_project\graduation_project\bin\Release\graduation_project.pdb
文件 4053 2012-01-31 10:56 graduation_project\graduation_project\delete_papertest.Designer.cs
文件 3945 2012-01-31 10:56 graduation_project\graduation_project\delete_papertest.cs
文件 5817 2012-01-21 08:47 graduation_project\graduation_project\delete_papertest.resx
文件 5571 2012-01-31 10:57 graduation_project\graduation_project\graduation_project.csproj
文件 143 2012-01-21 11:42 graduation_project\graduation_project\graduation_project.csproj.user
目录 0 2012-01-29 10:53 graduation_project\graduation_project\icon\
文件 10314 2012-01-29 13:57 graduation_project\graduation_project\icon\add.bmp
............此处省略60个文件信息
评论
共有 条评论