luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
919 stars 231 forks source link

[BUG] {Trigger Action module not found} #1201

Open Beauxrel opened 2 weeks ago

Beauxrel commented 2 weeks ago

I am stumped why the module is not being found. It's being recognized, but no dice. What is going on here?

image

image

brmarkus commented 2 weeks ago

How have you installed DepthAI? In which version? In which environment (SW, HW) are you working in? Which OS, which version of Python are you using? Do you use a Python virtual environment (venv), and activated it? Installed DepthAI in the same venv?

Beauxrel commented 2 weeks ago

@brmarkus

Depthai (latest version)

brmarkus commented 2 weeks ago

Can you run other examples successfully?

Maybe it's just this sample, maybe just outdated, not supported by Luxonis? I can't remember that I had used an example like trigger_action/custom_trigger.py.

Let's see what Luxonis says about it.

Beauxrel commented 2 weeks ago

The simple ones work like Camera_control, but not visualizer

While I am waiting for an answer, if anyone knows of a way to have the depth data control the program flow (an if statement), can you link me to an example or a way to read that data for using somewhere else.

brmarkus commented 2 weeks ago

(public holiday in the USA today, labor day)

A typical use case is the following:

Have a look into examples with different depth cameras, like

Do you see your use-case in these examplee?

Beauxrel commented 2 weeks ago

@brmarkus this is the closest thing I could find. Still would love to get the action triggers working though

https://docs-old.luxonis.com/projects/sdk/en/latest/samples/mixed/sdk_collision_avoidance/#source-code