CPC H04N 5/272 (2013.01) [H04N 9/68 (2013.01)] | 20 Claims |
1. A method for embedding information into a video, applicable to an electronic device and comprising:
constructing a model for each of a plurality of pixels comprised by a first embedding region in a reference frame of the video, the model conforming to a pixel distribution characteristic of the first embedding region;
controlling update of the model based on a subsequent to-be-processed frame of the reference frame;
identifying a background and a foreground of a second embedding region in the to-be-processed frame based on the model;
generating a template used for occluding the background and exposing the foreground;
applying the template to to-be-embedded information to generate an updated to-be-embedded information by occluding region of the to-be-embedded information corresponding to the foreground, by steps comprising:
performing a multiplication operation on the pixels of the to-be-embedded information with a number filled in a corresponding position in the template; and
overlaying the second embedding region with the updated to-be-embedded information, so that the foreground of the second embedding region is devoid of occlusion by the overlaid to-be-embedded information.
|