From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

IMAQdx Image Capture w/ Onion Skinning

Code and Documents

Attachment

Overview

This VI is designed to connect to a USB webcam using IMAQdx and allow the user to capture individual frames and play them back at a given speed to allow them to create simple stop motion animations. The "Onion Skinning" feature allows you to show a transparent previous frame on top of the current frame, in order to align images for sequential frames.

Steps to Implement or Execute Code

  1. Connect a USB webcam
  2. Run the VI

Requirements

Software

LabVIEW 2013 or later

IMAQdx

Vision Module

Hardware

USB Webcam

Help Needed

This program current works pretty well, but the Onion Skinning subVI is not very efficient. The RGB conversion functions take a lot of processor power to comlete, so it slows down the live aquisition too much. If anyone has any ideas on how to optimaize please share.



Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
viScience
Active Participant
Active Participant
on

Transparency Calc.pngHere is a fast method to provide a transparant overlay

Contributors