stream_screen_height = int(height2 / 100 * 70)stream_screen_width = int(width / 100 * 80)
dim = (screen_width_output_video_width ,screen_height_output_video_height) frame = cv2.resize(frame, dim)
if start_cammera==True: window.FindElement('image').Update(data=cv2.imencode('.png', processimage)[1].tobytes() ) window.Refresh()
dim = (screen_width_output_video_width ,screen_height_output_video_height)processimage) = cv2.resize(frame, dim)window.FindElement('image').Update(data=cv2.imencode('.png', processimage)[1].tobytes() )
Alebo cela idea je zla od zaciatku a je potrebne zmenit velkost hned ako to zoberies s kamery?
print(window.FindElement('image').GetSize())print(dim)