Skip to content

Commit 8cb5798

Browse files
Fix numpy conversion error
1 parent 6d54a06 commit 8cb5798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/modules/allsky_shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5578,7 +5578,7 @@ def detect_meteors(img: np.ndarray,
55785578

55795579
# --- adaptive threshold ---
55805580
mean, std = cv2.meanStdDev(highpass, mask=mask)
5581-
tval = float(mean + k_sigma * std)
5581+
tval = float(mean[0][0] + k_sigma * std[0][0])
55825582
tval = max(tval, 10.0)
55835583
_, bin_img = cv2.threshold(highpass, tval, 255, cv2.THRESH_BINARY)
55845584

0 commit comments

Comments
 (0)