i am getting an error message while i want to access the positive image currently i am in the opencv_workspace /directory of the root folder and created 2 directories named data and info and now i've written this part of code to create some positive samples now, based on the watch5050.jpg image. To do this, run the following via the terminal, while in the workspace opencv_createsamples -img watch5050.jpg -bg bg.txt -info info/info.lst -pngoutput info -maxxangle 0.5 -maxyangle 0.5 -maxzangle 0.5 -num 1950
the error which i am getting is:- Info file name: info/info.lst Img file name: watch5050.jpg Vec file name: (NULL) BG file name: bg.txt Num: 1950 BG color: 0 BG threshold: 80 Invert: FALSE Max intensity deviation: 40 Max x angle: 0.5 Max y angle: -0.5 Max z angle: 0.5 Show samples: FALSE Width: 24 Height: 24 Create test samples from single image applying distortions... *** Error in `opencv_createsamples': free(): corrupted unsorted chunks: 0x0000556672660490 *** Aborted (core dumped)
can anyone please help me to fix this error??????
You must be logged in to post. Please login or register an account.
Hi, if you download the `bg.txt` from the web link provided by @sentdex, and you using Linux, you should check the file by `vi` not `vim`, to see is there a `^M` at the end of each line, and remove it.
And then it works for me.
-roachsinai 6 years ago
Last edited 6 years ago
You must be logged in to post. Please login or register an account.