之前的分享主要聚焦于简单的一维数据实时存储。但在做缺陷检测项目时,情况往往更加复杂:一张检测图像中可能同时存在多个缺陷,每个缺陷都有一组独立的核心参数(如质心、长短轴、面积等)。如何在 MySQL 中记录这些成组出现的缺陷数据,而不只是简单的单条记录?
先附上脚本代码,如下所示:
using System;
using System.Text;
using System.Windows.Forms;
using Script.Methods;
using MySql.Data.MySqlClient;
using System.Data;
/************************************
Shell Module default code: using .NET Framwwork 4.6.1
*************************************/
public partial class UserScript:ScriptMethods,IProcessMethods
{
//the count of process
float[] Longaxis = new float[3];
int arrayCount1 = 0;
float[] Shortaxis = new float[3];
float[] Center_x = new float[3];
float[] Center_y = new float[3];
float[] Area = new float[3];
int insertedId;
string createtime;
订阅专栏 解锁全文
294



被折叠的 条评论
为什么被折叠?



