Skip to content

Commit

Permalink
refactor: small refactor and protecting value
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioReyesSan committed Jan 21, 2025
1 parent f0536e0 commit 63dfa77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,10 @@ def process_detection_results(self, img: np.array, detection: BoardDetection, im
alpha_indicators=self.indicators_alpha_spinbox.value(),
value=False,
)
self.skip_next_img = (
self.frames_to_skip.value
) # skips the next images if there are no detections
with self.lock:
self.skip_next_img = (
self.frames_to_skip.value
) # skips the next images if there are no detections

else:
camera_model_cfg, camera_model_type = self.calibrator_dict[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import cv2
from intrinsic_camera_calibrator.camera_models.camera_model import CameraModel
from intrinsic_camera_calibrator.types import RectifyMode
import numpy as np
import ruamel.yaml
import yaml
Expand Down

0 comments on commit 63dfa77

Please sign in to comment.