Skip to content

Hand-Eye GUI: Surface capture errors to the user#226

Merged
SatjaSivcev merged 1 commit into
masterfrom
2026-05-28-update-python-samples
Jun 1, 2026
Merged

Hand-Eye GUI: Surface capture errors to the user#226
SatjaSivcev merged 1 commit into
masterfrom
2026-05-28-update-python-samples

Conversation

@csu-bot-zivid
Copy link
Copy Markdown
Contributor

@csu-bot-zivid csu-bot-zivid commented May 28, 2026

When a capture raised a RuntimeError while the camera stayed
connected, the exception handler only acted when an auto-run was in
progress. A manually triggered capture that failed validation (for
example invalid settings) was therefore swallowed: no dialog, no
log, no change to the UI. The capture button appeared unresponsive
even though the SDK had rejected the capture.

This commit shows the error in a critical message box whenever a
capture fails on a connected camera, so any capture-time error is
visible to the user instead of being silently discarded.

Also, the generated hand-eye settings always disabled Contrast
Distortion Correction, while the engine selector defaulted to the
Stripe Engine for every camera. On Zivid 2 the SDK requires Contrast
Distortion Correction to be enabled with the Stripe Engine, so accepting
the defaults produced settings the camera rejected on every capture.

This commit enables Contrast Distortion Correction when the Stripe
Engine is used on Zivid 2, so the generated settings are valid regardless
of which engine is selected.

@csu-bot-zivid csu-bot-zivid force-pushed the 2026-05-28-update-python-samples branch 6 times, most recently from 9090136 to 21ee032 Compare June 1, 2026 18:06
@SatjaSivcev SatjaSivcev force-pushed the 2026-05-28-update-python-samples branch from 21ee032 to d5abc82 Compare June 1, 2026 19:58
@SatjaSivcev SatjaSivcev changed the title Samples: Automatic updates to public repository Hand-Eye GUI: Surface capture errors to the user Jun 1, 2026
When a capture raised a RuntimeError while the camera stayed
connected, the exception handler only acted when an auto-run was in
progress. A manually triggered capture that failed validation (for
example invalid settings) was therefore swallowed: no dialog, no
log, no change to the UI. The capture button appeared unresponsive
even though the SDK had rejected the capture.

This commit shows the error in a critical message box whenever a
capture fails on a connected camera, so any capture-time error is
visible to the user instead of being silently discarded.

Also, the generated hand-eye settings always disabled Contrast
Distortion Correction, while the engine selector defaulted to the
Stripe Engine for every camera. On Zivid 2 the SDK requires Contrast
Distortion Correction to be enabled with the Stripe Engine, so accepting
the defaults produced settings the camera rejected on every capture.

This commit enables Contrast Distortion Correction when the Stripe
Engine is used on Zivid 2, so the generated settings are valid regardless
of which engine is selected.
@SatjaSivcev SatjaSivcev force-pushed the 2026-05-28-update-python-samples branch from d5abc82 to e520c7f Compare June 1, 2026 20:00
Copy link
Copy Markdown
Collaborator

@SatjaSivcev SatjaSivcev left a comment

Choose a reason for hiding this comment

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

lgtm

@SatjaSivcev SatjaSivcev merged commit 2df9c9b into master Jun 1, 2026
3 checks passed
@SatjaSivcev SatjaSivcev deleted the 2026-05-28-update-python-samples branch June 1, 2026 20:23
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