Search

CN-119741401-B - Image production method, image production device, electronic equipment and storage medium

CN119741401BCN 119741401 BCN119741401 BCN 119741401BCN-119741401-B

Abstract

The method comprises the steps of obtaining a background image layer image and rendering data of a plurality of candidate objects, sorting the plurality of candidate objects based on a preset sorting rule to obtain a target sequence, sequentially performing image rendering based on the rendering data of the candidate objects according to the target sequence to obtain a foreground image layer image corresponding to the candidate objects, and combining the foreground image layer image corresponding to the target object and the background image layer image in response to a switching instruction for switching the foreground image layer image to the target object in an image display process to obtain a target image corresponding to the target object and display the target image, wherein the target object is an object in the plurality of candidate objects. The method can shorten the time interval from detection of the switching instruction to display of the target image corresponding to the switching instruction, realize rapid manufacture and timely display of the target image, and further enable the image display and sharing process to be synchronous.

Inventors

  • GAO XIAOGUANG
  • HU XIAOHUI
  • Cao yao
  • YIN ZHEN
  • Jie Ruiqi
  • YANG QIDONG
  • YUAN YANG
  • WU QI

Assignees

  • 北京懂车族科技有限公司

Dates

Publication Date
20260508
Application Date
20241218

Claims (9)

  1. 1. An image producing method, comprising: Acquiring rendering data of a background layer image and a plurality of candidate objects; The first candidate object in the target sequence is a first candidate object, and the objects positioned behind the first candidate object in the target sequence are all second candidate objects; before image display begins, performing image rendering based on rendering data of the first candidate object to obtain a foreground image layer image corresponding to the first candidate object; Synthesizing the foreground layer image corresponding to the first candidate object with the background layer image to obtain a target image corresponding to the first candidate object; Responding to an image display starting instruction, displaying a target image corresponding to the first candidate object, and sequentially carrying out image rendering based on rendering data of the second candidate object according to the target sequence to obtain a foreground image layer image corresponding to the second candidate object; In the image display process, responding to a switching instruction for switching to a second candidate object, synthesizing a foreground image layer image and a background image layer image corresponding to the second candidate object, and obtaining and displaying a target image corresponding to the second candidate object.
  2. 2. The method of claim 1, wherein the ranking the plurality of candidate objects based on a preset ranking rule to obtain a target sequence comprises: Determining a first candidate object and a second candidate object based on a preset screening condition in the plurality of candidate objects, wherein the first candidate object meets the preset screening condition, and the second candidate object does not meet the preset screening condition; Determining a similarity of the second candidate object and the first candidate object; And determining the rank of each second candidate object in the target sequence according to the similarity between the second candidate object and the first candidate object and/or the heat value of the second candidate object, so as to obtain the target sequence.
  3. 3. The method of claim 1, wherein the acquiring the background layer image comprises: acquiring target theme information; and generating a background layer image based on the target subject information.
  4. 4. The method of claim 3, wherein generating a background layer image based on the target subject information comprises: generating candidate background images based on the target subject information; The candidate background image is intercepted based on the characteristics of a preset graphic element to obtain the background image layer image, the preset graphic element comprises at least one of a foreground image layer image corresponding to the candidate object, a functional component displayed in an image display page and a graphic element used for decorating the image display page, and the image display page is used for displaying the target image.
  5. 5. The method according to claim 4, wherein the capturing the candidate background image based on the features of the preset graphic element to obtain the background layer image includes: performing block processing on the candidate background images to obtain a plurality of sub-images; Determining a matching degree value of the sub-image and the preset graphic element; Determining a target sub-image in the plurality of sub-images based on the matching degree values of the sub-images and the preset graphic elements and a preset matching degree threshold; and obtaining the background layer image based on the target sub-image.
  6. 6. The method of claim 5, wherein determining the matching degree value of the sub-image and the preset graphic element comprises: Determining the color difference between the sub-image and the preset graphic element; determining a complexity score for each of the sub-images; And determining a matching degree value of the sub-image and the preset graphic element based on the color difference of the sub-image and the preset graphic element and the complexity score of the sub-image.
  7. 7. An image forming apparatus, comprising: the acquisition module is used for acquiring the background layer image and rendering data of a plurality of candidate objects; The sequencing module is used for sequencing the plurality of candidate objects based on a preset sequencing rule to obtain a target sequence, wherein the first candidate object in the target sequence is a first candidate object, and the objects positioned behind the first candidate object in the target sequence are all second candidate objects; The rendering module is used for performing image rendering based on the rendering data of the first candidate object before image display starts to obtain a foreground image layer image corresponding to the first candidate object; synthesizing the foreground layer image corresponding to the first candidate object with the background layer image to obtain a target image corresponding to the first candidate object; responding to an image display starting instruction, displaying a target image corresponding to the first candidate object, and sequentially carrying out image rendering based on rendering data of the second candidate object according to the target sequence to obtain a foreground image layer image corresponding to the second candidate object; and the switching module is used for responding to a switching instruction for switching to a second candidate object in the image display process, synthesizing the foreground layer image and the background layer image corresponding to the second candidate object, and obtaining and displaying a target image corresponding to the second candidate object.
  8. 8. An electronic device, the electronic device comprising: One or more processors; a storage means for storing one or more programs; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.

