Revert: pct改回T/255,T/2550会破坏暗图处理
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ def otsu_threshold_pixels(gray):
|
||||
|
||||
def draw_grid_lines(gray):
|
||||
T = otsu_threshold_pixels(gray)
|
||||
pct = T / 2550.0
|
||||
pct = T / 255.0
|
||||
H, W = gray.shape
|
||||
col_prof = np.sum(gray, axis=0).astype(float)
|
||||
row_prof = np.sum(gray, axis=1).astype(float)
|
||||
|
||||
Reference in New Issue
Block a user