test visual saliency by opencv [ERROR:0@463.189] Can't open archive: '/ObjNessB2W8HSV.wS1.yml.gz'

Viewed 45

i am trying to test the area of visual saliency in a photo and i use the objectness method. However, python gives me several same error tips:

[ERROR:0@463.189] global D:\a\opencv-python\opencv-python\opencv\modules\core\src\persistence.cpp (514) cv::FileStorage::Impl::open Can't open archive: '/ObjNessB2W8HSV.wS1.yml.gz' mode=rb3

what does it mean? the code is following and the last code got problem:

image = cv2.imread(args["image"])

saliency = cv2.saliency.ObjectnessBING_create()
# saliency.setTrainingPath(args["model"])

(success, saliencyMap) = saliency.computeSaliency(image)
numDetections = saliencyMap.shape[0]
1 Answers
Related