Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed [Environment] OpenCV NULL guiReceiver error during pre-commit #231

Merged

Conversation

Princekumarofficial
Copy link
Contributor

#230
Fixed [Environment] OpenCV NULL guiReceiver error during pre-commit testing .

Added a check to see if a window is available, or create one if its not.

…esting .

added a check to see if a window is available, or create one if its not.
@@ -38,6 +38,9 @@ def show(name, origin, pause=1, resize=False, reset_pos=None, config=None):
else:
img = origin

if not is_window_available(name):
cv2.namedWindow(name)
Copy link
Owner

Choose a reason for hiding this comment

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

can you add this for the cv2.moveWindow() as well?

Copy link
Contributor Author

@Princekumarofficial Princekumarofficial Oct 13, 2024

Choose a reason for hiding this comment

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

@Udayraj123 Its not needed separately for the same, We can do that but it does not affect anything as we are already handling the case when we don't have window here, so no need to do it again.

@Udayraj123
Copy link
Owner

Thanks, added a comment @Princekumarofficial

Copy link
Owner

@Udayraj123 Udayraj123 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Udayraj123 Udayraj123 merged commit 646a080 into Udayraj123:master Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants