Skip to content

Conversation

@jimtempleton21
Copy link

…ation

  • Rotate display 90deg clockwise in CameraWidgetQt6 and CameraWidgetQt6.5 backends to fix display orientation
  • Rotate snapshots 90deg clockwise in SnapshotManager to fix aspect ratio validation
  • Ensures display and inference snapshots match raw frame orientation

…ation

- Rotate display 90deg clockwise in CameraWidgetQt6 and CameraWidgetQt6.5 backends to fix display orientation
- Rotate snapshots 90deg clockwise in SnapshotManager to fix aspect ratio validation
- Ensures display and inference snapshots match raw frame orientation
Copy link
Author

@jimtempleton21 jimtempleton21 left a comment

Choose a reason for hiding this comment

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

sick bro, thanks man!

@Mysticial
Copy link
Collaborator

Thanks for contributing! However, This hasn't been a problem for anyone else, and AFAICT, you're unconditionally rotating the display. So it's going to rotate it wrong for everyone else.

More comments inline in the code.

QPainter painter(this);
// Convert to image to bypass Qt's automatic rotation based on camera metadata
// This ensures the display matches the raw frame orientation used for inference
QImage image = frame.toImage();
Copy link
Collaborator

Choose a reason for hiding this comment

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

You cannot call QImage::toImage() here because this is the main Qt thread. It's too expensive and it will overload the main thread on higher resolutions and on multi-Switch programs.

QPainter is different because it renders the QVideoFrame directly to the screen with hardware acceleration.

ig-14 added 4 commits December 2, 2025 08:32
- Add verify_date_time_menu_selected() to ensure 'Date and Time' menu item is selected (not 'Time Zone')
- Use single snapshot checks instead of continuous polling to avoid visual pulsing
- Verify menu state before rolling date forward/backward in DailyItemFarmer
- Prevents accidentally entering wrong menus (Time Zone, Region, etc.)
@jimtempleton21 jimtempleton21 closed this by deleting the head repository Dec 11, 2025
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.

2 participants