@@ -111,7 +111,7 @@ struct CV_EXPORTS ERStat
111
111
ERStat* min_probability_ancestor;
112
112
};
113
113
114
- /* * @brief Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm [ Neumann12] . :
114
+ /* * @brief Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm @cite Neumann12. :
115
115
116
116
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
117
117
*/
@@ -163,31 +163,8 @@ class CV_EXPORTS_W ERFilter : public Algorithm
163
163
};
164
164
165
165
166
- /* !
167
- Create an Extremal Region Filter for the 1st stage classifier of N&M algorithm
168
- Neumann L., Matas J.: Real-Time Scene Text Localization and Recognition, CVPR 2012
169
-
170
- The component tree of the image is extracted by a threshold increased step by step
171
- from 0 to 255, incrementally computable descriptors (aspect_ratio, compactness,
172
- number of holes, and number of horizontal crossings) are computed for each ER
173
- and used as features for a classifier which estimates the class-conditional
174
- probability P(er|character). The value of P(er|character) is tracked using the inclusion
175
- relation of ER across all thresholds and only the ERs which correspond to local maximum
176
- of the probability P(er|character) are selected (if the local maximum of the
177
- probability is above a global limit pmin and the difference between local maximum and
178
- local minimum is greater than minProbabilityDiff).
179
-
180
- @param cb – Callback with the classifier. Default classifier can be implicitly load with function
181
- loadClassifierNM1(), e.g. from file in samples/cpp/trained_classifierNM1.xml
182
- @param thresholdDelta – Threshold step in subsequent thresholds when extracting the component tree
183
- @param minArea – The minimum area (% of image size) allowed for retreived ER’s
184
- @param maxArea – The maximum area (% of image size) allowed for retreived ER’s
185
- @param minProbability – The minimum probability P(er|character) allowed for retreived ER’s
186
- @param nonMaxSuppression – Whenever non-maximum suppression is done over the branch probabilities
187
- @param minProbabilityDiff – The minimum probability difference between local maxima and local minima ERs
188
- */
189
-
190
- /* * @brief Create an Extremal Region Filter for the 1st stage classifier of N&M algorithm [Neumann12].
166
+
167
+ /* * @brief Create an Extremal Region Filter for the 1st stage classifier of N&M algorithm @cite Neumann12.
191
168
192
169
@param cb : Callback with the classifier. Default classifier can be implicitly load with function
193
170
loadClassifierNM1, e.g. from file in samples/cpp/trained_classifierNM1.xml
@@ -213,7 +190,7 @@ CV_EXPORTS_W Ptr<ERFilter> createERFilterNM1(const Ptr<ERFilter::Callback>& cb,
213
190
bool nonMaxSuppression = true,
214
191
float minProbabilityDiff = (float )0.1);
215
192
216
- /* * @brief Create an Extremal Region Filter for the 2nd stage classifier of N&M algorithm [ Neumann12] .
193
+ /* * @brief Create an Extremal Region Filter for the 2nd stage classifier of N&M algorithm @cite Neumann12.
217
194
218
195
@param cb : Callback with the classifier. Default classifier can be implicitly load with function
219
196
loadClassifierNM2, e.g. from file in samples/cpp/trained_classifierNM2.xml
@@ -268,7 +245,7 @@ enum { ERFILTER_NM_RGBLGrad,
268
245
ERFILTER_NM_IHSGrad
269
246
};
270
247
271
- /* * @brief Compute the different channels to be processed independently in the N&M algorithm [ Neumann12] .
248
+ /* * @brief Compute the different channels to be processed independently in the N&M algorithm @cite Neumann12.
272
249
273
250
@param _src Source image. Must be RGB CV_8UC3.
274
251
@@ -289,7 +266,7 @@ CV_EXPORTS_W void computeNMChannels(InputArray _src, CV_OUT OutputArrayOfArrays
289
266
// ! text::erGrouping operation modes
290
267
enum erGrouping_Modes {
291
268
292
- /* * Exhaustive Search algorithm proposed in [ Neumann11] for grouping horizontally aligned text.
269
+ /* * Exhaustive Search algorithm proposed in @cite Neumann11 for grouping horizontally aligned text.
293
270
The algorithm models a verification function for all the possible ER sequences. The
294
271
verification fuction for ER pairs consists in a set of threshold-based pairwise rules which
295
272
compare measurements of two regions (height ratio, centroid angle, and region distance). The
@@ -300,7 +277,7 @@ enum erGrouping_Modes {
300
277
consistent.
301
278
*/
302
279
ERGROUPING_ORIENTATION_HORIZ,
303
- /* * Text grouping method proposed in [ Gomez13][ Gomez14] for grouping arbitrary oriented text. Regions
280
+ /* * Text grouping method proposed in @cite Gomez13 @cite Gomez14 for grouping arbitrary oriented text. Regions
304
281
are agglomerated by Single Linkage Clustering in a weighted feature space that combines proximity
305
282
(x,y coordinates) and similarity measures (color, size, gradient magnitude, stroke width, etc.).
306
283
SLC provides a dendrogram where each node represents a text group hypothesis. Then the algorithm
@@ -375,8 +352,8 @@ CV_EXPORTS_W void detectRegions(InputArray image, const Ptr<ERFilter>& er_filter
375
352
/* * @brief Extracts text regions from image.
376
353
377
354
@param image Source image where text blocks needs to be extracted from. Should be CV_8UC3 (color).
378
- @param er_filter1 Extremal Region Filter for the 1st stage classifier of N&M algorithm [ Neumann12]
379
- @param er_filter2 Extremal Region Filter for the 2nd stage classifier of N&M algorithm [ Neumann12]
355
+ @param er_filter1 Extremal Region Filter for the 1st stage classifier of N&M algorithm @cite Neumann12
356
+ @param er_filter2 Extremal Region Filter for the 2nd stage classifier of N&M algorithm @cite Neumann12
380
357
@param groups_rects Output list of rectangle blocks with text
381
358
@param method Grouping method (see text::erGrouping_Modes). Can be one of ERGROUPING_ORIENTATION_HORIZ, ERGROUPING_ORIENTATION_ANY.
382
359
@param filename The XML or YAML file with the classifier model (e.g. samples/trained_classifier_erGrouping.xml). Only to use when grouping method is ERGROUPING_ORIENTATION_ANY.
0 commit comments