Internal Server Error when navigating to face track URL

Launches fine in PowerShell, but I get these errors when I open a browser for the generated URL


Starting web streaming ...
 * Serving Flask app 'vilib.vilib'
 * Debug mode: off
start
Error on request:umber: 0 | ex, ey: 0, 0 | yrp: 0, 0, 0
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 335, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 324, in execute
    for data in application_iter:
  File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 500, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/werkzeug/wrappers/response.py", line 50, in _iter_encoded
    for item in iterable:
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 88, in gen
    frame = get_frame()
            ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 70, in get_frame
    return cv2.imencode('.jpg', Vilib.flask_img)[1].tobytes()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.11.0) :-1: error: (-5:Bad argument) in function 'imencode'
> Overload resolution failed:
>  - img is not a numpy array, neither a scalar
>  - Expected Ptr<cv::UMat> for argument 'img'
Stopping and returning to the initial position ... 0, 0

From your error message, the program is not getting the camera data, is your camera well connected? You can try reconnecting the camera cable, as well as the camera IMOS terminals, and use the libcamera-hello command to test if the camera is working properly.