Модуль «cv2.cv2» не имеет атрибута «ximgproc». ⇐ Python
Модуль «cv2.cv2» не имеет атрибута «ximgproc».
I am trying to perform a selective search to an image using OpenCV but when I run my code I get this:
>>> import cv2 >>> ss = cv2.ximgproc.segmentation.createSelectiveSearchSegmentation() Traceback (most recent call last): File "", line 1, in AttributeError: module 'cv2.cv2' has no attribute 'ximgproc' I've seen similar problems but people solved them installing opencv-contrib-python package. I've already installed this module but the problem persists.
Here is my requirements file:
opencv-contrib-python==4.1.0.25 opencv-python==4.1.0.25 I am using a conda environment with python 3.7
Источник: https://stackoverflow.com/questions/574 ... e-ximgproc
I am trying to perform a selective search to an image using OpenCV but when I run my code I get this:
>>> import cv2 >>> ss = cv2.ximgproc.segmentation.createSelectiveSearchSegmentation() Traceback (most recent call last): File "", line 1, in AttributeError: module 'cv2.cv2' has no attribute 'ximgproc' I've seen similar problems but people solved them installing opencv-contrib-python package. I've already installed this module but the problem persists.
Here is my requirements file:
opencv-contrib-python==4.1.0.25 opencv-python==4.1.0.25 I am using a conda environment with python 3.7
Источник: https://stackoverflow.com/questions/574 ... e-ximgproc
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Opencv attributeerror odule 'cv2.cv2' не имеет атрибута 'tracker_create'
Anonymous » » в форуме Python - 0 Ответы
- 4 Просмотры
-
Последнее сообщение Anonymous
-