bitsy-ai / rpi-object-tracking

Object tracking tutorial using TensorFlow / TensorFlow Lite, Raspberry Pi, Pi Camera, and a Pimoroni Pan-Tilt Hat.
https://medium.com/@grepLeigh/real-time-object-tracking-with-tensorflow-raspberry-pi-and-pan-tilt-hat-2aeaef47e134
MIT License
185 stars 68 forks source link

rpi-deep-pantilt not working (instantly crashing) #61

Open careyer opened 3 years ago

careyer commented 3 years ago

Description

Exactly followed along the install instructions (no errors during installation) but when running any command (test pantilt, test camera, detect...) then I get this error message:

(.venv) pi@raspberrypi:~ $ rpi-deep-pantilt test pantilt
Traceback (most recent call last):
  File "/home/pi/.venv/bin/rpi-deep-pantilt", line 5, in <module>
    from rpi_deep_pantilt.cli import main
  File "/home/pi/.venv/lib/python3.7/site-packages/rpi_deep_pantilt/cli.py", line 10, in <module>
    from rpi_deep_pantilt.detect.ssd_mobilenet_v3_coco import (
  File "/home/pi/.venv/lib/python3.7/site-packages/rpi_deep_pantilt/detect/ssd_mobilenet_v3_coco.py", line 9, in <module>
    from PIL import Image
  File "/home/pi/.venv/lib/python3.7/site-packages/PIL/Image.py", line 114, in <module>
    from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
(.venv) pi@raspberrypi:~ $

What I Did

I tried to run rpi-deep-pantilt without any command line parameters or with --help but it always crashes with the same error message as above.

Your help is much appreciated! Thanks in advance!

Best regards careyer

careyer commented 3 years ago

The following dependencies are missing: sudo apt install libtiff5 libopenjp2-7