The provided bootable images will auto-start the demo applications so that demos only require a power-on to launch. Here we provide the configuration and supporting scripts for systems which use systemd for init, systems which use an alternate init will need to provide their own auto-start scripts if they wish to implement this feature.
- Linux running SystemD
- VisionPack Installed
- Executable from Application Zoo (not SD card image)
The demo.service file will first need to be adjusted to run the correct demo and to provide the appropriate parameters, if required. For example to run the Head Pose demo instead of Detection the ExecStart line would be adjusted as follows.
The ExecStart field also allows command-line parameters so it can be configured as you would from the command-line.
Once demo.service is ready you must save it to /etc/systemd/system and then can enable the service which will cause it to be launched on boot.
systemctl enable demo.service
Refer to the systemctl user manual for further usage instructions.
This article provides an example demo using ModelPack trained to detect cars and pedestrians. To install save detectgl to /usr/bin and modelpack-bdd100k.rtm to /var/lib and demo.service to /etc/systemd/system and finally follow the setup instructions.