ESP32 AI Thinker Streaming issue

| Update from future me, the stream can only be run once from what i've seen, so if I have it running in my program it can't be run on the WebServer which explains this behaviour, probably a security implementation. Thanks

Hi,
Currently working on trying to port the live stream from an ESP32 AI Thinker module from the CameraWebServer example to a python script to use OpenCV to track the center of faces, however when attempting to use

esp32_stream_url = 'http://<IP Address placeholder>/stream'

In order to receive a live stream comparable to the web server nothing happens, likewise when I try to visit the site itself I get "Nothing matches the given URI"

However when I visit 'http:///capture'' i get a still of whatever the camera is viewing and spamming refresh gives me a rudimentary stream.

Here's my code:

import cv2

esp32_url = 'http://<IP Address placeholder/stream'

# Capture the video feed from the ESP32
cap = cv2.VideoCapture(esp32_url)

while True:
    ret, frame = cap.read()
    if not ret:
        print("Failed to grab frame")
        break

    # Display the resulting frame
    cv2.imshow('ESP32 Camera', frame)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# When everything is done, release the capture
cap.release()
cv2.destroyAllWindows()

Apologies for the long winded post, any help on how to fix the streaming issue is much appreciated!