tyiannak / multimodal_movie_analysis

A Python Library for Multimodal Analysis of Movies and Content-based Movie Recommendation
25 stars 8 forks source link

Fix: error: (-215:Assertion failed) in function 'detectMultiScale' #42

Closed theopsall closed 3 years ago

theopsall commented 3 years ago

The change on haarcascade in utils.py, fix the error: " (-215:Assertion failed) in function 'detectMultiScale'". When using the multimodal_movie_analysis as a package in an external script, instead of trying to figure out where the .xml files are and hard coding the values, cv2 provides the path where the haarcascade XML files are stored under the cv2.data.haarcascades variable.