mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
changed default parameters in CreateERFiltersNM{1,2} functions. They are not needed now in the sample example.
This commit is contained in:
parent
6ef1d456dd
commit
cd33ca0009
@ -172,8 +172,8 @@ public:
|
||||
\param minProbability The minimum probability difference between local maxima and local minima ERs
|
||||
*/
|
||||
CV_EXPORTS Ptr<ERFilter> createERFilterNM1(const Ptr<ERFilter::Callback>& cb = Ptr<ERFilter::Callback>(),
|
||||
int thresholdDelta = 1, float minArea = 0.000025,
|
||||
float maxArea = 0.13, float minProbability = 0.2,
|
||||
int thresholdDelta = 1, float minArea = 0.00025,
|
||||
float maxArea = 0.13, float minProbability = 0.4,
|
||||
bool nonMaxSuppression = true,
|
||||
float minProbabilityDiff = 0.1);
|
||||
|
||||
@ -191,7 +191,7 @@ CV_EXPORTS Ptr<ERFilter> createERFilterNM1(const Ptr<ERFilter::Callback>& cb = P
|
||||
\param minProbability The minimum probability P(er|character) allowed for retreived ER's
|
||||
*/
|
||||
CV_EXPORTS Ptr<ERFilter> createERFilterNM2(const Ptr<ERFilter::Callback>& cb = Ptr<ERFilter::Callback>(),
|
||||
float minProbability = 0.5);
|
||||
float minProbability = 0.3);
|
||||
|
||||
}
|
||||
#endif // _OPENCV_ERFILTER_HPP_
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, const char * argv[])
|
||||
double t = (double)getTickCount();
|
||||
|
||||
// Build ER tree and filter with the 1st stage default classifier
|
||||
Ptr<ERFilter> er_filter1 = createERFilterNM1(NULL,1,0.00025,0.13,0.4,true,0.1);
|
||||
Ptr<ERFilter> er_filter1 = createERFilterNM1();
|
||||
|
||||
er_filter1->run(grey, regions);
|
||||
|
||||
@ -89,7 +89,7 @@ int main(int argc, const char * argv[])
|
||||
t = (double)getTickCount();
|
||||
|
||||
// Default second stage classifier
|
||||
Ptr<ERFilter> er_filter2 = createERFilterNM2(NULL,0.3);
|
||||
Ptr<ERFilter> er_filter2 = createERFilterNM2();
|
||||
er_filter2->run(grey, regions);
|
||||
|
||||
t = (double)getTickCount() - t;
|
||||
|
Loading…
Reference in New Issue
Block a user