hub run humanseg_mobile --input_path "/PATH/TO/IMAGE"
hub run humanseg_mobile --input_path "/PATH/TO/IMAGE"
```
```
- If you want to call the Hub module through the command line, please refer to: [PaddleHub Command Line Instruction](../../../../docs/docs_en/tutorial/cmd_usage.rst)
- If you want to call the Hub module through the command line, please refer to: [PaddleHub Command Line Instruction](../../../../docs/docs_en/tutorial/cmd_usage.rst)
- ### 2、Prediction Code Example
- ### 2、Prediction Code Example
- Image segmentation and video segmentation example:
- Image segmentation and video segmentation example:
```python
```python
...
@@ -122,9 +122,9 @@
...
@@ -122,9 +122,9 @@
- **Return**
- **Return**
* res (list\[dict\]): The list of recognition results, where each element is dict and each field is:
* res (list\[dict\]): The list of recognition results, where each element is dict and each field is:
* save\_path (str, optional): Save path of the result.
* save\_path (str, optional): Save path of the result.
* data (numpy.ndarray): The result of portrait segmentation.
* data (numpy.ndarray): The result of portrait segmentation.
```python
```python
def video_stream_segment(self,
def video_stream_segment(self,
...
@@ -231,6 +231,8 @@
...
@@ -231,6 +231,8 @@
cv2.imwrite("segment_human_mobile.png", rgba)
cv2.imwrite("segment_human_mobile.png", rgba)
```
```
- ### Gradio APP support
Starting with PaddleHub 2.3.1, the Gradio APP for humanseg_mobile is supported to be accessed in the browser using the link http://127.0.0.1:8866/gradio/humanseg_mobile.
## V. Release Note
## V. Release Note
...
@@ -239,7 +241,7 @@
...
@@ -239,7 +241,7 @@
First release
First release
- 1.1.0
- 1.1.0
Added video portrait split interface
Added video portrait split interface
Added video stream portrait segmentation interface
Added video stream portrait segmentation interface