Ask Your Question

Revision history [back]

Generate a xml file: error with createsamples (openCV)

Hello,

I'm trying to follow this tutorial: http://note.sonots.com/SciSoftware/haartraining.html#notefoot_1 since several days.

I'm working on Cygwin (version 2.774) and the version 2.4.5 of opencv.

The aim of my project is to generate a xml file for face detection as in the tutorial. I don't manage to create several training samples with one positive images and some negative images.

First of all, I have created two description files, one for negative images (negatives.dat) and second one for positive images (postives.dat).

And after, I have typed this command:

perl createtrainsamples.pl positives.dat negatives.dat Sample

With Sample the name of the folder where I want to store the different vec files. But nothing was created, so I have just tried to create 10 training samples from one positive images with the following command:

opencv_createsamples -img ./Positive/1a000.jpg -num 10 -bg negatives.dat -vec samples.vec

And I have this result:

Info file name: (NULL)

Img file name: ./Positive/1a000.jpg

Vec file name: samples.vec

BG file name: negatives.dat

Num: 10

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: 24

Height: 24

Create training samples from single image applying distortions...

Illegal instruction (core dumped)

I don't understand this error message but maybe someone have an explanation.

For information, I have 3001 negative images in Negative folder and 571 positive images (92*112 pixels) in Positive folder.

Charlotte.

PS : Sorry for my poor english, this is not my mothertongue.

Generate a xml file: error with createsamples (openCV)createsamples

Hello,

I'm trying to follow this tutorial: http://note.sonots.com/SciSoftware/haartraining.html#notefoot_1 since several days.

I'm working on Cygwin (version 2.774) and the version 2.4.5 of opencv.

The aim of my project is to generate a xml file for face detection as in the tutorial. I don't manage to create several training samples with one positive images and some negative images.

First of all, I have created two description files, one for negative images (negatives.dat) and second one for positive images (postives.dat).

And after, I have typed this command:

perl createtrainsamples.pl positives.dat negatives.dat Sample

With Sample the name of the folder where I want to store the different vec files. But nothing was created, so I have just tried to create 10 training samples from one positive images with the following command:

opencv_createsamples -img ./Positive/1a000.jpg -num 10 -bg negatives.dat -vec samples.vec

And I have this result:

Info file name: (NULL)

Img file name: ./Positive/1a000.jpg

Vec file name: samples.vec

BG file name: negatives.dat

Num: 10

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: 24

Height: 24

Create training samples from single image applying distortions...

Illegal instruction (core dumped)

I don't understand this error message but maybe someone have an explanation.

For information, I have 3001 negative images in Negative folder and 571 positive images (92*112 pixels) in Positive folder.

Charlotte.

PS : Sorry for my poor english, this is not my mothertongue.