Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Bad argument in function cvReleaseData, how to fix the error?

I tried creating samples for my 100 positive images but run into this error:

ERROR

At first I assumed that I had not extracted the same number of samples as I was specifying in the command using Objectmarker.exe but even on rectifying that,I still ran into this error.

Currently I am using 100 positive images , but I got the error when I used 70 images as well.

What exactly is the Bad Argument here and how do I fix it?

TEXT VERSION

PS E:\FYP\dasar_haartrain> .\createsamples.exe -info positive/info.txt -vec vector/vector.vec -num 100000 -w 55 -h 35

Info file name: positive/info.txt

Img file name: (NULL)

Vec file name: vector/vector.vec

BG file name: (NULL)

Num: 100000

BG color: 0

BG threshold: 80

Invert: FALSE

Max intensity deviation: 40

Max x angle: 1.1

Max y angle: 1.1

Max z angle: 0.5

Show samples: FALSE

Width: 55

Height: 35

Create training samples from images collection...