Website content quality is poor, distribution efficiency is too low how to do?Huawei engineers offer 5 unique skills>>>
This is because of a permission issue and was rejected
Add — user on the command line
For example:
pip install opencv-contrib-python –user
opencv-contrib-python:
The face module is not actually a part of OpenCV library. More specifically, face is part of the opencv contrib library. From the readme file:
This repository [opencv contrib] is used to develop so-called “extra” modules and provide functions. New modules usually don’t have a stable API, and they haven’t been well tested. Therefore, they should not be released as part of the official opencv distribution because the library maintains binary compatibility and attempts to provide good performance and stability
Opencv contrib needs to be installed separately. As @ James points out (in a now deleted comment), the current easy way to get a python version is:
pip install opencv-contrib-python –user
After running the PIP call above, your code should work properly
Similar Posts:
- Opencv learning notes 05 face detection and recognition attributeerror: module ‘CV2’ has no attribute ‘face’
- AttributeError: module ‘cv2’ has no attribute ‘SIFT’ [How to Solve]
- [Solved] Opencv3.4.0 Install error: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
- [record a problem] Linux + opencv + cuvid decodes 1080p video. When using CUDA kernel function, it will crash
- [Solved] ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
- [Solved] Lego-loam Error: opencv fatal error: cv.h: No such file or directory
- How to Solve Opencv error: assertion failed + error: (- 215)
- [Solved] PIP install CV2 error: ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’
- [Solved] DjangoORM Run python manage.py makemigrations Error: no changes detected