主頁 >  其他 > C# winfrom 寫了一個增值稅票識別助手,可識別照片、掃描件、電子票、形成電子臺帳。

C# winfrom 寫了一個增值稅票識別助手,可識別照片、掃描件、電子票、形成電子臺帳。

2020-11-19 16:20:08 其他

   首先本小工具使用C# winfrom 實作,其中主要是使用了百度智能云OCR文字識別技術,呼叫期官網介面,很簡單,搭配NPOI Execl操作類別庫,

利用Spire.pdf類別庫,把pdf格式發票,轉換為png圖片格式,自動識別圖片、pdf格式發票,發票可以用高拍儀、手機拍照、掃面件等都可以識別,

  其他說明:本程式借助百度智能云API作為基礎的發票識別技術

  發票識別助手共分5個功能模塊,操作相對很簡單,第一步點擊添加發票按鈕,選擇要識別的發票資訊,注意說明:目前圖片格式支持jpgpngbmp,圖片的長和寬要求最短邊大于10px

最長邊小于2048px;影像編碼后大小必須小于4M,建議不要超過1M;第二步點擊識別發票按鈕,系統開始識別發票資訊,識別完成后,發票資訊會自動生成;

介紹一下關鍵的代碼:

一、獲取百度云API token,這個是官方給的,直接拿過來用就可以了,

 1     public static class AccessToken
 2 
 3     {
 4         // 百度云中開通對應服務應用的 API Key 建議開通應用的時候多選服務
 5         private static String clientId = ConfigurationManager.AppSettings.Get("APIKey");
 6         // 百度云中開通對應服務應用的 Secret Key
 7         private static String clientSecret = ConfigurationManager.AppSettings.Get("SecretKey");
 8 
 9         public static String getAccessToken()
10         {
11             String authHost = "https://aip.baidubce.com/oauth/2.0/token";
12             HttpClient client = new HttpClient();
13             List<KeyValuePair<String, String>> paraList = new List<KeyValuePair<string, string>>();
14             paraList.Add(new KeyValuePair<string, string>("grant_type", "client_credentials"));
15             paraList.Add(new KeyValuePair<string, string>("client_id", clientId));
16             paraList.Add(new KeyValuePair<string, string>("client_secret", clientSecret));
17 
18             HttpResponseMessage response = client.PostAsync(authHost, new FormUrlEncodedContent(paraList)).Result;
19             String result = response.Content.ReadAsStringAsync().Result;
20             // Console.WriteLine(result);
21 
22             AccessTokenInfo tokenInfo = JsonConvert.DeserializeObject<AccessTokenInfo>(result);
23 
24             return tokenInfo.access_token;
25         }
26     }
27 
28     public class AccessTokenInfo  
29     {
30         public string refresh_token { get; set; }
31         public string expires_in { get; set; }
32         public string session_key  { get; set; }
33         public string access_token { get; set; }
34         public string scope { get; set; }
35         public string session_secret { get; set; }
36     }

 

二、增值稅票識別請求程序和引數傳遞,也是官方給的例子,自己按照需求修改一下就可以了,

 

 1 // 增值稅發票識別
 2         public static string vatInvoice(string fileName)
 3         {
 4             string host = "https://aip.baidubce.com/rest/2.0/ocr/v1/vat_invoice?access_token=" + token;
 5             Encoding encoding = Encoding.Default;
 6             System.Net.HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host);
 7             request.Method = "post";
 8             request.KeepAlive = true;
 9             // 圖片的base64編碼
