Skip to content

Commit

Permalink
make it harder to select images
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Nov 6, 2024
1 parent c05c982 commit 73bf163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fishsense_video_frame_extractor/commands/extract_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def update(self, file: Path, frame: int):
def __diff_images(a: np.ndarray, b: np.ndarray, skip_count: int) -> bool:
b = cv2.resize(b, (a.shape[1], a.shape[0]), interpolation=cv2.INTER_AREA)
ssim_score = metrics.structural_similarity(a, b, channel_axis=2)
threshold = 0.7 + float(skip_count) / 1500.0
threshold = 0.65 + float(skip_count) / 1500.0
return ssim_score < threshold


Expand Down

0 comments on commit 73bf163

Please sign in to comment.