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.
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