andrewssobral / simple_vehicle_counting

Vehicle Detection, Tracking and Counting
496 stars 246 forks source link

When use release mode,the program crash #24

Open winer632 opened 7 years ago

winer632 commented 7 years ago

VIDEOINPUT LIBRARY - 0.1995 - TFW07

Using OpenCV 3.2.0 PBAS() PixelBasedAdaptiveSegmenter() BlobTracking() VehicleCouting() Press 'q' to quit... OpenCV Error: Assertion failed (dims <= 2 && step[0] > 0) in cv::Mat::locateROI, file D:\opencv\sources\modules\core\src\matrix.cpp, line 949

andrewssobral commented 7 years ago

Hi @winer632 I think there is a problem when you are loading the images/video (wrong path for ex). Do you tried with .avi , .mpg, etc ?