WO2023207981A1 - 配置文件生成方法、装置、电子设备、介质及程序产品 - Google Patents
配置文件生成方法、装置、电子设备、介质及程序产品 Download PDFInfo
- Publication number
- WO2023207981A1 WO2023207981A1 PCT/CN2023/090593 CN2023090593W WO2023207981A1 WO 2023207981 A1 WO2023207981 A1 WO 2023207981A1 CN 2023090593 W CN2023090593 W CN 2023090593W WO 2023207981 A1 WO2023207981 A1 WO 2023207981A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- target
- configuration file
- layer
- file
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 239000000463 material Substances 0.000 claims abstract description 186
- 239000013077 target material Substances 0.000 claims abstract description 112
- 238000009877 rendering Methods 0.000 claims abstract description 71
- 230000004044 response Effects 0.000 claims abstract description 61
- 230000000694 effects Effects 0.000 claims description 65
- 238000004590 computer program Methods 0.000 claims description 26
- 230000015654 memory Effects 0.000 claims description 11
- 230000009471 action Effects 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 5
- 239000002994 raw material Substances 0.000 abstract 3
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000003796 beauty Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/10—Geometric effects
- G06T15/20—Perspective computation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/10—Geometric effects
- G06T15/20—Perspective computation
- G06T15/205—Image-based rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Definitions
- This application relates to the field of Internet technology, and in particular to a configuration file generation method, device, electronic equipment, media and program products.
- This application provides a configuration file generation method, device, electronic equipment, media and program products for image editing.
- a configuration file generation method for image editing is provided, which is applied to shooting applications, including:
- the creation interface includes a preset material collection used to generate the configuration file
- one or more original materials are selected from the material collection; wherein the layer information of the layer corresponding to the single original material includes: special effects rendering information, material resource information and trigger information;
- the special effects rendering information is used to record key information when rendering the original material;
- the trigger information is used to record control information that triggers display or hiding of the layer corresponding to the original material;
- edit the layer information of the layer corresponding to the original material In response to the editing operation on the original material, edit the layer information of the layer corresponding to the original material, generate the first target material, render and display the layer information of the layer corresponding to the first target material ;
- a first target configuration file for image editing is generated, wherein the first target configuration file is used for rendering on the captured image The layer information of the layer corresponding to the first target material.
- the method further includes:
- the first target configuration file is uploaded to the first server; wherein the first target configuration file is used to be downloaded by other users and used by other users.
- the layer information of the layer corresponding to the first target material is rendered on the captured image.
- the method further includes:
- the target engineering file is uploaded to the first server; wherein the target engineering file is used to be downloaded by the other users and the The layer information of the layer corresponding to the first target material is edited into the layer information of the layer corresponding to the second target material to generate the second target configuration file.
- the target project files include: special effects rendering files, resource information files, and trigger information files;
- the special effects rendering file is used to store the special effects rendering information of the first target material
- the resource information file is used to store the material resource information of the first target material
- the trigger information file is used to store the Trigger information of the first target material
- the target project file includes original storage path information of the first target material
- the original storage path information is used to update the local storage path information after the target project file is downloaded by the other user.
- the method further includes:
- the configuration file information includes unique identification information of the first target configuration file.
- the special effects rendering information includes one or more of the following: rendering type, rendering The dye level, the first identification information indicating whether the layer is visible, the second identification information indicating whether the layer is mirrored, the layer rotation angle, the layer transparency, the position coordinates of the layer, and the proportion of the layer rendered on the screen.
- the material resource information is used to record resource description information of the original material; the material resource information includes: material type and material source.
- the trigger information includes: trigger type and trigger action.
- an image editing method including:
- the layer information corresponding to a single original material includes: special effects rendering information, material resource information and trigger information; the special effects rendering information is used to record the Key information when the original material is rendered; the trigger information is used to record the control information that triggers display or hiding of the layer corresponding to the original material;
- the first target configuration file is used to render the layer information of the layer corresponding to the first target material on the captured image.
- the target engineering file after downloading the first target configuration file from the first server, in response to a modification operation for the first target configuration file, downloading the target engineering file from the first server to The creation interface displays the first target material, and the target project file stores layer information of the layer corresponding to the first target material,
- edit the layer information of the layer corresponding to the first target material In response to the editing operation on the first target material, edit the layer information of the layer corresponding to the first target material, generate the second target material, and render the layer information of the layer corresponding to the second target material. and display;
- a second target configuration file is generated based on the layer information of the layer corresponding to the second target material.
- a configuration file generating device for image editing which is used in shooting applications, including:
- a creation interface display module configured to display a creation interface in response to a creation operation, wherein the creation interface includes a preset material collection used to generate a configuration file;
- the original material selection module is used to select an item from the material collection in response to the material selection operation.
- One or more original materials wherein, the layer information of the layer corresponding to a single original material includes: special effects rendering information, material resource information and trigger information; the special effects rendering information is used to record the rendering of the original materials The key information at the time; the trigger information is used to record the control information that triggers the display or hiding of the layer corresponding to the original material;
- a first target material generation module configured to respond to an editing operation on the original material, edit the layer information of the layer corresponding to the original material, generate the first target material, and generate the image corresponding to the first target material.
- the layer information of the layer is rendered and displayed;
- a first target configuration file generation module configured to generate a first target configuration file for image editing based on the layer information of the layer corresponding to the first target material in response to the generation operation, wherein the first target The configuration file is used to render the layer information of the layer corresponding to the first target material on the captured image.
- the configuration file generating device for image editing further includes:
- a configuration file upload module configured to upload the first target configuration file to the first server in response to the user's publishing operation for the first target configuration file; wherein the first target configuration file is used to be used by other users. Download and render the layer information of the layer corresponding to the first target material on the image taken by the other user.
- the configuration file generating device for image editing further includes:
- the target project file generation module is used to store the layer information of the layer corresponding to the first target material into the target project file;
- a target project file upload module configured to upload the target project file to the first server in response to a user's publishing operation for the first target configuration file; wherein the target project file is used to be The other users download and edit the layer information of the layer corresponding to the first target material into the layer information of the layer corresponding to the second target material to generate a second target configuration file.
- the target project files include: special effects rendering files, resource information files, and trigger information files;
- the special effects rendering file is used to store the special effects rendering information of the first target material
- the resource information file is used to store the material resource information of the first target material
- the trigger information file is used to store the Trigger information of the first target material
- the target project file includes the original storage path information of the first target material; wherein the original storage path information is used to be updated after the target project file is downloaded by the other user. Store path information locally.
- the configuration file generating device for image editing further includes:
- a configuration file information upload module configured to upload the configuration file information corresponding to the first target configuration file to the second server when uploading the first target configuration file to the first server;
- the configuration file information includes unique identification information of the first target configuration file.
- the special effects rendering information includes one or more of the following: rendering type, rendering level, first identification information indicating whether the layer is visible, second identification information indicating whether the layer is mirrored, layer rotation Angle, layer transparency, layer position coordinates, and the proportion of the layer rendered on the screen.
- the material resource information is used to record resource description information of the original material; the material resource information includes: material type and material source.
- the trigger information includes: trigger type and trigger action.
- an electronic device including: a memory and a processor.
- the processor is configured to execute a computer program stored in the memory.
- the computer program is executed by the processor, the first aspect is implemented.
- a computer-readable storage medium on which a computer program is stored.
- the configuration file generation method for image editing described in the first aspect is implemented. or the image editing method described in the second aspect.
- a computer program product When the computer program product is run on a computer, it causes the computer to execute the configuration file generation method for image editing described in the first aspect or the third aspect. The image editing method described in the second aspect.
- a computer program comprising instructions that, when executed by a processor, cause the processor to execute the configuration file generation method for image editing described in the first aspect or the third aspect.
- Figure 1 is a schematic diagram of an application scenario of some embodiments of the present application.
- Figure 2 is a schematic diagram of the system architecture of an exemplary application environment of a configuration file generation method for image editing that can be applied to some embodiments of the present application;
- Figure 3 is a flow chart of a configuration file generation method for image editing in some embodiments of the present application.
- Figure 4 is another flow chart of a configuration file generation method for image editing in some embodiments of the present application.
- Figure 5 is a schematic structural diagram of a configuration file generating device for image editing in some embodiments of the present application.
- Figure 6 is a schematic structural diagram of an electronic device in some embodiments of the present application.
- developers can use desktop tools (such as PhotoShop, etc.) to create special effects, upload the special effects to the server, and finally send them to the camera for users to use.
- desktop tools such as PhotoShop, etc.
- the special effects produced by developers are usually fixed, and users can only adjust part of the special effects, such as filter intensity, makeup intensity, etc., which cannot meet the needs of users.
- the shooting application provides an entrance to create a configuration file for image editing (that is, special effects to beautify the image), so that users can customize the configuration file according to their own needs through this entrance.
- the shooting application may display a creation interface, which includes a preset material collection for generating a configuration file, such as filters, makeup, music, etc. Users can select appropriate materials, mix and adjust different types of materials, and customize configuration files.
- the shooting application selects one or more original materials from the material collection; in response to the editing operation on the original materials, it edits the layer information of the layer corresponding to the original materials, for example, the special effects rendering information (for Record the key information when rendering the original material), material resource information and trigger information (used to record the control information that triggers the display or hiding of the layer corresponding to the original material), etc., generate the first target material, and control the first target material.
- the layer information of the corresponding layer is rendered and displayed. In this way, users can adjust the overall effect at any time.
- the first target configuration file is generated based on the layer information of the layer corresponding to the first target material.
- the configuration file for image editing can be completed in the shooting application, and the user can customize the configuration file according to needs, thereby improving the flexibility of configuration file generation, thereby improving the user experience.
- FIG. 1 is a schematic diagram of an application scenario of some embodiments of the present application.
- the shooting application can provide a variety of image editing profiles for the user to use to improve the shooting effect.
- Configuration files for image editing include popular configuration files for image editing, the latest configuration files for image editing, etc. Users can download and use the configuration files for image editing that they are interested in, and can also collect them.
- Configuration files for image editing are fixed configuration files for image editing that are pre-designed by developers, and users cannot freely adjust the beauty effects of the configuration files for image editing.
- some embodiments of the present application provide a configuration file generation method, device, electronic device, medium and program product for image editing to improve the flexibility of configuration file generation, thereby improving the beautification effect. flexibility. Moreover, the production cost of configuration files can also be reduced.
- FIG. 2 is a schematic diagram of the system architecture of an exemplary application environment of the configuration file generation method for image editing that can be applied to some embodiments of the present application.
- the system architecture 200 includes: a terminal device 201, a network 202 and a server 203.
- the network 202 is a medium used to provide a communication link between the terminal device 201 and the server 203 .
- Network 202 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
- the terminal device 201 includes but is not limited to desktop computers, portable computers, smart phones, tablets, etc.
- the terminal device 201 is installed with a shooting application, and the user can take photos or videos through the shooting application.
- the server 203 may be a server corresponding to the photographing application.
- the number of terminal devices, networks and servers in Figure 2 is only illustrative. You can have any number of end devices, networks, and servers depending on your implementation needs.
- the server 203 may be a server cluster composed of multiple servers.
- the configuration file generation method for image editing provided by some embodiments of the present application can be executed by the shooting application in the terminal device 201.
- the configuration file generation device for image editing can be provided in the shooting application of the terminal device 201. middle.
- the photographing application in the terminal device 201 provides an entrance for customizing the generation of a configuration file for image editing, through which the user can customize a configuration file for image editing. Users can also upload customized configuration files for image editing to the server 203 for use by other users.
- the project file corresponding to the configuration file generated locally by the user can also be uploaded to the server 203 .
- the server 203 can contain many user-defined configuration files for image editing, thereby reducing the cost of creating configuration files for developers of photography applications.
- Figure 3 is a flow chart of a configuration file generation method for image editing in some embodiments of the present application. When applied to a shooting application, it may include the following steps:
- Step S310 in response to the creation operation, display the creation interface.
- the user after the user opens the shooting application, he can click the "Camera" button to enter the shooting interface.
- the user can be provided with configuration files (for example, stickers, props) pre-made by developers for image editing. special effects that beautify images), users can to select profiles of interest to render on images taken by the user.
- the shooting application may provide an entrance for creating a configuration file for image editing.
- the shooting interface may provide a button for creating a configuration file. If the user is not interested in all the configuration files provided in the shooting interface, he can create an interested configuration file through this entrance. After the user clicks a button for creating a profile, the shooting application may display a creation interface in response to the creation operation. It should be noted that an entry for creating a configuration file for image editing can also be provided in other interfaces of the shooting application, and this application is not limited to this.
- the creation interface includes preset material collections for generating configuration files.
- the material collection includes many different kinds of original materials.
- Original materials are pre-generated by developers.
- the types of original materials can include: filters, makeup, foreground stickers, face stickers, panel stickers, special effects, text, animation, music, etc.
- Step S320 In response to the material selection operation, one or more original materials are selected from the material collection.
- the layer information of the layer corresponding to a single original material includes: special effects rendering information, material resource information and trigger information.
- Special effects rendering information is used to record key information when rendering original materials, such as rendering type, rendering level, etc.
- the trigger information is used to record the control information that triggers the display or hiding of the layer corresponding to the original material. That is, when the user performs a certain action (opening the mouth, shaking his head, nodding, etc.), the layer corresponding to the original material is triggered to be displayed, or the layer corresponding to the original material is triggered. Hide the layer corresponding to the original material.
- Step S330 in response to the editing operation on the original material, edit the layer information of the layer corresponding to the original material, generate the first target material, render and display the layer information of the layer corresponding to the first target material.
- the editing of the original material means the editing of the layer information of the layer corresponding to the original material, such as modifying the rendering level, modifying the layer transparency, etc.
- Different editing operations can be performed on different types of original materials. For example, when the type of the original material is filter, you can edit the intensity of the filter; when the type of the original material is If it is text, edit the text content, etc.
- the original material is updated to the first target material.
- the layer information of the layer corresponding to the first target material can be rendered and displayed. In this way, the beautification effect is fed back to the user to facilitate timely adjustment by the user. If the user is dissatisfied, the editing operation can be continued to obtain the result that the user is satisfied with. If the user is satisfied, the following step S340 can be performed.
- Step S340 in response to the generation operation, generate a first target configuration file based on the layer information of the layer corresponding to the first target material, where the first target configuration file is used to render the image corresponding to the first target material on the captured image.
- the layer information of the layer is used to render the image corresponding to the first target material on the captured image.
- the creation interface also includes buttons for generating configuration files for image editing, such as a "Finish” button. When the user clicks this button, it indicates that the user has completed the editing operation and performs the generation operation.
- the shooting application may generate the first target configuration file based on the layer information of the layer corresponding to the first target material.
- the first target configuration file can be displayed on the shooting interface, can be displayed together with the configuration file pre-made by the developer for image editing, or a new interface can be added specifically for storing user-defined configuration files.
- the "Favorite” button, "Popular” button and “Latest” button shown in Figure 1 correspond to different interfaces, and each interface has a corresponding configuration file. You can add a "Customize” button, and the user-defined configuration file can be stored in the interface corresponding to the "Customize” button.
- the configuration file generation method for image editing in some embodiments of the present application provides an entrance to create a configuration file for image editing (that is, special effects to beautify the image) in the shooting application, so that users can use the configuration file according to their own needs.
- Portal to customize configuration files for image editing.
- the shooting application may display a creation interface, which includes a preset material collection for generating a configuration file, such as filters, makeup, music, etc. Users can select appropriate materials, mix and adjust different types of materials, and customize configuration files.
- the shooting application selects one or more original materials from the material collection; in response to the editing operation on the original materials, it edits the layer information of the layer corresponding to the original materials, for example, the special effects rendering information (for Record the key information when rendering the original material), material resource information and trigger information (used to record the control information that triggers the display or hiding of the layer corresponding to the original material), etc., generate the first target material, and The layer information of the layer corresponding to the target material is rendered and displayed. In this way, users can adjust the overall effect at any time.
- the first target configuration file is generated based on the layer information of the layer corresponding to the first target material.
- the configuration file for image editing can be completed in the shooting application, and the user can customize the configuration file according to needs, thereby improving the flexibility of configuration file generation, thereby improving the user experience.
- Figure 4 is another flow chart of a configuration file generation method for image editing in some embodiments of the present application, which may include the following steps:
- Step S410 in response to the creation operation, display the creation interface.
- the creation interface includes a preset material collection for generating configuration files.
- the material collection can contain multiple original materials, and each original material has a corresponding layer.
- the layer information of the layer corresponding to a single original material includes but is not limited to: special effects rendering information, material resource information, Trigger information.
- the division method of layer information is not limited to this.
- the special effects rendering information records key information when rendering the original material, which may include: rendering type, rendering level, first identification information indicating whether the layer is visible, second identification information indicating whether the layer is mirrored, and layer rotation. Angle, layer transparency, layer position coordinates, and the proportion of the layer rendered on the screen.
- the definition of special effects rendering information can be found in Table 1:
- the material resource information is used to record the resource description information of the original material.
- the material resource information includes: material type and material source.
- the material type includes filters, makeup, special effects, stickers, fonts, flower characters, animation, music, etc.
- Material sources include: from online special effects platforms or from local sources. If the material comes from local source, you can also include the material source value, which is used to record the relative path of the material.
- the definition of the material resource description information of a single material can be found in Table 2.
- Trigger information is used to record the control information that triggers the display or hiding of the layer corresponding to the original material.
- the trigger information includes: trigger type and trigger action, and can also include the number of impressions, display time, etc.
- the definition of trigger information can be found in Table 3.
- the above three types of information can be stored in different files respectively. In this way, developers can easily find the corresponding content when they want to modify the above information.
- the above three types of information can also be stored in one file.
- Step S420 in response to the material selection operation, select one or more original materials from the material collection.
- Step S430 in response to the editing operation on the original material, edit the layer information of the layer corresponding to the original material, generate the first target material, render and display the layer information of the layer corresponding to the first target material, and
- the layer information of the layer corresponding to the first target material is stored in the target project file.
- the process of users creating configuration files is the process of creating projects.
- Each configuration file corresponds to a project. Since each original material has layer information corresponding to the layer, each time the user selects an original material, the layer information corresponding to the original material can be stored locally on the terminal device used by the user.
- the file that stores layer information can be called a project file.
- the special effects rendering information, material resource information, and trigger information in the layer information can all have corresponding project files.
- the user's editing behavior will update the layer information. For example, if the user adds a filter layer and sets the blink display, the project files corresponding to the special effects rendering information, material resource information, and trigger information can be updated.
- the target project file corresponding to the first target material can be generated at the same time.
- the target project file includes: special effects rendering file, resource information file, and trigger information file.
- the special effects rendering file is used to store the special effects rendering information of the first target material.
- the resource information file is used to store the material resource information of the first target material.
- the trigger information file Used to store trigger information of the first target material.
- Step S440 in response to the generation operation, generate a first target configuration file for image editing based on the layer information of the layer corresponding to the first target material, where the first target configuration file is used to render the first target configuration file on the captured image.
- the layer information of the layer corresponding to a target material is used to render the first target configuration file on the captured image.
- the shooting application can generate a first target configuration file based on the layer information of the layer corresponding to the first target material.
- the first target configuration file can be applied to a general rendering engine.
- Step S450 In response to the user's publishing operation for the first target configuration file, upload the first target configuration file and the target project file to the first server.
- the user can choose to publish the first target configuration file to the cloud for use by other users.
- the first target configuration file in response to the user's publishing operation for the first target configuration file, may be uploaded to the first server, and other users may download the first target configuration file and render the first target configuration file on the captured image.
- the cover image, video display file, etc. of the first target configuration file can also be uploaded to the first server.
- the target project file when uploading the first target configuration file, can also be uploaded to the first server at the same time. In this way, if other users are not satisfied with the first target configuration file, they can download the target project. file to make modifications to the first target configuration file.
- the user when publishing the first target configuration file, the user can fill in the publishing information corresponding to the first target configuration file.
- the publishing information may include: cover image, title, description information, video display (optional), prompt information ( optional) etc.
- the file type information (such as pictures) in the published information can be converted into resource URI (uniform resource identifier).
- the configuration file information corresponding to the first target configuration file may be uploaded to the second server.
- the configuration file information may also include unique identification information of the first target configuration file to establish a corresponding relationship between the configuration file information and the first target configuration file. For example, a hash signature can be performed on the first target configuration file to obtain a hash value of the first target configuration file, and the hash value is used as the unique identification information of the first target configuration file.
- the first server can first perform automated testing on the first target configuration file to test the performance data of the first target configuration file to ensure the material matching of the first target configuration file. Compliance. After the test is passed, the first target configuration file is then delivered to the shooting application for users to download and use.
- Step S460 in response to other users' download operations for the first target configuration file, download the first target configuration file from the first server, and use the first target configuration file to render the first target material corresponding to the image captured by the other user.
- the layer information for the layer is not limited to the layer.
- the first target configuration file After the first target configuration file is delivered to the shooting application, other users can download and use the first target configuration file, that is, render the layer information of the layer corresponding to the first target material on the captured image to improve the quality of the image. overall effect.
- Step S470 in response to other users' modification operations on the first target configuration file, download the target project file from the first server to display the first target material on the creation interface.
- the target project file such as special effects rendering file, resource information file, trigger information file
- the target project file such as special effects rendering file, resource information file, trigger information file
- the target project file may include the original storage path information of the first target material. Since the target project file is stored locally on the terminal device used by the user, the original storage path information is the path local to the terminal device. information. After other users download the target project file from the first server, the storage paths of the terminal devices used by other users may be different from the terminal devices used by this user. Therefore, the original storage path information can be updated to the local storage path information. To ensure the correctness of the storage path.
- Step S480 In response to other users' editing operations on the first target material, edit the layer information of the layer corresponding to the first target material, generate the second target material, and perform the processing on the layer information of the layer corresponding to the second target material. Render and display.
- Step S490 in response to the generation operation, generate a second target configuration file based on the layer information of the layer corresponding to the second target material.
- the project file corresponding to the second target configuration file can also be uploaded to the first server. In this way, if the user using the second target configuration file is not satisfied with the second target configuration file, he can also modify the second target configuration file.
- the configuration file generation method for image editing in some embodiments of the present application can pre-define the layer information of each original material to record each original material information, such as filter effect, filter intensity, sticker information, and sticker position information. , sticker animation information, etc.
- the creation of the configuration file can be completed in the shooting application.
- the user completes the configuration file he can also publish the configuration file for use by other users, which can reduce the cost of developing configuration files for developers.
- the project file corresponding to the configuration file can be generated at the same time. In this way, other users can secondary edit the configuration file, for example, they can easily replace an item in the configuration file. Materials, etc., which can improve other user-created configurations Document efficiency.
- the configuration file generation device 500 for image editing includes:
- the creation interface display module 510 is configured to display the creation interface in response to the creation operation, wherein the creation interface includes a preset material collection used to generate the configuration file;
- the original material selection module 520 is used to select one or more original materials from the material collection in response to the material selection operation; wherein the layer information of the layer corresponding to the single original material includes: special effects rendering information, material resource information and triggering Information; special effects rendering information is used to record key information when rendering the original material; trigger information is used to record control information that triggers display or hiding of the layer corresponding to the original material;
- the first target material generation module 530 is configured to respond to the editing operation of the original material, edit the layer information of the layer corresponding to the original material, generate the first target material, and generate the layer information of the layer corresponding to the first target material. Render and display;
- the first target configuration file generation module 540 is configured to generate a first target configuration file for image editing based on the layer information of the layer corresponding to the first target material in response to the generation operation, wherein the first target configuration file is Rendering the layer information of the layer corresponding to the first target material on the captured image.
- the profile generating device 500 for image editing further includes:
- a configuration file upload module configured to upload the first target configuration file to the first server in response to the user's publishing operation for the first target configuration file, wherein the first target configuration file is used to be downloaded by other users and stored there.
- the layer information of the layer corresponding to the first target material is rendered on the images taken by the other users.
- the profile generating device 500 for image editing further includes:
- the target project file generation module is used to store the layer information of the layer corresponding to the first target material into the target project file;
- the target project file upload module is configured to upload the target project file to the first server in response to the user's publishing operation for the first target configuration file, wherein the target project file is used to The other user downloads and edits the layer information of the layer corresponding to the first target material into the layer information of the layer corresponding to the second target material to generate a second target configuration file.
- the target project files include: special effects rendering files, resource information files, and trigger information files;
- the special effects rendering file is used to store the special effects rendering information of the first target material
- the resource information file is used to store the material resource information of the first target material
- the trigger information file is used to store the trigger information of the first target material
- the target project file includes original storage path information of the first target material, wherein the original storage path information is used to update the local storage path after the target project file is downloaded by the other user. information.
- the profile generating device 500 for image editing further includes:
- the configuration file information upload module is used to upload the configuration file information corresponding to the first target configuration file to the second server when uploading the first target configuration file to the first server;
- the configuration file information includes unique identification information of the first target configuration file.
- the special effects rendering information includes one or more of the following: rendering type, rendering level, first identification information indicating whether the layer is visible, second identification information indicating whether the layer is mirrored, layer rotation angle, Layer transparency, layer position coordinates, and the proportion of the layer rendered on the screen.
- the material resource information is used to record the resource description information of the original material; the material resource information includes: material type and material source.
- the trigger information includes: trigger type and trigger action.
- modules may be implemented as software components executing on one or more general-purpose processors, or may be implemented as hardware, such as programmable logic devices and/or application-specific integrated circuits, for performing certain functions.
- these modules may be embodied in the form of a software product that may be stored in a non-volatile storage medium.
- non-volatile storage media include enabling computer equipment (such as personal computers, servers, network equipment, mobile terminals, etc.) to execute the methods described in the embodiments of the present disclosure.
- the above modules can also be implemented on a single device or distributed on multiple devices. The functionality of these modules can be combined with each other or further split into sub-modules.
- an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the above-described method for image processing in this exemplary embodiment. Edited profile generation method or image editing method.
- FIG. 6 is a schematic structural diagram of an electronic device in some embodiments of the present application. It should be noted that the electronic device 600 shown in FIG. 6 is only an example, and should not bring any limitations to the functions and scope of use of some embodiments of the present application.
- the electronic device 600 includes a central processing unit (CPU) 601 that can operate according to a program stored in a read-only memory (ROM) 602 or loaded from a storage portion 608 into a random access memory (RAM) 603 And perform various appropriate actions and processing.
- ROM read-only memory
- RAM random access memory
- various programs and data required for system operation are also stored.
- the central processing unit 601, ROM 602 and RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to bus 604.
- the following components are connected to the I/O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., speakers, etc.; and a storage section 608 including a hard disk, etc. ; and a communications section 609 including a network interface card such as a local area network (LAN) card, modem, or the like.
- the communication section 609 performs communication processing via a network such as the Internet.
- Driver 610 is also connected to I/O interface 605 as needed.
- Removable media 611 such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
- the process described above with reference to the flowchart may be implemented as a computer software program.
- embodiments of the present application include a computer program product including a computer program carried on a computer-readable medium, the computer program including instructions for executing the flowchart. Program code for the method shown.
- the computer program may be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611.
- the central processing unit 601 various functions defined in the device of the present application are executed.
- a computer-readable storage medium is also provided, on which a computer program is stored.
- the computer program is executed by a processor, the above-mentioned configuration file generation method or image editing method for image editing is implemented. .
- the computer-readable storage medium shown in this application may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard drives, random access memory, read only memory, erasable programmable read only memory (EPROM) or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, radio frequency, etc., or any suitable combination of the above.
- a computer program product is also provided.
- the computer program product When the computer program product is run on a computer, it causes the computer to execute the above configuration file generation method or image editing method for image editing.
- a computer program is also provided.
- the computer program includes instructions that, when executed by a processor, cause the processor to implement the above configuration file generation method for image editing or image editing. method.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Processing Or Creating Images (AREA)
Abstract
本申请涉及一种配置文件生成方法、装置、电子设备、介质及程序产品,应用于互联网技术领域,所述方法应用于拍摄应用,包括:响应于创建操作,显示创建界面,其中,创建界面包括预先设置的、用于生成配置文件的素材集合;响应于素材选取操作,从素材集合中选取一个或多个原始素材;响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,对生成的第一目标素材进行渲染并显示;响应于生成操作,基于第一目标素材所对应图层的图层信息生成用于图像编辑的第一目标配置文件。
Description
相关申请的交叉引用
本申请是以申请号为202210440323.7,申请日为2022年4月25日的中国申请为基础,并主张其优先权,该中国申请的公开内容在此作为整体引入本申请中。
本申请涉及互联网技术领域,尤其涉及一种配置文件生成方法、装置、电子设备、介质及程序产品。
随着互联网的发展,越来越多的用户将拍摄的照片或视频上传至社交网站来分享自己的工作和生活。为了美化照片或增加趣味性,大多相机提供了贴纸或道具等特效供用户使用,从而达到美颜的效果。
发明内容
本申请提供了一种用于图像编辑的配置文件生成方法、装置、电子设备、介质及程序产品。
根据本申请的第一方面,提供了一种用于图像编辑的配置文件生成方法,应用于拍摄应用,包括:
响应于创建操作,显示创建界面,其中,所述创建界面包括预先设置的、用于生成配置文件的素材集合;
响应于素材选取操作,从所述素材集合中选取一个或多个原始素材;其中,单个所述原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;
响应于针对所述原始素材的编辑操作,编辑所述原始素材所对应图层的图层信息,生成第一目标素材,对所述第一目标素材所对应图层的图层信息进行渲染并显示;
响应于生成操作,基于所述第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,所述第一目标配置文件用于在拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,所述方法还包括:
响应于用户针对所述第一目标配置文件的发布操作,将所述第一目标配置文件上传至第一服务器;其中,所述第一目标配置文件用于被其他用户下载并在所述其他用户拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,所述方法还包括:
将所述第一目标素材所对应图层的图层信息,存储至目标工程文件;
当响应于用户针对所述第一目标配置文件的发布操作时,将所述目标工程文件上传至所述第一服务器;其中,所述目标工程文件用于被所述其他用户下载并将所述第一目标素材对应图层的图层信息编辑成第二目标素材所对应图层的图层信息以生成第二目标配置文件。
在一些实施例中,所述目标工程文件包括:特效渲染文件、资源信息文件、触发信息文件;
其中,所述特效渲染文件用于存储所述第一目标素材的特效渲染信息,所述资源信息文件用于存储所述第一目标素材的素材资源信息,所述触发信息文件用于存储所述第一目标素材的触发信息。
在一些实施例中,所述目标工程文件中包括所述第一目标素材的原始存储路径信息;
其中,所述原始存储路径信息用于在所述目标工程文件被所述其他用户下载后被更新为本地存储路径信息。
在一些实施例中,所述方法还包括:
在将所述第一目标配置文件上传至所述第一服务器时,将所述第一目标配置文件对应的配置文件信息上传至第二服务器;
其中,所述配置文件信息包括所述第一目标配置文件的唯一标识信息。
在一些实施例中,所述特效渲染信息包括以下一种或多种:渲染类型、渲
染层级、表征图层是否可见的第一标识信息、表征图层是否镜像的第二标识信息、图层旋转角度、图层透明度、图层的位置坐标、图层在屏幕中渲染的比例。
在一些实施例中,所述素材资源信息用于记录所述原始素材的资源描述信息;所述素材资源信息包括:素材类型和素材来源。
在一些实施例中,所述触发信息包括:触发类型和触发动作。
根据本申请的第二方面,提供了一种图像编辑方法,包括:
响应于针对第一目标配置文件的下载操作,从第一服务器下载所述第一目标配置文件;其中,所述第一目标配置文件是通过将原始素材所对应图层的图层信息编辑成第一目标素材所对应图层的图层信息而生成的,单个所述原始素材所对应的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;
利用所述第一目标配置文件,在拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,在从所述第一服务器下载所述第一目标配置文件之后,响应于针对所述第一目标配置文件的修改操作,从所述第一服务器下载目标工程文件,以在创建界面显示所述第一目标素材,所述目标工程文件存储有所述第一目标素材所对应图层的图层信息,
响应于针对所述第一目标素材的编辑操作,编辑第一目标素材所对应图层的图层信息,生成第二目标素材,对所述第二目标素材所对应图层的图层信息进行渲染并显示;
响应于生成操作,基于所述第二目标素材所对应图层的图层信息生成第二目标配置文件。
根据本申请的第三方面,提供了一种用于图像编辑的配置文件生成装置,应用于拍摄应用,包括:
创建界面显示模块,用于响应于创建操作,显示创建界面,其中,所述创建界面包括预先设置的、用于生成配置文件的素材集合;
原始素材选取模块,用于响应于素材选取操作,从所述素材集合中选取一
个或多个原始素材;其中,单个所述原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;
第一目标素材生成模块,用于响应于针对所述原始素材的编辑操作,编辑所述原始素材所对应图层的图层信息,生成第一目标素材,对所述第一目标素材所对应图层的图层信息进行渲染并显示;
第一目标配置文件生成模块,用于响应于生成操作,基于所述第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,所述第一目标配置文件用于在拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,所述用于图像编辑的配置文件生成装置还包括:
配置文件上传模块,用于响应于用户针对所述第一目标配置文件的发布操作,将所述第一目标配置文件上传至第一服务器;其中,所述第一目标配置文件用于被其他用户下载并在所述其他用户拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,所述用于图像编辑的配置文件生成装置还包括:
目标工程文件生成模块,用于将所述第一目标素材所对应图层的图层信息,存储至目标工程文件;
目标工程文件上传模块,用于当响应于用户针对所述第一目标配置文件的发布操作时,将所述目标工程文件上传至所述第一服务器;其中,所述目标工程文件用于被所述其他用户下载并将所述第一目标素材对应图层的图层信息编辑成第二目标素材所对应图层的图层信息以生成第二目标配置文件。
在一些实施例中,所述目标工程文件包括:特效渲染文件、资源信息文件、触发信息文件;
其中,所述特效渲染文件用于存储所述第一目标素材的特效渲染信息,所述资源信息文件用于存储所述第一目标素材的素材资源信息,所述触发信息文件用于存储所述第一目标素材的触发信息。
在一些实施例中,所述目标工程文件中包括所述第一目标素材的原始存储路径信息;其中,所述原始存储路径信息用于在所述目标工程文件被所述其他用户下载后被更新为本地存储路径信息。
在一些实施例中,所述用于图像编辑的配置文件生成装置还包括:
配置文件信息上传模块,用于在将所述第一目标配置文件上传至所述第一服务器时,将所述第一目标配置文件对应的配置文件信息上传至第二服务器;
其中,所述配置文件信息包括所述第一目标配置文件的唯一标识信息。
在一些实施例中,所述特效渲染信息包括以下一种或多种:渲染类型、渲染层级、表征图层是否可见的第一标识信息、表征图层是否镜像的第二标识信息、图层旋转角度、图层透明度、图层的位置坐标、图层在屏幕中渲染的比例。
在一些实施例中,所述素材资源信息用于记录所述原始素材的资源描述信息;所述素材资源信息包括:素材类型和素材来源。
在一些实施例中,所述触发信息包括:触发类型和触发动作。
根据本申请的第四方面,提供了一种电子设备,包括:存储器和处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现第一方面所述的用于图像编辑的配置文件生成方法或第二方面所述的图像编辑方法。
根据本申请的第五方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的用于图像编辑的配置文件生成方法或第二方面所述的图像编辑方法。
根据本申请的第六方面,提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面所述的用于图像编辑的配置文件生成方法或第二方面所述的图像编辑方法。
根据本申请的第七方面,提供了一种计算机程序,包括指令,所述指令当由处理器执行时使所述处理器执行第一方面所述的用于图像编辑的配置文件生成方法或第二方面所述的图像编辑方法。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请的一些实施例的一种应用场景示意图;
图2为可以应用于本申请的一些实施例的用于图像编辑的配置文件生成方法的示例性应用环境的***架构的示意图;
图3为本申请的一些实施例中用于图像编辑的配置文件生成方法的一种流程图;
图4为本申请的一些实施例中用于图像编辑的配置文件生成方法的又一种流程图;
图5为本申请的一些实施例中用于图像编辑的配置文件生成装置的一种结构示意图;
图6为本申请的一些实施例中电子设备的一种结构示意图。
为了能够更清楚地理解本申请的上述目的、特征和优点,下面将对本申请的方案进行进一步描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但本申请还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本申请的一部分实施例,而不是全部的实施例。
相关技术中,开发人员可以采用桌面端工具(例如PhotoShop等),制作特效,并将特效上传至服务器,最后下发给相机供用户使用。然而,开发人员制作的特效通常是固定的,用户只能调节特效的部分效果,比如滤镜强度、妆容强度等,无法满足用户的需求。
本申请的一些实施例提供的技术方案与相关技术相比具有如下优点:
在拍摄应用中提供了创建用于图像编辑的配置文件(即美化图像的特效)的入口,这样用户可以根据自身的需求通过该入口自定义配置文件。拍摄应用响应于创建操作,可以显示创建界面,该创建界面包括预先设置的、用于生成配置文件的素材集合,例如滤镜、妆容、音乐等。用户可以选取合适的素材、搭配和调整不同种类的素材,定制配置文件。拍摄应用响应于素材选取操作,从素材集合中选取一个或多个原始素材;响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,例如可以编辑特效渲染信息(用于记录对原始素材进行渲染时的关键信息)、素材资源信息和触发信息(用于记录触发显示或隐藏原始素材所对应图层的控制信息)等,生成第一目标素材,对第一目标素材所对应图层的图层信息进行渲染并显示。这样,用户可以随时对整体效果进行调整。响应于生成操作,基于第一目标素材所对应图层的图层信息生成第一目标配置文件。这样,用户在拍摄图像时,可以在拍摄的图像中渲染第一目标素材所对应图层的图层信息,以提高图像的整体效果。本申请的一些实施例中,用于图像编辑的配置文件可在拍摄应用完成,用户可以根据需求自定义配置文件,提高配置文件生成的灵活性,从而提升用户体验。
参见图1,图1为本申请的一些实施例的一种应用场景示意图。用户在通过拍摄应用拍照时,拍摄应用可以提供多种用于图像编辑的配置文件供用户使用,以提高拍摄效果。用于图像编辑的配置文件包括热门的用于图像编辑的配置文件、最新的用于图像编辑的配置文件等,用户可以下载并使用感兴趣的用于图像编辑的配置文件,还可以收藏感兴趣的用于图像编辑的配置文件。然而,上述用于图像编辑的配置文件是开发人员预先设计的固定用于图像编辑的配置文件,用户无法对用于图像编辑的配置文件的美颜效果进行自由调节。
为了解决上述问题,本申请的一些实施例提供了一种用于图像编辑的配置文件生成方法、装置、电子设备、介质及程序产品,以提高配置文件生成的灵活性,从而提高美颜效果的灵活性。并且,还可以降低配置文件的制作成本。
图2为可以应用于本申请的一些实施例的用于图像编辑的配置文件生成方法的示例性应用环境的***架构的示意图。
如图2所示,***架构200包括:终端设备201、网络202和服务器203。
网络202用以在终端设备201和服务器203之间提供通信链路的介质。网络202可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。终端设备201包括但不限于台式计算机、便携式计算机、智能手机和平板电脑等等,终端设备201中安装有拍摄应用,用户可以通过拍摄应用拍摄照片或视频。服务器203可以是拍摄应用对应的服务器。
应该理解,图2中的终端设备、网络和服务器的数量仅仅是示意性的。根据实现需要,可以具有任意数量的终端设备、网络和服务器。比如服务器203可以是多个服务器组成的服务器集群等。
本申请的一些实施例所提供的用于图像编辑的配置文件生成方法可以由终端设备201中的拍摄应用执行,相应地,用于图像编辑的配置文件生成装置可以设置于终端设备201的拍摄应用中。举例而言,终端设备201中的拍摄应用提供了可以自定义生成用于图像编辑的配置文件的入口,用户可以通过该入口自定义生成用于图像编辑的配置文件。用户还可以将自定义的用于图像编辑的配置文件上传至服务器203供其他用户使用。
另外,在上传用于图像编辑的配置文件时,还可以将用户本地生成的配置文件对应的工程文件上传至服务器203。在其他用户想对该配置文件进行简单调整的情况下,可以下载对应的工程文件,从而可以对该用于图像编辑的配置文件进行二次编辑,最终生成其他用户感兴趣的用于图像编辑的配置文件。这样,可以降低其他用户生成用于图像编辑的配置文件的复杂度,提高配置文件生成的效率。通过上述方法,服务器203中可以包含很多用户自定义的用于图像编辑的配置文件,从而可以降低拍摄应用的开发人员制作配置文件的成本。
参见图3,图3为本申请的一些实施例中用于图像编辑的配置文件生成方法的一种流程图,应用于拍摄应用,可以包括以下步骤:
步骤S310,响应于创建操作,显示创建界面。
本申请的一些实施例中,用户打开拍摄应用后,点击“相机”按钮可以进入拍摄界面,在拍摄界面中可以为用户提供开发人员预先制作的用于图像编辑的配置文件(例如,贴纸、道具等美化图像的特效),用户在拍摄图像时可
以选择感兴趣的配置文件,以在用户拍摄的图像上进行渲染。
拍摄应用中可以提供制作用于图像编辑的配置文件的入口,例如,在该拍摄界面中,可以提供用于制作配置文件的按钮。如果用户对该拍摄界面中提供的所有配置文件都不感兴趣,可以通过该入口制作感兴趣的配置文件。用户点击用于制作配置文件的按钮后,拍摄应用响应于创建操作,可以显示创建界面。需要说明的是,也可以在拍摄应用的其他界面中提供制作用于图像编辑的配置文件的入口,本申请对此不做限定。
创建界面包括预先设置的、用于生成配置文件的素材集合。素材集合中包括多个不同种类的原始素材。原始素材是开发人员预先制作生成的,原始素材的类型可以包括:滤镜、妆容、前景贴纸、跟脸贴纸、面板贴纸、特效、文字、动画、音乐等。
步骤S320,响应于素材选取操作,从素材集合中选取一个或多个原始素材。
用户可以选取合适的素材、搭配和调整不同种类的素材,制作用于图像编辑的配置文件。例如,可以根据需求选取其中的一个或多个原始素材。其中,每个原始素材均可以具有对应的图层,单个原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息。特效渲染信息用于记录对原始素材进行渲染时的关键信息,例如,渲染类型、渲染层级等。触发信息用于记录触发显示或隐藏原始素材所对应图层的控制信息,即,在用户执行某种动作(张嘴、摇头、点头等)的情况下,触发显示原始素材所对应图层,或触发隐藏原始素材所对应图层。
步骤S330,响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,生成第一目标素材,对第一目标素材所对应图层的图层信息进行渲染并显示。
针对每个原始素材,用户可以对该原始素材进行编辑,对原始素材的编辑,也就是,对原始素材所对应图层的图层信息的编辑,例如,修改渲染层级、修改图层透明度等。针对不同类型的原始素材,可以执行不同的编辑操作。例如,在原始素材的类型为滤镜的情况下,可以编辑滤镜的强度;在原始素材的类型
为文字的情况下,编辑文字的内容等。通过编辑操作,将原始素材更新为第一目标素材。
可以理解的是,在生成第一目标素材之后,可以对第一目标素材所对应图层的图层信息进行渲染并显示,这样,通过将美颜效果反馈给用户,便于用户及时调整。在用户不满意的情况下,可以继续执行编辑操作,最终得到用户满意的效果。在用户满意的情况下,可以执行下述步骤S340。
步骤S340,响应于生成操作,基于第一目标素材所对应图层的图层信息生成第一目标配置文件,其中,第一目标配置文件用于在拍摄的图像上渲染第一目标素材所对应图层的图层信息。
在创建界面中还包括生成用于图像编辑的配置文件的按钮,例如“完成”按钮,用户点击该按钮,表示用户已经完成编辑操作,执行生成操作。拍摄应用响应于该生成操作,可以基于第一目标素材所对应图层的图层信息生成第一目标配置文件。该第一目标配置文件可以显示在拍摄界面,可以与开发人员预先制作的用于图像编辑的配置文件一起显示,也可以新增一个界面,专门用于存储用户自定义的配置文件。例如,图1所示的“收藏”按钮、“热门”按钮和“最新”按钮对应不同的界面,每个界面均具有对应的配置文件。可以增加“自定义”按钮,该“自定义”按钮对应的界面中可以存储用户自定义的配置文件。
本申请的一些实施例的用于图像编辑的配置文件生成方法,在拍摄应用中提供了创建用于图像编辑的配置文件(即美化图像的特效)的入口,这样用户可以根据自身的需求通过该入口自定义用于图像编辑的配置文件。拍摄应用响应于创建操作,可以显示创建界面,该创建界面包括预先设置的、用于生成配置文件的素材集合,例如滤镜、妆容、音乐等。用户可以选取合适的素材、搭配和调整不同种类的素材,定制配置文件。拍摄应用响应于素材选取操作,从素材集合中选取一个或多个原始素材;响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,例如可以编辑特效渲染信息(用于记录对原始素材进行渲染时的关键信息)、素材资源信息和触发信息(用于记录触发显示或隐藏原始素材所对应图层的控制信息)等,生成第一目标素材,对第一
目标素材所对应图层的图层信息进行渲染并显示。这样,用户可以随时对整体效果进行调整。响应于生成操作,基于第一目标素材所对应图层的图层信息生成第一目标配置文件。这样,用户在拍摄图像时,可以在拍摄的图像中渲染第一目标素材所对应图层的图层信息,以提高图像的整体效果。本申请的一些实施例中,用于图像编辑的配置文件可在拍摄应用完成,用户可以根据需求自定义配置文件,提高配置文件生成的灵活性,从而提升用户体验。
参见图4,图4为本申请的一些实施例中用于图像编辑的配置文件生成方法的又一种流程图,可以包括以下步骤:
步骤S410,响应于创建操作,显示创建界面。其中,创建界面包括预先设置的、用于生成配置文件的素材集合。
如前所述,素材集合中可以包含多个原始素材,每个原始素材均具有对应的图层,单个原始素材所对应图层的图层信息包括但不限于:特效渲染信息、素材资源信息、触发信息。当然,图层信息的划分方式不限于此。
其中,特效渲染信息记录对原始素材进行渲染时的关键信息,可以包括:渲染类型、渲染层级、表征图层是否可见的第一标识信息、表征图层是否镜像的第二标识信息、图层旋转角度、图层透明度、图层的位置坐标、图层在屏幕中渲染的比例。特效渲染信息的定义可参见表1:
表1
素材资源信息用于记录原始素材的资源描述信息,素材资源信息包括:素材类型和素材来源,素材类型包含滤镜、妆容、特效、贴纸、字体、花字、动画、音乐等。素材来源包括:来源于网络特效平台或者来源于本地。如果素材来源于本地,还可以包含素材来源取值,素材来源取值用于记录素材的相对路径。单个素材的素材资源述信息的定义可参见表2。
表2
触发信息用于记录触发显示或隐藏原始素材所对应图层的控制信息,触发信息包括:触发类型和触发动作,还可以包括展示次数、展示时间等。触发信息的定义可参见表3。
表3
根据以上划分方式,可以将上述三类信息分别存储至不同的文件。这样,开发人员在要修改上述信息时,可以方便地查找到对应的内容。当然,也可以将上述三类信息存储至一个文件。
步骤S420,响应于素材选取操作,从素材集合中选取一个或多个原始素材。
步骤S430,响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,生成第一目标素材,对第一目标素材所对应图层的图层信息进行渲染并显示,并将第一目标素材所对应图层的图层信息,存储至目标工程文件。
用户创建配置文件的过程即为创建工程的过程,每个配置文件对应一个
工程。由于每个原始素材具有对应图层的图层信息,用户每选取一个原始素材,可以在用户所使用的终端设备本地存储该原始素材所对应图层的图层信息。存储图层信息的文件可以称为工程文件,图层信息中的特效渲染信息、素材资源信息、触发信息均可以具有对应的工程文件。
可以理解的是,用户的编辑行为会对图层信息进行更新。例如,用户新增一个滤镜图层,并设置眨眼显示,此时可以对特效渲染信息、素材资源信息、触发信息分别对应的工程文件进行更新。相应地,在对原始素材进行编辑并生成第一目标素材时,可以同时生成第一目标素材对应的目标工程文件。目标工程文件包括:特效渲染文件、资源信息文件、触发信息文件,特效渲染文件用于存储第一目标素材的特效渲染信息,资源信息文件用于存储第一目标素材的素材资源信息,触发信息文件用于存储第一目标素材的触发信息。
步骤S440,响应于生成操作,基于第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,第一目标配置文件用于在拍摄的图像上渲染第一目标素材所对应图层的图层信息。
在用户完成编辑操作后,拍摄应用可以基于第一目标素材所对应图层的图层信息生成一个第一目标配置文件,该第一目标配置文件可以应用于通用的渲染引擎。
步骤S450,响应于用户针对第一目标配置文件的发布操作,将第一目标配置文件和目标工程文件上传至第一服务器。
用户完成编辑导出第一目标配置文件后,可以选择将该第一目标配置文件发布到云端,供其他用户使用。在一些实施例中,响应于用户针对第一目标配置文件的发布操作,可以将第一目标配置文件上传至第一服务器,其他用户可以下载第一目标配置文件,并在拍摄的图像上渲染第一目标素材所对应图层的图层信息。在上传第一目标配置文件时,还可以将第一目标配置文件的封面图片、视频展示文件等一起上传至第一服务器。
在一些实施例中,在上传第一目标配置文件时,也可以同时将目标工程文件上传至第一服务器,这样,在其他用户对第一目标配置文件不太满意的情况下,可以下载目标工程文件,以对第一目标配置文件进行修改。
可以理解的是,用户在发布第一目标配置文件时,可以填写第一目标配置文件对应的发布信息,发布信息可以包括:封面图片、标题、描述信息、视频展示(可选)、提示信息(可选)等。其中,发布信息中的文件类信息(例如图片)可以转换成资源uri(统一资源标识符)。在一些实施例中,在将第一目标配置文件上传至第一服务器时,可以第一目标配置文件对应的配置文件信息上传至第二服务器。
其中,配置文件信息除了上述发布信息之后,还可以包括第一目标配置文件的唯一标识信息,以建立配置文件信息和第一目标配置文件的对应关系。例如,可以对第一目标配置文件进行哈希签名,得到第一目标配置文件的哈希值,将哈希值作为第一目标配置文件的唯一标识信息。通过将第一目标配置文件和对应的配置文件信息上传至不同的服务器,可以提高第一目标配置文件的安全性。
在将第一目标配置文件上传至第一服务器后,第一服务器可以先对第一目标配置文件进行自动化测试,以测试第一目标配置文件的性能数据,确保该第一目标配置文件的素材搭配合规。在测试通过后,再将第一目标配置文件下发至拍摄应用供用户下载使用。
步骤S460,响应于其他用户针对第一目标配置文件的下载操作,从第一服务器下载第一目标配置文件,并利用第一目标配置文件在该其他用户拍摄的图像上渲染第一目标素材所对应图层的图层信息。
第一目标配置文件下发到拍摄应用后,其他用户可以下载并使用该第一目标配置文件,即,在拍摄的图像上渲染第一目标素材所对应图层的图层信息,以提高图像的整体效果。
步骤S470,响应于其他用户针对第一目标配置文件的修改操作,从第一服务器下载目标工程文件,以在创建界面显示第一目标素材。
如果其他用户对该第一目标配置文件中的某项素材不喜欢,可以下载第一目标配置文件对应的目标工程文件(例如特效渲染文件、资源信息文件、触发信息文件),以对该项素材进行更换或删除。通过资源信息文件中的素材资源信息,可以知晓素材的来源和素材标识,可通过素材资源信息拉取素材至本
地,以进一步对素材进行修改。在其他用户对第一目标配置文件进行二次编辑后,可保存到本地使用。
在一些实施例中,目标工程文件中可以包括第一目标素材的原始存储路径信息,由于目标工程文件是在用户使用的终端设备本地存储的,因此,原始存储路径信息即该终端设备本地的路径信息。在其他用户从第一服务器下载目标工程文件之后,其他用户所使用的终端设备与该用户所使用的终端设备的存储路径可能会不同,因此,可以将原始存储路径信息更新为本地存储路径信息,以保证存储路径的正确性。
步骤S480,响应于其他用户针对第一目标素材的编辑操作,编辑第一目标素材所对应图层的图层信息,生成第二目标素材,对第二目标素材所对应图层的图层信息进行渲染并显示。
步骤S490,响应于生成操作,基于第二目标素材所对应图层的图层信息生成第二目标配置文件。
上述步骤S480~步骤S490的处理过程与前述步骤S430~步骤S440的处理过程类似,具体参见步骤S430~步骤S440中的描述即可,在此不再赘述。
与第一目标配置文件类似,其他用户在进行二次编辑生成第二目标配置文件后,也可以选择将第二目标配置文件上传至第一服务器。当然,同时,也可以将第二目标配置文件对应的工程文件上传至第一服务器。这样,使用第二目标配置文件的用户对第二目标配置文件不满意的情况下,也可以对第二目标配置文件进行修改。
本申请的一些实施例的用于图像编辑的配置文件生成方法,可以预先定义各个原始素材的图层信息,以记录各个原始素材信息,例如滤镜效果、滤镜强度、贴纸信息、贴纸位置信息、贴纸动画信息等。基于用户与拍摄应用的交互,可在拍摄应用完成配置文件的创作。用户完成配置文件之后还可以对配置文件进行发布,以供其他用户使用,这样,可以降低开发人员开发配置文件的成本。基于预先定义的各个原始素材所对应图层的图层信息,可以同时生成配置文件对应的工程文件,这样,其他用户可以对配置文件进行二次编辑,例如可以便捷地替换配置文件中的某项素材等,从而可以提高其他用户创建配置
文件的效率。
相应于上述方法实施例,本申请的一些实施例还提供了一种用于图像编辑的配置文件生成装置,参见图5,应用于拍摄应用,用于图像编辑的配置文件生成装置500包括:
创建界面显示模块510,用于响应于创建操作,显示创建界面,其中,创建界面包括预先设置的、用于生成配置文件的素材集合;
原始素材选取模块520,用于响应于素材选取操作,从素材集合中选取一个或多个原始素材;其中,单个原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息;特效渲染信息用于记录对原始素材进行渲染时的关键信息;触发信息用于记录触发显示或隐藏原始素材所对应图层的控制信息;
第一目标素材生成模块530,用于响应于针对原始素材的编辑操作,编辑原始素材所对应图层的图层信息,生成第一目标素材,对第一目标素材所对应图层的图层信息进行渲染并显示;
第一目标配置文件生成模块540,用于响应于生成操作,基于第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,第一目标配置文件用于在拍摄的图像上渲染第一目标素材所对应图层的图层信息。
在一些实施例中,用于图像编辑的配置文件生成装置500还包括:
配置文件上传模块,用于响应于用户针对第一目标配置文件的发布操作,将第一目标配置文件上传至第一服务器,其中,所述第一目标配置文件用于被其他用户下载并在所述其他用户拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
在一些实施例中,用于图像编辑的配置文件生成装置500还包括:
目标工程文件生成模块,用于将第一目标素材所对应图层的图层信息,存储至目标工程文件;
目标工程文件上传模块,用于当响应于用户针对第一目标配置文件的发布操作时,将目标工程文件上传至第一服务器,其中,所述目标工程文件用于
被所述其他用户下载并将所述第一目标素材对应图层的图层信息编辑成第二目标素材所对应图层的图层信息以生成第二目标配置文件。
在一些实施例中,目标工程文件包括:特效渲染文件、资源信息文件、触发信息文件;
其中,特效渲染文件用于存储第一目标素材的特效渲染信息,资源信息文件用于存储第一目标素材的素材资源信息,触发信息文件用于存储第一目标素材的触发信息。
在一些实施例中,目标工程文件中包括第一目标素材的原始存储路径信息,其中,所述原始存储路径信息用于在所述目标工程文件被所述其他用户下载后被更新为本地存储路径信息。
在一些实施例中,用于图像编辑的配置文件生成装置500还包括:
配置文件信息上传模块,用于在将第一目标配置文件上传至第一服务器时,将第一目标配置文件对应的配置文件信息上传至第二服务器;
其中,配置文件信息包括第一目标配置文件的唯一标识信息。
在一些实施例中,特效渲染信息包括以下一种或多种:渲染类型、渲染层级、表征图层是否可见的第一标识信息、表征图层是否镜像的第二标识信息、图层旋转角度、图层透明度、图层的位置坐标、图层在屏幕中渲染的比例。
在一些实施例中,素材资源信息用于记录原始素材的资源描述信息;素材资源信息包括:素材类型和素材来源。
在一些实施例中,触发信息包括:触发类型和触发动作。
上述模块可以被实现为在一个或多个通用处理器上执行的软件组件,也可以被实现为诸如用于执行某些功能的硬件,诸如可编程逻辑器件和/或专用集成电路。在一些实施例中,这些模块可以体现为软件产品的形式,该软件产品可以存储在非易失性存储介质中。这些非易失性存储介质中包括使得计算机设备(例如个人计算机、服务器、网络设备、移动终端等)执行本公开实施例中描述的方法。在一些实施例中,上述模块还可以在单个设备上实现,也可以分布在多个设备上。这些模块的功能可以相互合并,也可以进一步拆分为多个子模块。
上述装置中各模块或单元的具体细节已经在对应的方法中进行了详细的描述,因此此处不再赘述。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
在本申请的示例性实施例中,还提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行本示例实施方式中上述用于图像编辑的配置文件生成方法或图像编辑方法。
图6为本申请的一些实施例中电子设备的一种结构示意图。需要说明的是,图6示出的电子设备600仅是一个示例,不应对本申请的一些实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有***操作所需的各种程序和数据。中央处理单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如局域网(LAN)卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所
示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元601执行时,执行本申请的装置中限定的各种功能。
本申请的一些实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述用于图像编辑的配置文件生成方法或图像编辑方法。
需要说明的是,本申请所示的计算机可读存储介质例如可以是—但不限于—电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器、只读存储器、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、射频等等,或者上述的任意合适的组合。
本申请的一些实施例中,还提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述用于图像编辑的配置文件生成方法或图像编辑方法。
本申请的一些实施例中,还提供了一种计算机程序,该计算机程序包括指令,所述指令当由处理器执行时使所述处理器实现上述用于图像编辑的配置文件生成方法或图像编辑方法。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固
有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
Claims (16)
- 一种用于图像编辑的配置文件生成方法,应用于拍摄应用,所述方法包括:响应于创建操作,显示创建界面,其中,所述创建界面包括预先设置的、用于生成配置文件的素材集合;响应于素材选取操作,从所述素材集合中选取一个或多个原始素材;其中,单个所述原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;响应于针对所述原始素材的编辑操作,编辑所述原始素材所对应图层的图层信息,生成第一目标素材,对所述第一目标素材所对应图层的图层信息进行渲染并显示;响应于生成操作,基于所述第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,所述第一目标配置文件用于在拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
- 根据权利要求1所述的方法,其中,所述方法还包括:响应于用户针对所述第一目标配置文件的发布操作,将所述第一目标配置文件上传至第一服务器,其中,所述第一目标配置文件用于被其他用户下载并在所述其他用户拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
- 根据权利要求2所述的方法,其中,所述方法还包括:将所述第一目标素材所对应图层的图层信息,存储至目标工程文件;当响应于用户针对所述第一目标配置文件的发布操作时,将所述目标工程文件上传至所述第一服务器;其中,所述目标工程文件用于被所述其他用户下载并将所述第一目标素材对应图层的图层信息编辑成第二目标素材所对应图层的图层信息以生成第二目标配置文件。
- 根据权利要求3所述的方法,其中,所述目标工程文件包括:特效渲染文件、资源信息文件、触发信息文件;其中,所述特效渲染文件用于存储所述第一目标素材的特效渲染信息,所述资源信息文件用于存储所述第一目标素材的素材资源信息,所述触发信息文件用于存储所述第一目标素材的触发信息。
- 根据权利要求3或4所述的方法,其中,所述目标工程文件中包括所述第一目标素材的原始存储路径信息;其中,所述原始存储路径信息用于在所述目标工程文件被所述其他用户下载后被更新为本地存储路径信息。
- 根据权利要求2-5中任一项所述的方法,其中,所述方法还包括:在将所述第一目标配置文件上传至所述第一服务器时,将所述第一目标配置文件对应的配置文件信息上传至第二服务器;其中,所述配置文件信息包括所述第一目标配置文件的唯一标识信息。
- 根据权利要求1-6中任一项所述的方法,其中,所述特效渲染信息包括以下一种或多种:渲染类型、渲染层级、表征图层是否可见的第一标识信息、表征图层是否镜像的第二标识信息、图层旋转角度、图层透明度、图层的位置坐标、图层在屏幕中渲染的比例。
- 根据权利要求1-7中任一项所述的方法,其中,所述素材资源信息用于记录所述原始素材的资源描述信息;所述素材资源信息包括:素材类型和素材来源。
- 根据权利要求1-8中任一项所述的方法,其中,所述触发信息包括:触发类型和触发动作。
- 一种图像编辑方法,包括:响应于针对第一目标配置文件的下载操作,从第一服务器下载所述第一目标配置文件;其中,所述第一目标配置文件是通过将原始素材所对应图层的图层信息编辑成第一目标素材所对应图层的图层信息而生成的,单个所述原始素材所对应的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发 信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;利用所述第一目标配置文件,在拍摄的图像上渲染所述第一目标素材所对应图层的图层信息。
- 根据权利要求10所述的方法,其中,在从所述第一服务器下载所述第一目标配置文件之后,响应于针对所述第一目标配置文件的修改操作,从所述第一服务器下载目标工程文件,以在创建界面显示所述第一目标素材,所述目标工程文件存储有所述第一目标素材所对应图层的图层信息,响应于针对所述第一目标素材的编辑操作,编辑第一目标素材所对应图层的图层信息,生成第二目标素材,对所述第二目标素材所对应图层的图层信息进行渲染并显示;响应于生成操作,基于所述第二目标素材所对应图层的图层信息生成第二目标配置文件。
- 一种用于图像编辑的配置文件生成装置,应用于拍摄应用,所述装置包括:创建界面显示模块,用于响应于创建操作,显示创建界面,其中,所述创建界面包括预先设置的、用于生成配置文件的素材集合;原始素材选取模块,用于响应于素材选取操作,从所述素材集合中选取一个或多个原始素材;其中,单个所述原始素材所对应图层的图层信息包括:特效渲染信息、素材资源信息和触发信息;所述特效渲染信息用于记录对所述原始素材进行渲染时的关键信息;所述触发信息用于记录触发显示或隐藏所述原始素材所对应图层的控制信息;第一目标素材生成模块,用于响应于针对所述原始素材的编辑操作,编辑所述原始素材所对应图层的图层信息,生成第一目标素材,对所述第一目标素材所对应图层的图层信息进行渲染并显示;第一目标配置文件生成模块,用于响应于生成操作,基于所述第一目标素材所对应图层的图层信息,生成用于图像编辑的第一目标配置文件,其中,所述第一目标配置文件用于在拍摄的图像上渲染所述第一目标素材所对应图层 的图层信息。
- 一种电子设备,包括:存储器和处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现权利要求1-9任一项所述的用于图像编辑的配置文件生成方法或权利要求10-11任一项所述的图像编辑方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1-9任一项所述的用于图像编辑的配置文件生成方法或权利要求10-11任一项所述的图像编辑方法。
- 一种计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行权利要求1-9任一项所述的用于图像编辑的配置文件生成方法或权利要求10-11任一项所述的图像编辑方法。
- 一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行根据权利要求1-9中任一项所述的用于图像编辑的配置文件生成方法或权利要求10-11任一项所述的图像编辑方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210440323.7 | 2022-04-25 | ||
CN202210440323.7A CN116991513A (zh) | 2022-04-25 | 2022-04-25 | 配置文件生成方法、装置、电子设备、介质及程序产品 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023207981A1 true WO2023207981A1 (zh) | 2023-11-02 |
Family
ID=88517805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/090593 WO2023207981A1 (zh) | 2022-04-25 | 2023-04-25 | 配置文件生成方法、装置、电子设备、介质及程序产品 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116991513A (zh) |
WO (1) | WO2023207981A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117992115A (zh) * | 2024-04-02 | 2024-05-07 | 建信金融科技有限责任公司 | ***配置处理方法、装置、设备、介质及程序产品 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10902057B2 (en) * | 2017-09-14 | 2021-01-26 | Canon Kabushiki Kaisha | Image processing apparatus and method of controlling the same |
CN113240777A (zh) * | 2021-04-25 | 2021-08-10 | 北京达佳互联信息技术有限公司 | 特效素材处理方法、装置、电子设备及存储介质 |
CN113891140A (zh) * | 2021-09-30 | 2022-01-04 | 北京市商汤科技开发有限公司 | 一种素材编辑方法、装置、设备及存储介质 |
-
2022
- 2022-04-25 CN CN202210440323.7A patent/CN116991513A/zh active Pending
-
2023
- 2023-04-25 WO PCT/CN2023/090593 patent/WO2023207981A1/zh unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10902057B2 (en) * | 2017-09-14 | 2021-01-26 | Canon Kabushiki Kaisha | Image processing apparatus and method of controlling the same |
CN113240777A (zh) * | 2021-04-25 | 2021-08-10 | 北京达佳互联信息技术有限公司 | 特效素材处理方法、装置、电子设备及存储介质 |
CN113891140A (zh) * | 2021-09-30 | 2022-01-04 | 北京市商汤科技开发有限公司 | 一种素材编辑方法、装置、设备及存储介质 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117992115A (zh) * | 2024-04-02 | 2024-05-07 | 建信金融科技有限责任公司 | ***配置处理方法、装置、设备、介质及程序产品 |
Also Published As
Publication number | Publication date |
---|---|
CN116991513A (zh) | 2023-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI808393B (zh) | 頁面處理方法、裝置、設備及儲存媒體 | |
US10637899B1 (en) | Collaborative design | |
US8412729B2 (en) | Sharing of presets for visual effects or other computer-implemented effects | |
US20150143210A1 (en) | Content Stitching Templates | |
US20130272679A1 (en) | Video Generator System | |
US20140040712A1 (en) | System for creating stories using images, and methods and interfaces associated therewith | |
US20210019106A1 (en) | Desktop Sharing Method and Mobile Terminal | |
WO2022228118A1 (zh) | 互动内容生成方法、装置、存储介质及电子设备 | |
US10818058B1 (en) | Analyzing digital image modifications to generate, publish, and present digital image-editing tutorials | |
CN111970571B (zh) | 视频制作方法、装置、设备及存储介质 | |
WO2023207981A1 (zh) | 配置文件生成方法、装置、电子设备、介质及程序产品 | |
WO2022188386A1 (zh) | 视频发布方法及装置、设备 | |
EP4273808A1 (en) | Method and apparatus for publishing video, device, and medium | |
CN111984596B (zh) | 一种ui框架的文件上传分组管理方法、装置、设备和介质 | |
CN112083866A (zh) | 一种表情图像的生成方法和装置 | |
US9721321B1 (en) | Automated interactive dynamic audio/visual performance with integrated data assembly system and methods | |
US11665119B2 (en) | Information replying method, apparatus, electronic device, computer storage medium, and product | |
US20220335977A1 (en) | Method and apparatus for editing object, electronic device and storage medium | |
CN110109591B (zh) | 一种图片编辑方法和装置 | |
WO2024140166A1 (zh) | 特效处理方法、装置、电子设备及存储介质 | |
CN113051018A (zh) | 会议***的控制方法、装置、设备和介质 | |
CN113781608A (zh) | 一种动画编辑方法及装置 | |
WO2024007988A1 (zh) | 图像处理方法、装置、电子设备、介质及程序产品 | |
WO2020024106A1 (zh) | 文件浏览方法、电子设备、机器可读存储介质 | |
US11928078B2 (en) | Creating effect assets while avoiding size inflation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23795413 Country of ref document: EP Kind code of ref document: A1 |