Parts Preparation
  • 14 Mar 2022
  • 3 Minutes to read
  • Contributors
  • Dark

Parts Preparation

  • Dark

Article Summary

Showcase 4: Parts Preparation

Preview Run Scenario in IDE

Showcase Requirements

Before installing this showcase to the device, please install ADLINK EVASDK and set the EVA environment as necessary.

Showcase 4 Installation

The path to the respective demo folder includes and for this showcase. will perform the following steps:

  1. Build the required plug-ins for this showcase and install them into ADLINK EVASDK.
  2. Download required demo videos and inference intermediate model file (.etlt) and its label file.
  3. Check cmake version and installed it with minmum required version. (This takes time for building)
  4. Build TensorRT required feature layers into plugin from NVIDIA Open Source Software(OSS). (This takes time for building)
  5. Optimize it to TensorRT format (.engine) on the local device.
  6. Install required python packages.

For this showcase now only support for NVIDIA device.

For this showcase:

Use the path:

> cd src/demo/part-preparation

For NEON JNX, please install this demo by:

Run with root privileges:

> ./

For x86 system, please install this demo by:

Run with root privileges:

> ./ -g x86

This is required to modify the path to the OpenCV library. If you have installed EVA on a non-ADLINK device, please check the requirements in our EVA portal.

After installation, execute for the pipeline command:

> ./

This showcase utilizes the DSSD (Deconvolutional Single Shot Detector) and is trained by NVIDIA TAO. Two models which pruned and without pruned are provided. The default used model is without pruned when running. Use the command below to run pruned model:

> ./ yes

Or you can open EVA_IDE and load pygraph then execute, please see the section, Run This Showcase Through EVA IDE.

Then you will see the pop-up display window of this showcase as in the example below. There are three demo videos which will run one after the other.

In the figure above, "container-parts" is the area where each parts must place inside orderly. The order and the number of each part is already defined in SOP(Standard Operating Procedure). Based on this SOP, the algorithm designed four required parts' order from left to right and their numbers. From left to right 2 light-guide-cover, 2 small-board-side-A, 4 screw and 1 wire orderly placed. The timer starts from the first part placed in the "container-parts" and ends when all the parts placed with correct order and numbers. If the operator place the part with wrong order, the "incorrect order!" message will be displayed(See the figure below).

The timer starts with orange color means the preparation procedure is working and ends with green when all parts are ready. This showcase illustrate the procedure of the operator followed the preparation specification in case each part is missed before assemly. Just like the other showcase, once you modified this part-preparation plugin source code, required to rebuild it simply direct to the path /src/plugins/assembly and run for ubuntu system. (Currently not support for windows, windows version of this showcase will provide in later version) The email alert plugin were implemented in python. Once modified the email alert plugin, direct to /src/plugins/alert/email and run for ubuntu or email-build.bat for windows 10. The same rebuild procedure for other alert plugins. More detail setting could be found in EVA Portal.

*Modified installation details can be found at the EVA Portal: < Under Construction >

Training Materials

The training materials can be downloaded with the following links.

Training images and its label:

Reference training settings followed by NVIDIA TAO:

Training procedure followed by NVIDIA Train, Adapt, and Optimize(TAO). The model architecture used for this demo is Deconvolutional Single Shot Detector(DSSD) provided pretrained by TAO.

Note: Showcases 4 and 5 use the same training materials.

Run This Showcase Through EVA IDE(For EVASDK 3.5.2 or later)

In this showcase, you can run the pipeline by execute but also EVA IDE. Open EVA IDE and make sure your current path is in src/demo/part-preparation as root:


EVA_ROOT is the path where the EVA is installed, the default installed path is /opt/adlink/eva/. So directly call EVA_IDE:

> /opt/adlink/eva/bin/EVA_IDE

And you will see the IDE show up as below:

Then select the pygraph you want to run, here for example select showcase4.pygraph in this showcase folder through File->Load. Then you can see this showcase pipeline:

For loading other videos, simply change the filesrc element and select the demo video in location property.

fig: fig:

For loading pruned model, simply change the adrt element and select the pruned model in model property.

fig: fig:

Click on the email_alert node in the pipeline and the property window will show the node properties detail at left side. See the figure below:

fig: fig:

Provide an email address you want to receive from the alert for this show case in "receiver-address". Then press the play button fig: and you will see the scenario video start to play.

If your IDE can not show/add the plugin node "partpreparation" after loading the pygraph file, manually add it into the while list. The file element_list.txt will be generated after running IDE once.

For Linux, add "assembly" in file : /home/USER_ACCOUNT/adlink/eva/IDE/config/element_list.txt.

Was this article helpful?

What's Next