10             string base64 = getFileBase64(fileName);
11             String str = "image=" + UrlEncode(base64);
12             byte[] buffer = encoding.GetBytes(str);
13             request.ContentLength = buffer.Length;
14             request.GetRequestStream().Write(buffer, 0, buffer.Length);
15             HttpWebResponse response = (HttpWebResponse)request.GetResponse();
16             StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
17             string result = reader.ReadToEnd();
18             return result;
19         }
20 
21         public static String getFileBase64(String fileName)
22         {
23             FileStream filestream = new FileStream(fileName, FileMode.Open, System.IO.FileAccess.Read, FileShare.ReadWrite);
24             byte[] arr = new byte[filestream.Length];
25             filestream.Read(arr, 0, (int)filestream.Length);
26             string baser64 = Convert.ToBase64String(arr);
27             filestream.Close();
28             return baser64;
29         }
30 
31         public static string UrlEncode(string str)
32         {
33             StringBuilder sb = new StringBuilder();
34             byte[] byStr = System.Text.Encoding.UTF8.GetBytes(str); //默認System.Text.Encoding.Default.GetBytes(str)
35             for (int i = 0; i < byStr.Length; i++)
36             {
37                 sb.Append(@"%" + Convert.ToString(byStr[i], 16));
38             }
39             return (sb.ToString());
40         }

 

 三、這里的部分是把pdf格式的發票,自動轉換為png格式,提供出百度云api需要的檔案格式,

 1 private ImageList GetImage(string[] files)
 2         {
 3             ImageList list = new ImageList();
 4             for (int i = 0; i < files.Length; i++)
 5             {
 6                 list.Images.Add(files[i], Image.FromFile(files[i]));
 7                 list.ImageSize = new Size(80, 60);
 8             }
 9             return list;
10         }
11 
12         private string[] GetImages()
13         {
14             OpenFileDialog ofd = new OpenFileDialog();
15             ofd.Multiselect = true;//設定 選擇多個檔案
16             ofd.InitialDirectory = @"C:\images\";//設定初始目錄  TODO:改為系統默認我的檔案中的圖片檔案夾
17             ofd.Multiselect = true;
18             //ofd.Filter = "JPG(*.jpg)|*.jpg|JPEG(*.jpeg)|*.jpeg|PNG(*.png)|*.png|GIF(*.gif)|*.gif|所有檔案(*.*)|*.*";
19             ofd.Title = "請選擇要識別的發票的圖片";
20             ofd.Filter = "圖片檔案(*.jpg *.jpeg *.bmp *.png)|*.jpg;*.jpeg;*.bmp;*.png;*.pdf";
21             if (ofd.ShowDialog() == DialogResult.OK && ofd.FileNames != null)
22             {
23                 string[] files = ofd.FileNames;
24                 //pdf檔案轉換為png圖片檔案
25                 string imageName = "";
26                 for (int i = 0; i < files.Length; i++)
27                 {
28                     if (Path.GetExtension(files[i]).ToUpper().Contains(".PDF"))
29                     {
30                         imageName = Path.GetFileNameWithoutExtension(files[i]);
31                         files[i] = Common.ConvertPDF2Image(files[i], imageName, 0, 1, ImageFormat.Png);
32                         errMsg.AppendText(DateTime.Now.ToLongTimeString().ToString() + " 已將" + imageName + ".pdf自動轉換為png圖片格式\r\n");
33                     }
34                 }
35                 return files;
36             }
37             else
38             {
39                 return null;
40             }
41         }
42 
43         //格式化日期格式
44         public string fmartDate(string date)
45         {
46             date = date.Replace("", "-");
47             date = date.Replace("", "-");
48             date = date.Replace("", "");
49             return date;
50         }

 

 四、獲取api回傳的資料,輸出到dataGridView中,

 1 private void 識別發票ToolStripMenuItem_Click(object sender, EventArgs e)
 2         {
 3             if (this.listView1.Items.Count == 0)
 4             {
 5                 MessageBox.Show("請先選擇要識別的發票!", "訊息提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
 6                 return;
 7             }
 8             
 9             Common.ShowProcessing("", this, (obj) =>
10             {
11                 //這里采用委托的方式解決執行緒卡死問題
12                 this.Invoke(new Action(delegate
13                 {
14                     foreach (ListViewItem item in this.listView1.Items)
15                     {
16                         try
17                         {
18                             var invoiceInfo = JsonConvert.DeserializeObject<dynamic>(vatInvoice(item.SubItems[0].Name));
19                             var items = invoiceInfo.words_result;
20                             if (items != null)
21                             {
22                                 //寫入資料表格
23                                 int index = this.dataGridView1.Rows.Add();
24                                 this.dataGridView1.Rows[index].Cells[0].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.InvoiceType;
25                                 this.dataGridView1.Rows[index].Cells[1].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.InvoiceCode;
26                                 this.dataGridView1.Rows[index].Cells[2].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.InvoiceNum;
27                                 this.dataGridView1.Rows[index].Cells[3].Value = https://www.cnblogs.com/zhuifengnianshao/p/fmartDate((string)items.InvoiceDate);
28                                 this.dataGridView1.Rows[index].Cells[4].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.SellerName;
29                                 this.dataGridView1.Rows[index].Cells[5].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.SellerRegisterNum;
30                                 this.dataGridView1.Rows[index].Cells[6].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.SellerAddress;
31                                 this.dataGridView1.Rows[index].Cells[7].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.SellerBank;
32                                 this.dataGridView1.Rows[index].Cells[8].Value = https://www.cnblogs.com/zhuifengnianshao/p/Common.NumberToZero((string)items.TotalAmount);
33                                 this.dataGridView1.Rows[index].Cells[9].Value = https://www.cnblogs.com/zhuifengnianshao/p/"0";
34                                 if (Common.IsPropertyExist(items, "CommodityTaxRate"))
35                                 {
36                                     if (!Common.IsNullOrEmpty(items.CommodityTaxRate[0].word))
37                                     {
38                                         this.dataGridView1.Rows[index].Cells[9].Value = https://www.cnblogs.com/zhuifengnianshao/p/Common.NumberToZero((string)items.CommodityTaxRate[0].word.ToString().Replace("%", ""));
39                                     }
40                                 }
41                                 this.dataGridView1.Rows[index].Cells[10].Value = https://www.cnblogs.com/zhuifengnianshao/p/Common.NumberToZero((string)items.TotalTax);
42                                 this.dataGridView1.Rows[index].Cells[11].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.AmountInFiguers;
43                                 this.dataGridView1.Rows[index].Cells[12].Value = https://www.cnblogs.com/zhuifengnianshao/p/items.InvoiceType.ToString().Contains("電子") ? "" : "";
44                                 this.dataGridView1.Rows[index].Cells[13].Value =https://www.cnblogs.com/zhuifengnianshao/p/ items.PurchaserName;
45                                 this.dataGridView1.Rows[index].Cells[14].Value = https://www.cnblogs.com/zhuifengnianshao/p/"一般計稅";
46                                 Application.DoEvents();
47                                 addMessage(item.SubItems[0].Text + " 識別完成!");
48                             }
49                             else
50                             {
51                                 if (invoiceInfo.error_code != null)
52                                 {
53                                     addMessage(item.SubItems[0].Text + " -->" + apiErrorMessage((string)invoiceInfo.error_code));
54                                 }
55                             }
56                         }
57                         catch (Exception err)
58                         {
59                             addMessage(item.SubItems[0].Text + err.Message + " 識別出錯,已跳過!");
60                         }
61                     }
62                 }));
63                 //這里寫處理耗時的代碼,代碼處理完成則自動關閉該視窗
64             }, null);
65            
66         }

 

五、匯出發票明細到EXECL表格中,

  1 private void 匯出發票資訊ToolStripMenuItem_Click(object sender, EventArgs e)
  2         {
  3             if (this.dataGridView1.Rows.Count == 0)
  4             {
  5                 MessageBox.Show("發票串列資訊為空,不能執行匯出!", "訊息提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
  6                 return;
  7             }
  8 
  9             string fileName = "";
 10             SaveFileDialog sfd = new SaveFileDialog();
 11             sfd.Filter = "匯出發票Excel(*.xls)|*.xls";
 12             sfd.FileName = "發票明細 - " + DateTime.Now.ToString("yyyyMMddHHmmss");
 13             if (sfd.ShowDialog() == DialogResult.OK)
 14             {
 15                 Common.ShowProcessing("正在匯出,請稍候...", this, (obj) =>
 16                 {
 17                     fileName = sfd.FileName;
 18                     HSSFWorkbook wb = new HSSFWorkbook();
 19                     ISheet sheet = wb.CreateSheet("sheet1");
 20                     int columnCount = dataGridView1.ColumnCount;  //列數
 21                     int rowCount = dataGridView1.Rows.Count;      //行數
 22                     for (int i = 0; i < columnCount; i++)
 23                     {
 24                         sheet.SetColumnWidth(i, 15 * 256);
 25                     }
 26                     //報表標題
 27                     IRow row = sheet.CreateRow(0);
 28                     row.HeightInPoints = 25;
 29                     ICell cell = row.CreateCell(0);
 30                     cell.SetCellValue("發票資訊臺賬");
 31 
 32                     ICellStyle style = wb.CreateCellStyle();
 33 
 34                     style.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
 35                     style.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
 36 
 37                     style.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
 38                     style.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
 39                     style.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
 40                     style.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
 41                     style.FillBackgroundColor = HSSFColor.Black.Index;
 42                     style.FillForegroundColor = HSSFColor.White.Index;
 43 
 44                     IFont font = wb.CreateFont();
 45                     font.FontName = "微軟雅黑";
 46                     font.FontHeightInPoints = 12;
 47                     font.Boldweight = 700;
 48                     style.SetFont(font);//將新的樣式賦給單元格
 49                     cell.CellStyle = style;
 50                     sheet.AddMergedRegion(new CellRangeAddress(0, 0, 0, columnCount - 1));
 51 
 52                     //表頭
 53                     IRow row1 = sheet.CreateRow(1);
 54                     row1.HeightInPoints = 20;
 55 
 56                     ICellStyle styleHead = wb.CreateCellStyle();
 57                     styleHead.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
 58                     styleHead.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
 59                     styleHead.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
 60                     styleHead.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
 61                     styleHead.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
 62                     styleHead.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
 63                     styleHead.FillBackgroundColor = HSSFColor.Black.Index;
 64                     styleHead.FillForegroundColor = HSSFColor.White.Index;
 65 
 66                     IFont font2 = wb.CreateFont();
 67                     font2.FontName = "微軟雅黑";
 68                     font2.FontHeightInPoints = 10;
 69                     font2.Boldweight = 500;
 70                     styleHead.SetFont(font2);//將新的樣式賦給單元格
 71 
 72                     for (int i = 0; i < columnCount; i++)
 73                     {
 74                         ICell row1cell = row1.CreateCell(i);
 75                         row1cell.SetCellValue(dataGridView1.Columns[i].HeaderText.ToString());
 76                         row1cell.CellStyle = styleHead;
 77                     }
 78 
 79                     //明細行,從第三列開始
 80                     int rowindex = 2;
 81                     ICellStyle styleBody = wb.CreateCellStyle();
 82                     styleBody.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Left;
 83                     styleBody.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
 84                     styleBody.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
 85                     styleBody.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
 86                     styleBody.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
 87                     styleBody.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
 88                     styleBody.FillBackgroundColor = HSSFColor.Black.Index;
 89                     styleBody.FillForegroundColor = HSSFColor.White.Index;
 90 
 91                     IFont font3 = wb.CreateFont();
 92                     font3.FontName = "微軟雅黑";
 93                     font3.FontHeightInPoints = 9;
 94                     font3.Boldweight = 500;
 95                     styleBody.SetFont(font3);//將新的樣式賦給單元格
 96                     for (int i = 0; i < rowCount; i++)
 97                     {
 98                         IRow datarow = sheet.CreateRow(rowindex);
 99                         datarow.Height = 300;
100                         for (int j = 0; j < columnCount; j++)
101                         {
102                             ICell datacell_0 = datarow.CreateCell(j);
103                             datacell_0.SetCellValue(this.dataGridView1.Rows[i].Cells[j].Value.ToString());
104                             datacell_0.CellStyle = styleBody;
105                         }
106                         rowindex += 1;
107                     }
108                     // 轉為位元組陣列
109                     MemoryStream stream = new MemoryStream();
110                     wb.Write(stream);
111                     var buf = stream.ToArray();
112 
113                     //保存為Excel檔案  
114                     using (FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.Write))
115                     {
116                         fs.Write(buf, 0, buf.Length);
117                         fs.Flush();
118                         MessageBox.Show("匯出 EXECL 成功!", "訊息提示");
119                         addMessage("匯出發票資訊到Execl表完成!");
120                     }
121                 }, null);
122             }
123         }

 

 操作說明如下:

 

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/224980.html

標籤:其他

上一篇:赤亡引·天命

下一篇:面試現場:一半人寫不出冒泡排序!你離同齡人到底差多遠?

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • 2023年最新微信小程式抓包教程

    01 開門見山 隔一個月發一篇文章,不過分。 首先回顧一下《微信系結手機號資料庫被脫庫事件》,我也是第一時間得知了這個訊息,然后跟蹤了整件事情的經過。下面是這起事件的相關截圖以及近日流出的一萬條資料樣本: 個人認為這件事也沒什么,還不如關注一下之前45億快遞資料查詢渠道疑似在近日復活的訊息。 訊息是 ......

    uj5u.com 2023-04-20 08:48:24 more
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:47:46 more
  • vulnhub_Earth

    前言 靶機地址->>>vulnhub_Earth 攻擊機ip:192.168.20.121 靶機ip:192.168.20.122 參考文章 https://www.cnblogs.com/Jing-X/archive/2022/04/03/16097695.html https://www.cnb ......

    uj5u.com 2023-04-20 07:46:20 more
  • 從4k到42k,軟體測驗工程師的漲薪史,給我看哭了

    清明節一過,盲猜大家已經無心上班,在數著日子準備過五一,但一想到銀行卡里的余額……瞬間心情就不美麗了。最近,2023年高校畢業生就業調查顯示,本科畢業月平均起薪為5825元。調查一出,便有很多同學表示自己又被平均了。看著這一資料,不免讓人想到前不久中國青年報的一項調查:近六成大學生認為畢業10年內會 ......

    uj5u.com 2023-04-20 07:44:00 more
  • 最新版本 Stable Diffusion 開源 AI 繪畫工具之中文自動提詞篇

    🎈 標簽生成器 由于輸入正向提示詞 prompt 和反向提示詞 negative prompt 都是使用英文,所以對學習母語的我們非常不友好 使用網址:https://tinygeeker.github.io/p/ai-prompt-generator 這個網址是為了讓大家在使用 AI 繪畫的時候 ......

    uj5u.com 2023-04-20 07:43:36 more
  • 漫談前端自動化測驗演進之路及測驗工具分析

    隨著前端技術的不斷發展和應用程式的日益復雜,前端自動化測驗也在不斷演進。隨著 Web 應用程式變得越來越復雜,自動化測驗的需求也越來越高。如今,自動化測驗已經成為 Web 應用程式開發程序中不可或缺的一部分,它們可以幫助開發人員更快地發現和修復錯誤,提高應用程式的性能和可靠性。 ......

    uj5u.com 2023-04-20 07:43:16 more
  • CANN開發實踐:4個DVPP記憶體問題的典型案例解讀

    摘要:由于DVPP媒體資料處理功能對存放輸入、輸出資料的記憶體有更高的要求(例如,記憶體首地址128位元組對齊),因此需呼叫專用的記憶體申請介面,那么本期就分享幾個關于DVPP記憶體問題的典型案例,并給出原因分析及解決方法。 本文分享自華為云社區《FAQ_DVPP記憶體問題案例》,作者:昇騰CANN。 DVPP ......

    uj5u.com 2023-04-20 07:43:03 more
  • msf學習

    msf學習 以kali自帶的msf為例 一、msf核心模塊與功能 msf模塊都放在/usr/share/metasploit-framework/modules目錄下 1、auxiliary 輔助模塊,輔助滲透(埠掃描、登錄密碼爆破、漏洞驗證等) 2、encoders 編碼器模塊,主要包含各種編碼 ......

    uj5u.com 2023-04-20 07:42:59 more
  • Halcon軟體安裝與界面簡介

    1. 下載Halcon17版本到到本地 2. 雙擊安裝包后 3. 步驟如下 1.2 Halcon軟體安裝 界面分為四大塊 1. Halcon的五個助手 1) 影像采集助手:與相機連接,設定相機引數,采集影像 2) 標定助手:九點標定或是其它的標定,生成標定檔案及內參外參,可以將像素單位轉換為長度單位 ......

    uj5u.com 2023-04-20 07:42:17 more
  • 在MacOS下使用Unity3D開發游戲

    第一次發博客,先發一下我的游戲開發環境吧。 去年2月份買了一臺MacBookPro2021 M1pro(以下簡稱mbp),這一年來一直在用mbp開發游戲。我大致分享一下我的開發工具以及使用體驗。 1、Unity 官網鏈接: https://unity.cn/releases 我一般使用的Apple ......

    uj5u.com 2023-04-20 07:40:19 more