Face Track Project Does Not Work

I have the PiDog fully set up with a Pi 3. The camera is able to completely run during “12_app_control.py” but only shows a still snapshot when running “7_face_track.py”. I have already double checked the camera cable connection, and removed it and re-installed again.

The output when running “7_face_track.py”:

Imgshow start ...

Web display on:
          http://               /mjpg

Starting web streaming ...
    . Serving Flask app 'vilib.vilib'
    . Debug mode: off
start
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
ALSA lib pcm.c:8772:(snd_pcm_recover) underrun occured0, 0

Any tips or solutions would be greatly appreciated. Also, let me know if any additional info is needed.

We have recently updated the product code. Are you currently using the latest version of the library?

The screen freeze issue has been resolved. Please try accessing the video stream directly through your browser.

We recommend reinstalling the code and then running the example workflow:

cd ~/robot-hat

git pull

sudo python3 install.py

cd ~/vilib

git pull

sudo python3 install.py

cd ~/pidog

git pull

sudo pip3 install . --break

cd ~/robot-hat

sudo bash i2samp.sh

I have updated the code, and now receive the following when running 7_face_track.py:

Traceback (most recent call last):
  File "/home/pmatos/pidog/examples/7_face_track.py", line 4, in <module>
    from vilib import Vilib
  File "/usr/local/lib/python3.13/dist-packages/vilib/__init__.py", line 2, in <                                                                  module>
    from .vilib import Vilib
  File "/usr/local/lib/python3.13/dist-packages/vilib/vilib.py", line 12, in <mo                                                                  dule>
    picamera2_version = require('picamera2')[0].version
                        ~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1066, in                                                                   require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 893, in                                                                   resolve
    dist = self._resolve_dist(
        req, best, replace_conflicting, env, installer, required_by, to_activate
    )
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 934, in                                                                   _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'OpenEXR' distribution was not found and                                                                   is required by picamera2

Based on the error information you provided, it is highly likely that you have downloaded and installed the vilib library code from the wrong branch.

We recommend that you follow the steps in our online tutorial to download and install all the library code: