Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cameras: start plumbing AbstractCamera throughout #111

Open
wants to merge 1 commit into
base: ian/camera-interface
Choose a base branch
from

Conversation

ianohara
Copy link
Collaborator

This starts working through the code and changing all the camera uses to be conformant to the AbstractCamera interface. As a result, it depends on #61 .

After this is finished, one more PR will need to happen that changes the Camera implementations to be AbstractCamera conformant. I'm doing this one first so we can get everything running with the simulated cam, then pick off the camera implementations 1 by 1.

Major Remaining Items:

  • Decide how to do the callback enable/disable. It isn't great that one part of the code can disable callbacks (and then forget to re-enable them, or faile to because of an exception) and bring down everything else that cares about images. To get around this we added the callback registration mechanism, but as a result we don't have a good way for non-relevant images to be ignored. I haven't decided what to do for this, yet.

Tested By: Unit tests still pass, but a lot more testing is needed.

# @@@ will cropping before emitting the signal lead to speedup?
self.packet_image_for_tracking.emit(image_cropped, camera.frame_ID, camera.timestamp)
self.timestamp_last_track = time_now
def on_new_frame(self, frame: squid.abc.CameraFrame):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to change the frame callback to send out CameraFrame

@ianohara ianohara force-pushed the ian/camera-impl branch 2 times, most recently from fd860b8 to cfbc3e5 Compare February 18, 2025 02:18
@ianohara ianohara force-pushed the ian/camera-interface branch from 577cc0a to 8683f24 Compare February 24, 2025 21:05
@ianohara ianohara force-pushed the ian/camera-impl branch 3 times, most recently from 6f8710d to e1c748d Compare February 25, 2025 03:27
@ianohara ianohara force-pushed the ian/camera-interface branch from 5ddf111 to 309e85a Compare February 25, 2025 03:27
@ianohara ianohara force-pushed the ian/camera-interface branch from 309e85a to e6ffbaf Compare March 3, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant