python: data type = 5 is not supported (Bug #2505)
Description
windows 7 x86
OpenCV 2.4.3
python 2.6
Некоторые примеры из samples\python2 падают с такой ошибкой:
samples\python2\squares.pyTraceback (most recent call last):
File "C:\opencv2.4.3\samples\python2\squares.py", line 40, in <module>
squares = find_squares(img)
File "C:\opencv2.4.3\samples\python2\squares.py", line 27, in find_squares
cnt_len = cv2.arcLength(cnt, True)
TypeError: curve data type = 5 is not supported
samples\python2\watershed.pyTraceback (most recent call last):
File "C:\opencv2.4.3\samples\python2\watershed.py", line 77, in <module>
App(fn).run()
File "C:\opencv2.4.3\samples\python2\watershed.py", line 60, in run
self.watershed()
File "C:\opencv2.4.3\samples\python2\watershed.py", line 48, in watershed
vis = cv2.addWeighted(self.img, 0.5, overlay, 0.5, 0.0, dtype=cv2.CV_8UC3)
TypeError: src2 data type = 5 is not supported
Related issues
| related to Patch #2611: Typo in numpy types conversion breaks contour functions i... | Done | 2012-12-07 | ||
| duplicated by Bug #2665: python drawcontours with "TypeError: contours data type ... | Cancelled | 2012-12-27 | ||
| duplicated by Bug #2533: Problem with contours functions | Cancelled | 2012-11-12 |
Associated revisions
History
Updated by Yves Yves 6 months ago
Same here:
cnt, _ = cv2.findContours(canny, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) print cnt.size, cnt.shape, cnt.dtype cnt_len = cv2.arcLength(cnt, True)
Crash while saying:
"""
68 (34, 1, 2) int32
Traceback (most recent call last):
cnt_len = cv2.arcLength(cnt, True)
TypeError: curve data type = 5 is not supported
"""
Updated by Andrey Kamaev 5 months ago
The patch from #2611 probably fixes this issue.
Updated by Vadim Pisarevsky 4 months ago
- Affected version set to 2.4.3
- Target version deleted ()
Updated by Vadim Pisarevsky 4 months ago
- Assignee deleted (
Vadim Pisarevsky)
Updated by Vadim Pisarevsky 4 months ago
- Assignee set to Vadim Pisarevsky
Updated by Kirill Kornyakov 3 months ago
- Target version set to 2.4.4