We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ubuntu 11.4.0-1ubuntu1~22.04 opencv-contrib-python 4.10.0.84 opencv-python-headless 4.10.0.84 python 3.8.20
python 111.py Traceback (most recent call last): File "111.py", line 11, in thinned = cv2.ximgproc.thinning(thresh, cv2.ximgproc.THINNING_ZHANGSUEN) AttributeError: module 'cv2.ximgproc' has no attribute 'thinning'
import cv2 import numpy as np
img = cv2.imread('/home/mambauser/arrow-detection/ReactionDataExtractor/testimage/1.png', 0)
ret, thresh = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
thinned = cv2.ximgproc.thinning(thresh, cv2.ximgproc.THINNING_ZHANGSUEN)
cv2.imshow('image', np.hstack((thresh, thinned))) cv2.waitKey(0) cv2.destroyAllWindows()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Information
Ubuntu 11.4.0-1ubuntu1~22.04
opencv-contrib-python 4.10.0.84
opencv-python-headless 4.10.0.84
python 3.8.20
Detailed description
python 111.py
Traceback (most recent call last):
File "111.py", line 11, in
thinned = cv2.ximgproc.thinning(thresh, cv2.ximgproc.THINNING_ZHANGSUEN)
AttributeError: module 'cv2.ximgproc' has no attribute 'thinning'
Steps to reproduce
import cv2
import numpy as np
img = cv2.imread('/home/mambauser/arrow-detection/ReactionDataExtractor/testimage/1.png', 0)
ret, thresh = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
thinned = cv2.ximgproc.thinning(thresh, cv2.ximgproc.THINNING_ZHANGSUEN)
cv2.imshow('image', np.hstack((thresh, thinned)))
cv2.waitKey(0)
cv2.destroyAllWindows()
Issue submission checklist
The text was updated successfully, but these errors were encountered: