Shooting preview method, device, equipment, medium and program product
The preview image is generated by preset layer configuration files and editing logic, and editing in response to user operations in the preview interface, which solves the problem of lack of flexibility in the preview image editing method in the prior art, and achieves the effect of multi-level editing and flexible fallback.
Patent Information
- Application Number
- CN202510134497.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-05-09
AI Technical Summary
The existing preview image editing methods lack flexibility and cannot achieve multi-level editing and flexible fallback operations of preview images.
Generate a preview image through the preset layer configuration file, and determine the target layer in the preview interface in response to the trigger operation, obtain editing parameters, edit the target layer according to the editing logic, and update the preview image.
Multi-level editing and flexible fallback operations of preview images are realized, enhancing user editing flexibility and convenience.
Smart Images

Figure CN119967277A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to image technology, and more particularly to a shooting preview method, device, equipment, medium and program product. Background Art
[0002] At present, the original image of the object to be photographed can be obtained through the camera. Then, the original image is rendered to the screen for preview. The preview image can be edited to optimize the display effect. For example, the editing method includes but is not limited to at least one of editing the properties of the preview image, adding stickers, adding text, or adding special effects materials. However, the above-mentioned editing operation on the preview image is a one-way operation, that is, after editing the A attribute of the preview image, the operation of adding sticker materials is performed, and after adding the sticker materials, it is not possible to return to edit the A attribute of the preview image. The above-mentioned editing method cannot meet the editing needs of users and lacks editing flexibility. Summary of the invention
[0003] The embodiments of the present disclosure provide a shooting preview method, device, equipment, medium and program product, which can solve the problem that the general preview image editing method lacks flexibility.
[0004] In a first aspect, an embodiment of the present disclosure provides a shooting preview method, including:
[0005] In response to a shooting preview event, a preview image is generated according to the original image and a preset layer configuration file, and the preview image is displayed in a preview interface, wherein the preset layer configuration file includes editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode;
[0006] In response to a trigger operation in the preview interface, determining a target layer, wherein the target layer represents a layer in a selected state among the at least one layer;
[0007] In response to an editing operation on the target layer, an editing parameter is acquired, the target layer is edited according to the editing parameter and the editing logic, and the preview image is updated according to the edited target layer.
[0008] In a second aspect, the present disclosure also provides a shooting preview device, the device comprising:
[0009] A preview image generation module, used to generate a preview image according to an original image and a preset layer configuration file in response to a shooting preview event, and display the preview image in a preview interface, wherein the preset layer configuration file includes an editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode;
[0010] a target layer determination module, configured to determine a target layer in response to a trigger operation in the preview interface, wherein the target layer represents a layer in a selected state among the at least one layer;
[0011] The layer editing module is used to obtain editing parameters in response to an editing operation on the target layer, edit the target layer according to the editing parameters and the editing logic, and update the preview image according to the edited target layer.
[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0013] one or more processors;
[0014] a storage device for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the shooting preview method as described in any embodiment of the present disclosure.
[0016] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the shooting preview method as described in any embodiment of the present disclosure.
[0017] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the shooting preview method as described in any embodiment of the present disclosure.
[0018] The shooting preview method provided by the embodiment of the present disclosure generates a preview image according to the original image and the preset layer configuration file in response to the shooting preview event, and displays the preview image in the preview interface. The preset layer configuration file includes the editing logic of the editing item corresponding to at least one layer. In response to the triggering operation in the preview interface, the target layer is determined. In response to the editing operation for the target layer, the editing parameters are obtained, the target layer is edited according to the editing parameters and the editing logic, and the preview image is updated according to the edited target layer. By adopting the above technical solution, multiple layers can be pre-configured by the preset layer configuration file, and the editing logic of the editing items corresponding to the layers can be configured, so that when the shooting preview event is triggered, the preview image can be generated according to the original image and the preset layer configuration file, and the target layer is determined according to the triggering operation, and the target layer is edited separately without affecting the content of other layers, and the preview image can be updated according to the edited target layer, so as to realize the flexible selection of layers for editing, and after editing, the edited layer can be returned to for re-editing, which solves the problem of lack of flexibility in the general preview image editing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 A flowchart of a shooting preview method provided by an embodiment of the present disclosure;
[0021] Figure 2 A schematic diagram of the structure of a layer tree provided by an embodiment of the present disclosure;
[0022] Figure 3 A schematic diagram of a preview interface provided by an embodiment of the present disclosure;
[0023] Figure 4 A flowchart of another shooting preview method provided by an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram of a position-following layout method for preview images provided by an embodiment of the present disclosure;
[0025] Figure 6 A flowchart of another shooting preview method provided by an embodiment of the present disclosure;
[0026] Figure 7 A schematic diagram of the structure of a shooting preview device provided by an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0039] Figure 1 The present invention is a flowchart of a shooting preview method provided by an embodiment of the present invention. The present invention is applicable to the situation of previewing and editing a shooting object, for example, the scene of previewing and editing a shooting object acquired by a camera. The method can be executed by a shooting preview device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, etc.
[0040] like Figure 1 As shown, the method includes:
[0041] S110 . In response to a shooting preview event, generate a preview image according to the original image and a preset layer configuration file, and display the preview image in a preview interface.
[0042] The preset layer configuration file includes the editing logic of the editing item corresponding to at least one layer. The at least one layer includes a camera layer, a sticker layer, a text layer, a filter layer, etc. The editing item is used to characterize the layer editing method. For example, the editing item includes but is not limited to at least one of the color adjustment, deformation, and special effects of the layer content of the layer. The editing logic is the implementation method of the editing item. The editing logic includes but is not limited to the filter function that implements at least one editing method such as color adjustment, deformation, and special effects.
[0043] In the disclosed embodiment, the preset layer configuration file may represent the configuration information of the layer tree. The layer tree represents the layer group and the layers included in the layer group in a tree structure. The layer is a child node of the corresponding layer group. The editing logic of the editing item corresponding to the layer is the child node of the layer. Figure 2 A schematic diagram of a layer tree structure provided by an embodiment of the present disclosure. Figure 2 As shown, the child nodes of the root node layer 210 of the layer tree 200 include several layer groups 220. The layer group 220 includes several layers 230. The child nodes of the layer 230 include several editing logics 240.
[0044] The shooting preview event is used to trigger the preview operation of the shooting object. For example, if it is detected that the camera has acquired a new shooting object, the shooting preview event is triggered. Or, if it is detected that the original shooting object acquired by the camera has changed, the shooting preview event is triggered.
[0045] The original image refers to a picture or video frame of a photographed object obtained by a camera without image editing. The preview image refers to a picture or video frame displayed on the screen. If necessary, the preview image includes not only a picture or video frame of the photographed object, but also at least one effect material such as sticker material, text, special effect material, etc. The effect material is added to the preview image by layer overlay. In the disclosed embodiment, the original image is used as the input data of the camera layer, and the image is edited by the editing logic of the editing item corresponding to the camera layer, and the edited image data is rendered to the screen to obtain a preview image. The preview interface represents the display interface of the preview image.
[0046] Exemplarily, in response to a shooting preview event, generating a preview image according to an original image and a preset layer configuration file includes: if it is detected that a camera acquires a new original image, triggering a shooting preview event. In response to the shooting preview event, rendering the layer according to the original image and the preset layer configuration file to obtain a preview image corresponding to the original image.
[0047] In some embodiments, the processor establishes a connection with the camera through a setting interface. The camera compares a new frame of the object image obtained by the camera with the previous frame of the object image. If the object is different, the camera reports the new original image of the object. Alternatively, if the object is the same, but the position or posture of the object changes, the camera reports the new original image of the object. If the camera reports a new original image, a shooting preview event is triggered. The processor obtains the new original image reported by the camera.
[0048] In some other embodiments, the processor creates a camera session for managing the camera. A listener can be registered in the camera session to monitor the event of a new frame of raw image acquired by the camera. The new frame of raw image includes an image of a different object from the previously acquired raw image, or an image of the same object but a different position or posture of the object. This listener is triggered each time the camera acquires a new raw image. When the listener is triggered, a shooting preview event is triggered. The processor obtains the new raw image acquired by the camera through a callback function.
[0049] The new original image is used as the input data of the camera layer, and the original image is edited through the editing logic corresponding to the editing item of the camera layer in the preset configuration file to obtain a preview image corresponding to the original image. The preview image is rendered to display the preview image in the preview interface.
[0050] In the disclosed embodiment, if a shooting preview event is triggered, the camera layer is used as the target layer. The input of the camera layer is updated according to the new original image, and the original image is edited according to the filter function corresponding to the edit item of the camera layer, and the edited image is rendered to achieve the effect update of the preview image in the preview interface.
[0051] S120: Determine a target layer in response to a trigger operation in the preview interface.
[0052] Among them, the target layer represents the layer in the selected state in the at least one layer. A candidate layer control set is displayed in the preview interface, and the candidate layer control set includes a candidate layer control corresponding to at least one layer. The candidate layer control is used to select a target layer from at least one layer. The trigger operation in the preview interface includes a layer selection operation or an image processing operation, etc. The layer selection operation may include interactive operations on the candidate layer control. For example, the layer selection operation includes clicking on the candidate layer control to use the layer corresponding to the candidate layer control as the target layer. Further editing can be performed on the target layer. The image processing operation represents the image processing of the preview image, and the layer associated with the image processing operation is used as the target layer to be operated. For example, image processing is performed on a sticker in the preview image, and the layer corresponding to the sticker is used as the target layer. Alternatively, image processing is performed on a target object in the preview image, and the layer corresponding to the target object is used as the target layer.
[0053] Figure 3 A schematic diagram of a preview interface provided by an embodiment of the present disclosure. Figure 3 As shown, a candidate layer control set 320 is displayed in the preview interface 310. If a candidate layer control in the candidate layer control set 320 is clicked, the clicked candidate layer control is converted to a selected state, and the layer corresponding to the clicked candidate layer control is used as the target layer.
[0054] Exemplarily, in response to a trigger operation in the preview interface, determining the target layer includes: displaying a candidate layer control set in the preview interface, the candidate layer control set including a candidate layer control, wherein the candidate layer control is used to select the target layer from the at least one layer. In response to a selection operation on the candidate layer control set, the layer corresponding to the selected candidate layer control is used as the target layer, and a candidate material set corresponding to the target layer is displayed in the preview interface. In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
[0055] The candidate material set includes candidate materials, and the candidate materials are associated with the type of the layer. For example, if the target layer is a sticker layer, the candidate materials include stickers. If the target layer is a text layer, the candidate materials include artistic fonts. The disclosed embodiments do not specifically limit the meaning of candidate materials.
[0056] In some embodiments, a candidate layer control set is displayed in a preview interface, and the candidate layer control set includes but is not limited to at least one of a sticker layer control, a text layer control, and a special effect layer control. In response to a click operation on the sticker layer control, a sticker layer corresponding to the sticker layer control is used as a target layer. The candidate sticker set is displayed in a preview interface. In response to a selection operation on the candidate sticker set, a target sticker is determined, and a sticker layer is rendered according to the target sticker. The target sticker represents a candidate sticker selected from the candidate sticker set.
[0057] In some other embodiments, in response to a click operation on a text layer control, the text layer corresponding to the text layer control is used as a target layer. In response to a text input operation on the target layer, the text layer is rendered according to the input text.
[0058] Optionally, the determining the target layer in response to the triggering operation in the preview interface includes:
[0059] In response to an image processing operation in the preview interface, a layer corresponding to the image processing operation is used as the target layer. A candidate material set corresponding to the target layer is displayed in the preview interface. In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
[0060] For example, in response to an image processing operation in the preview interface, where the image processing operation is associated with at least one layer of the preview image, the layer corresponding to the image processing operation is used as the target layer.
[0061] S130. In response to an editing operation on the target layer, obtaining editing parameters, editing the target layer according to the editing parameters and the editing logic, and updating the preview image according to the edited target layer.
[0062] In the disclosed embodiment, the editing operation for the target layer includes the editing operation for the layer content of the target layer. The editing parameter represents the parameter of the editing item corresponding to the editing operation. Optionally, the editing parameter includes at least one of the image editing methods such as color adjustment parameters, deformation degree and special effect parameters. At least one editing item such as color editing item, deformation editing item and special effect editing item corresponding to the target layer is displayed in the preview interface. Optionally, the editing parameter can be adjusted based on the sliding operation of the slider control corresponding to the editing item. In response to the sliding operation of the slider control, the offset of the corresponding editing item is adjusted, and the editing parameter is determined according to the offset. The offset represents the offset distance of the slider in the slider control relative to the original position caused by the sliding operation. The editing parameter is determined according to the offset distance. Alternatively, the offset represents the value or adjustment degree corresponding to the stop position of the slider in the slider control corresponding to the sliding operation. The value or adjustment degree acts on the layer content of the target layer through the editing logic to adjust the display effect of the layer content.
[0063] Exemplarily, a set of candidate edit controls corresponding to the target layer is displayed in the preview interface, wherein the candidate edit controls are used to adjust the edit parameters of the edit item. In response to an adjustment operation on a target edit control, the edit parameters of the target edit item corresponding to the target edit control are obtained, wherein the target edit control represents the candidate edit control to be adjusted in the set of candidate edit controls. Based on the target layer and the target edit item, the edit logic corresponding to the target edit item in the preset configuration file is determined. The target layer is edited according to the edit logic and edit parameters corresponding to the target edit item, and the preview image is updated according to the edited target layer.
[0064] A candidate editing control set of the editing items corresponding to the target layer is displayed in the preview interface. Optionally, the candidate editing control set may include at least one control such as a slider control, a drop-down control, and a color adjustment control. The color adjustment control represents the color adjustment editing item corresponding to the target layer. In response to an adjustment operation on the color adjustment control, a selected target color is determined according to the adjustment operation. The editing logic corresponding to the color adjustment editing item is determined according to a preset configuration file, the target layer, and the color adjustment editing item. In combination with the editing logic and the target color corresponding to the color adjustment editing item, the layer content in the target layer is edited, and the edited target layer and the remaining layers are superimposed to update the preview image.
[0065] In response to the adjustment operation on the target slider control, the slider is controlled to slide in the slider control. When the slider stops sliding, the offset is determined according to the position of the slider and the sliding start position, and the editing parameters of the target editing item are determined according to the offset. The editing logic corresponding to the target editing item is determined according to the preset configuration file, the target layer and the target editing item. In combination with the editing logic and editing parameters corresponding to the target editing item, the layer content in the target layer is edited, and the edited sticker layer and the remaining layers are superimposed to update the preview image.
[0066] Optionally, candidate layout types of the target layer are displayed in the preview interface, and the candidate layout types include fill layout, fixed layout, position follow layout, etc. In response to a selection operation on a candidate layout type, the selected candidate layout type is used as the target layout type. The layout information of the target layer is adjusted according to the target layout type.
[0067] It should be noted that the target layer includes the camera layer, sticker layer, filter layer or text layer, etc. Since each layer is configured with corresponding editing logic, the editing operation on the target layer will not affect other layers. After performing an editing operation on a layer, if you need to return to edit the layer again, you need to select the layer to be edited through the candidate layer control. There is no need to perform region recognition operations, nor is there any need to re-acquire the original image from the camera to start processing, which greatly reduces the consumption of processing resources.
[0068] For example, a set of candidate editing controls corresponding to the preview image and the camera layer is displayed in the preview interface. The candidate editing controls may include deformation controls and special effect controls, etc. Among them, the deformation control is used to adjust the shape of the layer content. For example, the deformation control corresponding to the camera layer can realize the shape change of a specific area of the target object. The target object may include a real portrait, a cartoon character, a model-generated character, a real animal, a cartoon animal, or a model-generated animal, etc. The special effect control is used to adjust at least one of the clarity, contrast, transparency, saturation, and shadow effect of the layer content. In response to the interactive operation of the eye editing control for the portrait face area, the eye editing parameter is obtained. The eye area of the portrait of the preview image is edited in combination with the eye editing parameter and the editing logic corresponding to the eye editing item to update the display effect of the preview image. Alternatively, in response to the interactive operation of the deformation control for the portrait face area, the deformation parameter is obtained. The portrait face area of the preview image is deformed in combination with the deformation parameter and the editing logic corresponding to the deformation editing item to update the display effect of the preview image.
[0069] Further, in response to a click operation of the sticker layer control, the sticker layer is converted to a selected state, and the camera layer is converted to a non-selected state. A candidate material set corresponding to the sticker layer is displayed on the preview interface. The candidate materials include sticker materials, etc. In response to a selection operation on the candidate material set, the selected sticker material is used as a target sticker material. The target sticker material is used as input data of the sticker layer to render the sticker layer based on the target sticker material. The sticker layer and the camera layer are superimposed to adjust the display effect of the preview image according to the target sticker material. A preview image with the target sticker material and a candidate editing control set corresponding to the sticker layer are displayed on the preview interface. The candidate editing control may include at least one control such as a color adjustment control, a deformation control, and a special effect control. Among them, the color adjustment control is used to adjust the color of the target sticker material. In response to an interactive operation on the color adjustment control, a target color parameter of the target sticker material is obtained. The color of the target sticker material is adjusted in combination with the editing logic corresponding to the target color parameter and the color adjustment editing item to update the target sticker material in the preview image, so as to achieve an updated display effect of the preview image.
[0070] Further, in response to a click operation of the text layer control, the text layer is converted to a selected state, and the sticker layer is converted to a non-selected state. A candidate material set of the text layer is displayed in the preview interface. Among them, the candidate materials include text templates of different fonts, etc. In response to the selection operation on the candidate material set, the text content is input according to the selected text template. The text content is used as input data of the text layer to render the text layer based on the text content. The text layer, sticker layer and camera layer are superimposed to adjust the display effect of the preview image according to the text content. In the preview interface, not only a preview image with text content and target sticker material is displayed, but also a candidate editing control set is displayed. Among them, the candidate editing controls include but are not limited to at least one of a color adjustment control, a deformation control, a special effect control, etc. In response to the interactive operation on the deformation control, the deformation parameters of the text content are determined. The shape of the text content is adjusted in combination with the deformation parameters and the deformation filter function to update the text content in the preview image, so as to achieve the display effect of updating the preview image.
[0071] After editing the layer content of the text layer, if you need to return to readjust the eye area of the target object in the preview image, you can select the camera layer through the candidate layer control set in the preview interface, and obtain new eye editing parameters based on the interactive operation of the eye editing control corresponding to the camera layer, and update the eye area of the preview image according to the new eye editing parameters and editing logic.
[0072] The technical solution of the disclosed embodiment, in response to the shooting preview event, generates a preview image according to the original image and the preset layer configuration file, and displays the preview image in the preview interface. The preset layer configuration file includes the editing logic of the editing item corresponding to at least one layer. In response to the triggering operation in the preview interface, the target layer is determined. In response to the editing operation for the target layer, the editing parameters are obtained, the target layer is edited according to the editing parameters and the editing logic, and the preview image is updated according to the edited target layer. By adopting the above technical solution, multiple layers can be pre-configured by the preset layer configuration file, and the editing logic of the editing items corresponding to the layers can be configured, so that when the shooting preview event is triggered, the preview image can be generated according to the original image and the preset layer configuration file, and the target layer is determined according to the triggering operation, and the target layer is edited separately without affecting the content of other layers, and the preview image can be updated according to the edited target layer, so as to realize the flexible selection of layers for editing, and after editing, the edited layer can be returned to for re-editing, which solves the problem of lack of flexibility in the general preview image editing method.
[0073] Figure 4 This is a flow chart of another shooting preview method provided by an embodiment of the present disclosure. Based on the above embodiment, the embodiment of the present disclosure additionally defines the steps related to adjusting the layer layout. Figure 4 As shown, the method includes:
[0074] S410: In response to a shooting preview event, generate a preview image according to the original image and a preset layer configuration file, and display the preview image in a preview interface.
[0075] The preset layer configuration file includes the editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent the layer editing mode.
[0076] S420: In response to a trigger operation in the preview interface, determine a target layer, wherein the target layer represents a layer in a selected state among the at least one layer.
[0077] S430. In response to an editing operation on the target layer, obtaining editing parameters, editing the target layer according to the editing parameters and the editing logic, and updating the preview image according to the edited target layer.
[0078] S440: Obtain a new original image.
[0079] The new original image includes the target object.
[0080] Exemplarily, a new original image is obtained by querying the camera cache or a callback function. If the new original image is a picture or video frame of the same subject as the preview image but with a different pose, a layer shift event is triggered to perform subsequent operations to adjust the position of the layer to be shifted. For example, the face position of the target portrait in the new original image is different from that of the target portrait in the preview image. Alternatively, the position of the target portrait in the new original image is different from that of the target portrait in the preview image.
[0081] S450: Determine a layer to be shifted according to the layout type and target object of the at least one layer.
[0082] The disclosed embodiment can set the layout type of each layer, and can also set the global layout type. Among them, the global layout type can be effective for multiple layers. That is, by configuring the global layout type and the multiple layers corresponding to the global layout type, the layout type of the multiple layers is determined. According to the position correspondence between at least one layer and the target object in the original image and the layout type, the layer to be shifted in at least one layer is determined. For example, if the global layout type is set to position follow layout, and the layers corresponding to the position follow layout are set to include layer A, layer B, layer C and layer D. Then, if the position of the target object changes, or the face position of the target object changes, the layers in layer A, layer B, layer C and layer D that have a position correspondence with the target object are used as layers to be shifted. For example, there is sticker a on the face of a portrait. If the position of the face of the portrait changes, the sticker layer corresponding to sticker a is used as the layer to be shifted to maintain the relative position relationship between sticker a and the face of the portrait.
[0083] S460: Update the position of the layer to be shifted according to the position information of the target object in the new original image, and update the preview image corresponding to the new original image according to the updated layer to be shifted.
[0084] Exemplarily, the position correspondence between the portrait and the layer content in the layer to be shifted is determined based on the position information of the portrait in the preview image and the position information of the layer content in the layer to be shifted. The position offset information of the layer content in the layer to be shifted is determined based on the position information and the position correspondence of the portrait in the new original image. The position of the layer to be shifted is updated based on the position offset information. The layer to be shifted after the position update is superimposed with the remaining layers to update the display position of the layer to be shifted in the preview image corresponding to the new original image.
[0085] Figure 5 Schematic diagram of a method for following the layout of a preview image provided by an embodiment of the present disclosure. Figure 5As shown, there is a sticker material 520 on the left side of the face of the person in the preview image 510, and a target text 530 is set at the head of the preview image 510. If the person in the new original image tilts his head to the right, the position of the sticker layer is adjusted to maintain the relative position relationship between the sticker material 520 and the face of the person.
[0086] The technical solution of the disclosed embodiment is to obtain a new original image, determine the layer to be shifted according to the layout type of at least one layer, update the position of the layer to be shifted according to the position information of the target object in the new original image, and update the preview image corresponding to the new original image according to the updated layer to be shifted. Through the above technical solution, when the position of the target object in the new original image is moved, the layer to be shifted in at least one layer can be determined according to the position correspondence between at least one layer and the target object and the layout type, and the position of the layer to be shifted can be updated according to the position information of the target object in the new original image, so as to maintain the relative position relationship between the layer to be shifted and the target object after the position of the target object is moved.
[0087] Figure 6 This is a flowchart of another shooting preview method provided by the embodiment of the present disclosure. Based on the above embodiment, the embodiment of the present disclosure additionally defines the steps related to the layer cache. Figure 6 As shown, the method includes:
[0088] S610: In response to a shooting preview event, generate a preview image according to the original image and a preset layer configuration file, and display the preview image in a preview interface.
[0089] The preset layer configuration file includes the editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent the layer editing mode.
[0090] S620: In response to a layer cache event, determine target cache data according to layer content of the layer in the layer group, and cache the target cache data corresponding to the layer group.
[0091] Wherein, the layer group represents a collection of layers. The correspondence between the layer group and the layer can be defined in a preset layer configuration file. Alternatively, the layers can be grouped and processed according to the order of multiple layers corresponding to the preview image to obtain the layer group. The number of layers included in the layer group can be preset. Optionally, the number of layers included in the layer group can be flexibly adjusted based on the storage space of the storage resources of the electronic device. For example, the storage resources include memory, etc.
[0092] Layer cache events are used to trigger layer cache operations. The conditions for triggering layer cache events include timed triggering, triggering at a set time interval, or triggering based on layer rendering progress. Layer rendering progress represents the ratio of the rendered and unrendered input data of the layer. For example, a layer cache event can be triggered after the layer rendering is completed.
[0093] The layer content represents the data content drawn on the layer. For example, the layer content of the camera layer includes the image content of the photographed object. The layer content of the sticker layer includes the layer content of the sticker material. The layer content of the text layer includes text. The embodiments of the present disclosure do not specifically limit the specific meaning of the layer content.
[0094] The target cache data represents the superposition result of the layer contents of the layers in the layer group. Assuming that the layer group includes layer A, layer B, and layer C, the target cache data corresponding to the layer group can be the media data obtained by superimposing layer A, layer B, and layer C. The media data includes but is not limited to images, texts, special effects animations, etc.
[0095] Exemplarily, if at least one layer group meets the layer group cache time, a layer cache event for at least one layer group is triggered. For any layer group that meets the layer cache time, target cache data is determined according to the layer content of the layer in the layer group, and the target cache data corresponding to the layer group is cached.
[0096] Alternatively, if the cache interval of at least one layer group meets the set time interval threshold, a layer cache event for at least one layer group is triggered. For any layer group that meets the time interval threshold, target cache data is determined according to the layer content of the layer in the layer group, and the target cache data corresponding to the layer group is cached.
[0097] Alternatively, if the rendering of the layers in at least one layer group is completed, a layer cache event for at least one layer group is triggered. For any layer group that has been rendered, target cache data is determined according to the layer content of the layers in the layer group, and the target cache data corresponding to the layer group is cached.
[0098] By caching the target cache data corresponding to the layer group, you can reduce rendering overhead and avoid caching the layer content of each layer to occupy more storage resources.
[0099] Optionally, since the overall image zooming operation is usually not performed in the preview scene, for any layer group, the target cache data is determined according to the layer content of the layer in the layer group, and the target cache data corresponding to the layer group is cached according to the screen size. Since the target cache data of the screen size can be cached, the storage resource usage is reduced, the storage resource is saved, and the effect of balancing the rendering overhead and the cache overhead is achieved.
[0100] S630: Determine a target layer in response to a trigger operation in the preview interface.
[0101] Exemplarily, if the target layer is not a cached layer, in response to a selection operation on the candidate layer control set, the layer corresponding to the selected candidate layer control is used as the target layer, and the candidate material set corresponding to the target layer is displayed on the preview interface. In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
[0102] If you need to edit a cached layer, determine the target layer through the trigger operation in the preview interface.
[0103] S640: If the target layer is a cached layer, obtain target cache data corresponding to the target layer group.
[0104] Wherein, the target layer group includes the target layer.
[0105] Exemplarily, the target cache data corresponding to the target layer group to which the target layer belongs in the cache is obtained. Optionally, the target layer group to which the target layer belongs is determined according to the correspondence between the layer and the layer group. According to the identification information of the target layer group, the target cache data corresponding to the target layer group is obtained from the cache.
[0106] S650: Render the layers included in the target layer group according to the target cache data corresponding to the target layer group to obtain the target layer.
[0107] Exemplarily, the target cache data corresponding to the target layer group is split into layers to obtain the layer content of each layer included in the target layer group, and layer rendering is performed based on the layer content of each layer to obtain the target layer.
[0108] S660: In response to an editing operation on the target layer, obtaining editing parameters, editing the target layer according to the editing parameters and the editing logic, and updating the preview image according to the edited target layer.
[0109] The technical solution of the disclosed embodiment, in response to a layer cache event, determines target cache data according to the layer content of the layers in the layer group, and caches the target cache data corresponding to the layer group, which can reduce rendering overhead and avoid the situation where the cached layer content of each layer occupies more storage resources, thereby achieving the effect of balancing rendering overhead and cache overhead.
[0110] Figure 7This is a schematic diagram of the structure of a shooting preview device provided by an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, etc. Figure 7 As shown, the device includes: a preview image generating module 710, a target layer determining module 720 and a layer editing module 730.
[0111] A preview image generation module 710 is used to generate a preview image according to an original image and a preset layer configuration file in response to a shooting preview event, and display the preview image in a preview interface, wherein the preset layer configuration file includes an editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode;
[0112] A target layer determination module 720, configured to determine a target layer in response to a trigger operation in the preview interface, wherein the target layer represents a layer in a selected state in the at least one layer;
[0113] The layer editing module 730 is used to obtain editing parameters in response to the editing operation on the target layer, edit the target layer according to the editing parameters and the editing logic, and update the preview image according to the edited target layer.
[0114] Optionally, the preview image generation module 710 is specifically used for:
[0115] If it is detected that the camera has acquired a new original image, a shooting preview event is triggered;
[0116] In response to the shooting preview event, the layer is rendered according to the original image and a preset layer configuration file to obtain a preview image corresponding to the original image.
[0117] Optionally, the target layer determination module 720 is specifically used for:
[0118] Displaying a candidate layer control set in the preview interface, the candidate layer control set including a candidate layer control, wherein the candidate layer control is used to select the target layer from the at least one layer;
[0119] In response to a selection operation on the candidate layer control set, the layer corresponding to the selected candidate layer control is used as a target layer, and the candidate material set corresponding to the target layer is displayed on the preview interface;
[0120] In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
[0121] Optionally, the target layer determination module 720 is specifically used for:
[0122] In response to an image processing operation in the preview interface, taking a layer corresponding to the image processing operation as the target layer;
[0123] Displaying the candidate material set corresponding to the target layer on the preview interface;
[0124] In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
[0125] Optionally, the layer editing module 730 is specifically used for:
[0126] Displaying a set of candidate editing controls corresponding to the target layer in the preview interface, wherein the candidate editing controls are used to adjust editing parameters of the editing item;
[0127] In response to an adjustment operation on a target edit control, obtaining an edit parameter of a target edit item corresponding to the target edit control, wherein the target edit control represents a candidate edit control to be adjusted in the candidate edit control set;
[0128] Determining, according to the target layer and the target editing item, the editing logic corresponding to the target editing item in the preset configuration file;
[0129] The target layer is edited according to the editing logic and editing parameters corresponding to the target editing item, and the preview image is updated according to the edited target layer.
[0130] Optionally, the device further comprises:
[0131] A layer shifting device is used to obtain a new original image after updating the preview image according to the edited target layer, wherein the new original image includes a target object; determine the layer to be shifted according to the layout type of the at least one layer and the target object; update the position of the layer to be shifted according to the position information of the target object in the new original image, and update the preview image corresponding to the new original image according to the updated layer to be shifted.
[0132] Optionally, the device further comprises:
[0133] The layer cache module is used to respond to a layer cache event, determine target cache data according to the layer content of the layer in the layer group, and cache the target cache data corresponding to the layer group, wherein the layer group represents a collection of layers.
[0134] Furthermore, it also includes:
[0135] A cache data acquisition module, used for, after determining a target layer, if the target layer is a cached layer, acquiring target cache data corresponding to a target layer group, wherein the target layer group includes the target layer;
[0136] The layer rendering module is used to render the layers included in the target layer group according to the target cache data corresponding to the target layer group to obtain the target layer.
[0137] The shooting preview device provided in the embodiments of the present disclosure can execute the shooting preview method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0138] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0139] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg, Figure 8 The terminal device in the embodiment of the present disclosure may include but is not limited to a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (such as a vehicle navigation terminal), etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0140] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.
[0141] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0142] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0143] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0144] The electronic device provided in the embodiment of the present disclosure and the shooting preview method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0145] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the shooting preview method provided by the above embodiment is implemented.
[0146] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0147] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0148] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0149] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0150] In response to a shooting preview event, a preview image is generated according to the original image and a preset layer configuration file, and the preview image is displayed in a preview interface, wherein the preset layer configuration file includes editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode;
[0151] In response to a trigger operation in the preview interface, determining a target layer, wherein the target layer represents a layer in a selected state among the at least one layer;
[0152] In response to an editing operation on the target layer, an editing parameter is acquired, the target layer is edited according to the editing parameter and the editing logic, and the preview image is updated according to the edited target layer.
[0153] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0155] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0156] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0157] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0158] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0159] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0160] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A shooting preview method, characterized in that: include: In response to a shooting preview event, a preview image is generated according to the original image and a preset layer configuration file, and the preview image is displayed in a preview interface, wherein the preset layer configuration file includes editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode; In response to a trigger operation in the preview interface, determining a target layer, wherein the target layer represents a layer in a selected state among the at least one layer; In response to an editing operation on the target layer, an editing parameter is acquired, the target layer is edited according to the editing parameter and the editing logic, and the preview image is updated according to the edited target layer.
2. The method according to claim 1, characterized in that The method of generating a preview image according to the original image and a preset layer configuration file in response to the shooting preview event includes: If it is detected that the camera has acquired a new original image, a shooting preview event is triggered; In response to the shooting preview event, the layer is rendered according to the original image and a preset layer configuration file to obtain a preview image corresponding to the original image.
3. The method according to claim 1, characterized in that The step of determining the target layer in response to the triggering operation in the preview interface includes: Displaying a candidate layer control set in the preview interface, the candidate layer control set including a candidate layer control, wherein the candidate layer control is used to select the target layer from the at least one layer; In response to a selection operation on the candidate layer control set, the layer corresponding to the selected candidate layer control is used as a target layer, and the candidate material set corresponding to the target layer is displayed on the preview interface; In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
4. The method according to claim 1, characterized in that: The step of determining the target layer in response to the triggering operation in the preview interface includes: In response to an image processing operation in the preview interface, taking a layer corresponding to the image processing operation as the target layer; Displaying the candidate material set corresponding to the target layer on the preview interface; In response to a selection operation on the candidate material set, the target layer is rendered according to the target material.
5. The method according to claim 1, characterized in that The step of acquiring editing parameters in response to the editing operation on the target layer, editing the target layer according to the editing parameters and the editing logic, and updating the preview image according to the edited target layer includes: Displaying a set of candidate editing controls corresponding to the target layer in the preview interface, wherein the candidate editing controls are used to adjust editing parameters of the editing item; In response to an adjustment operation on a target edit control, obtaining an edit parameter of a target edit item corresponding to the target edit control, wherein the target edit control represents a candidate edit control to be adjusted in the candidate edit control set; Determining, according to the target layer and the target editing item, the editing logic corresponding to the target editing item in the preset configuration file; The target layer is edited according to the editing logic and editing parameters corresponding to the target editing item, and the preview image is updated according to the edited target layer.
6. The method according to claim 1, characterized in that After updating the preview image according to the edited target layer, the method further includes: Acquire a new original image, wherein the new original image includes a target object; Determining a layer to be shifted according to the layout type of the at least one layer and the target object; According to the position information of the target object in the new original image, the position of the layer to be shifted is updated, and the preview image corresponding to the new original image is updated according to the updated layer to be shifted.
7. The method according to claim 1, characterized in that Also includes: In response to a layer cache event, target cache data is determined according to layer contents of the layers in the layer group, and the target cache data corresponding to the layer group is cached, wherein the layer group represents a collection of layers.
8. The method according to claim 7, characterized in that After determining the target layer, it also includes: If the target layer is a cached layer, obtaining target cache data corresponding to a target layer group, wherein the target layer group includes the target layer; The layers included in the target layer group are rendered according to the target cache data corresponding to the target layer group to obtain the target layer.
9. A shooting preview device, characterized in that: include: A preview image generation module, used to generate a preview image according to an original image and a preset layer configuration file in response to a shooting preview event, and display the preview image in a preview interface, wherein the preset layer configuration file includes an editing logic of an editing item corresponding to at least one layer, and the editing item is used to represent a layer editing mode; a target layer determination module, configured to determine a target layer in response to a trigger operation in the preview interface, wherein the target layer represents a layer in a selected state among the at least one layer; The layer editing module is used to obtain editing parameters in response to an editing operation on the target layer, edit the target layer according to the editing parameters and the editing logic, and update the preview image according to the edited target layer.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the shooting preview method as described in any one of claims 1-8.
11. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the shooting preview method as described in any one of claims 1 to 8 when executed by a computer processor.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the shooting preview method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Photographing preview method and apparatus, device, medium, and program product
WO2026166459A1