Ask Your Question

Fares's profile - activity

2015-01-06 15:39:43 -0500 received badge  Student (source)
2014-04-30 02:09:49 -0500 asked a question problem with light reflection

When I convert my image to a binary image, this part of light reflection becomes white, and I need to get the exact contour of the character . How I could solve this...

PS: I use opencv c++

thanks

2014-04-04 05:11:21 -0500 asked a question CvANN_MLP::create error (-211)

Hi,

I use neural network with opencv c++. i have an error : " 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:

int buffer[] = {trainData.cols, nlayers, numCharacters}; cv::Mat const layers(1, 3, CV_32SC1, buffer); ann.create(layers, CvANN_MLP::SIGMOID_SYM, 1, 1);