Merge pull request #1695 from mshabunin:fix-text

pull/1693/head
Alexander Alekhin 7 years ago
commit 17e939fa98
  1. 3
      modules/text/src/erfilter.cpp

@ -2687,7 +2687,8 @@ double MaxMeaningfulClustering::probability(vector<int> &cluster)
//for (int kk=0; kk<angles.size(); kk++) //for (int kk=0; kk<angles.size(); kk++)
// cout << angles[kk] << " "; // cout << angles[kk] << " ";
//cout << endl; //cout << endl;
if (angles.empty() || edge_distances.empty())
return 0;
meanStdDev( angles, mean, std ); meanStdDev( angles, mean, std );
sample.push_back((float)std[0]); sample.push_back((float)std[0]);
sample.push_back((float)mean[0]); sample.push_back((float)mean[0]);

Loading…
Cancel
Save