Skip to content

examples: cover the remaining Camera methods - #2

Merged
bdbarnett merged 1 commit into
mainfrom
branch/cameraif-example-catalog-8b7e
Sep 7, 2026
Merged

examples: cover the remaining Camera methods#2
bdbarnett merged 1 commit into
mainfrom
branch/cameraif-example-catalog-8b7e

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Summary

Extends the cameraif examples so every public Camera method has a dedicated use, without touching src/.

  • Add: camera_frame.py (frame + stats), camera_transform.py (rotate/mirror/crop via PPA), camera_formats.py (formats() + explicit Camera(...) constructor), camera_diag.py (bring-up: stats, test pattern, reg()).
  • README: fixed the broken examples table; listed the new scripts; pointed USB webcam at usbif; cited cameraif#1 (available() always True).

Out of scope

Hardware runs this session; firmware fixes for #1.

Test plan

  • P4 + OV5647: run each new script; confirm preview / stats / orientations / format switch / test pattern
  • Existing five examples still import and run

Add frame/stats, capture_scaled transforms, formats()+constructor, and
a bring-up diagnostic; extend the README table and cite cameraif#1.
@bdbarnett
bdbarnett marked this pull request as ready for review September 7, 2026 04:05
@bdbarnett
bdbarnett merged commit 0cc37a8 into main Sep 7, 2026
3 checks passed
@bdbarnett
bdbarnett deleted the branch/cameraif-example-catalog-8b7e branch September 7, 2026 04:05
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