Skip to content

Commit

Permalink
Changed to reflect updates in examples/stream.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrudes committed Aug 18, 2023
1 parent 51972a9 commit 3414e58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ while True:

try:
with camera.get_stream() as stream:
title = "LIVE: " + camera.roadway if camera.roadway else "LIVE"

for i in range(100):
frame = next(stream)

cv2.imshow("LIVE: " + camera.roadway, frame)
cv2.imshow(title, frame)
cv2.waitKey(1)

cv2.destroyAllWindows()
Expand Down

0 comments on commit 3414e58

Please sign in to comment.