- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 读取raw图
src = np.fromfile("2.raw" , dtype = 'uint8')raw_image = np.reshape(src, (400, 400))
2025-01-16 15:46:48
86
原创 opencv findContours查找图像边缘基本操作
cv2.drawContours(image, contours, i, (0, 0, 255), 3) # 用红色线条绘制第一个轮廓。# cv2.drawContours(image, contours, 0, (0, 0, 255), 3) # 用红色线条绘制第一个轮廓。5、注意大于等于两个返回值的函数的输出。1、cvtColor灰度图打开图像。2、threshold二值化图像。# 加载图像并转为灰度图。# #计算第一个轮廓面积。# # 绘制第一个轮廓。4、根据面积画出轮廓。
2025-01-06 11:25:47
468
原创 MARK图像处理与计算机视觉基础,经典以及最近发展
文章总数:3722012年: 102011年: 202010年: 202009年: 142008年: 182007年: 132006年: 142005年: 92004年: 242003年: 222002年: 212001年: 212000年: 231999年: 101998年: 221997年: 81996年: 91995年: 91994年: 71993年: 51992年: 111991年: 51990年: 6。
2024-09-04 09:39:52
2347
1
原创 关于SSH,PUTTY Security Alert
用plink.exe的方法,首先执行一次,就会没有这个问题出现DoDos("", "echo y;exit | C:\\Putty\\PLINK.EXE -l root 192.168.60.1:/ \"exit\" >> TempLog.txt", "exit");public string DoDos(string comd1, string comd2, str...
2020-03-10 16:57:37
2271
原创 C# listview 跟 textbox 测试模式实时更新
private void initListView() { //checkedListBox_boxlist.Items.Clear(); listView1.Clear(); listView1.Items.Clear(); listView1.View = View.Details;...
2020-02-24 09:23:58
1161
原创 C#连接wifi源码
1.创建WifiSo.cs文件,拷贝相关代码2.主窗口也要添加相应相应的代码3.连接wifi用ScanSSID(wifi名字)4.有无密码的wifi相应的配置档案在WifiSo.cs文件里面修改链接:https://pan.baidu.com/s/1YigWFxLLqLhAw4C6GHXPmQ&shfl=sharepset此资源只供自学记录。...
2019-10-21 10:45:55
1576
2
原创 C#SSH输入指令获取返回值
1.using Renci.SshNet;2.把Renci.SshNet文件夹移到bin文件夹所在的同一目录3.将Renci.SshNet.snk文件夹移到bin文件夹所在的同一目录4.在程序里添加新类,选择Renci.SshNet文件夹下的Renci.SshNet.csproj5.写方法,如下:public void aaa() { ...
2019-10-21 10:28:13
2516
6
原创 C#算RGB的平均值
算法: double[] a = new double[3] { 0, 0, 0 }; Bitmap curBitmap = (Bitmap)Image.FromFile(fileName); int wide = curBitmap.Width; int height = curBitmap.H...
2019-10-21 10:10:20
1208
原创 C#Partical算法
算法:private int sum_rgb(string filename) { double[] a = new double[3] { 0, 0, 0 }; double[,] array = new double[1920, 1080]; Bitmap curBitmap ...
2019-10-21 10:08:05
469
原创 C#重叠图片算法
算法 stringfileNameP="",fileNameP="",fileNameP=""; String fileName = Application.StartupPath + "\\target.jpg"; Image fromImage1_0 = Image.FromFile(fil...
2019-10-21 10:02:26
1974
原创 执行Bat文件
private void start_bat(string fileN) { Process proc = null; try { string targetDir = string.Format(Application.StartupPath);//this is where testChan...
2018-12-27 11:11:27
2468
原创 C#EmguCv图像各种操作
彩色转灰度图:CvInvoke.CvtColor(InputImage, OutputImage, ColorConversion.Bgr2Gray);//第三个参数如可控制转换的类型高斯金字塔,向上采样,面积是以前4倍:CvInvoke.PyrDown(InputImage, OutputImage);高斯金字塔,向上采样,面积是以前4份之一:CvInvoke.PyrUp(InputIm...
2018-08-28 09:05:53
3935
原创 打开文件夹的几种方法
打开文件夹: System.Windows.Forms.FolderBrowserDialog folder = new System.Windows.Forms.FolderBrowserDialog(); if (folder.ShowDialog() == DialogResult.OK){}打开具体文件:OpenFileDialog ofd...
2018-08-27 11:51:30
941
原创 OCR简单的初始化与使用
using tesseract;private TesseractProcessor m_tesseract = null;初始化:m_tesseract = new TesseractProcessor();m_tesseract.Init(“文件路劲”, “eng”, (int)TesseractEngineMode.DEFAULT);m_tesseract.SetVariab...
2018-08-27 10:52:28
1344
2
原创 C#EmguCV图像匹配关键代码
方法如下: Image <Bgr,byte> a = new Image <Bgr,byte>(“圖片文件路徑”); Image <Bgr,byte> b = new Image <Bgr,byte>(“模板文件路徑”); 圖像<灰色,浮動>...
2018-08-23 10:12:12
4204
1
原创 C#程序读取写入ini文件,以便外部修改参数
方法如下:using System.Runtime.InteropServices; #region [DllImport("kernel32")] private static extern int GetPrivateProfileString(string section, string key, string defVal, Str...
2018-08-23 10:00:44
1306
6
原创 C#读取Excel文件
读取Excel数据的函数: public static Array ReadXls(string filename, int index)//读取第index个sheet的数据 { //启动Excel应用程序 Microsoft.Office.Interop.Excel.Application xls = new Microsof...
2018-08-23 09:33:55
1135
Ja.zip,连接ssh所需要的文件以及秘钥
2019-10-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人