krzysieksr / KS_Traffic_Analyzer

The application for counting, classifying and measure the speed of vehicles based on a video.
52 stars 38 forks source link

OpenCV Error: Assertion failed (ssize.area() > 0) in cv::resize #1

Open MohamedElhoseny opened 7 years ago

MohamedElhoseny commented 7 years ago

Application crashes at resize function at line 566 , i used your video in sample folder and still crashes

chrishenrybush commented 7 years ago

I get the same issue.

chrishenrybush commented 7 years ago

any chance u could fix ?

chrishenrybush commented 7 years ago

Mohamed. this worked for me... opencv needs ffmpeg for videos files. Add the loadLibrary for ffmpeg : System.loadLibrary("opencv_ffmpeg310_64"); System.loadLibrary(Core.NATIVE_LIBRARY_NAME); // used for tests. This library in classpath only Also include the correct directory in the dependencies ( its in the project )

Mudassir32 commented 7 years ago

Did you get a solution? I can help on this, feel free to contact me.