Skip to content

Commit

Permalink
optimize http stream
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed May 21, 2024
1 parent e5021cb commit b051333
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/vision/streaming/http_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@
while not app.need_exit():
t = time.time_ms()
img = cam.read()
jpg = img.to_jpeg()
stream.write(jpg)
stream.write(img)
print(f"time: {time.time_ms() - t}ms, fps: {1000 / (time.time_ms() - t)}")

0 comments on commit b051333

Please sign in to comment.