| Contents | Index |
| On this page… |
|---|
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.
Note UVC compliant cameras are often referred to as "driverless webcams". For more information, see your camera documentation. |
The xPC Target Video library contains blocks that support the following real-time video image applications:
Acquire real-time video frames from cameras connected to the target computer.
Select a region of interest in the real-time image.
Compress video frames acquired on the target computer.
Stream video frames acquired on the target computer to the host computer.
Decompress video frames on the host computer.
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.
To acquire video frames, buy one of the following camera types:
USB Video Class (UVC) compliant webcam — Use the From USB Video Device block, available in the Video/USB library.
Camera Link compliant camera — Use the NEON BitFlow Image Input block, available in the xPC Target for BitFlow library.
On the target computer, you can do the following:
Acquire images.
Process or reduce images.
Compress images.
Transmit images to the host computer.
On the host computer, you can do the following:
Receive images from the target computer.
Decompress images.
Process or reduce images.
Display images.
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:
Connect a USB webcam or Camera Link camera to the target computer.
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.
Note If you add a From USB Video Device block, you can optionally add the USB Video Device List block to query the available configurations for the attached camera. |
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. |
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.
Add the Image Receive block to the host-side model. Configure the block to receive frames from the target computer.
Add the JPEG Decompression block to the host-side model. Connect this block to the output of the Image Receive block.
Add the To Video Display block from the Computer Vision System Toolbox™ to the host-side model.
Build and download the target-side model to the target computer.
Run the host-side model on the host computer.
![]() | Video Image Processing | Acquiring Images from Camera Link Cameras | ![]() |

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 |