Skip to content

Commit 5a3b4b6

Browse files
update readme, result rendering
1 parent d0982c4 commit 5a3b4b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demos/segmentation_demo/python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Running the application with the empty list of options yields the usage message
130130
You can use the following command to do inference on CPU on images captured by a camera using a pre-trained network:
131131

132132
```sh
133-
python3 segmentation_demo.py -d CPU -i 0 -m <path_to_model>/semantic-segmentation-adas-0001.xml
133+
python3 segmentation_demo.py -d CPU -i 0 -at segmentation -m <path_to_model>/semantic-segmentation-adas-0001.xml
134134
```
135135

136136
>**NOTE**: If you provide a single image as an input, the demo processes and renders it quickly, then exits. To continuously visualize inference results on the screen, apply the `loop` option, which enforces processing a single image in a loop.
@@ -156,7 +156,7 @@ You can also run this demo with model served in [OpenVINO Model Server](https://
156156
Exemplary command:
157157

158158
```sh
159-
python3 segmentation_demo.py -i 0 -m localhost:9000/models/image_segmentation --adapter ovms
159+
python3 segmentation_demo.py -i 0 -at segmentation -m localhost:9000/models/image_segmentation --adapter ovms
160160
```
161161

162162
## Demo Output

demos/segmentation_demo/python/segmentation_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def apply_color_map(self, input):
8282
def render_segmentation(frame, masks, visualiser, resizer, only_masks=False):
8383
output = visualiser.apply_color_map(masks)
8484
if not only_masks:
85-
output = np.floor_divide(frame, 2) + np.floor_divide(output, 2)
85+
output = cv2.addWeighted(frame, 0.5, output, 0.5, 0)
8686
return resizer.resize(output)
8787

8888
def build_argparser():

0 commit comments

Comments
 (0)