[][src]Function opencv::highgui::display_overlay

pub fn display_overlay(winname: &str, text: &str, delayms: i32) -> Result<()>

Displays a text on a window image as an overlay for a specified duration.

The function displayOverlay displays useful information/tips on top of the window for a certain amount of time delayms. The function does not modify the image, displayed in the window, that is, after the specified delay the original content of the window is restored.

Parameters

  • winname: Name of the window.
  • text: Overlay text to write on a window image.
  • delayms: The period (in milliseconds), during which the overlay text is displayed. If this function is called before the previous overlay text timed out, the timer is restarted and the text is updated. If this value is zero, the text never disappears.

C++ default parameters

  • delayms: 0