Skip to content

Conversation

@GreatV
Copy link
Collaborator

@GreatV GreatV commented Jan 19, 2026

  • Add null check for decoded image to detect corrupted or unsupported files
  • Improve error message for failed image decoding with more descriptive text
  • Restructure image validation logic to check for decode failures before size validation
  • Update warning message for unrecognized files to be more specific

Close: #237

…ling

- Add null check for decoded image to detect corrupted or unsupported files
- Improve error message for failed image decoding with more descriptive text
- Restructure image validation logic to check for decode failures before size validation
- Update warning message for unrecognized files to be more specific
Copilot AI review requested due to automatic review settings January 19, 2026 11:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances image decoding validation and error handling in the auto-labeling dialog by adding a null check for decoded images and improving error messages to better describe failure scenarios.

Changes:

  • Add null check after cv2.imdecode() to detect corrupted or unsupported image files
  • Restructure validation logic to check for decode failures before performing size validation
  • Improve warning messages to be more descriptive and specific about failure reasons

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GreatV GreatV merged commit 72edd17 into PFCCLab:main Jan 19, 2026
7 checks passed
@GreatV GreatV deleted the fix branch January 19, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

为什么自动标注显示不识别图片?

1 participant