public class

ImageCaptureUtilities

extends Object
java.lang.Object
   ↳ vars.annotation.ui.video.ImageCaptureUtilities

Summary

Public Constructors
ImageCaptureUtilities()
Public Methods
static Image capture(ImageCaptureService captureService, String timecode, File file)
Capture and image from the grabber.
static BufferedImage createJpgWithOverlay(Image image, File jpg, String[] overlayText)
Add overlay text to the image and save as a .jpg file.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImageCaptureUtilities ()

Public Methods

public static Image capture (ImageCaptureService captureService, String timecode, File file)

Capture and image from the grabber. The image is written to disk in a background thread so the method doesn't block while an image is written.

Parameters
captureService The grabber to use to capture the image
file The name of the file to save the image to.
Returns
  • An AWT image object of the captured image.

public static BufferedImage createJpgWithOverlay (Image image, File jpg, String[] overlayText)

Add overlay text to the image and save as a .jpg file.

Parameters
image a java.awt.Image to add the text overlay to
jpg Target file to save jpeg to
overlayText The text to overlay onto the image