Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

createsamples cannot read positive image

Hi all, When I try to make a vector file out of my 1400 positive images, it says it cannot read my first image. I have tracked the issue to my info file. The file directory for each image contains a space that I cannot remove. This makes it use an uncomplete and wrong path for the image, thus it cannot be found. How can I bypass this problem? I use windows 10 and OpenCV 3.4.1.

It also states: 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)

My issue is similar to this post: https://answers.opencv.org/question/58440/cascade-classifier-cannot-open-file/

How can I proceed? Thanks in advance!

createsamples cannot read positive image

Hi all, When I try to make a vector file out of my 1400 positive images, it says it cannot read my first image. I have tracked the issue to my info file. The file directory for each image contains a space that I cannot remove. This makes it use an uncomplete and wrong path for the image, thus it cannot be found. How can I bypass this problem? I use windows 10 and OpenCV 3.4.1.

It also states: 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)

My issue is similar to this post: https://answers.opencv.org/question/58440/cascade-classifier-cannot-open-file/

How can I proceed? Thanks in advance!

Edit: The problem is, the space is part of my username. Therefore the path is something like: /Users/User Name/... There is a space in my username. I tried changing my username but the folder name doesn't change.