On my Windows machine here, if I click use default Haar cascade filter it fails with the following message. However if I click use custom and select the filter which is in src/main/resources/ it works fine. I have not tried to investigate the cause of the problem yet.
c:\home\projects\git\scala-akka-cv-part2>activator run
[info] Loading project definition from C:\home\projects\git\scala-akka-cv-part2\
project
[info] Set current project to scala-cv-part2 (in build file:/C:/home/projects/gi
t/scala-akka-cv-part2/)
[info] Running com.beachape.WebcamFaceDetector
[error] OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::dete
ctMultiScale, file src\cascadedetect.cpp, line 1634
[info]
I think maybe the way I'm trying to get that resource is not cross-platform compatible.
That part of the code is here, but it isn't immediately obvious what part of that would break on Windows, since I'm not hardcoding any path separators :confounded:
On my Windows machine here, if I click use default Haar cascade filter it fails with the following message. However if I click use custom and select the filter which is in src/main/resources/ it works fine. I have not tried to investigate the cause of the problem yet.