Skip to content

Commit

Permalink
Fix bias image bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosseel committed Oct 24, 2024
1 parent d4d5b29 commit 4888e4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/PiFinder/camera_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def get_image_loop(
imu_start = shared_state.imu()
image_start_time = time.time()
if not debug:
base_image, raw_image = self.capture()
base_image = self.capture()
base_image = base_image.convert("L")
bias_image = self.capture_bias()
base_image = bias_image.convert("L")
bias_image = bias_image.convert("L")
rotate_amount = 0
if camera_rotation is None:
if (
Expand All @@ -99,7 +99,6 @@ def get_image_loop(
base_image = base_image.rotate(int(camera_rotation) * -1)

base_image = base_image.rotate(rotate_amount)
raw_image = np.rot90(raw_image, rotate_amount / 90)
else:
# load image and wait
base_image = Image.open(test_image_path)
Expand Down

0 comments on commit 4888e4f

Please sign in to comment.