andrewssobral / simple_vehicle_counting

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

error null pointer #25

Open mv2050arshad opened 7 years ago

mv2050arshad commented 7 years ago

i use opencv 3.3.0 and 64bit windows. after run your sample c++ in QT , error happened:


PBAS()
PixelBasedAdaptiveSegmenter()
BlobTracking()
VehicleCouting()
Press 'q' to quit...
OpenCV Error: Null pointer (Invalid pointer to file storage) in cvWriteInt, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\persistence.cpp, line 4625
andrewssobral commented 7 years ago

Hi @ardashir66 , In fact, this error:

OpenCV Error: Null pointer (Invalid pointer to file storage) in cvWriteInt, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\persistence.cpp, line 4625

you need to create a config folder where your executable is.

mv2050arshad commented 7 years ago

yes you right, thank you.