Background overlay alpha fading
AssigneeAxis AB
InventorsLudvig Hassbring, Mikael Murstam
Life of this patent
Estimating the term…
Abstract
Methods and apparatus, including computer program products, implementing and using techniques for controlling the display of an overlay in a video. An overlay to be displayed in a video is defined. An overlay area is defined, which includes the overlay. At least one foreground object in the video is defined. A spatial overlap between the foreground object and the overlay area is determined. In response to determining that a size of the spatial overlap exceeds a first threshold, the entire overlay is stopped from being displayed within the overlay area.
Claims20
A method for controlling a display of an overlay in a video of a scene, comprising:
- defining the overlay to be displayed or stopped in the video;
- defining an overlay area including the overlay;
- defining at least one foreground object of the scene in the video;
- determine whether a spatial overlap is present in a video frame of the video between the foreground object and the overlay area such that a first portion of the overlay defined by the spatial overlap is blocked by the foreground object and a second portion of the overlay is not blocked by the foreground object, wherein the first portion and the second portion comprise an entirety of the overlay;
- determining a size of the spatial overlap based on a number of pixels in the overlay area that belong to the foreground object and a total number of pixels in the overlay area and whether the size exceeds a first threshold;
- and
- in response to determining that the size of the spatial overlap in the video frame exceeds the first threshold, stopping a display of the entirety of the overlay, wherein said stopping results in pixels corresponding to the first portion and pixels corresponding to the second portion being fully transparent or invisible.
A non-transitory computer-readable storage medium, the computer-readable storage medium including instructions that when executed by a computer, cause the computer to:
- define an overlay to be displayed or stopped in a video of a scene;
- define an overlay area including the overlay;
- define at least one foreground object of the scene in the video;
- determine whether a spatial overlap is present in a video frame of the video between the foreground object and the overlay area such that a first portion of the overlay defined by the spatial overlap is blocked by the foreground object and a second portion of the overlay is not blocked by the foreground object, wherein the first portion and the second portion comprise an entirety of the overlay;
- determining a size of the spatial overlap based on a number of pixels in the overlay area that belong to the foreground object and a total number of pixels in the overlay area and whether the size exceeds a first threshold;
- and
- in response to determining that the size of the spatial overlap in the video frame exceeds the first threshold, stop a display of the entirety of the overlay;
- wherein said stop of the display of the entirety of the overlay results in pixels corresponding to the first portion and pixels corresponding to the second portion being fully transparent or invisible.
A computing apparatus comprising:
- a processor;
- and
- a memory storing instructions that, when executed by the processor, configure the apparatus to:
- define an overlay to be displayed or stopped in a video of a scene;
- define an overlay area including the overlay;
- define at least one foreground object of the scene in the video;
- determine whether a spatial overlap is present in a video frame of the video between the foreground object and the overlay area such that a first portion of the overlay defined by the spatial overlap is blocked by the foreground object and a second portion of the overlay is not blocked by the foreground object, wherein the first portion and the second portion comprise an entirety of the overlay;
- determining a size of the spatial overlap based on a number of pixels in the overlay area that belong to the foreground object and a total number of pixels in the overlay area and whether the size exceeds a first threshold;
- and
- in response to determining that the size of the spatial overlap in the video frame exceeds the first threshold, stopping a display of the entirety of the overlay;
- wherein said stop of the display of the entirety of the overlay results in pixels corresponding to the first portion and pixels corresponding to the second portion being fully transparent or invisible.
Dependencies are inferred from the claim text.