Skip to content

Commit b50be4b

Browse files
committed
refactored initialization, added timeouts, changed parameters structure format
1 parent f493d0d commit b50be4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_decode.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
end = time.time()
3333
print(p.codec, p.pixel_format, p.queue_len, "all_time={}".format(int(end * 1000 - p.frame_received_ts)),
3434
"python_time={}".format(int(end * 1000 - p.frame_processed_ts)))
35+
# convert RGB24 to BGR
36+
res = cv2.cvtColor(res, cv2.COLOR_RGB2BGR)
3537
cv2.imshow('Image', res)
3638
if cv2.waitKey(1) & 0xFF == ord('q'):
3739
s.stop()

0 commit comments

Comments
 (0)