Kernel shut down when use FindFaces with LBP Cascades
I launch Mathematica from a bash shell under linux and get the following error message when the kernel crashes:
OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file /home/usr0/matthias/tmp/opencv/opencv-3.1.0/modules/core/src/persistence.cpp, line 4976
terminate called after throwing an instance of 'cv::Exception'
what(): /home/usr0/matthias/tmp/opencv/opencv-3.1.0/modules/core/src/persistence.cpp:4976: error: (-2) The node does not represent a user object (unknown type?) in function cvRead
I guess that you have triggered an error in OpenCV.
Fixed in Version 12.
animeface = FindFaces[#,
"Method" -> "LocalBinaryPatterns",
"TrainingFile" -> "lbpcascade_animeface.xml",
AcceptanceThreshold -> 0.1,
"ScaleDecreaseFraction" -> 1
]&;
HighlightImage[img, {"Boundary", Green, animeface[#]&}]
Remark:
Method
must be setImage`HumanDump`FindFacesHiddenOptions