Skip to content

Assertion from car_sliding_windows in carChapter7 #6

@dlewin

Description

@dlewin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions