12 2020 档案

摘要:1 #!/bin/python3 2 3 import cv2 as cv 4 import numpy as np 5 from matplotlib import pyplot as plt 6 7 8 def plot_demo(image): 9 plt.hist(image.ravel() 阅读全文
posted @ 2020-12-21 00:33 挑水工 阅读(132) 评论(0) 推荐(0)
摘要:1 #!/bin/python3 2 3 import cv2 as cv 4 import numpy as np 5 6 7 #双线模糊 8 def b1_demo(image): 9 dst = cv.bilateralFilter(image,0,100,15) 10 cv.imshow(" 阅读全文
posted @ 2020-12-20 23:28 挑水工 阅读(274) 评论(0) 推荐(0)
摘要:1 #!/bin/python3 2 3 import cv2 as cv 4 import numpy as np 5 6 7 def clamp(pv): 8 if pv > 255: 9 return 255 10 if pv < 0: 11 return 0 12 else: 13 retu 阅读全文
posted @ 2020-12-20 22:50 挑水工 阅读(297) 评论(0) 推荐(0)
摘要:1 #!/bin/python3 2 2 3 3 import cv2 as cv 4 4 import numpy as np 5 5 6 6 7 7 #均值模糊 8 8 def blur_demo(image): 9 9 dst = cv.blur(image,(5,3)) 10 10 cv.i 阅读全文
posted @ 2020-12-20 20:47 挑水工 阅读(571) 评论(0) 推荐(0)
摘要:1 import pandas as pd 2 import numpy as np 3 4 df1 = pd.DataFrame(np.random.randn(3, 3), index=list('abc'), columns=list('ABC')) 5 print(df1) 6 7 # A 阅读全文
posted @ 2020-12-15 00:13 挑水工 阅读(111) 评论(0) 推荐(0)
摘要:set tabstop=4 //tabstop表示一个 tab 显示出来是多少个空格的长度,默认值为8。 set softtabstop=4 //softtabstop表示在编辑模式的时候按退格键的时候退回缩进的长度 set shiftwidth=4 //表示每一级缩进的长度,一般设置成跟 soft 阅读全文
posted @ 2020-12-01 22:01 挑水工 阅读(80) 评论(0) 推荐(0)