problems with command opencv_createsamples.exe

asked 2018-01-06 04:12:02 -0600

BuzzSid gravatar image

updated 2018-01-06 05:28:59 -0600

Hi everyone,

I have a set of positive images, a file .txt with the description of the absolute paths of the images type( POSITIVE_RESIZED\F10_3.bmp 1 116 432 452 302 POSITIVE_RESIZED\F2_2.bmp 1 132 464 480 234 POSITIVE_RESIZED\F6_4.bmp 1 268 582 344 116 POSITIVE_RESIZED\G001.bmp 1 46 386 568 254 POSITIVE_RESIZED\G015.bmp 1 30 476 526 160 POSITIVE_RESIZED\G016.bmp 1 36 420 486 212 POSITIVE_RESIZED\G017.bmp 1 24 360 498 272 POSITIVE_RESIZED\G030.bmp 1 24 360 498 272 POSITIVE_RESIZED\G031.bmp 1 24 360 570 272) and I launch the command
opencv_createsamples.exe -info inf\infoPositive.txt -vec vecto.vec -num 116 -w 120 -h 48 by command-prompt.

The system says me this message:

OpenCV_error: Unknow error code -9 <> in cvSetImageROI, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\array.cpp, line 3022

What does it means? How can I solve the problem?

edit retag flag offensive close merge delete

Comments

Please don't insert a screen copy in your post. Insert error message as text.

LBerger gravatar imageLBerger ( 2018-01-06 05:17:48 -0600 )edit
1

ok, i have modified now

BuzzSid gravatar imageBuzzSid ( 2018-01-06 05:29:23 -0600 )edit

what is the exact path of file F10_3.bmp

sturkmen gravatar imagesturkmen ( 2018-01-06 05:51:30 -0600 )edit

C:\Users\Domenico\Informatica\Sistemi cooperativi\Progetto\Primo Classificatore\CLASSIFICATORE\CLASSIFICATORE\POSITIVE_RESIZED\F10_3.bmp

BuzzSid gravatar imageBuzzSid ( 2018-01-06 05:58:02 -0600 )edit

put the directory POSITIVE_RESIZED in inf

sturkmen gravatar imagesturkmen ( 2018-01-06 06:20:10 -0600 )edit

i resolved it. Thank you very much

BuzzSid gravatar imageBuzzSid ( 2018-01-06 09:42:31 -0600 )edit

did my comment helped? can we delete this post ?

sturkmen gravatar imagesturkmen ( 2018-01-06 09:50:39 -0600 )edit

Yes, of course

BuzzSid gravatar imageBuzzSid ( 2018-01-06 09:54:32 -0600 )edit

what kind of object do you want to detect?

sturkmen gravatar imagesturkmen ( 2018-01-06 09:55:40 -0600 )edit

conjunctivitis eye

BuzzSid gravatar imageBuzzSid ( 2018-01-06 09:57:14 -0600 )edit