From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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

Add Overlay Text To Image

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to add an overlay text to an image and save the image with the overlay as a new image.

 

Description

This example allows you to select a point on an image using a crosshair to overlay a string onto the image. You can preview this before saving the image along with the overlay to a file. It allows you to select the font, size & style and preview the text on the image on the fly.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • NI Vision Development Module 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached ZIP-file
  2. Open the VI and follow the instructions on the Front Panel

 

Additional Information or References

Add Overlay Text To Image - Front Panel.png

 

Add Overlay Text To Image - Block Diagram.png 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

Vivek Nath
National Instruments
Applications Engineer

Machine Vision

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

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting! Could you please rename your attachments to include the LabVIEW version? "_lvXX.vi" would be fine.  Also, could you include a screenshot of the code, and maybe the finished result, to give us an idea of what we'd be downloading?  Thanks!

Todd S.
LabVIEW Community Manager
National Instruments
mckmk
Member
Member
on

can you explain . how can you save image with overlay.l can not it...

edited:

ok l solve it.  use  merge overlay function.

thank you