WO2023098609A1 - 图像特效包的生成方法、装置、设备及存储介质 - Google Patents

图像特效包的生成方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023098609A1
WO2023098609A1 PCT/CN2022/134621 CN2022134621W WO2023098609A1 WO 2023098609 A1 WO2023098609 A1 WO 2023098609A1 CN 2022134621 W CN2022134621 W CN 2022134621W WO 2023098609 A1 WO2023098609 A1 WO 2023098609A1
Authority
WO
WIPO (PCT)
Prior art keywords
special effect
custom
resource
control
user
Prior art date
Application number
PCT/CN2022/134621
Other languages
English (en)
French (fr)
Inventor
吕阳
马锐锋
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023098609A1 publication Critical patent/WO2023098609A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the present disclosure relates to the technical field of computer software, for example, to a method, device, device and storage medium for generating an image special effect package.
  • the disclosure provides a method, device, device and storage medium for generating an image special effect package, which can realize the generation of a custom special effect package and enrich the diversity of the image special effect package.
  • the present disclosure provides a method for generating an image special effect package, including:
  • a custom image special effect package is generated based on the custom special effect control.
  • the present disclosure also provides a device for generating an image special effect package, including:
  • the initial special effect resource creation module is set to create initial special effect resources based on user-triggered creation operations
  • the custom special effect resource acquisition module is configured to import the custom special effect program file into the initial special effect resource based on the import operation triggered by the user to obtain the custom special effect resource;
  • a custom special effect control creation module configured to create a custom special effect control based on the custom special effect resources
  • the custom image special effect package generating module is configured to generate a custom image special effect package based on the custom special effect control.
  • the present disclosure also provides an electronic device, the electronic device comprising:
  • a storage device configured to store one or more programs
  • the one or more processing devices When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the above-mentioned method for generating an image special effect package.
  • the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the above-mentioned method for generating an image special effect package is implemented.
  • FIG. 1 is a flow chart of a method for generating an image special effect package provided by an embodiment of the present disclosure
  • FIG. 2 is an example diagram of creating an initial special effect resource provided by an embodiment of the present disclosure
  • FIG. 3 is an example diagram of obtaining custom special effect resources provided by an embodiment of the present disclosure
  • FIG. 4 is an example diagram of creating a custom special effect control provided by an embodiment of the present disclosure
  • FIG. 5 is an example diagram of generating a custom special effect package provided by an embodiment of the present disclosure
  • Fig. 6 is another example diagram of generating a custom special effect package provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a device for generating an image special effect package provided by an embodiment of the present disclosure.
  • Fig. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “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 further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the general special effects panel in the node system can perform special effects processing on one or more pictures.
  • the development of the general special effects panel is based on the grid rendering system, which has embedded grid rendering components.
  • This component maintains an array of special effect information (material) and an array of grid information (mesh).
  • the numbers of the two are in one-to-one correspondence, and the special effect rendering of a picture can be realized by using the information of each pair of material and mesh, thereby producing a special effect picture.
  • This output special effect picture can be used as the input of the next special effect processing, so as to realize combined special effects. If the input of a material depends on the output of another material, the dependent party needs to be placed before the dependent party in the array to ensure that the dependent party can get the correct execution order and the dependent party can get the correct output result.
  • Effect Graph includes special effect controls, image input controls (including built-in image input controls and static image input controls), scene output controls, these core function controls, and other extended function controls. This article mainly explains the working principle of Effect Graph from the workflow of core functional controls.
  • the core of Effect Graph is the special effect control.
  • Each special effect control can be configured with a pair of material and mesh to render picture special effects.
  • Each special effect control has an output, and the output is a special effect picture.
  • the output of this special effect control can be input to the scene output control or to the next special effect control.
  • Each special effect control can accept single or multiple inputs, which can be built-in images, special effect pictures output by other special effect controls, or static images, and these images will be set to the held by the special effect control In matertial, it can be used when rendering. If the output special effect picture is connected to the scene output control, it means that the rendering result of the current special effect control can be observed in the scene.
  • Fig. 1 is a flow chart of a method for generating an image special effect package provided by an embodiment of the present disclosure. This embodiment is applicable to the situation of generating a custom special effect package, and the method can be executed by a device for generating an image special effect package. It can be composed of hardware and/or software, and can generally be integrated into a device with the function of generating image special effect packages, which can be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in Figure 1, the method includes the following steps:
  • Step 110 create an initial special effect resource based on a creation operation triggered by a user.
  • the initial special effect resource may be an invalid special effect resource, that is, the special effect processing on the picture cannot be realized based on the initial special effect resource.
  • it is used to randomly select an initial special effect resource from the resource library of the resource panel and add it to the resource panel, so as to realize the creation of the initial special effect resource.
  • FIG. 2 is an example diagram for creating an initial special effect resource provided by an embodiment of the present disclosure.
  • the user clicks the "+” sign on the resource panel to open the resource library, and randomly selects "initial special effect resource M" from the resource library to add to the resource panel, thereby creating the initial special effect resource M.
  • Step 120 based on the import operation triggered by the user, the custom special effect program file is imported into the initial special effect resource to obtain the custom special effect resource.
  • the custom special effect program file can be a file in any format supported by the node system, such as an mshader file, and its extension is .mshader.
  • the custom feature program file contains configuration information, general parameter information and coloring information. Universal (uniform) parameters can include rendering order, image output length and width, angle, etc.
  • the coloring information may be color information for each pixel in the picture, and may include vertex coloring information and fragment coloring information.
  • the manner of importing the custom special effect program file into the initial special effect resource may be to first import the custom special effect program file into the resource panel, and then set the custom special effect program file in the shader of the initial special effect resource.
  • the custom special effect program file is imported into the initial special effect resource.
  • the process of obtaining the custom special effect resource can be: obtain the custom special effect program file from the set storage path; Import the special effect program file into the resource panel; add the custom special effect program file imported into the resource panel to the initial special effect resource to obtain the custom special effect resource.
  • the custom special effect program file first obtain the custom special effect program file from the set storage path, then drag the custom special effect program file into the resource panel by dragging and dropping, and then select in the "shader" of the initial special effect resource
  • the custom special effect program file realizes the operation of adding the custom special effect program file to the initial special effect resource, and obtains the custom special effect resource.
  • FIG. 3 is an example diagram of obtaining custom special effect resources provided by an embodiment of the present disclosure.
  • firstly search for the custom special effect program file under a storage path then drag the custom special effect program file b to the resource panel, and then in the " Select the custom special effect program file b in "shader" to obtain the custom special effect resource.
  • the following steps are further included: editing the custom special effect program file based on the user's editing operation in the setting editor; saving the custom special effect program file into the setting specified storage path.
  • the set storage path may be a folder created in advance by the user for storing custom special effect program files.
  • the setting editor may be a tool for editing program files in various formats. The user first creates an empty file in mshader format in the setting editor, and then writes the configuration information, custom general parameter information and custom coloring information in the form of program code in the .Mshader empty file, so as to obtain the Define the special effect program file, and finally store the custom special effect program file in the set storage path.
  • Step 130 create a custom special effect control based on the custom special effect resource.
  • an initial special effect control is created first, and then the "material" of the initial special effect control is selected as a custom special effect resource, thereby creating a custom special effect control.
  • the process of creating a custom special effect control based on a custom special effect resource can be: switch to the general special effect panel based on the switching operation triggered by the user; create an initial special effect control in the general special effect panel according to the creation operation triggered by the user; set the custom special effect resource in In the initial special effect control, get the custom special effect control.
  • FIG. 4 is an example diagram for creating a custom special effect control provided by an embodiment of the present disclosure.
  • the user clicks the "Create Control” button to enter the information box of the initial special effect control.
  • the user can enter the name of the control, and select the number of input ports and the number of input ports of the special effect control.
  • the material option Select a custom special effect resource in , and click the "OK" button to get the custom special effect control.
  • Step 140 generating a custom image special effect package based on the custom special effect control.
  • generating an image special effect package requires an image input control, at least one special effect control and a scene output control.
  • the process of generating a custom image special effect package based on a custom special effect control can be: create an image input control and a scene output control in the general special effect panel according to the creation operation triggered by the user; input the image into the control according to the set rules based on the connection operation triggered by the user , custom special effect control and scene output control connection; generate a custom image special effect package according to the connected image input control, custom special effect control and scene output control.
  • the setting rules may include: the image input control is the start node; the special effect control is the middle node; the scene output control is the end node; the input of the special effect control is not empty; the connection between the special effect controls does not form a closed loop.
  • the special effect control includes one or more input terminals and an output terminal; the input terminal of the special effect control is connected with the output terminal of the image input control or the output terminal of another special effect control; the output terminal of the special effect control is connected with another special effect control The input terminal of the control or the input terminal of the scene output control is connected.
  • FIG. 5 is an example diagram of generating a custom special effect package provided by an embodiment of the present disclosure.
  • the output of the image input control is connected to the input of the custom special effect control, and the output of the custom special effect control is connected to the input of the scene output control.
  • the input image is processed by the custom special effect control and then input to the scene output control to display the final image with the custom special effect added.
  • the custom special effect control can also be combined with other special effect controls to obtain a custom combined special effect package.
  • Other special effect controls may be system special effect controls or other custom special effect controls.
  • the method of generating a custom image special effect package based on the custom special effect control can also be: create at least one system special effect control in the general special effect panel according to the creation operation triggered by the user; input the image into the control according to the set rules based on the connection operation triggered by the user,
  • the custom special effect control, at least one system special effect control and scene output control are connected; a custom image special effect package is generated according to the connected image input control, custom special effect control, at least one system special effect control and scene output control.
  • FIG. 6 is another example diagram of generating a custom special effect package provided by an embodiment of the present disclosure.
  • the output of the image input control is connected to the input of the custom special effect control
  • the output of the custom special effect control is connected to the input of the system special effect control
  • the output of the system special effect control is connected to the input of the scene output control.
  • the input image first passes through the custom special effect control, and after the custom special effect control performs special effect processing on the image, the processed image is input into the system special effect control, and the system special effect control continues to perform special effect processing on the image, and finally enters the scene output control , to show the final image with the custom composite effect added.
  • an initial special effect resource is created based on a user-triggered creation operation; a custom special effect program file is imported into the initial special effect resource based on a user-triggered import operation to obtain a custom special effect resource; a custom special effect resource is created based on a custom special effect resource.
  • the method for generating the image special effect package obtained by the embodiment of the present disclosure obtains the custom special effect resource by importing the custom special effect program file into the initial special effect resource, thereby generating the custom special effect package based on the custom special effect resource, and realizing the custom special effect package
  • the generation of image effects enriches the diversity of image effects packages.
  • Fig. 7 is a schematic structural diagram of an apparatus for generating an image special effect package provided by an embodiment of the present disclosure. As shown in Figure 7, the device includes:
  • the initial special effect resource creation module 210 is configured to create an initial special effect resource based on a user-triggered creation operation; the custom special effect resource acquisition module 220 is configured to import a custom special effect program file into the initial special effect resource based on a user-triggered import operation, which is obtained from Define the special effect resource; the custom special effect control creation module 230 is configured to create a custom special effect control based on the custom special effect resource; the custom image special effect package generation module 240 is configured to generate a custom image special effect package based on the custom special effect control.
  • the custom special effect resource acquisition module 220 is set to:
  • it also includes: a custom special effect program file editing module, which is set to:
  • the custom special effect control creation module 230 is set to:
  • the custom image special effect package generation module 240 is set to:
  • the custom image special effect package generation module 240 is also set to:
  • the custom feature program file includes configuration information, general parameter information and coloring information.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • FIG. 8 it shows a schematic structural diagram of an electronic device 300 suitable for implementing the embodiments of the present disclosure.
  • the electronic device 300 in the embodiment of the present disclosure may include but not limited to mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia player Mobile terminals such as Portable Media Player (PMP), vehicle-mounted terminals (such as vehicle navigation terminals), fixed terminals such as digital TV (Television, TV), desktop computers, etc., or various forms of servers, such as independent servers Or server clusters.
  • PDA Personal Digital Assistant
  • PAD Portable Multimedia Player
  • vehicle-mounted terminals such as vehicle navigation terminals
  • fixed terminals such as digital TV (Television, TV)
  • desktop computers etc.
  • servers such as independent servers Or server clusters.
  • the electronic device 300 shown in FIG. 8 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.)
  • the device 308 loads programs in the random access storage device (Random Access Memory, RAM) 303 to perform various appropriate actions and processes.
  • RAM Random Access Memory
  • various programs and data necessary for the operation of the electronic device 300 are also stored.
  • the processing device 301, ROM 302, and RAM 303 are connected to each other through a bus 304.
  • An input/output (Input/Output, I/O) interface 305 is also connected to the bus 304 .
  • an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) , an output device 307 such as a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309.
  • the communication means 309 may allow the electronic device 300 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 8 shows electronic device 300 having various means, it is not required to implement or possess all of the means shown. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the method for generating an image special effect package.
  • the computer program may be downloaded and installed from a network via communication means 309, or from storage means 308, or from ROM 302.
  • the processing device 301 When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • a 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 thereof.
  • Examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM) or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc 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 that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, 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 can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP), and can communicate with digital data in any form or medium
  • the communication eg, communication network
  • Examples of communication networks include local area networks (Local Area Network, LAN), wide area networks (Wide Area Network, WAN), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently existing networks that are known or developed in the future.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: creates an initial special effect resource based on a creation operation triggered by a user; creates an initial special effect resource based on an import operation triggered by a user; The custom special effect program file is imported into the initial special effect resource to obtain the custom special effect resource; a custom special effect control is created based on the custom special effect resource; a custom image special effect package is generated based on the custom special effect control.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a LAN or WAN, or it can be connected to an external computer (eg via the Internet using an Internet Service Provider).
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the unit does not constitute a limitation of the unit itself in one case.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (Field Programmable Gate Arrays, FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (Application Specific Standard Parts, ASSP), System on Chip (System on Chip, SOC), Complex Programmable Logic Device (Complex Programming Logic Device, CPLD) and so on.
  • 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, apparatus, or device.
  • 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard drives, RAM, ROM, EPROM or flash memory, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices, or Any suitable combination of the above.
  • the embodiments of the present disclosure disclose a method for generating an image special effect package, including:
  • a custom image special effect package is generated based on the custom special effect control.
  • the custom special effect program file is imported into the initial special effect resource to obtain the custom special effect resource, including:
  • the initial special effect resource before creating the initial special effect resource based on the user-triggered creation operation, it further includes:
  • the custom special effect program file is stored in the set storage path.
  • creating a custom special effect control based on the custom special effect resource includes:
  • generating a custom image special effect package based on the custom special effect control includes:
  • a custom image special effect package is generated according to the connected image input control, the custom special effect control and the scene output control.
  • generating a custom image special effect package based on the custom special effect control further includes:
  • a custom image special effect package is generated according to the connected image input control, the custom special effect control, the at least one system special effect control and the scene output control.
  • the custom feature program file includes configuration information, general parameter information and coloring information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Studio Circuits (AREA)

Abstract

本公开提供了一种图像特效包的生成方法、装置、设备及存储介质。图像特效包的生成方法包括:基于用户触发的创建操作创建初始特效资源;基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;基于所述自定义特效资源创建自定义特效控件;基于所述自定义特效控件生成自定义图像特效包。

Description

图像特效包的生成方法、装置、设备及存储介质
本申请要求在2021年11月30日提交中国专利局、申请号为202111443885.9的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开涉及计算机软件技术领域,例如涉及一种图像特效包的生成方法、装置、设备及存储介质。
背景技术
随着计算机技术的发展,智能终端的应用范围得到了广泛的提高,例如可以通过智能终端听音乐、玩游戏、上网聊天和拍照等。对于智能终端的拍照技术来说,其拍照像素已经达到千万像素以上,具有较高的清晰度和媲美专业相机的拍照效果。
在采用智能终端进行拍照时,不仅可以使用出厂时内置的拍照软件实现传统功能的拍照效果,还可以通过从网络端下载应用程序(Application,APP)来实现具有附加功能的拍照效果,例如可以实现多种图像的特殊效果。比如可以实现贴纸效果、滤镜效果、形变效果等等。
发明内容
本公开提供一种图像特效包的生成方法、装置、设备及存储介质,可以实现自定义特效包的生成,丰富图像特效包的多样性。
第一方面,本公开提供了一种图像特效包的生成方法,包括:
基于用户触发的创建操作创建初始特效资源;
基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;
基于所述自定义特效资源创建自定义特效控件;
基于所述自定义特效控件生成自定义图像特效包。
第二方面,本公开还提供了一种图像特效包的生成装置,包括:
初始特效资源创建模块,设置为基于用户触发的创建操作创建初始特效资源;
自定义特效资源获取模块,设置为基于用户触发的导入操作将自定义特效 程序文件导入所述初始特效资源中,获得自定义特效资源;
自定义特效控件创建模块,设置为基于所述自定义特效资源创建自定义特效控件;
自定义图像特效包生成模块,设置为基于所述自定义特效控件生成自定义图像特效包。
第三方面,本公开还提供了一种电子设备,所述电子设备包括:
一个或多个处理装置;
存储装置,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现上述的图像特效包的生成方法。
第四方面,本公开还提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现上述的图像特效包的生成方法。
附图说明
图1是本公开实施例提供的一种图像特效包的生成方法的流程图;
图2是本公开实施例提供的一种创建初始特效资源的示例图;
图3是本公开实施例提供的一种获取自定义特效资源的示例图;
图4是本公开实施例提供的一种创建自定义特效控件的示例图;
图5是本公开实施例提供的一种生成自定义特效包的示例图;
图6是本公开实施例提供的另一生成自定义特效包的示例图;
图7是本公开实施例提供的一种图像特效包的生成装置的结构示意图;
图8是本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而本公开可以通过多种形式来实现,提供这些实施例是为了理解本公开。本公开的附图及实施例仅用于示例性作用。
本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基 于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
节点系统中的通用特效面板可以对一张或者多张图片进行特效处理。
通用特效面板的开发是基于网格渲染系统,该系统内嵌网格渲染组件。该组件维护一个特效信息(material)的数组和一个网格信息(mesh)的数组。这两者的数量是一一对应的,利用每一对material和mesh的信息可以实现对一个图片的特效渲染,从而生产出一个特效图片。这个输出的特效图片可以被用作下一个特效处理的输入,从而实现组合特效。如果一个material的输入依赖于另一个material的输出,那么在数组中被依赖的一方需要在依赖方的前置位,以确保依赖方能拿到正确的执行顺序以及依赖方能拿到正确的输出结果。
通过通用特效面板中多个控件的连接,可以方便的配置material和mesh,同时维护排序关系确保这个控件的正确执行。在Effect Graph中,包括特效控件、图像输入控件(包括内置图像输入控件及静态图像输入控件)及场景输出控件这几个核心功能控件和其他扩展功能控件。本文主要从核心功能控件的工作流程来说明Effect Graph的工作原理。
Effect Graph的核心是特效控件,每个特效控件可以配置一对material和mesh,用来进行图片特效的渲染。每个特效控件有一个输出,输出的是一个特效图片,这个特效控件的输出既可以输入到场景输出控件,也可以输入到下一个特效控件。每个特效控件可以接受单个或多个输入,该输入既可以是内置图像,也可以是其他特效控件输出的特效图片,也可以是静态图像,这些图像会被设置到该特效控件所持有的matertial中,在渲染的时候可以使用。若其输出的特效图片连接到场景输出控件,代表当前特效控件的渲染结果可以在场景中被观察到。
图1是本公开实施例提供的一种图像特效包的生成方法的流程图,本实施例可适用于生成自定义特效包的情况,该方法可以由图像特效包的生成装置来 执行,该装置可由硬件和/或软件组成,并一般可集成在具有图像特效包的生成功能的设备中,该设备可以是服务器、移动终端或服务器集群等电子设备。如图1所示,该方法包括如下步骤:
步骤110,基于用户触发的创建操作创建初始特效资源。
初始特效资源可以为一个无效的特效资源,即基于初始特效资源无法实现对图片的特效处理。本实施例中,用于在资源面板的资源库中随机选择一初始特效资源添加至资源面板中,从而实现初始特效资源的创建。
示例性的,图2是本公开实施例提供的一种创建初始特效资源的示例图。如图2所示,用户点击资源板面中的“+”标识,打开资源库,从资源库中随机选择“初始特效资源M”添加至资源板面中,从而创建了初始特效资源M。
步骤120,基于用户触发的导入操作将自定义特效程序文件导入初始特效资源中,获得自定义特效资源。
自定义特效程序文件可以是节点系统支持的任意格式的文件,例如mshader文件,其扩展名为.mshader。自定义特征程序文件中包含配置信息、通用参数信息及着色信息。通用(uniform)参数可以包括渲染顺序、图片的输出长宽、角度等。着色信息可以为对图片中每个像素点所着的颜色信息,可以包括顶点着色信息及片元着色信息。
本实施例中,将自定义特效程序文件导入初始特效资源中的方式可以是,首先将自定义特效程序文件导入资源面板中,然后将自定义特效程序文件设置于初始特效资源的着色器中。
基于用户触发的导入操作将自定义特效程序文件导入初始特效资源中,获得自定义特效资源的过程可以是:从设定存储路径中获取自定义特效程序文件;基于用户触发的导入操作将自定义特效程序文件导入资源面板;将导入资源面板的自定义特效程序文件添加至初始特效资源,获得自定义特效资源。
本实施例中,首先从设定存储路径中获取到自定义特效程序文件,然后通过拖拽的方式将自定义特效程序文件拖入资源面板中,然后在初始特效资源的“着色器”中选择该自定义特效程序文件,从而实现了将自定义特效程序文件添加至初始特效资源的操作,获得了自定义特效资源。
示例性的,图3是本公开实施例提供的一种获取自定义特效资源的示例图。在上述示例的基础上,如图3所示,首先在一个存储路径下查找自定义特效程序文件,然后将自定义特效程序文件b拖拽至资源面板中,再然后在初始特效资源M的“着色器”中选择自定义特效程序文件b,从而获得了自定义特效资源。
一实施例中,在基于用户触发的创建操作创建初始特效资源之前,还包括 如下步骤:在设定编辑器中基于用户的编辑操作编辑自定义特效程序文件;将自定义特效程序文件存入设定存储路径中。
设定存储路径可以是用户预先创建的用于存放自定义特效程序文件的文件夹。设定编辑器可以是用于编辑多种格式的程序文件的工具。用户首先在设定编辑器中创建一mshader格式的空文件,然后在该.Mshader空文件中将配置信息、自定义的通用参数信息及自定义的着色信息以程序代码的形式编写,从而获得自定义特效程序文件,最后将自定义特效程序文件存储至设定存储路径下。
步骤130,基于自定义特效资源创建自定义特效控件。
本实施例中,首先创建初始特效控件,然后将初始特效控件的“材质(material)”选为自定义特效资源,从而创建了自定义特效控件。
基于自定义特效资源创建自定义特效控件的过程可以是:基于用户触发的切换操作切换至通用特效面板;在通用特效面板中根据用户触发的创建操作创建初始特效控件;将自定义特效资源设置于初始特效控件中,获得自定义特效控件。
本实施例中,当界面切换至通用特效面板后,用户点击“创建控件”按钮以创建初始特效控件,在初始特效控件的信息框的材质选项中选择自定义特效资源,从而获得自定义特效控件。
示例性的,图4是本公开实施例提供的一种创建自定义特效控件的示例图。如图4所示,用户点击“创建控件”按钮进入初始特效控件的信息框中,在该信息框中,用户可以输入控件名称,并选择特效控件的输入端口数和输入端口数,在材质选项中选择自定义特效资源,点击“确认”按钮,获得自定义特效控件。
步骤140,基于自定义特效控件生成自定义图像特效包。
本实施例中,生成图像特效包需要图像输入控件、至少一个特效控件和场景输出控件。
基于自定义特效控件生成自定义图像特效包的过程可以是:在通用特效面板中根据用户触发的创建操作创建图像输入控件和场景输出控件;基于用户触发的连接操作按照设定规则将图像输入控件、自定义特效控件及场景输出控件连接;根据连接后的图像输入控件、自定义特效控件及场景输出控件生成自定义图像特效包。
设定规则可以包括:图像输入控件为开始节点;特效控件为中间节点;场景输出控件为结束节点;特效控件的输入为非空;特效控件间的连接未形成闭环。本实施例中,特效控件包括一个或者多个输入端以及一个输出端;特效控件的输入端与图像输入控件的输出端或者另一个特效控件的输出端相连;特效 控件的输出端与另一个特效控件的输入端或者场景输出控件的输入端相连。
从图像输入控件开始,按照所需的特效顺序连接自定义特效控件,并以场景输出控件为结束节点。示例性的,图5是本公开实施例提供的一种生成自定义特效包的示例图。如图5所示,图像输入控件的输出与自定义特效控件的输入相连,自定义特效控件的输出与场景输出控件的输入相连。按照该方式,输入的图像经过自定义特效控件行特效处理后,输入场景输出控件,以展示最终的添加了自定义特效的图像。
本实施例中,自定义特效控件还可以与其他特效控件组合以获得自定义的组合特效包。其他特效控件可以是系统特效控件或者其他自定义特效控件。
基于自定义特效控件生成自定义图像特效包的方式还可以是:在通用特效面板中根据用户触发的创建操作创建至少一个系统特效控件;基于用户触发的连接操作按照设定规则将图像输入控件、自定义特效控件、至少一个系统特效控件及场景输出控件连接;根据连接后的图像输入控件、自定义特效控件、至少一个系统特效控件及场景输出控件生成自定义图像特效包。
从图像输入控件开始,按照所需的特效顺序依次连接自定义特效控件和系统特效控件,并以场景输出控件为结束节点。示例性的,图6是本公开实施例提供的另一生成自定义特效包的示例图。如图6所示,图像输入控件的输出与自定义特效控件的输入相连,自定义特效控件的输出与系统特效控件的输入相连,系统特效控件的输出与场景输出控件的输入相连。按照该方式,输入的图像先经过自定义特效控件,自定义特效控件对图像进行特效处理后,将处理后的图像输入系统特效控件,系统特效控件继续对图像进行特效处理,最后输入场景输出控件,以展示最终的添加了自定义组合特效的图像。
本实施例的技术方案,基于用户触发的创建操作创建初始特效资源;基于用户触发的导入操作将自定义特效程序文件导入初始特效资源中,获得自定义特效资源;基于自定义特效资源创建自定义特效控件;基于自定义特效控件生成自定义图像特效包。本公开实施例提供的图像特效包的生成方法,通过将自定义特效程序文件导入初始特效资源中,获得自定义特效资源,从而基于自定义特效资源生成自定义特效包,可以实现自定义特效包的生成,丰富图像特效包的多样性。
图7是本公开实施例提供的一种图像特效包的生成装置的结构示意图。如图7所示,该装置包括:
初始特效资源创建模块210,设置为基于用户触发的创建操作创建初始特效资源;自定义特效资源获取模块220,设置为基于用户触发的导入操作将自定义 特效程序文件导入初始特效资源中,获得自定义特效资源;自定义特效控件创建模块230,设置为基于自定义特效资源创建自定义特效控件;自定义图像特效包生成模块240,设置为基于自定义特效控件生成自定义图像特效包。
一实施例中,自定义特效资源获取模块220,设置为:
从设定存储路径中获取自定义特效程序文件;基于用户触发的导入操作将自定义特效程序文件导入资源面板;将导入资源面板的自定义特效程序文件添加至初始特效资源,获得自定义特效资源。
一实施例中,还包括:自定义特效程序文件编辑模块,设置为:
在设定编辑器中基于用户的编辑操作编辑自定义特效程序文件;将自定义特效程序文件存入设定存储路径中。
一实施例中,自定义特效控件创建模块230,设置为:
基于用户触发的切换操作切换至通用特效面板;在通用特效面板中根据用户触发的创建操作创建初始特效控件;将自定义特效资源设置于初始特效控件中,获得自定义特效控件。
一实施例中,自定义图像特效包生成模块240,设置为:
在通用特效面板中根据用户触发的创建操作创建图像输入控件和场景输出控件;基于用户触发的连接操作按照设定规则将图像输入控件、自定义特效控件及场景输出控件连接;根据连接后的图像输入控件、自定义特效控件及场景输出控件生成自定义图像特效包。
一实施例中,自定义图像特效包生成模块240,还设置为:
在通用特效面板中根据用户触发的创建操作创建至少一个系统特效控件;基于用户触发的连接操作按照设定规则将图像输入控件、自定义特效控件、至少一个系统特效控件及场景输出控件连接;根据连接后的图像输入控件、自定义特效控件、至少一个系统特效控件及场景输出控件生成自定义图像特效包。
一实施例中,自定义特征程序文件中包含配置信息、通用参数信息及着色信息。
上述装置可执行本公开前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和效果。未在本实施例中详尽描述的技术细节,可参见本公开前述所有实施例所提供的方法。
下面参考图8,其示出了适于用来实现本公开实施例的电子设备300的结构示意图。本公开实施例中的电子设备300可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、 平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端,或者多种形式的服务器,如独立服务器或者服务器集群。图8示出的电子设备300仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图8所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储装置(Read-Only Memory,ROM)302中的程序或者从存储装置308加载到随机访问存储装置(Random Access Memory,RAM)303中的程序而执行多种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的多种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(Input/Output,I/O)接口305也连接至总线304。
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有多种装置的电子设备300,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行图像特效包的生成方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。
本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机 可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如超文本传输协议(HyperText Transfer Protocol,HTTP)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:基于用户触发的创建操作创建初始特效资源;基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;基于所述自定义特效资源创建自定义特效控件;基于所述自定义特效控件生成自定义图像特效包。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括LAN或WAN—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图 中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在一种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programming Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM或快闪存储器、光纤、CD-ROM、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开实施例的一个或多个实施例,本公开实施例公开了一种图像特效包的生成方法,包括:
基于用户触发的创建操作创建初始特效资源;
基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;
基于所述自定义特效资源创建自定义特效控件;
基于所述自定义特效控件生成自定义图像特效包。
根据本公开实施例的一个或多个实施例,基于用户触发的导入操作将自定 义特效程序文件导入所述初始特效资源中,获得自定义特效资源,包括:
从设定存储路径中获取自定义特效程序文件;
基于用户触发的导入操作将所述自定义特效程序文件导入资源面板;
将导入资源面板的所述自定义特效程序文件添加至所述初始特效资源,获得自定义特效资源。
根据本公开实施例的一个或多个实施例,在基于用户触发的创建操作创建初始特效资源之前,还包括:
在设定编辑器中基于用户的编辑操作编辑自定义特效程序文件;
将所述自定义特效程序文件存入所述设定存储路径中。
根据本公开实施例的一个或多个实施例,基于所述自定义特效资源创建自定义特效控件,包括:
基于用户触发的切换操作切换至通用特效面板;
在所述通用特效面板中根据用户触发的创建操作创建初始特效控件;
将所述自定义特效资源设置于所述初始特效控件中,获得自定义特效控件。
根据本公开实施例的一个或多个实施例,基于所述自定义特效控件生成自定义图像特效包,包括:
在所述通用特效面板中根据用户触发的创建操作创建图像输入控件和场景输出控件;
基于所述用户触发的连接操作按照设定规则将所述图像输入控件、所述自定义特效控件及所述场景输出控件连接;
根据连接后的所述图像输入控件、所述自定义特效控件及所述场景输出控件生成自定义图像特效包。
根据本公开实施例的一个或多个实施例,基于所述自定义特效控件生成自定义图像特效包,还包括:
在所述通用特效面板中根据用户触发的创建操作创建至少一个系统特效控件;
基于所述用户触发的连接操作按照设定规则将所述图像输入控件、所述自定义特效控件、所述至少一个系统特效控件及所述场景输出控件连接;
根据连接后的所述图像输入控件、所述自定义特效控件、所述至少一个系统特效控件及所述场景输出控件生成自定义图像特效包。
根据本公开实施例的一个或多个实施例,所述自定义特征程序文件中包含配置信息、通用参数信息及着色信息。

Claims (10)

  1. 一种图像特效包的生成方法,包括:
    基于用户触发的创建操作创建初始特效资源;
    基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;
    基于所述自定义特效资源创建自定义特效控件;
    基于所述自定义特效控件生成自定义图像特效包。
  2. 根据权利要求1所述的方法,其中,所述基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源,包括:
    从设定存储路径中获取所述自定义特效程序文件;
    基于所述用户触发的导入操作将所述自定义特效程序文件导入资源面板;
    将导入所述资源面板的所述自定义特效程序文件添加至所述初始特效资源,获得所述自定义特效资源。
  3. 根据权利要求2所述的方法,在所述基于用户触发的创建操作创建初始特效资源之前,还包括:
    在设定编辑器中基于用户的编辑操作编辑所述自定义特效程序文件;
    将所述自定义特效程序文件存入所述设定存储路径中。
  4. 根据权利要求1所述的方法,其中,所述基于所述自定义特效资源创建自定义特效控件,包括:
    基于用户触发的切换操作切换至通用特效面板;
    在所述通用特效面板中根据用户触发的创建操作创建初始特效控件;
    将所述自定义特效资源设置于所述初始特效控件中,获得所述自定义特效控件。
  5. 根据权利要求4所述的方法,其中,所述基于所述自定义特效控件生成自定义图像特效包,包括:
    在所述通用特效面板中根据用户触发的创建操作创建图像输入控件和场景输出控件;
    基于所述用户触发的连接操作按照设定规则将所述图像输入控件、所述自定义特效控件及所述场景输出控件连接;
    根据连接后的所述图像输入控件、所述自定义特效控件及所述场景输出控 件生成所述自定义图像特效包。
  6. 根据权利要求5所述的方法,其中,所述基于所述自定义特效控件生成自定义图像特效包,还包括:
    在所述通用特效面板中根据用户触发的创建操作创建至少一个系统特效控件;
    基于所述用户触发的连接操作按照设定规则将所述图像输入控件、所述自定义特效控件、所述至少一个系统特效控件及所述场景输出控件连接;
    根据连接后的所述图像输入控件、所述自定义特效控件、所述至少一个系统特效控件及所述场景输出控件生成自定义图像特效包。
  7. 根据权利要求1所述的方法,其中,所述自定义特征程序文件中包含配置信息、通用参数信息及着色信息。
  8. 一种图像特效包的生成装置,包括:
    初始特效资源创建模块,设置为基于用户触发的创建操作创建初始特效资源;
    自定义特效资源获取模块,设置为基于用户触发的导入操作将自定义特效程序文件导入所述初始特效资源中,获得自定义特效资源;
    自定义特效控件创建模块,设置为基于所述自定义特效资源创建自定义特效控件;
    自定义图像特效包生成模块,设置为基于所述自定义特效控件生成自定义图像特效包。
  9. 一种电子设备,包括:
    至少一个处理装置;
    存储装置,设置为存储至少一个程序;
    当所述至少一个程序被所述至少一个处理装置执行,使得所述至少一个处理装置实现如权利要求1-7中任一所述的图像特效包的生成方法。
  10. 一种计算机可读介质,存储有计算机程序,其中,所述程序被处理装置执行时实现如权利要求1-7中任一所述的图像特效包的生成方法。
PCT/CN2022/134621 2021-11-30 2022-11-28 图像特效包的生成方法、装置、设备及存储介质 WO2023098609A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111443885.9A CN116225267A (zh) 2021-11-30 2021-11-30 图像特效包的生成方法、装置、设备及存储介质
CN202111443885.9 2021-11-30

Publications (1)

Publication Number Publication Date
WO2023098609A1 true WO2023098609A1 (zh) 2023-06-08

Family

ID=86573582

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134621 WO2023098609A1 (zh) 2021-11-30 2022-11-28 图像特效包的生成方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN116225267A (zh)
WO (1) WO2023098609A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388434A (zh) * 2018-02-08 2018-08-10 北京市商汤科技开发有限公司 特效程序文件包的生成及特效生成方法与装置、电子设备
CN111199519A (zh) * 2018-11-16 2020-05-26 北京微播视界科技有限公司 特效包的生成方法和装置
CN112685103A (zh) * 2021-01-04 2021-04-20 网易(杭州)网络有限公司 配置文件制作、播放特效的方法、装置、设备及存储介质
CN113018867A (zh) * 2021-03-31 2021-06-25 苏州沁游网络科技有限公司 一种特效文件的生成、播放方法、电子设备及存储介质
WO2021227953A1 (zh) * 2020-05-09 2021-11-18 北京字节跳动网络技术有限公司 图像特效配置方法、图像识别方法、装置及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388434A (zh) * 2018-02-08 2018-08-10 北京市商汤科技开发有限公司 特效程序文件包的生成及特效生成方法与装置、电子设备
CN111199519A (zh) * 2018-11-16 2020-05-26 北京微播视界科技有限公司 特效包的生成方法和装置
WO2021227953A1 (zh) * 2020-05-09 2021-11-18 北京字节跳动网络技术有限公司 图像特效配置方法、图像识别方法、装置及电子设备
CN112685103A (zh) * 2021-01-04 2021-04-20 网易(杭州)网络有限公司 配置文件制作、播放特效的方法、装置、设备及存储介质
CN113018867A (zh) * 2021-03-31 2021-06-25 苏州沁游网络科技有限公司 一种特效文件的生成、播放方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN116225267A (zh) 2023-06-06

Similar Documents

Publication Publication Date Title
WO2021196903A1 (zh) 视频处理方法、装置、可读介质及电子设备
US20230107220A1 (en) Video processing method and apparatus, electronic device, and computer readable storage medium
WO2022228118A1 (zh) 互动内容生成方法、装置、存储介质及电子设备
WO2023104006A1 (zh) 图像特效包的生成方法、装置、设备及存储介质
US11997356B2 (en) Video page display method and apparatus, electronic device and computer-readable medium
WO2020220773A1 (zh) 图片预览信息的显示方法、装置、电子设备及计算机可读存储介质
WO2021197024A1 (zh) 视频特效配置文件生成方法、视频渲染方法及装置
CN110070592B (zh) 特效包的生成方法、装置和硬件装置
WO2023005831A1 (zh) 一种资源播放方法、装置、电子设备和存储介质
US11818491B2 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
WO2022194031A1 (zh) 视频的处理方法、装置、电子设备和存储介质
WO2023116480A1 (zh) 多媒体内容的发布方法、装置、设备、介质和程序产品
WO2023207543A1 (zh) 媒体内容的发布方法、装置、设备、存储介质和程序产品
WO2023104007A1 (zh) 视频特效包的生成方法、装置、设备及存储介质
WO2024037491A1 (zh) 媒体内容处理方法、装置、设备及存储介质
US11962929B2 (en) Method, apparatus, and device for configuring video special effect, and storage medium
WO2023098609A1 (zh) 图像特效包的生成方法、装置、设备及存储介质
CN111199519B (zh) 特效包的生成方法和装置
WO2023098611A1 (zh) 特效的显示方法、装置、设备及存储介质
CN112153439A (zh) 互动视频处理方法、装置、设备及可读存储介质
WO2023143197A1 (zh) 组合图形控件的生成方法、装置、设备及存储介质
CN114647472B (zh) 图片处理方法、装置、设备、存储介质和程序产品
WO2023125163A1 (zh) 一种图像特效处理方法、装置、设备及介质
WO2021018176A1 (zh) 文字特效处理方法及装置
CN112883697B (zh) 工作流表单生成方法、装置、电子设备和计算机可读介质

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: 22900413

Country of ref document: EP

Kind code of ref document: A1