The Surround view application demonstrates how InfoADAS takes image buffers (video stream) from four cameras to create a 3D rendition of the surroundings.
When you run the application, you must have four cameras which have four views (such as 90 degrees from each). The application combines the video to give a 3D rendition of what is around the vehicle. For the 3D rendition of the surroundings to work properly, it requires that you have cameras that are mounted in precise locations and the settings in the application are calibrated based on how the cameras are mounted. For more information, see the Release Notes for this product. You can also contact QNX Software Systems for more information about this application.
cp /etc/slm-config-platform-default.xml to /etc/slm-config-platform.xml
If you had to change the configuration in the previous step, restart the target board (reset the power or run the shutdown command) and then reconnect ot your target; otherwise proceed to the next step.
# slay ipc # ipc IPU2 /lib/firmware/dra7xx-m4-ipu2.xem4 IPU1 /lib/firmware/dra7-ipu1-fw.xem4 DSP1 /lib/firmware/dra7-dsp1-fw.xe66 DSP2 /lib/firmware/dra7-dsp2-fw.xe66
# mqueue
# infoadas-app-epsrc --layout ./layouts/layouts_epsrc.xml
==============================
[Plugin] selection Menu
==============================
Plugin [1]: a15source_surr_view
Plugin [2]: a15source_preview
[x]: Exit application
Enter Choice: 1
==============================
[[Chain]] selection Menu
==============================
chain [1]: a15source-srv-2d-880x1080
chain [2]: a15source-srv-3d-880x1080
[x]: Return to previous menu
Enter Choice: 2
==============================
Supported chain operations
==============================
[1]: Start Chain
[2]: Stop Chain
[3]: Control Chain
[4]: Print Statistics
[x]: Return to previous menu
Enter Choice: 1
INFO: Init chain a15source_surr_view:a15source-srv-3d-880x1080
INFO: Configuring source ep a15source_surr_view:a15source-srv-3d-880x1080
INFO: Creating chain a15source_surr_view:a15source-srv-3d-880x1080
INFO: Chain a15source_surr_view:a15source-srv-3d-880x1080 has 1 sink eplinks and 2 sin
k eplinks
INFO: Starting chain a15source_surr_view:a15source-srv-3d-880x1080
INFO: Using properties 586x720 @ 640,0 format-3 on HDMI for surface '3-D stitched surr
ound view'
INFO: Using properties 320x180 @ 10,0 format-1 on HDMI for surface 'Left Preview'
INFO: Using properties 320x180 @ 10,180 format-1 on HDMI for surface 'Right Preview'
INFO: Using properties 320x180 @ 10,360 format-1 on HDMI for surface 'Front Preview'
INFO: Using properties 320x180 @ 10,540 format-1 on HDMI for surface 'Rear Preview'
INFO: VIVI thread for chain a15source_surr_view:a15source-srv-3d-880x1080 started
INFO: sourcing thread for chain a15source_surr_view:a15source-srv-3d-880x1080 started
total cameras to start: 4
camera 0 child window created
start camera: 0
camera 1 child window created
start camera: 1
camera 2 child window created
start camera: 2
camera 3 child window created
start camera: 3
==============================
Supported chain operations
==============================
[1]: Start Chain
[2]: Stop Chain
[3]: Control Chain
[4]: Print Statistics
[x]: Return to previous menu
Enter Choice:
You should see boxes with video from each camera on the left of the display. After a momentary pause, the system combines the video and gives you a graphic representing your vehicle and a 3D rendition the surroundings based on the video from the four cameras.
You can download the source code from the QNX website. It's available in a separate package. Instructions to build and deploy the application are in the Installation Notes for the package.