主頁 >  其他 > 基于opencv的車牌提取專案

基于opencv的車牌提取專案

2020-09-10 02:39:20 其他

初學影像處理,做了一個車牌提取專案,本博客僅僅是為了記錄一下學習程序,該專案只具備初級功能,還有待改善

第一部分:車牌傾斜矯正

# 匯入所需模塊
import cv2
import math
from matplotlib import pyplot as plt

# 顯示圖片
def cv_show(name,img):
    cv2.imshow(name,img)
    cv2.waitKey()
    cv2.destroyAllWindows()

# 調整圖片大小
def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
    dim = None
    (h, w) = image.shape[:2]
    if width is None and height is None:
        return image
    if width is None:
        r = height / float(h)
        dim = (int(w * r), height)
    else:
        r = width / float(w)
        dim = (width, int(h * r))
    resized = cv2.resize(image, dim, interpolation=inter)
    return resized

# 加載圖片
origin_Image = cv2.imread("./images/car_09.jpg")
rawImage = resize(origin_Image,height=500)

# 高斯去噪
image = cv2.GaussianBlur(rawImage, (3, 3), 0)
# 灰度處理
gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
# sobel算子邊緣檢測(做了一個y方向的檢測)
Sobel_x = cv2.Sobel(gray_image, cv2.CV_16S, 1, 0)
absX = cv2.convertScaleAbs(Sobel_x)  # 轉回uint8
image = absX
# 自適應閾值處理
ret, image = cv2.threshold(image, 0, 255, cv2.THRESH_OTSU)
# 閉運算,是白色部分練成整體
kernelX = cv2.getStructuringElement(cv2.MORPH_RECT, (14, 5))
image = cv2.morphologyEx(image, cv2.MORPH_CLOSE, kernelX,iterations = 1)
# 去除一些小的白點
kernelX = cv2.getStructuringElement(cv2.MORPH_RECT, (20, 1))
kernelY = cv2.getStructuringElement(cv2.MORPH_RECT, (1, 19))
# 膨脹,腐蝕
image = cv2.dilate(image, kernelX)
image = cv2.erode(image, kernelX)
# 腐蝕,膨脹
image = cv2.erode(image, kernelY)
image = cv2.dilate(image, kernelY)
# 中值濾波去除噪點
image = cv2.medianBlur(image, 15)
# 輪廓檢測
# cv2.RETR_EXTERNAL表示只檢測外輪廓
# cv2.CHAIN_APPROX_SIMPLE壓縮水平方向,垂直方向,對角線方向的元素,只保留該方向的終點坐標,例如一個矩形輪廓只需4個點來保存輪廓資訊
thresh_, contours, hierarchy = cv2.findContours(image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
# 繪制輪廓
image1 = rawImage.copy()
cv2.drawContours(image1, contours, -1, (0, 255, 0), 5)
cv_show('image1',image1)

# 篩選出車牌位置的輪廓
# 這里我只做了一個車牌的長寬比在3:1到4:1之間這樣一個判斷
for i,item in enumerate(contours): # enumerate() 函式用于將一個可遍歷的資料物件(如串列、元組或字串)組合為一個索引序列,同時列出資料和資料下標,一般用在for回圈當中
    # cv2.boundingRect用一個最小的矩形,把找到的形狀包起來
    rect = cv2.boundingRect(item)
    x = rect[0]
    y = rect[1]
    weight = rect[2]
    height = rect[3]
    if (weight > (height * 1.5)) and (weight < (height * 4)) and height>50:
        index = i
        image2 = rawImage.copy()
        cv2.drawContours(image2, contours, index, (0, 0, 255), 3)
        cv_show('image2',image2)
# 引數:
#  https://blog.csdn.net/lovetaozibaby/article/details/99482973
# InputArray Points: 待擬合的直線的集合,必須是矩陣形式;
# distType: 距離型別,fitline為距離最小化函式,擬合直線時,要使輸入點到擬合直線的距離和最小化,這里的 距離的型別有以下幾種:
# cv2.DIST_USER : User defined distance
# cv2.DIST_L1: distance = |x1-x2| + |y1-y2|
# cv2.DIST_L2: 歐式距離,此時與最小二乘法相同
# cv2.DIST_C:distance = max(|x1-x2|,|y1-y2|)
# cv2.DIST_L12:L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))
# cv2.DIST_FAIR:distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998
# cv2.DIST_WELSCH: distance = c2/2(1-exp(-(x/c)2)), c = 2.9846
# cv2.DIST_HUBER:distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345
# param: 距離引數,跟所選的距離型別有關,值可以設定為0,
#
# reps, aeps: 第5/6個引數用于表示擬合直線所需要的徑向和角度精度,通常情況下兩個值均被設定為1e-2.
# output :
#
# 對于二維直線,輸出output為4維,前兩維代表擬合出的直線的方向,后兩位代表直線上的一點,(即通常說的點斜式直線)
# 其中(vx, vy) 是直線的方向向量,(x, y) 是直線上的一個點,
# 斜率k = vy / vx
# 截距b = y - k * x

# 直線擬合找斜率
cnt = contours[index]
image3 = rawImage.copy()
h, w = image3.shape[:2]
[vx, vy, x, y] = cv2.fitLine(cnt, cv2.DIST_L2, 0, 0.01, 0.01)
k = vy/vx
b = y-k*x
lefty = b
righty = k*w+b
img = cv2.line(image3, (w, righty), (0, lefty), (0, 255, 0), 2)
cv_show('img',img)

a = math.atan(k)
a = math.degrees(a)
image4 = origin_Image.copy()
# 影像旋轉
h,w = image4.shape[:2]
print(h,w)
#第一個引數旋轉中心,第二個引數旋轉角度,第三個引數:縮放比例
M = cv2.getRotationMatrix2D((w/2,h/2),a,1)
#第三個引數:變換后的影像大小
dst = cv2.warpAffine(image4,M,(int(w*1),int(h*1)))
cv_show('dst',dst)
cv2.imwrite('car_09.jpg',dst)

 

 

第二部分:車牌號碼提取

 1 # 匯入所需模塊
 2 import cv2
 3 from matplotlib import pyplot as plt
 4 import os
 5 import numpy as np
 6 
 7 # 顯示圖片
 8 def cv_show(name,img):
 9     cv2.imshow(name,img)
10     cv2.waitKey()
11     cv2.destroyAllWindows()
12 
13 def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
14     dim = None
15     (h, w) = image.shape[:2]
16     if width is None and height is None:
17         return image
18     if width is None:
19         r = height / float(h)
20         dim = (int(w * r), height)
21     else:
22         r = width / float(w)
23         dim = (width, int(h * r))
24     resized = cv2.resize(image, dim, interpolation=inter)
25     return resized
26 
27 #讀取待檢測圖片
28 origin_image = cv2.imread('./car_09.jpg')
29 resize_image = resize(origin_image,height=600)
30 ratio = origin_image.shape[0]/600
31 print(ratio)
32 cv_show('resize_image',resize_image)
33 
34 
35 #高斯濾波,灰度化
36 image = cv2.GaussianBlur(resize_image, (3, 3), 0)
37 gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
38 cv_show('gray_image',gray_image)
39 
40 #梯度化
41 Sobel_x = cv2.Sobel(gray_image, cv2.CV_16S, 1, 0)
42 absX = cv2.convertScaleAbs(Sobel_x)
43 image = absX
44 cv_show('image',image)
45 
46 #閉操作
47 ret, image = cv2.threshold(image, 0, 255, cv2.THRESH_OTSU)
48 kernelX = cv2.getStructuringElement(cv2.MORPH_RECT, (15, 1))
49 image = cv2.morphologyEx(image, cv2.MORPH_CLOSE, kernelX, iterations=2)
50 cv_show('image',image)
51 kernelX = cv2.getStructuringElement(cv2.MORPH_RECT, (15, 1))
52 kernelY = cv2.getStructuringElement(cv2.MORPH_RECT, (1, 1))
53 image = cv2.dilate(image, kernelX)
54 image = cv2.erode(image, kernelX)
55 image = cv2.erode(image, kernelY)
56 image = cv2.dilate(image, kernelY)
57 image = cv2.medianBlur(image, 9)
58 cv_show('image',image)
59 
60 #繪制輪廓
61 thresh, contours, hierarchy = cv2.findContours(image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
62 print(type(contours))
63 print(len(contours))
64 
65 cur_img = resize_image.copy()
66 cv2.drawContours(cur_img,contours,-1,(0,0,255),3)
67 cv_show('img',cur_img)
68 
69 for item in contours:
70     rect = cv2.boundingRect(item)
71     x = rect[0]
72     y = rect[1]
73     weight = rect[2]
74     height = rect[3]
75     if (weight > (height * 2.5)) and (weight < (height * 4)):
76         if height > 40 and height < 80:
77             image = origin_image[int(y*ratio): int((y + height)*ratio), int(x*ratio) : int((x + weight)*ratio)]
78 cv_show('image',image)
79 cv2.imwrite('chepai_09.jpg',image)

 

第三部分:車牌號碼分割:

 1 # 匯入所需模塊
 2 import cv2
 3 from matplotlib import pyplot as plt
 4 import os
 5 import numpy as np
 6 
 7 # 顯示圖片
 8 def cv_show(name,img):
 9     cv2.imshow(name,img)
10     cv2.waitKey()
11     cv2.destroyAllWindows()
12 
13 #車牌灰度化
14 chepai_image = cv2.imread('chepai_09.jpg')
15 image = cv2.GaussianBlur(chepai_image, (3, 3), 0)
16 gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
17 cv_show('gray_image',gray_image)
18 
19 ret, image = cv2.threshold(gray_image, 0, 255, cv2.THRESH_OTSU)
20 cv_show('image',image)
21 
22 #計算二值影像黑白點的個數,處理綠牌照問題,讓車牌號碼始終為白色
23 area_white = 0
24 area_black = 0
25 height, width = image.shape
26 for i in range(height):
27     for j in range(width):
28         if image[i, j] == 255:
29             area_white += 1
30         else:
31             area_black += 1
32 print(area_black,area_white)
33 if area_white > area_black:
34     ret, image = cv2.threshold(image, 0, 255, cv2.THRESH_OTSU | cv2.THRESH_BINARY_INV)
35     cv_show('image',image)
36 
37 #繪制輪廓
38 kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (20, 5))
39 image = cv2.dilate(image, kernel)
40 cv_show('image', image)
41 thresh, contours, hierarchy = cv2.findContours(image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
42 cur_img = chepai_image.copy()
43 cv2.drawContours(cur_img,contours,-1,(0,0,255),3)
44 cv_show('img',cur_img)
45 words = []
46 word_images = []
47 print(len(contours))
48 for item in contours:
49     word = []
50     rect = cv2.boundingRect(item)
51     x = rect[0]
52     y = rect[1]
53     weight = rect[2]
54     height = rect[3]
55     word.append(x)
56     word.append(y)
57     word.append(weight)
58     word.append(height)
59     words.append(word)
60 words = sorted(words, key=lambda s:s[0], reverse=False)
61 print(words)
62 i = 0
63 for word in words:
64     if (word[3] > (word[2] * 1)) and (word[3] < (word[2] * 5)):
65         i = i + 1
66         splite_image = chepai_image[word[1]:word[1] + word[3], word[0]:word[0] + word[2]]
67         word_images.append(splite_image)
68 
69 for i, j in enumerate(word_images):
70     cv_show('word_images[i]',word_images[i])
71     cv2.imwrite("./chepai_09/0{}.png".format(i),word_images[i])
View Code

 

第四部分:字符匹配:

  1 # 匯入所需模塊
  2 import cv2
  3 from matplotlib import pyplot as plt
  4 import os
  5 import numpy as np
  6 
  7 # 準備模板
  8 template = ['0','1','2','3','4','5','6','7','8','9',
  9             'A','B','C','D','E','F','G','H','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z',
 10             '','','','','','','','','','','','','','','','','','','',
 11             '','','','','','','','','','','','']
 12 
 13 # 顯示圖片
 14 def cv_show(name,img):
 15     cv2.imshow(name,img)
 16     cv2.waitKey()
 17     cv2.destroyAllWindows()
 18 
 19 # 讀取一個檔案夾下的所有圖片,輸入引數是檔案名,回傳檔案地址串列
 20 def read_directory(directory_name):
 21     referImg_list = []
 22     for filename in os.listdir(directory_name):
 23         referImg_list.append(directory_name + "/" + filename)
 24     return referImg_list
 25 
 26 # 中文模板串列(只匹配車牌的第一個字符)
 27 def get_chinese_words_list():
 28     chinese_words_list = []
 29     for i in range(34,64):
 30         c_word = read_directory('./refer1/'+ template[i])
 31         chinese_words_list.append(c_word)
 32     return chinese_words_list
 33 
 34 #英文模板串列(只匹配車牌的第二個字符)
 35 def get_english_words_list():
 36     eng_words_list = []
 37     for i in range(10,34):
 38         e_word = read_directory('./refer1/'+ template[i])
 39         eng_words_list.append(e_word)
 40     return eng_words_list
 41 
 42 # 英文數字模板串列(匹配車牌后面的字符)
 43 def get_eng_num_words_list():
 44     eng_num_words_list = []
 45     for i in range(0,34):
 46         word = read_directory('./refer1/'+ template[i])
 47         eng_num_words_list.append(word)
 48     return eng_num_words_list
 49 
 50 #模版匹配
 51 def template_matching(words_list):
 52     if words_list == 'chinese_words_list':
 53         template_words_list = chinese_words_list
 54         first_num = 34
 55     elif words_list == 'english_words_list':
 56         template_words_list = english_words_list
 57         first_num = 10
 58     else:
 59         template_words_list = eng_num_words_list
 60         first_num = 0
 61     best_score = []
 62     for template_word in template_words_list:
 63         score = []
 64         for word in template_word:
 65             template_img = cv2.imdecode(np.fromfile(word, dtype=np.uint8), 1)
 66             template_img = cv2.cvtColor(template_img, cv2.COLOR_RGB2GRAY)
 67             ret, template_img = cv2.threshold(template_img, 0, 255, cv2.THRESH_OTSU)
 68             height, width = template_img.shape
 69             image = image_.copy()
 70             image = cv2.resize(image, (width, height))
 71             result = cv2.matchTemplate(image, template_img, cv2.TM_CCOEFF)
 72             score.append(result[0][0])
 73         best_score.append(max(score))
 74     return template[first_num + best_score.index(max(best_score))]
 75 
 76 referImg_list = read_directory("chepai_13")
 77 chinese_words_list = get_chinese_words_list()
 78 english_words_list = get_english_words_list()
 79 eng_num_words_list = get_eng_num_words_list()
 80 chepai_num = []
 81 
 82 #匹配第一個漢字
 83 img = cv2.imread(referImg_list[0])
 84 # 高斯去噪
 85 image = cv2.GaussianBlur(img, (3, 3), 0)
 86 # 灰度處理
 87 gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
 88 # 自適應閾值處理
 89 ret, image_ = cv2.threshold(gray_image, 0, 255, cv2.THRESH_OTSU)
 90 #第一個漢字匹配
 91 chepai_num.append(template_matching('chinese_words_list'))
 92 print(chepai_num[0])
 93 
 94 #匹配第二個英文字母
 95 img = cv2.imread(referImg_list[1])
 96 # 高斯去噪
 97 image = cv2.GaussianBlur(img, (3, 3), 0)
 98 # 灰度處理
 99 gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
100 # 自適應閾值處理
101 ret, image_ = cv2.threshold(gray_image, 0, 255, cv2.THRESH_OTSU)
102 #第二個英文字母匹配
103 chepai_num.append(template_matching('english_words_list'))
104 print(chepai_num[1])
105 
106 #匹配其余5個字母,數字
107 for i in range(2,7):
108     img = cv2.imread(referImg_list[i])
109     # 高斯去噪
110     image = cv2.GaussianBlur(img, (3, 3), 0)
111     # 灰度處理
112     gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
113     # 自適應閾值處理
114     ret, image_ = cv2.threshold(gray_image, 0, 255, cv2.THRESH_OTSU)
115     #其余字母匹配
116     chepai_num.append(template_matching('eng_num_words_list'))
117     print(chepai_num[i])
118 print(chepai_num)
View Code

 

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

標籤:其他

上一篇:【譯】Object Storage on CRAQ 上篇

下一篇:GraphicsLab Project 之 Screen Space Planar Reflection

標籤雲
其他(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