Skip to content

Add saturation slider - #2324

Open
spacey-sooty wants to merge 4 commits into
PhotonVision:mainfrom
spacey-sooty:add-saturation-slider
Open

Add saturation slider#2324
spacey-sooty wants to merge 4 commits into
PhotonVision:mainfrom
spacey-sooty:add-saturation-slider

Conversation

@spacey-sooty

Copy link
Copy Markdown
Member

Description

Added a saturation slider, tested on my laptops in built camera.

Resolves #2311

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why
  • If this PR changes behavior or adds a feature, user documentation is updated
  • If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly
  • If this PR touches configuration, this is backwards compatible with settings back to v2025.3.2
  • If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated
  • If this PR addresses a bug, a regression test for it is added

@spacey-sooty
spacey-sooty requested a review from a team as a code owner January 22, 2026 03:44
@github-actions github-actions Bot added frontend Having to do with PhotonClient and its related items backend Things relating to photon-core and photon-server labels Jan 22, 2026
@spacey-sooty
spacey-sooty force-pushed the add-saturation-slider branch from 1176bd3 to 639e622 Compare January 22, 2026 03:45
@spacey-sooty
spacey-sooty force-pushed the add-saturation-slider branch from b64a5af to 6d61d77 Compare January 30, 2026 03:13
@spacey-sooty spacey-sooty moved this to In progress in 2027 Release Apr 13, 2026
@spacey-sooty
spacey-sooty force-pushed the add-saturation-slider branch 3 times, most recently from b9a8d74 to 2c45e6a Compare June 29, 2026 17:04
@spacey-sooty
spacey-sooty force-pushed the add-saturation-slider branch from 2c45e6a to 2acf621 Compare July 6, 2026 07:53
Resolves PhotonVision#2311

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
@spacey-sooty
spacey-sooty force-pushed the add-saturation-slider branch from 2acf621 to 89a78e2 Compare July 20, 2026 18:48
@spacey-sooty

Copy link
Copy Markdown
Member Author

Tested and working well on both my laptop camera and LL3, needs PhotonVision/photon-libcamera-gl-driver#29

Comment on lines +206 to +207
cameraMinSaturation: 0,
cameraMaxSaturation: 100,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Based on #2324 (comment) -- can we have the UI assume 0-100 in all cases?

@spacey-sooty spacey-sooty Jul 20, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Its a fine default, it'll work for CSI cams and USB cams. It pulls from getMax and getMin if not

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think the slider should always be 0-100, and we can rescale in the backend?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seems reasonable

Comment on lines +121 to +122
this.minSaturation = saturationProp.getMin();
this.maxSaturation = saturationProp.getMax();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this always 0-100, or is it ever different? (Related to thread above)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All the cameras I've tried return 0-100 but I believe it can be other things

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In that case, #2324 (comment) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Add saturation slider

2 participants