← See all customer care notes

How to run a script at object detection

Q: I’m attempting to utilize the object recognition to trigger a script when a particular object is detected. However, the script never seems to run, nor does it run even when I click “test” on the Application Runner test page. My chain is as follows: Preview -> Object Recognition -> Application Runner
I can see that the object recognition is working fine, as is the preview. I just can’t get the script to work.

A: First and foremost, please check if the shell script has executable permissions.
Try using a direct path to a system’s default application (like calculator) to eliminate the possibility of a syntax error in the script.

Then check if your script begins with a shebang line (e.g. #!/usr/bin/env bash). If not – please add it there.

Next, if your script create/modify files or just print something out in the console, please make sure you are indicating absolute paths for these files (since Xeoma runs under root when installed to autostart, the script will also be run as root, so you may find it difficult to figure out where a relative path might lead in that case).

Tip:
For all the details on what macro handles what modules please see this page

Valid as of December, 8 2022