AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘

AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' error resolution

import cv2.aruco error resolution

1. Open conda

2. Activate python

conda activate python37

3. Input

pip install opencv-contrib-python

4. If it still doesn't work, then enter in sequence

pip install --upgrade opencv-python
pip install --upgrade opencv-contrib-python
pip install --upgrade opencv-python-headless

おすすめ

転載: blog.csdn.net/m0_68738477/article/details/129561282