I want to use the cv::saliency::MotionSaliencyBinWangApr2014 module. My code is like this:
import cv2
salCV = cv2.saliency.MotionSaliencyBinWangApr2014_create()
frame = cv2.imread(imgfile)
grayFrame = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)
retval, saliencyMap = salCV.computeSaliency(grayFrame)
But I get error in pycharm like this:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
and like this in terminal:
Segmentation fault (core dumped)
What's wrong? How should I use the module cv::saliency::MotionSaliency? Thanks!