Ask Your Question
0

opencv_traincascade64 error

asked 2014-06-12 08:36:46 -0600

Hello!

I am getting the following error when trying to execute the command "opencv_traincascade64 -data RESULTADOS_ENTRENAMIENTO -vec resultadoFinal.vec -bg backgrounds.txt -numStages 4 -minHitRate 0.99 -maxFalseAlarmRate 0.1 -numPos 10 -numNeg 10 -featureType HAAR -w 400 -h 400 -mode ALL -precalcBufSize 1024 -precalcIdxBufSize 1024

OpenCV Error: Bad argument (_cascadeDirName or _bgfileName or _vecFileName is NU LL) in CvCascadeClassifier::train, file C:\builds\2_4_PackSlave-win64-vc11-share d\opencv\apps\traincascade\cascadeclassifier.cpp, line 145

I also get a windows with this message (Windows Server 2012): Nombre del evento de problema: BEX64 Nombre de la aplicación: opencv_traincascade64.exe Versión de la aplicación: 0.0.0.0 Marca de tiempo de la aplicación: 52bf991e Nombre del módulo con errores: MSVCR110.dll Versión del módulo con errores: 11.0.51106.1 Marca de tiempo del módulo con errores: 5098826e Desplazamiento de excepción: 00000000000740c4 Código de excepción: c0000409 Datos de excepción: 0000000000000007 Versión del sistema operativo: 6.2.9200.2.0.0.272.7 Id. de configuración regional: 3082 Información adicional 1: 4331 Información adicional 2: 4331ffb84e5402a1a15a483d7222d158 Información adicional 3: 253c Información adicional 4: 253c7985da24ea05be56d536280d3172

Please I don't know what more I can do. Any help???? Thank you in advance!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-06-15 01:11:07 -0600

You must always provide the -numPos in trancascade less than the samples you have created.

Refer to this tutorial : Click here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-06-12 08:36:46 -0600

Seen: 628 times

Last updated: Jun 15 '14