Skip to content

Commit ba02d46

Browse files
Singh Vijendra (BEG/EOR2)Singh Vijendra (BEG/EOR2)
authored andcommitted
image resize fix
1 parent 1a3873a commit ba02d46

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cam_streaming/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def main(config):
7171
if config["client"]["resize_image"]:
7272
frame = cv2.resize(
7373
frame,
74-
(config["client"]["height"], config["client"]["width"]),
74+
(
75+
config["client"]["resized_width"],
76+
config["client"]["resized_height"],
77+
),
7578
)
7679
if config["client"]["grayscale"]:
7780
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

cam_streaming/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ server:
1818
cam_buffer_len: 1000
1919
client:
2020
resize_image: False
21-
resized_width: 512
21+
resized_width: 1024
2222
resized_height: 512
2323
grayscale: False

0 commit comments

Comments
 (0)