I've got a Rasberry Pi with a camera and am streaming video to my browser using the RPi Cam Web interface. I run a script to read in the images and process them like below. Running the code opens a window with the processed image at the current time. When I close the window, I get an updated processed image.
What I'd like to do, however, is output a continuous video of the processed images. What approach should I take to do that?
while True:
image = io.imread('http://[ip-address]/cam_pic.php')
image_gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
faces = detect(image_gray)
image_with_detected_faces = faces_draw(image, faces)
plt.imshow(image_with_detected_faces)
plt.show()