|
|
@@ -1180,7 +1180,7 @@ The following steps were executed:
|
|
|
* Process the prediction results
|
|
|
|
|
|
|
|
|
-!!! example "OCR-related Python"
|
|
|
+!!! example "OCR-related Python Usage"
|
|
|
|
|
|
=== "OCR"
|
|
|
|
|
|
@@ -1342,7 +1342,7 @@ The following steps were executed:
|
|
|
res.save_to_json(save_path="./output/")
|
|
|
```
|
|
|
|
|
|
-!!! example "Computer Vision Pipeline Command-Line Usage"
|
|
|
+!!! example "Computer Vision Pipeline Python Usage"
|
|
|
|
|
|
=== "General Image Classification"
|
|
|
|
|
|
@@ -1526,7 +1526,7 @@ The following steps were executed:
|
|
|
res.save_to_json(save_path="./output/")
|
|
|
```
|
|
|
|
|
|
-!!! example "Command Line Usage for Time Series pipelines"
|
|
|
+!!! example "Time Series pipelines Python Usage"
|
|
|
|
|
|
=== "Time Series Forecasting"
|
|
|
|
|
|
@@ -1568,7 +1568,7 @@ The following steps were executed:
|
|
|
res.save_to_json(save_path="./output/") ## Save results in JSON format
|
|
|
```
|
|
|
|
|
|
-!!! example "Command Line Usage for Speech pipelines"
|
|
|
+!!! example "Speech pipelines Python Usage"
|
|
|
|
|
|
=== "Multilingual Speech Recognition"
|
|
|
|
|
|
@@ -1583,7 +1583,7 @@ The following steps were executed:
|
|
|
res.save_to_json(save_path="./output/")
|
|
|
```
|
|
|
|
|
|
-!!! example "Command Line Usage for Video pipelines"
|
|
|
+!!! example "Video pipelines Python Usage"
|
|
|
|
|
|
=== "General Video Classification"
|
|
|
|
|
|
@@ -1612,6 +1612,25 @@ The following steps were executed:
|
|
|
res.save_to_json(save_path="./output/") ## Save the structured prediction output
|
|
|
```
|
|
|
|
|
|
+!!! example "Multimodal Vision-Language Model pipelines Python Usage"
|
|
|
+
|
|
|
+ === "doc_understanding"
|
|
|
+
|
|
|
+ ```python
|
|
|
+ from paddlex import create_pipeline
|
|
|
+ pipeline = create_pipeline(pipeline="doc_understanding")
|
|
|
+ output = pipeline.predict(
|
|
|
+ {
|
|
|
+ "image": "medal_table.png",
|
|
|
+ "query": "识别这份表格的内容"
|
|
|
+ }
|
|
|
+ )
|
|
|
+ for res in output:
|
|
|
+ res.print() ## Print the structured prediction output
|
|
|
+ res.save_to_json("./output/") ## Save the structured prediction output
|
|
|
+ ```
|
|
|
+
|
|
|
+
|
|
|
## 🚀 Detailed Tutorials
|
|
|
|
|
|
<div class="grid cards" markdown>
|