我想使用cv::saliency::MotionSaliencyBinWangApr2014模块。我的代码是这样的:
import cv2
salCV = cv2.saliency.MotionSaliencyBinWangApr2014_create()
frame = cv2.imread(imgfile)
grayFrame = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)
retval, saliencyMap = salCV.computeSaliency(grayFrame)
但是我在pycharm中遇到这样的错误:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
在终端中像这样:
Segmentation fault (core dumped)
怎么了?我应该如何使用模块 cv::saliency::MotionSaliency?谢谢!