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

detectMarkers crashed python kernel without giving any error information #7

Open
HowcanoeWang opened this issue Jan 20, 2025 · 2 comments

Comments

@HowcanoeWang
Copy link

HowcanoeWang commented Jan 20, 2025

Thanks a lot for providing such a useful tag system!

When I using the python API try to detect some of testing images, one image crashed the python kernel, however, without any bug notification which I could not figuring out the reason.

I have stag-python==1.1.0 installed on a conda enviroment with python==3.9.13, the OS is Windows 11

Here is the error image:

Image

And the python code for reproduce.

import stag
import cv2

code_bit = 11

test_img = cv2.imread("POSITION_20250117_182116.jpg")

(corners, ids, rejected_corners) = stag.detectMarkers(test_img, code_bit)

Can you please kindly check the reason caused this crash, or at least protect not affecting python kernel?

@HowcanoeWang
Copy link
Author

HowcanoeWang commented Jan 20, 2025

PS: After cutting image to range of tag paper only, it does not crash.

Image

And can produce correct tag detection results

Image

@HowcanoeWang
Copy link
Author

PPS: removing green ground and chair to pure white also helps to prevent this crash:

Image

Detected results

Image

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

No branches or pull requests

1 participant