* 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,
...
...
@@ -229,6 +229,8 @@
cv2.imwrite("segment_human_server.png", rgba)
```
- ### Gradio APP support
Starting with PaddleHub 2.3.1, the Gradio APP for humanseg_server is supported to be accessed in the browser using the link http://127.0.0.1:8866/gradio/humanseg_server.
## V. Release Note
...
...
@@ -237,20 +239,23 @@
First release
- 1.1.0
Added video portrait segmentation interface
Added video stream portrait segmentation interface