AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘ (most likely due to a

import cv2 或import ddddocr时报错 

AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘ (most likely due to a circular import)

以下是网上找的资料,我个人尝试后没有解决问题。

AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘ (most likely due to a_第1张图片

尝试很多办法没效果后我灵光一闪,想着会不会是版本问题,opencv-contrib-python 最新版本不稳定?于是试着把opencv-contrib-python 改成了较低版本,就不报错了。

pip install opencv-contrib-python==3.4.11.45

你可能感兴趣的:(python,numpy,开发语言,opencv)