Skip to content

Disallow low-resolution calibration#2390

Open
cswilson252 wants to merge 4 commits intoPhotonVision:mainfrom
cswilson252:noLowResolutionCal
Open

Disallow low-resolution calibration#2390
cswilson252 wants to merge 4 commits intoPhotonVision:mainfrom
cswilson252:noLowResolutionCal

Conversation

@cswilson252
Copy link
Contributor

Description

What changed? Why? (the code + comments should speak for itself on the "how")

Adds a snackbar message (error) in CameraCalibrationCard if calibration resolution is < 640x480, because there's not enough useful data for calibration at that scale.

Closes #1719

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why, including events that led to this PR
  • If this PR changes behavior or adds a feature, user documentation is updated

@cswilson252 cswilson252 requested a review from a team as a code owner March 8, 2026 22:59
@github-actions github-actions bot added the frontend Having to do with PhotonClient and its related items label Mar 8, 2026
@Bankst
Copy link
Member

Bankst commented Mar 9, 2026

Would a total pixel count (area) be a better metric than a specific vert/horiz pixel count cutoff?

@mcm001
Copy link
Contributor

mcm001 commented Mar 9, 2026

I think that area, or maybe diagonal length in pixels to keep the units in pixels, are better than just width or height?

Comment on lines +185 to +186
if ((calMode && currentRes.width > 640) || (calMode && currentRes.height > 480)) {
useStateStore().showSnackbarMessage({
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like a v-alert similar to the mrcal pop-up might be a better choice? Keeps the warning closer to the thing we care about.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or actually why even allow calibrations? why not filter them from the dropdown before the user even gets a chance to select it?

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

Labels

frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disallow low-resolution calibration

3 participants