diff --git a/samples/bypass_model/README.md b/samples/bypass_model/README.md index 5616fb718..ce5e301a6 100644 --- a/samples/bypass_model/README.md +++ b/samples/bypass_model/README.md @@ -56,7 +56,7 @@ A result video can be viewed: - in a player using `rtsp://127.0.0.1:554/stream/video-with-preprocessed-frame The video consists of original video stream and the pre-processed video stream side by side from left to right. The white background highlights the original video frame because its size is different from the size of the pre-processed frame. -The pre-processed frame has a black background at the bottom, which is the result of the `maintain_aspect_ratio` flag. +The pre-processed frame has a black background to match the aspect ratio of the original frame, i.e. `maintain_aspect_ratio` flag is set to `true`. The frame is centered on the background, as the `symmetric_padding` flag is set to `true`. Example output frame:  diff --git a/samples/bypass_model/assets/result.jpg b/samples/bypass_model/assets/result.jpg index 7e117674d..3c015d200 100644 --- a/samples/bypass_model/assets/result.jpg +++ b/samples/bypass_model/assets/result.jpg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c99bcc5afd440a352ffdc6de22fa48a2b8fdf1b17817da04a8def232e56405bf -size 172247 +oid sha256:bff090fd42174a7f99940f56151a8f25c2601ae69b59947f95c124590860c5d8 +size 175448 diff --git a/samples/bypass_model/demo.yml b/samples/bypass_model/demo.yml index f0d47553a..54687fefe 100644 --- a/samples/bypass_model/demo.yml +++ b/samples/bypass_model/demo.yml @@ -43,6 +43,7 @@ pipeline: shape: ${parameters.result_shape} # preprocessing settings maintain_aspect_ratio: true + symmetric_padding: true # configuration of model output output: