Skip to content

Commit 042a1ec

Browse files
committed
修改标注信息,添加README 2018年11月15日
1 parent 1e4ad7a commit 042a1ec

File tree

53 files changed

+81
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+81
-49
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

01. 简介与安装/cv2_contrast_brightness_time.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// More: http://ex2tron.top
1+
// ex2tron's blog:
2+
// http://ex2tron.wang
23

34
#include "stdafx.h"
45
#include <opencv2\opencv.hpp>

01. 简介与安装/cv2_contrast_brightness_time.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45
import numpy as np

01. 简介与安装/cv2_read_image_time.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// More: http://ex2tron.top
1+
// ex2tron's blog:
2+
// http://ex2tron.wang
23

34
#include "stdafx.h"
45
#include <opencv2\opencv.hpp>

01. 简介与安装/cv2_read_image_time.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

56
img = cv2.imread('lena.jpg')
67
cv2.imshow('lena', img)
78

89
k = cv2.waitKey(0)
9-
# ord用来获取某个字符的编码
10+
# ord()用来获取某个字符的编码
1011
if k == ord('s'):
1112
cv2.imwrite('lena_save.bmp', img)

02. 基本元素-图片/cv2_getting_start_with_images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

03. 打开摄像头/cv2_capture_live_video_from_camera.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

03. 打开摄像头/cv2_exercise1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

03. 打开摄像头/cv2_play_video_from_file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

03. 打开摄像头/cv2_save_video_to_file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45

04. 图像基本操作/cv2_basic_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44

04. 图像基本操作/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44

05. 颜色空间转换/cv2_changing_color_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

05. 颜色空间转换/cv2_exercises1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

06. 阈值分割/cv2_thresholding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import matplotlib.pyplot as plt

07. 图像几何变换/cv2_geometric_transformations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

07. 图像几何变换/cv2_perspective_transformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

08. 绘图功能/cv2_drawing_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

08. 绘图功能/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

09. 图像混合/cv2_image_blending.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

10. 平滑图像/cv2_extra_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

10. 平滑图像/cv2_source_code_getGaussianKernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// More: http://ex2tron.top
1+
// More: http://ex2tron.wang
22

33
cv::Mat cv::getGaussianKernel( int n, double sigma, int ktype )
44
{

11. 边缘检测/cv2_canny_edge_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

11. 边缘检测/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

12. 腐蚀与膨胀/cv2_erosion_dilation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

13. 轮廓/cv2_find_contours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44

14. 轮廓特征/cv2_contours_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

14. 轮廓特征/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

14. 轮廓特征/cv2_exercise2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44

15. 直方图/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

15. 直方图/cv2_histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

16. 模板匹配/cv2_template_matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

17. 霍夫变换/cv2_hough_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

19. Harris角点检测/cv2_harris_corner_detector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# More: http://ex2tron.wang
2+
13
import cv2
24
import numpy as np
35

20. Shi-Tomasi角点检测/cv2_shi_tomasi_corner_detector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# More: http://ex2tron.wang
2+
13
import cv2
24
import numpy as np
35

20. Shi-Tomasi角点检测/cv_exercise1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# More: http://ex2tron.wang
2+
13
import cv2
24
import numpy as np
35

21. SIFT/cv2_sift_sample.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# More: http://ex2tron.wang
2+
13
import cv2
24
import numpy as np
35

README.md

Lines changed: 3 additions & 0 deletions

番外篇01. 代码性能优化/cv2_optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇02. Matplotlib显示图像/cv2_using_matplotlib_show_image.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# More: http://ex2tron.top
1+
# ex2tron's blog:
2+
# http://ex2tron.wang
23

34
import cv2
45
import matplotlib.pyplot as plt
@@ -23,3 +24,14 @@
2324
plt.imshow(img2)
2425

2526
plt.show()
27+
28+
29+
# 3.加载和保存图片
30+
import matplotlib.image as pli
31+
32+
img = pli.imread('lena.jpg')
33+
plt.imshow(img)
34+
35+
# 保存图片,需放在show()函数之前
36+
plt.savefig('lena2.jpg')
37+
plt.show()

番外篇03. 滑动条/cv2_trackbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇04. Otsu阈值法/cv2_otsu_thresholding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
from matplotlib import pyplot as plt

番外篇05. 鼠标绘图/cv2_mouse_drawing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇05. 鼠标绘图/cv2_mouse_drawing_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇05. 鼠标绘图/cv2_mouse_drawing_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇05. 鼠标绘图/cv2_mouse_drawing_exercise2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇06. 亮度与对比度/cv2_contrast_brightness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇06. 亮度与对比度/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇07. 卷积基础(图片边框)/cv2_border_convolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇08. 图像梯度/cv2_image_gradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇09. 轮廓层级/cv2_exercise1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44
import numpy as np

番外篇09. 轮廓层级/cv2_understand_hierarchy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More: http://ex2tron.top
1+
# More: http://ex2tron.wang
22

33
import cv2
44

0 commit comments

Comments
 (0)