DeepStream Can Orientation App
The deepstream-can-orientation-app sample application is provided at app/sample_apps/deepstream-can-orientation-app for your reference. This example demonstrates can orientation detection for industrial can position and rotation angles. There are several configurations for raw data input, JPEG input and Basler camera emulation input settings. The image below shows the architecture of this reference app.

Getting Started
Prerequisites
- Go to the folder
sources/apps/sample_apps/deepstream-can-orientation-app - Prepare all test sample images and reference images. Run the following command to un-compress can test and reference images into folder
data, and generate raw sample image data files. Run command
If there is file permission issues, try with sudo.
- Export DISPLAY environment to correct display. e.g.
export DISPLAY=:0.0. - For Basler camera emulation test, follow instructions in
deepstream-can-orientation-app/READMEto install and build all dependencies. This emulation does not require a physical Basler camera. - Users can modify and configure their Basler cameras through Pylon Viewer to create new PFS and then use it in this app.
Run DeepStream Can Orientation Examples
- Run tests for JPEG files with EGL display:
- Run tests for GREY raw datafile with EGL display:
- Run tests for performance tests without display. Update
ds_can_orientation_raw.yaml.
- Run performance tests:
- Run Basler Camera Emulation tests:
DeepStream Can Orientation App Configuration Specifications
deepstream-can-orientation-app settings
The table below indicates the group settings for ds_can_orientation_jpg.yaml and ds_can_orientation_raw.yaml.
deepstream can orientation application settings
Custom lib libnvds_vpicanmatch.so Settings for Can Template Matching
Custom lib libnvds_vpicanmatch.so Settings for Can Template Matching
The table below indicates the group settings for config_video_template_can_match.yaml.
deepstream can orientation application settings
Build application From Source
- Go to the folder
sources/apps/sample_apps/deepstream-can-orientation-app. - Run the following commands: