-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode Layout
More file actions
81 lines (39 loc) · 1.01 KB
/
Code Layout
File metadata and controls
81 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Code Layout::
-- color_adjust --
rgb2bgr(RGB)
bgr2rgb(BGR)
rgb2gray(rgb)
color_isolation(self,plot=False)
intensity_plot(self)
grey_level_adjust(self,grey_levels)
-- im_processing -- + Fourier Analysis Class
cv_read(file_path)
plot_grey(im)
plot_hist(gray)
im_subplot(ims,shape,titles=None,cmap= 'gray')
zero_pad(pad_len=2)
hist_density(gray,thresh=128)
zoom_dup(self,factor=2)
crop(img, x_left=0,x_right=0,y_bot=0,y_up=0)
cut(img,thresh=90)
resize(image, width = None, height = None, inter = cv2.INTER_AREA):
-- segmentation --
otsu(gray,plot=False):
remove_background_noise(img, dilations=1, kernel_size=5, thresh=174)
kmeans_segmenter(img,clusters)
watershed
grab_contours(cnts)
order_points(pts):
four_point_transform(image, pts):
-- kernel --
cv_convolve
np_convolve
sharpen(self):
excessive(self)
edge_enhance(self)
sharpen_filter(self)
edge_filter(self)
gaussian_filter(self,kernel_size= 3 ,sigma=1)
edge_finder (it sucks)
-- yolo --
yolo.py