hub run humanseg_lite --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)
...
...
@@ -122,9 +122,9 @@
- **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.
* data (numpy.ndarray): The result of portrait segmentation.
* data (numpy.ndarray): The result of portrait segmentation.
- ```python
def video_stream_segment(self,
...
...
@@ -230,6 +230,8 @@
cv2.imwrite("segment_human_lite.png", rgba)
```
- ### Gradio APP support
Starting with PaddleHub 2.3.1, the Gradio APP for humanseg_lite is supported to be accessed in the browser using the link http://127.0.0.1:8866/gradio/humanseg_lite.
## V. Release Note
...
...
@@ -238,7 +240,7 @@
First release
- 1.1.0
Added video portrait segmentation interface
Added video stream portrait segmentation interface