Skip to Main Content Skip to Search
Product Documentation

Processing Video Images in a Host-Target Application

Introduction

The xPC Target software supports webcams compliant with the USB Video Class (UVC) standard and cameras compliant with the Automated Imaging Association Camera Link® standard.

The xPC Target Video library contains blocks that support the following real-time video image applications:

You can then process and display video frames on the host computer using blocks such as those described in the Computer Vision System Toolbox Reference.

Before You Start

To acquire video frames, buy one of the following camera types:

Basic Workflow

On the target computer, you can do the following:

On the host computer, you can do the following:

For example, the following workflow acquires and compresses video frames on the target computer, transmits them to the host computer, and decompresses and displays them:

  1. Connect a USB webcam or Camera Link camera to the target computer.

  2. Add the image input block (From USB Video Device or NEON BitFlow Image Input) for the camera to the target-side model. Configure the block as required.

  3. Add the JPEG Compression block to the target-side model. Connect this block to the output of the image input block.

      Note   Some USB cameras support on-chip JPEG compression. For these cameras, you do not need to use an additional JPEG Compression block.

  4. Add the Image Transmit block to the target-side model. Connect this block to the output of the compression block. Configure the block to transmit frames to the host computer.

  5. Add the Image Receive block to the host-side model. Configure the block to receive frames from the target computer.

  6. Add the JPEG Decompression block to the host-side model. Connect this block to the output of the Image Receive block.

  7. Add the To Video Display block from the Computer Vision System Toolbox™ to the host-side model.

  8. Build and download the target-side model to the target computer.

  9. Run the host-side model on the host computer.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS