• DepthAI-v2
  • Social-distancing demo | Pipeline runTimeError

Hi, I'm new to openCV and pipeline so, any help is much appreciated!
I'm running with RaspberryPi4 + OAK1. So far, I can run the following projects successfully - depthai_demo, the HelloWorld tutorial, and gen2-pedestrian.
As for social-distancing, I've run the install requirements. But I get the following error when executing the main.

2021-06-15 11:48:37,097 - root - INFO - Logging system initialized, kept in file /home/pi/depthai-experiments/social-distancing/camera.log...
2021-06-15 11:48:37,179 - main - INFO - Setting up debug run...
XLink initialized.
Sending internal device firmware
Failed to boot the device: 1.1-ma2480, err code 3
depthai: Error initializing xlink
2021-06-15 11:48:42,360 - depthai_utils - INFO - Creating DepthAI pipeline...
device is not initialized
Traceback (most recent call last):
File "main.py", line 124, in <module>
MainDebug().run()
File "main.py", line 53, in init
super().init()
File "main.py", line 21, in init
self.depthai = self.depthai_class(MODEL_LOCATION)
File "/home/pi/depthai-experiments/social-distancing/depthai_utils.py", line 76, in init
super().init(*args, **kwargs)
File "/home/pi/depthai-experiments/social-distancing/depthai_utils.py", line 30, in init
'blob_file_config': str(Path(model_location, 'config.json').absolute())
File "/home/pi/depthai-experiments/social-distancing/depthai_utils.py", line 19, in create_pipeline
raise RuntimeError("Pipeline was not created.")
RuntimeError: Pipeline was not created.
Exception ignored in: <function DepthAIDebug.del at 0xab029b28>
Traceback (most recent call last):
File "/home/pi/depthai-experiments/social-distancing/depthai_utils.py", line 93, in del
self.fps.stop()
AttributeError: 'DepthAIDebug' object has no attribute 'fps'

    Hi tmlim ,

    social-distancing demo is not yet migrated to Gen2, so you have to run python3 -m pip install -r requirements.txt before running python3 main.py

    I just ran the demo with dependencies installed and it works without issues, hope the instructions above will help

    Hi Lukasz, thanks for the help. I tried your suggestion and it is working now!
    Would all the experiments be migrated to Gen2 at some point?

      tmlim yes, as time permits we're constantly working on updating the experiments to Gen2 (some of our community members also migrated them manually and posted a PR)

      Right now, all Gen2-ready examples are prefixed with gen2- and when we migrate all of them we'll just drop this prefix I believe