The error message indicates that there is an issue with the import of the OpenCV module in the "train.py" script. Specifically, the script is trying to import the "cv2" module, but it is not able to find the "gapi_wip_gst_GStreamerPipeline" attribute within that module. This could be caused by a few different things:

  1. OpenCV might not be installed correctly on the system. Try reinstalling OpenCV and make sure all dependencies are properly installed.

  2. There might be a version conflict between the OpenCV module and other modules in the project. Check the versions of all modules and make sure they are compatible with each other.

  3. There might be a typo or other syntax error in the "train.py" script that is causing the import to fail. Check the code for any errors and try running the script again.

It is also possible that there is an issue with the OpenCV module itself. In this case, you may need to report the issue to the OpenCV development team or seek help from other developers who have experience with OpenCV.

Traceback most recent call last File CUserscwzDesktopmask-recognize-mastermask-recognize-mastertrainpy line 1 in module import cv2 File DROS CAR APP2anacondalibsite-packagescv2__init__py line 181

原文地址: http://www.cveoy.top/t/topic/bHZ5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录