PYNQ: PYTHON PRODUCTIVITY FOR ZYNQ

Streaming jpg images

I’m finding that it is not at all straight forward to stream jpg images into Jupyter running on my Ultra96.

cap = cv2.VideoCapture(“http://192.168.1.140:81/stream”) doesn’t work.

Has anyone had success?

Any suggestions?

Thanks

I am not sure what you want to do, but the same video example running on zcu104 should give you some ideas. https://github.com/Xilinx/PYNQ/blob/master/boards/ZCU104/notebooks/common/display_port_introduction.ipynb

Thanks for the useful reference.

What I would like to do is the equivalent to opening up a named pipe to the jpg file http://192.168.1.140 as in the bit of python

import cv2
cap = cv2.VideoCapture(“http://192.168.1.140:81/stream”)
while True:
print(‘About to start the Read command’)
ret, frame = cap.read()
if not ret:
break
<---------- the running program never gets here
print(‘About to show frame of Video.’)
cv2.imshow(“Capturing”,frame)
print(‘Running…’)
if cv2.waitKey(1) & 0xFF == ord(‘q’):
break
cap.release()
cv2.destroyAllWindows()

I guess I should stop complaining and break out Wire shark and work it out.

Have you looked at this page:

Maybe that URL is not correct?

Rock:

Following this path

resulted in success.

Love those little arduinos!

Thanks for your help.

Chuck