Revert: pct改回T/255,T/2550会破坏暗图处理

This commit is contained in:
2026-05-08 16:08:47 +08:00
parent 4dab42e932
commit c7ba14a81a
8 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)