Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion from car_sliding_windows in carChapter7 #6

Open
dlewin opened this issue Mar 18, 2017 · 0 comments
Open

Assertion from car_sliding_windows in carChapter7 #6

dlewin opened this issue Mar 18, 2017 · 0 comments

Comments

@dlewin
Copy link

dlewin commented Mar 18, 2017

Hi,

I've tried to run the car_sliding_windows directly from the last repo here.
The issue I currently have is : after checking the path and the existance of the images files, I've anyway the following error:

396
397
398
399
OpenCV Error: Assertion failed (The data should normally be NULL!) in allocate, file /home/david/OpenCV/opencv-3.1.0/modules/python/src2/cv2.cpp, line 163
Traceback (most recent call last):
File "car_sliding_windows.py", line 17, in
svm, extractor = car_detector()
File "/home/david/OpenCV/pycv/chapter7/car_detector/detector.py", line 43, in car_detector
extract_bow.setVocabulary(vocabulary)
cv2.error: /home/david/OpenCV/opencv-3.1.0/modules/python/src2/cv2.cpp:163: error: (-215) The data should normally be NULL! in function allocate

This have been done under these conditions :

  • changed all path strings: "/home/d3athmast3r/(....)" to reflect mine. This affects : detector.py, car_sliding_windows.py, bow.py, detect_hog_svm.py
  • I'm running python 2.7.12 under virtualenwrapper
  • under the same Virtualenv I've been compiled OpenCV 3.1.0 with the contribs of the same version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant