Revert back to actual source frame resolution
Change-Id: Ia4e3751207a48f641ef1fd75d4fcd3b48382d85d
diff --git a/edgetpuvision/gstreamer.py b/edgetpuvision/gstreamer.py
index 8c651e1..663e49a 100644
--- a/edgetpuvision/gstreamer.py
+++ b/edgetpuvision/gstreamer.py
@@ -138,12 +138,7 @@
def make_layout(inference_size, render_size):
inference_size = Size(*inference_size)
- # render_size capped to 1280x720
- input_size = Size(*render_size)
- width, height = input_size
- render_size = input_size * 720 / height
- if (render_size.width > 1280):
- render_size = input_size * 1280 / width
+ render_size = Size(*render_size)
size = min_outer_size(inference_size, render_size)
window = center_inside(render_size, size)
return Layout(size=size, window=window,