安装包 pip install opencv_contrib_python 如果不行参考:https://answers.opencv.org/question/216137/attributeerror-module-cv2cv2-has-no-attribute-saliencysolved/