Description

Image production method, image production device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of image processing, and in particular relates to an image manufacturing method, an image manufacturing device, electronic equipment and a storage medium. Background In the day of increasingly frequent digital information exchange, users often have the need to share multiple things with others in many scenes such as daily social, work collaboration, interest exchange and the like. For example, in an activity such as merchandise display, key features, detailed information, and the like of the merchandise are presented through images. The use of images can improve the information transfer effect. However, in the process of manufacturing images for sharing objects, especially for objects with complex structures, since the objects often include numerous components, fine textures, various materials, and intricate spatial relationships, when the existing image rendering techniques are used to process the complex objects, the rendering time is long because each detail needs to be accurately calculated and simulated, such as ray tracing, material reflection refraction, shadow generation, and the like. In the sharing process, along with the promotion of the shared content, an object image matched with the current shared content needs to be quickly manufactured so as to ensure the display and sharing synchronization of the object image. However, due to the limitation of the time consumption of the rendering, the corresponding image cannot be generated in time, so that the image display and sharing process is difficult to synchronize. Disclosure of Invention In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an image manufacturing method, an image manufacturing device, an electronic apparatus, and a storage medium. In a first aspect, the present disclosure provides an image production method, including: Acquiring rendering data of a background layer image and a plurality of candidate objects; sorting the plurality of candidate objects based on a preset sorting rule to obtain a target sequence; Sequentially carrying out image rendering based on the rendering data of the candidate objects according to the target sequence to obtain foreground layer images corresponding to the candidate objects; in the image display process, a foreground image layer image corresponding to a target object and a background image layer image are synthesized in response to a switching instruction for switching the target object to obtain and display the target image corresponding to the target object, wherein the target object is an object in the plurality of candidate objects. In a second aspect, the present disclosure also provides an image producing apparatus, including: the acquisition module is used for acquiring the background layer image and rendering data of a plurality of candidate objects; the sorting module is used for sorting the plurality of candidate objects based on a preset sorting rule to obtain a target sequence; The rendering module is used for sequentially performing image rendering based on the rendering data of the candidate objects according to the target sequence to obtain foreground layer images corresponding to the candidate objects; And the switching module is used for responding to a switching instruction for switching to a target object in the image display process, synthesizing a foreground image layer image corresponding to the target object and the background image layer image to obtain a target image corresponding to the target object and displaying the target image, wherein the target object is an object in the plurality of candidate objects. In a third aspect, the present disclosure also provides an electronic device, including: One or more processors; a storage means for storing one or more programs; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the image production method as described above. In a fourth aspect, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the image production method as described above. Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages: According to the technical scheme, image rendering is sequentially carried out based on rendering data of candidate objects according to a target sequence to obtain foreground layer images corresponding to the candidate objects, in the image display process, the foreground layer images and background layer images corresponding to the target objects are synthesized in response to a switching instruction for switching the foreground layer images and the background layer