轮胎外观检测添加思谋语义分割模型检测工具
C3204
2026-03-30 06c627ec032b3f3876fd7db8a3ff0ff1a6614fa2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Drawing;
 
namespace LB_VisionControls
{
    class CommandRun
    {
        //public CommandRun(Form1 Tmpform)
        //{
        //    this.Tmpform = Tmpform;
        //}
        //Form1 Tmpform;
        ////处理Csc命令
        //public string RunCsc(string cscCommand)
        //{
        //    cscCommand = cscCommand.ToLower();
        //    Regex reg = new Regex(@"\s+");
        //    string[] strArrys = reg.Split(cscCommand);
 
        //    ComplieBuilder cp = new ComplieBuilder();
        //    string srcStr = Tmpform.fctb.Text;
        //    string comm = "";
        //    ComplieType cpType = ComplieType.exe;
        //    bool isWindow = false;
 
        //    //
        //    foreach (var i in strArrys)
        //    {
        //        if (i == "?" || i == "help")
        //        {
        //            return "CSC 编译帮助\n" +
        //                   "exe        生成普通exe程序\n" +
        //                   "winexe     生成窗体exe程序\n" +
        //                   "dll        生成类库程序\n" +
        //                   "wd         使用窗口启动(普通exe程序有效)\n" +
        //                   "arg:hello  设置参数为hello(普通exe程序有效,不能出现符号'∫',要输出空格:\\s)\n";
 
        //        }
        //        if (i == "show")
        //        {
        //            Tmpform.AddCsc();
        //            if (Tmpform.isShow)
        //                Tmpform.StartMeun();
        //            return "";
        //        }
        //        switch (i)
        //        {
        //            case "exe":
        //                cpType = ComplieType.exe;
        //                break;
        //            case "winexe":
        //                cpType = ComplieType.winexe;
        //                break;
        //            case "dll":
        //                cpType = ComplieType.dll;
        //                break;
        //            case "wd":
        //                isWindow = true;
        //                break;
        //        }
        //        if (i.StartsWith("arg:"))
        //        {
        //            string tmp = i;
        //            tmp = tmp.Replace(@"\\", @"\");
        //            tmp = tmp.Replace(@"\s", " ");
        //            comm += tmp.Replace("arg:", "∫");
        //        }
 
        //    }
        //    CompliReslut.OutPutStr = cp.Creat(srcStr, comm, cpType, isWindow);
        //    CompliReslut.isError = cp.isError;
        //    CompliReslut.isHasErrorRow = cp.isHasErrorRows;
        //    CompliReslut.RowErrorNumber = cp.RowErrorNumber;
        //    ErrorMake();
        //    return CompliReslut.OutPutStr;
        //}
 
        //private void ErrorMake()
        //{
        //    if (CompliReslut.isError && CompliReslut.isHasErrorRow && CompliReslut.RowErrorNumber != -1)
        //    {
        //        Tmpform.fctb[CompliReslut.RowErrorNumber - 1].BackgroundBrush = CommConfig.ErrorMake;
        //        Tmpform.fctb.Invalidate();
        //    }
        //}
    }
}