Createsamples/traincascade/haartaraining stops when creating OpenCV image detection classifiers

Asked 2 years ago, Updated 2 years ago, 84 views

I would like to use OpenCV 2.4.10 to create an XML file by creating positive and negative samples at a command prompt. When I make a positive sample, I also create a vec file. The capacity is 0, but is it created successfully?

I'm thinking of making 7,000 positive samples from one sheet.We have prepared 300 negative samples.

What should I do when I run createsamples when I make a positive sample and it says it has stopped working?The vec file is ready just in case.

traincascade and haartaraining when learning also stop working

OpenCV Error: Unspecified error (Unable to read negative images) incvCreateTree
CascadeClassifier, file........\opencv\apps\haartraining\cvhaartraining.cpp,
line2434

What does this mean?

visual-studio opencv

2022-09-30 18:25

1 Answers

I wrote the whole story here, but it was determined that it was not a duplicate question, so I will answer it.

The haartraining utility fails with an error

Stopping operation doesn't seem normal.

\opencv\build\x64\vc10\bin\

in the folder
opencv_createsamples.exe
opencv_traincascade.exe
opencv_haartraining.exe

Are you running ?
Is there a possibility that DLL files do not exist in the same folder?


2022-09-30 18:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.