Background blurred method and electronic device based on foreground image
AssigneeRealtek Semiconductor Corp.
InventorsZHONG-YI QIU, WEN-TSUNG HUANG, KAI LIU
Life of this patent
Estimating the term…
Abstract
A background blurred method includes steps as follows: obtaining a color image, an IR light frame image and an IR dark frame image, and calculating a differential image between the IR light frame image and the IR dark frame image to generate a binary image; obtaining a foreground image of the binary image; calculating an IR brightness mean value of the foreground image of the differential image; and filtering the color image to generate a background blurred image according to the IR brightness mean value.
Claims18
A background blurred method based on a foreground image, adapted for an electronic device, the background blurred method comprising the steps of:
- acquiring a color image, an infrared (IR) light frame image indicating a light state and an IR dark frame image indicating a dark state, calculating a differential image between the IR light frame image and the IR dark frame image, thresholding the differential image to generate a binary image;
- acquiring a foreground image of the binary image, wherein the binary image has a pixel position corresponding to that of the color image, wherein the pixel position of the foreground image corresponds to a pixel position of an object in the binary image and corresponds to a pixel position of the object in the color image;
- acquiring an IR brightness mean value of a foreground part of the differential image, wherein the foreground part corresponds to the foreground image;
- and
- filtering the color image to generate a background blurred image according to the IR brightness mean value, wherein a blurred degree of at least a part of the background blurred image is positively correlated with the IR brightness mean value.
An electronic device, comprising:
- an IR emitter, configured to transmit an IR signal;
- an image capturing device, configured to receive an IR reflection signal related to the IR signal, and configured to receive a visible light signal;
- and
- an image processor, coupled to the IR emitter and the image capturing device and configured to execute steps of:
- acquiring a color image, an infrared (IR) light frame image indicating a light state and an IR dark frame image indicating a dark state;
- calculating a differential image between the IR light frame image and the IR dark frame image, and thresholding the differential image to generate a binary image;
- acquiring a foreground image of the binary image, wherein the binary image has a pixel position corresponding to that of the color image, wherein the pixel position of the foreground image corresponds to a pixel position of an object in the binary image and corresponds to a pixel position of the object in the color image;
- acquiring an IR brightness mean value of a foreground part of the differential image, wherein the foreground part corresponds to the foreground image;
- and
- filtering the color image to generate a background blurred image according to the IR brightness mean value, wherein a blurred degree of at least a part of the background blurred image is positively correlated with the IR brightness mean value.
Dependencies are inferred from the claim text.