lloydmeta / scala-akka-cv-part2

Scala, Akka, Streams, JavaCV, OpenCV O MY! Part 2
Other
7 stars 6 forks source link

On Windows, use default Haar cascade filter fails but load custom works fine #2

Open PhilAndrew opened 8 years ago

PhilAndrew commented 8 years ago

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]
lloydmeta commented 8 years ago

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: