Skip to content

Commit

Permalink
refactored initialization, added timeouts, changed parameters structu…
Browse files Browse the repository at this point in the history
…re format
  • Loading branch information
bwsw committed Sep 6, 2024
1 parent f493d0d commit b50be4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
end = time.time()
print(p.codec, p.pixel_format, p.queue_len, "all_time={}".format(int(end * 1000 - p.frame_received_ts)),
"python_time={}".format(int(end * 1000 - p.frame_processed_ts)))
# convert RGB24 to BGR
res = cv2.cvtColor(res, cv2.COLOR_RGB2BGR)
cv2.imshow('Image', res)
if cv2.waitKey(1) & 0xFF == ord('q'):
s.stop()
Expand Down

0 comments on commit b50be4b

Please sign in to comment.