Skip to content

Feature/7975 update library to be compatible with new camera modules#164

Open
randy-seng wants to merge 45 commits intomasterfrom
feature/7975-update-library-to-be-compatible-with-new-camera-modules
Open

Feature/7975 update library to be compatible with new camera modules#164
randy-seng wants to merge 45 commits intomasterfrom
feature/7975-update-library-to-be-compatible-with-new-camera-modules

Conversation

@randy-seng
Copy link
Copy Markdown
Member

@randy-seng randy-seng commented Jun 25, 2025

OP#7975
OP#8355

randy-seng added 23 commits May 22, 2025 14:18
Upgraded multiple library versions to ensure compatibility and access to the latest features and fixes. This includes updates for `art`, `psutil`, `gpiozero`, `picamerax`, `beautifulsoup4`, `PyYAML`, and `requests`.
A newline was added to improve code readability and adhere to style guidelines in the LED module. No functional changes were made. Additionally, the bootstrap CSS file remained unchanged.
setup.py has been replaced with pyproject.toml
Refactored the codebase to add or enhance type annotations for functions and methods, improving type safety and readability. Addressed minor inconsistencies such as variable naming, misspellings, and formatting, ensuring better adherence to coding standards.
Reduced the minimum Python version requirement to >=3.9 since OTCamera runs on Raspberry Pi Zero W.
Replaced Python 3.10+ pipe syntax for Union with explicit Union since we are working with python3.9. Added `opencv-python` to `requirements-dev.txt` and pre-commit additional dependencies. Updated pre-commit mypy entry to target `OTCamera` instead of `OTAnalytics`.
Updated type hints for `parse_args` and `main` to `None` for clarity and consistency. Adjusted
…actor `CameraController` to use the `Camera` interface.
@randy-seng randy-seng requested a review from frunika as a code owner June 25, 2025 05:25
@randy-seng randy-seng closed this Jun 25, 2025
@randy-seng randy-seng deleted the feature/7975-update-library-to-be-compatible-with-new-camera-modules branch June 25, 2025 08:18
@randy-seng randy-seng restored the feature/7975-update-library-to-be-compatible-with-new-camera-modules branch June 25, 2025 08:21
@randy-seng randy-seng reopened this Jun 25, 2025
@briemla briemla self-requested a review July 14, 2025 09:17
briemla
briemla previously approved these changes Jul 14, 2025
@briemla
Copy link
Copy Markdown
Contributor

briemla commented Jul 14, 2025

@randy-seng I checked the code. It looks like the rest of our code. Nice work.

briemla
briemla previously approved these changes Aug 5, 2025
…le-with-new-camera-modules

# Conflicts:
#	OTCamera/hardware/camera_controller.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants