CASP supports multimedia features such as interfacing with camera, microphone, speakers etc. This example project validates whether OpenCV library dependencies are correctly installed on the computer. It shows a basic model
- To view video from live USB camera
- To apply edge detection to the camera output and view the edge detected video
- To apply object detection to the camera output and view the resultant video
Pre-Requisites
- Computer with USB or in-built camera
- CASP software is properly installed and functional.
- Native compiler tool chain is installed.
Model Details
- A native camera block is added and its output is connected to an image viewer block.
- The output of the camera block is also connected to edge detection and object detection blocks. Two additional image detection blocks are connected to the output of edge detection and object detection blocks.

How to run the project
- This example is provided as part of CASP installation. It is also available for download at this link.
- Run CASP by selecting (or double clicking) on CASP icon from desktop or operating system start menu.
- Within CASP main window, click the start button at the top left corner. Select ‘Tutorials & Examples > Open Examples’ menu item, browse to folder ‘/test_examples/test03_cam_viewer’ and select ‘the project file (.prj) to load the project.
- Click the ‘Run’ button to build the model and start simulation.
- The output of simulation is shown below.

