Skip to content

Commit 848f00e

Browse files
committed
Refactor Camera and WebCam classes for improved functionality
- Replace json config loading with local_conf module - Add conditional imports for cv2 and skvideo with import flags - Add queue size limit and cancel_join_thread to process_queue - Implement WebCam class with full recording capabilities - Add camera property setters (exposure, white balance, gain, etc.) - Improve error handling and process cleanup in stop_rec - Update docstrings to follow consistent formatting - Add timeout to camera_process.join() with fallback termination - Fix PiCamera exposure parameter (renamed from shutter_speed)
1 parent e93a311 commit 848f00e

File tree

2 files changed

+342
-105
lines changed

2 files changed

+342
-105
lines changed

src/ethopy/core/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def cleanup(self) -> None:
215215
def release(self) -> None:
216216
"""Release hardware resources, especially camera."""
217217
if self.camera:
218-
log.info("Release camear" * 10)
218+
log.info("Releasing camera resources.")
219219
if self.camera.recording.is_set():
220220
self.camera.stop_rec()
221221

0 commit comments

Comments
 (0)