Method, device and storage medium for image synthesis
First Claim
Patent Images
1. An image composition method, comprising:
- acquiring a preset image, and setting the preset image as a background image;
shooting a moving object to obtain a shot trail image; and
compositing, when shooting is ended, the shot trail image of the moving object with the background image to generate a target image;
wherein setting the preset image as the background image comprises;
acquiring a luminance value of the preset image, and judging whether the luminance value is greater than a preset luminance threshold;
setting, when the luminance value is smaller than or equal to the preset luminance threshold, the preset image as the background image;
adjusting, when the luminance value of the preset image is greater than the preset luminance threshold, the luminance of the preset image so as to adjust the luminance value of the preset image to be smaller than or equal to the preset luminance threshold; and
setting the luminance-adjusted preset image as the background image.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, a device and a computer storage medium for image synthesis. The method for image synthesis includes: getting a default image, setting the default image to the background image of shooting; shooting the trajectory of moving objects; at the end of the shooting, synthesizing images of the trajectory of moving objects shot currently and the background image to generate a target image.
-
Citations
17 Claims
-
1. An image composition method, comprising:
-
acquiring a preset image, and setting the preset image as a background image; shooting a moving object to obtain a shot trail image; and compositing, when shooting is ended, the shot trail image of the moving object with the background image to generate a target image; wherein setting the preset image as the background image comprises; acquiring a luminance value of the preset image, and judging whether the luminance value is greater than a preset luminance threshold; setting, when the luminance value is smaller than or equal to the preset luminance threshold, the preset image as the background image; adjusting, when the luminance value of the preset image is greater than the preset luminance threshold, the luminance of the preset image so as to adjust the luminance value of the preset image to be smaller than or equal to the preset luminance threshold; and setting the luminance-adjusted preset image as the background image. - View Dependent Claims (2, 3, 4, 5, 6, 12, 13, 14, 17)
-
-
7. An image composition apparatus, comprising:
-
one or more processors executing computer readable instructions for a plurality of modules comprising; a processing module, configured to acquire a preset image, and set the preset image as a background image; a shooting module, configured to shoot a moving object to obtain a shot trail image; and a composition module, configured to composite, when shooting is ended, the shot trail image of the moving object with the background image to generate a target image; wherein the processing module is further configured to acquire a luminance value of the preset image; the one or more processors further execute computer readable instructions to implement a judgement module, the judgement module is configured to judge whether the luminance value is greater than a preset luminance threshold; the processing module is further configured to set, when the luminance value is smaller than or equal to the preset luminance threshold, the preset image as the background image; and the processing module is further configured to adjust, when the luminance value of the preset image is greater than the preset luminance threshold, the luminance of the preset image so as to adjust the luminance value of the preset image to be smaller than or equal to the preset luminance threshold, and set the luminance-adjusted preset image as the background image. - View Dependent Claims (8, 9, 10, 11, 15, 16)
-
Specification