添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

opencv_createsamples.exe doesn't work anymore in 3.4.0 #10551

Closed
@cdo29

Description

System information (version)
  • OpenCV => 3.4.0
  • Operating System / Platform => W10
  • Compiler => no Compiler, use dll from OpenCV installation
  • Detailed description

    Topic: creation of classifier.
    I want to create positive sample file from 1 positive image and several negative images using opencv_createsamples.exe utility.

    opencv_createsamples.exe was working in 3.3.0 but after installing 3.4.0 it doesn't work anymore

    line which fails:
    opencv_createsamples.exe -img C:\Projet\Images\Positives\passage1.png -bg C:\Projet\Images\Negatives\negatives.txt -info C:\Projet\Images\Samples\sampleOut.txt -num 39 -bgcolor 100 -bgthresh 0 -w 48 -h 48 -maxxangle 0.0 -maxyangle 0.0 -maxzangle 0.0

    negative.txt contains the name of different negative images

    if the program is launched directly from the windows console, it returns the following message:

    OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in cv::Mat::Mat, file C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp, line 538

    Steps to reproduce

    general case is as described in link below:
    https://docs.opencv.org/2.4.13.4/doc/user_guide/ug_traincascade.html#creating-test-set-as-a-collection-of-jpg-images

    Our dataset is in attachment
    error_createsamples.zip