摘要: 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 挑水工 阅读(109) 评论(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 挑水工 阅读(239) 评论(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 挑水工 阅读(262) 评论(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 挑水工 阅读(540) 评论(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 挑水工 阅读(50) 评论(0) 推荐(0) 编辑
摘要: set tabstop=4 //tabstop表示一个 tab 显示出来是多少个空格的长度,默认值为8。 set softtabstop=4 //softtabstop表示在编辑模式的时候按退格键的时候退回缩进的长度 set shiftwidth=4 //表示每一级缩进的长度,一般设置成跟 soft 阅读全文
posted @ 2020-12-01 22:01 挑水工 阅读(59) 评论(0) 推荐(0) 编辑
摘要: class Foo: def __init__(self,name): self.name = name def __enter__(self): print('执行enter') return self def __exit__(self, exc_type, exc_val, exc_tb): 阅读全文
posted @ 2020-01-12 14:43 挑水工 阅读(143) 评论(0) 推荐(0) 编辑
摘要: AutoLisp 函数总结 阅读全文
posted @ 2019-12-22 00:11 挑水工 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1. 【Visual Lisp】Visual Lisp属性与方法(3735) 2. 【Visual Lisp】图元选择集专题(2369) 3. 【Visual Lisp】表处理专题(1219) 4. 【Visual Lisp】两种出错处理方式(1155) 5. 【Visual Lisp】人机交互与数 阅读全文
posted @ 2019-12-13 22:16 挑水工 阅读(461) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/5950339.html 一 了解字符编码的知识储备 二 字符编码介绍 三 字符编码应用之文件编辑器 3.1 文本编辑器之nodpad++ 3.2 文本编辑器之pycharm 3.3 文本编辑器之python解释 阅读全文
posted @ 2019-11-03 18:28 挑水工 阅读(128) 评论(0) 推荐(0) 编辑