Bonjour,
Je utilise les reseaux de neurones avec opencv c++. j'ai ce erreur :
"
OpenCV Error: One of arguments' values is out of range (there should be at least one input and one output and every hidden layer must have more than 1 neuron) in CvANN_MLP::create, file /home/fares/OpenCV-2.4.2/modules/ml/src/ann_mlp.cpp, line 248
terminate called after throwing an instance of 'cv::Exception'
what(): /home/fares/OpenCV-2.4.2/modules/ml/src/ann_mlp.cpp:248: error: (-211) there should be at least one input and one output and every hidden layer must have more than 1 neuron in function CvANN_MLP::create
"
code:
Merci bien de me repondre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 int buffer[] = {trainData.cols, nlayers, numCharacters}; cv::Mat const layers(1, 3, CV_32SC1, buffer); ann.create(layers, CvANN_MLP::SIGMOID_SYM, 1, 1);
Partager