You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any integer greater than <code>0</code>. If not set, the pipeline's initialized value for this parameter (initialized to <code>960</code>) will be used.
651
+
Any integer greater than <code>0</code>. If not set, the pipeline's initialized value for this parameter (initialized to <code>736</code>) will be used.
652
652
</td>
653
653
<td><code>int</code></td>
654
654
<td></td>
655
655
</tr>
656
656
<tr>
657
657
<td><code>text_det_limit_type</code></td>
658
658
<td>Type of side length limit for text detection.
659
-
Supports <code>min</code> and <code>max</code>. <code>min</code> means ensuring the shortest side of the image is not smaller than <code>det_limit_side_len</code>, and <code>max</code> means ensuring the longest side of the image is not larger than <code>limit_side_len</code>. If not set, the pipeline's initialized value for this parameter (initialized to <code>max</code>) will be used.
659
+
Supports <code>min</code> and <code>max</code>. <code>min</code> means ensuring the shortest side of the image is not smaller than <code>det_limit_side_len</code>, and <code>max</code> means ensuring the longest side of the image is not larger than <code>limit_side_len</code>. If not set, the pipeline's initialized value for this parameter (initialized to <code>min</code>) will be used.
660
660
</td>
661
661
<td><code>str</code></td>
662
662
<td></td>
@@ -1033,7 +1033,7 @@ In the above Python script, the following steps are performed:
1033
1033
<td>Maximum side length limit for text detection.
1034
1034
<ul>
1035
1035
<li><b>int</b>: Any integer greater than <code>0</code>;</li>
1036
-
<li><b>None</b>: If set to <code>None</code>, the pipeline's initialized value for this parameter (initialized to <code>960</code>) will be used.</li>
1036
+
<li><b>None</b>: If set to <code>None</code>, the pipeline's initialized value for this parameter (initialized to <code>736</code>) will be used.</li>
1037
1037
</ul>
1038
1038
</td>
1039
1039
<td><code>int</code></td>
@@ -1044,7 +1044,7 @@ In the above Python script, the following steps are performed:
1044
1044
<td>Type of side length limit for text detection.
1045
1045
<ul>
1046
1046
<li><b>str</b>: Supports <code>min</code> and <code>max</code>, where <code>min</code> means ensuring the shortest side of the image is not smaller than <code>det_limit_side_len</code>, and <code>max</code> means ensuring the longest side of the image is not larger than <code>limit_side_len</code>;</li>
1047
-
<li><b>None</b>: If set to <code>None</code>, the pipeline's initialized value for this parameter (initialized to <code>max</code>) will be used.</li>
1047
+
<li><b>None</b>: If set to <code>None</code>, the pipeline's initialized value for this parameter (initialized to <code>min</code>) will be used.</li>
1048
1048
</ul>
1049
1049
</td>
1050
1050
<td><code>str</code></td>
@@ -1763,8 +1763,8 @@ After obtaining the default pipeline configuration file, replace the paths of th
1763
1763
SubModules:
1764
1764
TextDetection:
1765
1765
box_thresh: 0.6
1766
-
limit_side_len: 960
1767
-
limit_type: max
1766
+
limit_side_len: 736
1767
+
limit_type: min
1768
1768
max_side_limit: 4000
1769
1769
model_dir: null # Replace with the path to your fine-tuned text detection model weights
1770
1770
model_name: PP-OCRv5_server_det # If the name of the fine-tuned model is different from the default model name, please modify it here as well
0 commit comments