轮胎外观检测添加思谋语义分割模型检测工具
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
using System.Text;
//|5|1|a|s|p|x
namespace LB_VisionControls
{
    class CommConfig
    {
        public static string AppLocationPath;//需要设置
 
 
        public static Brush ErrorMake = Brushes.Red;
        public static MarkerStyle RedStyle = new MarkerStyle(new SolidBrush(Color.FromArgb(180, Color.Red)));
        public static string ClassLibPath { get { return AppLocationPath + "\\ClassLib"; } }
        public static string BinPath { get { return AppLocationPath + "\\bin"; } }
        public static string ExeFilePath { get { return BinPath + "\\tmp.exe"; } }
        public static string DllFilePath { get { return BinPath + "\\tmp.dll"; } }
        public static string SrcFilePath { get { return BinPath + "\\tmp.cs"; } }
        public static string CscPath
        {
            get
            {
                return Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.System)) + @"\Microsoft.NET\Framework\v3.5";
            }
        }
        public static string fileName
        {
            get
            {
                StringBuilder sbr = new StringBuilder();
                sbr.Append(DateTime.Now.ToLocalTime().ToString("yyyyMMdd"));
                sbr.Append(DateTime.Now.Hour.ToString());
                sbr.Append(DateTime.Now.Minute.ToString());
                sbr.Append(DateTime.Now.Second.ToString());
                return ClassLibPath + "\\" + sbr.ToString() + ".cs";
            }
        }
 
 
    }
}