上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: public static long GetHardDiskFreeSpace(string str_HardDiskName) //磁盘号 { long freeSpace = new long(); str_HardDiskName = str_HardDiskName + ":\\"; Sys 阅读全文
posted @ 2020-06-08 15:24 荼离伤花 阅读(933) 评论(0) 推荐(0) 编辑
摘要: 在程序运行时,需要自动删除一些文件,以免硬盘占满。 下列程序自动删除文件/文件夹。 首先从工具箱拖入一个Timer,设置Enabled为True,interval为发生的间隔,事件Tick为要发生的事件。 1 private void timer1_Tick(object sender, Event 阅读全文
posted @ 2020-06-08 15:13 荼离伤花 阅读(2780) 评论(0) 推荐(1) 编辑
摘要: 1 public static ImageCodecInfo GetEncoderInfo(String mimeType) 2 3 { 4 int j; 5 ImageCodecInfo[] encoders; 6 encoders = ImageCodecInfo.GetImageEncoder 阅读全文
posted @ 2020-06-05 14:14 荼离伤花 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: //全局声明一个TabPage来保存page //TabPage page = new TabPage(); //在load里初始化。,默认隐藏 // page = tabControl1.TabPages[3]; // tabControl1.TabPages.Remove(page); //通过 阅读全文
posted @ 2020-06-02 23:56 荼离伤花 阅读(910) 评论(0) 推荐(0) 编辑
摘要: 1.创建,保存toolblock工具。 1.打开新的作业 2.将toolblock加入到toolgroup中。 3.双击CogToolBlock1,添加工具流,此工具用于找blob和圆,并添加output的结果 4.创建高级脚本,找图片中的所有圆,先找到blob,然后将blob的中心点作为找圆工具预 阅读全文
posted @ 2020-06-01 19:18 荼离伤花 阅读(3994) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 阅读全文
posted @ 2020-05-02 17:54 荼离伤花 阅读(709) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2020-04-16 14:27 荼离伤花 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 一。环境准备 首先在anaconda中新建一个环境,在命令行中切换至python3.7环境。 1.安装cmake和boost pip install cmake -i https://pypi.tuna.tsinghua.edu.cn/simple pip install boost -i http 阅读全文
posted @ 2020-04-03 14:59 荼离伤花 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 服务端 1 using System; 2 using System.Collections.Generic; 3 using System.Net; 4 using System.Net.Sockets; 5 using System.Text; 6 using System.Threading; 阅读全文
posted @ 2020-01-20 14:37 荼离伤花 阅读(9549) 评论(1) 推荐(3) 编辑
摘要: Mat mat = OpenCvSharp.Extensions.BitmapConverter.ToMat(image); //bitmap转 matBitmap bitmap = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat); // m 阅读全文
posted @ 2020-01-19 11:05 荼离伤花 阅读(5662) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页