krzysieksr / KS_Traffic_Analyzer

The application for counting, classifying and measure the speed of vehicles based on a video.
51 stars 39 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 6 years ago

I get the same issue.

chrishenrybush commented 6 years ago

any chance u could fix ?

chrishenrybush commented 6 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 6 years ago

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