fix: pct计算改为T/2550

This commit is contained in:
2026-05-08 15:54:12 +08:00
parent 06159eba19
commit 4dab42e932
6 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 / 255.0
pct = T / 2550.0
H, W = gray.shape
col_prof = np.sum(gray, axis=0).astype(float)
row_prof = np.sum(gray, axis=1).astype(float)