AttributeError: модуль 'cv2.cv2' не имеет атрибута 'EM' (OpenCV 3.4.2) (python 3.7.3) - PullRequest
0 голосов
/ 02 мая 2020

Я сталкиваюсь с ошибкой в ​​em= cv2.EM(N)

Ниже описана область проблемы.

def dictionary(descriptors,N):
em = cv2.EM(N) em.train(descriptors) return np.float32(em.getMat("means")), \ np.float32(em.getMatVector("covs")), np.float32(em.getMat("weights"))[0]

below it is the image of the error message

введите описание изображения здесь

...