Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion camset/cam_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def show_frame(self):
# TODO: resizing video and window this way is very cpu intensive for large resolutions, should be improved or removed
frame = cv2.resize(frame, dim, interpolation = cv2.INTER_CUBIC)
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # needed for proper color representation in gtk
pixbuf = GdkPixbuf.Pixbuf.new_from_data(frame.tostring(),
pixbuf = GdkPixbuf.Pixbuf.new_from_data(frame.tobytes(),
GdkPixbuf.Colorspace.RGB,
False,
8,
Expand Down