Special effect processing method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202311460302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-11-03
AI Technical Summary
[0003]本公开提供一种媒体信息素材生成方法、装置、电子设备以及存储介质,以解决由于特效试用中额外增加内存或特效试用效果不佳而导致实时拍摄或直播过程出现卡顿的问题
[0016] Fourthly, a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the special effects processing method described in any embodiment of this disclosure.
Smart Images

Figure CN119946210B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to data processing technology, and more particularly to a special effects processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] In live shooting or live streaming scenarios, special effects are often added to enrich the video content. Currently, adjusting special effects is often required in live shooting or live streaming. If you want to switch to a different effect, you need to preview the effect beforehand before deciding whether to use it. However, this undoubtedly leads to a sudden increase in memory usage during live shooting or live streaming, which may cause stuttering and seriously affect the live shooting or live streaming process. Summary of the Invention
[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for generating media information materials to solve the problem of stuttering during real-time shooting or live streaming caused by additional memory required for special effects trials or poor effects during special effects trials.
[0004] In a first aspect, embodiments of this disclosure provide a special effects processing method, the method comprising:
[0005] Upon receiving a request to try out special effects, the target image is sent to both the first and second processes.
[0006] The target image is processed in the first process according to the first parameter, which is the parameter used before receiving the special effects trial request;
[0007] The target image is processed in the second process according to the second parameter to preview the special effects. The second parameter is the special effect parameter corresponding to the special effects trial request.
[0008] Secondly, this disclosure also provides a special effects processing apparatus, which includes:
[0009] The image sending module is used to send the target image to the first process and the second process when a special effects trial request is received;
[0010] The first rendering module is used to process the target image in the first process according to the first parameter, which is the parameter used before receiving the special effects trial request;
[0011] The second rendering module is used to process the target image in the second process according to the second parameter in order to perform a preview of the special effects. The second parameter is the special effect parameter corresponding to the special effects preview request.
[0012] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0013] One or more processors;
[0014] Storage device for storing one or more programs.
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effects processing method described in any embodiment of this disclosure.
[0016] Fourthly, a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the special effects processing method described in any embodiment of this disclosure.
[0017] The technical solution of this disclosure embodiment, upon receiving a special effects trial request, sends the target image to a first process and a second process. The target image is processed in the first process according to the first parameter and in the second process according to the second parameter to preview the special effects trial. The operation of processing the second parameter in the second process avoids the crash or black screen during the processing of the second parameter from affecting the tasks being executed by the first process, thereby solving the problem of interruption of ongoing live broadcast or real-time shooting due to the inability to use the special effects normally. In addition, the operation of processing the second parameter in the second process can also reduce the memory consumption of the first process, avoiding the interruption of ongoing live broadcast or real-time shooting due to a sudden doubling of the memory consumption of the first process, thus achieving efficient use of memory and smooth progress of real-time shooting or live broadcasting. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1a This is a flowchart illustrating a special effects processing method provided in an embodiment of this disclosure;
[0020] Figure 1b This is a schematic diagram showing the distribution of the first and second screens displayed on the target page to which this embodiment of the present disclosure applies;
[0021] Figure 1c This is a schematic diagram showing the distribution of the first and second screens displayed on the target page to which this embodiment of the present disclosure applies;
[0022] Figure 1dThis is a schematic diagram showing the distribution of the first and second screens displayed on the target page to which this embodiment of the present disclosure applies;
[0023] Figure 1 is a schematic diagram showing the distribution of the first and second screens on the target page to which this embodiment of the present disclosure applies;
[0024] Figure 2 This is a schematic diagram illustrating the special effects processing method of this application, applicable to the embodiments of this disclosure;
[0025] Figure 3 This is a schematic diagram of the structure of a special effects processing device provided in an embodiment of this disclosure;
[0026] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0027] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0028] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0029] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0030] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0031] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0032] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0033] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0034] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0035] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0036] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0037] Figure 1a This is a flowchart illustrating a special effects processing method provided in an embodiment of the present disclosure. This embodiment is applicable to situations where special effects adjustments are made in real-time shooting or live streaming scenarios. The method can be executed by a special effects processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.
[0038] like Figure 1a As shown, the special effects processing method in this embodiment includes:
[0039] S110. Upon receiving a request to try out special effects, the target image is sent to the first process and the second process.
[0040] Among them, the special effects trial request can be a request for special effects preview. The first process can be the current process of real-time shooting or live streaming, and the second process can be a process temporarily created for special effects trial. When the special effects trial request ends, the second process will also close. The target image can be data collected by the image acquisition device (camera).
[0041] Specifically, the first process controls the image acquisition device (such as a camera) to acquire the target image, sends the acquired target image to the first process, and then the first process sends the acquired target image across processes to the second process.
[0042] Optionally, before sending the target image to the first and second processes, the method further includes: in response to a first operation used to trigger the special effects trial task, creating a second process so that the special effects trial can be performed subsequently using the second process. This avoids the problem of excessive memory consumption caused by directly performing the special effects trial in the first process, and greatly reduces the memory consumption of the first process. The first operation includes a triggering operation on the identifier of the special effects trial request presented on the target page. The first and second processes are independent of each other in terms of special effects processing.
[0043] S120. Process the target image in the first process according to the first parameter, which is the parameter used before receiving the special effects trial request.
[0044] The first parameter can be the parameters used to render the target image before receiving the effect trial request. By performing the effect processing on the second parameter in the second process, the effect processing of the second parameter avoids the memory resources of the first process being consumed, which could lead to crashes or black screens and affect the tasks being executed by the first process. This solves the problem of interruptions to ongoing live streaming or real-time shooting caused by the inability to use the effect properly.
[0045] Optionally, processing the target image in a first process according to the first parameter includes: performing special effects processing on the target image in the first process according to the first parameter and rendering and displaying it on a target page, wherein the target page is a page created in the first process for rendering and displaying.
[0046] The first parameter can be a parameter used to process and render the target image before receiving the special effects trial request.
[0047] Specifically, the first process performs special effects processing on the target image according to the first parameter and renders and displays it on the target page. More specifically, it can be described as follows: after receiving a special effects trial request, the first process determines the first parameter to use; according to the first parameter, the first process performs a first special effects processing on the target image to obtain a first special effects image; and the first special effects image is rendered and displayed on the target page corresponding to the first process. The first special effects processing can be the process of effectively displaying the special effects on the target page.
[0048] The target page is the page created by the first process for rendering and display, such as the display screen during a live stream. The target page can have two screens: a larger screen to display the live stream and a smaller screen to display the effect parameters after they have been processed by the second process. The first parameter is the parameter used before receiving the effect trial request. That is, if no effect has been used before receiving the effect trial request, the first parameter does not include the effect parameters; if an effect has been used before receiving the effect trial request, the first parameter includes the previously used effect parameters.
[0049] Using the above scheme, the first parameter participates in the rendering and special effects processing of the target image in the first process, which already occupies a lot of memory resources. If the second parameter is used in the first process when the special effects are applied, the special effects processing of the second parameter will consume a lot of memory resources of the first process, causing crashes or black screens, which will affect the tasks being executed by the first process. Therefore, the special effects processing of the second parameter is performed in the second process to avoid the special effects processing of the second parameter occupying the memory resources of the first process.
[0050] The method of this application is applied to a first client. Further, the first special effects image is obtained by performing special effects processing on the target image in the first process and pushed to the server so that the server sends the first special effects image to the second client for rendering and display, so as to realize interaction with the user.
[0051] Optionally, a detailed explanation of the visuals displayed on the target page can be provided, as follows:
[0052] The target page displays a first screen and a second screen. The first screen is rendered and displayed simultaneously on the target page and other clients, while the second screen is rendered and displayed only on the target page. The first screen is rendered after processing the target image using the first parameter, and the second screen is rendered after processing the target image using the second parameter. The first and second screens on the target page can be displayed in a split-screen mode, a picture-in-picture mode, or the second screen can be overlaid on top of the first screen, and these modes can be freely switched according to usage requirements. For example, the first and second screens on the target page can be presented in at least three of the following ways:
[0053] The first scenario: The second screen is smaller than the first screen on the target page, and the second screen is displayed above the first screen. Figure 1b As shown;
[0054] The second method: The first screen is smaller than the second screen on the target page, and the first screen is displayed above the second screen, such as... Figure 1c As shown;
[0055] The third method: The first and second images are spliced together and displayed on the target page. The size of the spliced image on the target page is equal to the page size of the target page. Figure 1d and 1e As shown.
[0056] S130. The target image is processed in the second process according to the second parameter to perform a preview of the special effects.
[0057] The second parameter is the effect parameter corresponding to the effect trial request.
[0058] Optionally, the first parameter is the effect parameters originally used to achieve the first category of effects before receiving the effect trial request, and the second parameter is the effect parameters used to achieve the second category of effects after receiving the effect trial request. For example, the first parameter is the effect parameters originally used to achieve effect A before receiving the effect trial request, and the second parameter is the effect parameters used to achieve effect B after receiving the effect trial request.
[0059] Optionally, the target image is processed in a second process according to the second parameter, including: performing special effects processing on the target image in a second process according to the second parameter and rendering and displaying it on the target page.
[0060] Specifically, according to the second parameter, the target image is processed with special effects in a second process and rendered and displayed on the target page. More specifically, in response to a second operation for selecting special effect parameters after triggering a special effect trial request, a second parameter for the special effect trial is determined from multiple special effect parameters in the second process. Specifically, the second operation is a selection operation of the identifier of one of at least two special effect parameters presented on the target page. After determining the second parameter for the special effect trial after triggering the special effect trial request, the target image is processed with the second special effect according to the second parameter in the second process to obtain a second special effect image, which is then rendered and displayed on the target page.
[0061] The above solution processes the second effect parameter in the second process, rather than executing it in the first process of live streaming or real-time shooting. This reduces the memory consumption of the first process and prevents the ongoing live streaming or real-time shooting from being interrupted due to a sudden doubling of memory usage in the first process. Furthermore, it avoids situations where the processing of the second parameter may crash or cause a black screen, thus preventing the tasks being executed by the first process from being affected. This greatly reduces the occurrence of interruptions in ongoing live streaming or real-time shooting due to the inability to use the effect properly.
[0062] Furthermore, the second special effect image of the second process is rendered onto the target page corresponding to the first process through a preset display control. This allows for an effective preview of the special effect's display, thereby determining whether the special effect can be applied to the first process and whether it should be sent to the client. The preset display control is a control used to update the display page across processes. For example, the preset display control can be a remoteview rendering control.
[0063] Optionally, after performing special effects processing on the target image in the second process according to the second parameter and rendering and displaying it on the target page, the method further includes: in response to a third operation for confirming the adoption of the second parameter, closing the second process and adjusting the first parameter adopted by the first process to the second parameter, performing special effects processing on the target image in the first process according to the second parameter and rendering and displaying it on the target page.
[0064] The above process confirms that the second parameter can effectively display special effects without affecting live streaming or real-time shooting. Therefore, the first parameter used in the first process can be adjusted to the second parameter. The target image is then processed with special effects according to the second parameter in the first process and rendered on the target page to present a better display. Since the second process is no longer needed, it can be turned off, thus effectively avoiding additional memory consumption.
[0065] For example, the entire process of this application is described using live streaming as an example, such as... Figure 2 As shown, when a live streamer is using a live streaming device (phone or tablet) to stream and needs to switch effects, the live streamer clicks the "Effects Trial" button on the page to trigger the effects trial task. At this time, the camera on the live streaming device captures the target image and sends the target image to the first process and the second process.
[0066] The first process obtains the first parameter currently used by the first process, processes the target image with special effects according to the first parameter, and renders it onto the display screen of the live streaming device. At the same time, the first special effect image obtained by the first process of processing the target image with special effects is pushed to the server, so that the server distributes the first special effect image to the second client for rendering and display, so as to realize the interaction between the live streaming user and the viewing user.
[0067] After acquiring the target image, the second process receives the target effect specified by the live stream user and obtains the effect parameters, which are then used as the second parameter. The second process then processes the target image according to these parameters to obtain the second effect image, which is further rendered into the remoteview within the second process. This allows the remoteview to be used across processes to render the second effect image onto the remoteview in the first process, ultimately displaying it on the live streaming device's screen. This allows the live streaming device to observe whether the second parameter can be applied correctly. If a black screen or crash occurs, it indicates that the second parameter cannot be applied to the first process. This effectively avoids issues such as live stream interruptions caused by directly displaying effects in the first process. Furthermore, the preview process is displayed in the second process, effectively reducing memory consumption during the first process's live stream and improving the user experience.
[0068] After previewing and confirming that the second parameter is acceptable, the second process is closed and the first parameter used in the first process is adjusted to the second parameter. The target image is then processed with special effects in the first process according to the second parameter and rendered on the target page.
[0069] The technical solution of this disclosure embodiment, upon receiving a special effects trial request, sends the target image to a first process and a second process. Then, the target image is processed and rendered in the first process according to the first parameter, and simultaneously processed and rendered in the second process according to the second parameter, for a special effects trial preview. The aforementioned operation of processing the second parameter in the second process avoids crashes or black screens during the processing of the second parameter, which could affect the tasks being executed by the first process. This solves the problem of interruption of ongoing live streaming or real-time shooting due to the inability to use special effects normally. In addition, processing the second parameter in the second process can also reduce the memory consumption of the first process, preventing the interruption of ongoing live streaming or real-time shooting due to a sudden doubling of memory consumption by the first process. This achieves efficient memory utilization and smooth operation of real-time shooting or live streaming.
[0070] Figure 3 This is a schematic diagram of a special effects processing device provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to situations where special effects adjustments are made in real-time shooting or live streaming scenarios. The special effects processing device can be implemented in the form of software and / or hardware, and optionally, it can be implemented through electronic devices, such as mobile terminals, PCs, or servers.
[0071] like Figure 3As shown, the device includes: an image sending module 210, a first rendering module 220, and a second rendering module 230.
[0072] Image sending module 210 is used to send the target image to the first process and the second process when a special effects trial request is received;
[0073] The first rendering module 220 is used to process the target image in the first process according to the first parameter, wherein the first parameter is the parameter used before receiving the special effects trial request;
[0074] The second rendering module 230 is used to process the target image in the second process according to the second parameter in order to perform a preview of the special effects. The second parameter is the special effect parameter corresponding to the special effects preview request.
[0075] Optionally, the first rendering module is used to: perform special effects processing on the target image in a first process according to the first parameters and render and display it on the target page, wherein the target page is a page created by the first process for rendering and display;
[0076] Optionally, a second rendering module is used to: perform special effects processing on the target image in a second process according to the second parameters and render and display it on the target page.
[0077] Optionally, the target page displays a first screen and a second screen. The first screen is a screen rendered after processing the target image using a first parameter, and the second screen is a screen rendered after processing the target image using a second parameter.
[0078] Optionally, the first and second screens can be displayed on the target page in a split-screen manner, a picture-in-picture manner, or the second screen can be superimposed on the first screen.
[0079] Optionally, the device is applied to the first client, and the first rendering module further includes:
[0080] The push unit is used to push the first special effects image obtained by the first process of processing the target image to the server, so that the server can send the first special effects image to the second client for rendering and display.
[0081] Optionally, the image sending module also includes:
[0082] A creation unit is used to create a second process in response to a first operation for triggering a special effects trial task, wherein the first process and the second process are independent of each other in terms of special effects processing.
[0083] Optionally, the first operation includes triggering an operation on the identifier of the effect trial request presented on the target page.
[0084] Optionally, an image sending module is used to: control an image acquisition device to acquire a target image through a first process; send the acquired target image to the first process; and send the acquired target image across processes to a second process through the first process.
[0085] Optionally, the first rendering module is configured to: determine the first parameters used by the first process; perform a first special effect processing on the target image according to the first parameters to obtain a first special effect image; and render and display the first special effect image on the target page corresponding to the first process.
[0086] Optionally, the second rendering module is used to: determine a second parameter for selecting to perform a special effect trial after triggering the special effect trial request; perform a second special effect processing on the target image through a second process according to the second parameter to obtain a second special effect image; and render the second special effect image of the second process onto the target page for display through a preset display control, wherein the preset display control is a control used for cross-process updating of the display page.
[0087] Optionally, the second rendering module further includes an effects determination unit, configured to: in response to a second operation for selecting effects parameters after triggering an effects trial request, determine a second parameter from a plurality of effects parameters for selecting effects to be trialed in the second process.
[0088] Optionally, the second operation specifically involves selecting the identifier of one of the at least two effect parameters displayed on the target page.
[0089] Optionally, the second rendering module further includes an effects adoption unit, configured to: in response to a third operation for confirming the adoption of the second parameter, shut down the second process and adjust the first parameter adopted by the first process to the second parameter; perform effects processing on the target image in the first process according to the second parameter and render and display it on the target page.
[0090] The special effects processing apparatus provided in this disclosure can execute the special effects processing methods provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the methods.
[0091] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0092] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 4 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 4 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0093] like Figure 4 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0094] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0095] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0096] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0097] The electronic device provided in this embodiment and the special effects processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0098] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the special effects processing method provided in the above embodiments.
[0099] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), 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 thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0100] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0101] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0102] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: upon receiving a special effects trial request, send a target image to a first process and a second process; process the target image in the first process according to a first parameter, wherein the first parameter is a parameter used before receiving the special effects trial request; process the target image in the second process according to a second parameter to perform a special effects trial preview, wherein the second parameter is a special effects parameter corresponding to the special effects trial request; upon receiving a special effects trial request, send the target image to the first process and the second process; process and render the target image in the first process according to the first parameter, wherein the first parameter is a parameter used before receiving the special effects trial request; process and render the target image in the second process according to the second parameter to perform a special effects trial preview, wherein the second parameter is a special effects parameter corresponding to the special effects trial request.
[0103] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0105] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0106] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0107] In the context of this disclosure, a machine-readable medium can 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 can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0108] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0109] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0110] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A special effects processing method, characterized in that, include: Upon receiving a request to try out special effects, the target image is sent to a first process and a second process. The first process is the currently running process used to perform real-time shooting control or live streaming. The second process is a process temporarily created for trying out special effects. The first process and the second process have independent memory space and rendering resources, and are independent of each other in terms of special effects processing. The target image is processed in the first process according to the first parameter, which is the parameter used before receiving the special effects trial request; The target image is processed in the second process according to the second parameter to preview the special effects. The second parameter is the special effect parameter corresponding to the special effects trial request. Before sending the target image to the first process and the second process, the process also includes: In response to the first action used to trigger the special effects trial task, a second process is created; The process of processing the target image in the second process according to the second parameter includes: performing special effects processing on the target image in the second process according to the second parameter and rendering and displaying it on the target page; The process further includes, after performing special effects processing on the target image in the second process according to the second parameter and rendering and displaying it on the target page: In response to a third operation used to confirm the adoption of the second parameter, the second process is shut down and the first parameter adopted by the first process is adjusted to the second parameter; The target image is processed with special effects according to the second parameter in the first process and then rendered and displayed on the target page.
2. The method according to claim 1, characterized in that, The target image is processed in the first process according to the first parameter, including: The target image is processed with special effects in the first process according to the first parameter and then rendered and displayed on the target page.
3. The method according to claim 1, characterized in that, The target page displays a first screen and a second screen. The first screen is a screen rendered after processing the target image using a first parameter, and the second screen is a screen rendered after processing the target image using a second parameter.
4. The method according to claim 3, characterized in that, The first and second screens are displayed on the target page in a split-screen manner, a picture-in-picture manner, or the second screen is superimposed on the first screen.
5. The method according to claim 1, characterized in that, The method is applied to a first client; when the target image is processed with special effects according to the first parameter in the first process and rendered and displayed on the target page, the method further includes: The first process will process the target image with special effects to obtain a first special effects image, which will be pushed to the server so that the server can send the first special effects image to the second client for rendering and display.
6. The method according to claim 1, characterized in that, The first operation includes triggering an action on the identifier of the special effects trial request presented on the target page.
7. The method according to claim 1, characterized in that, Sending the target image to the first process and the second process includes: The first process controls the image acquisition device to acquire the target image; The acquired target image is sent to the first process, and the first process then sends the acquired target image across processes to the second process.
8. The method according to claim 2, characterized in that, The target image is processed with special effects according to the first parameter in the first process and then rendered and displayed on the target page, including: Determine the first parameter used by the first process; The first special effects image is obtained by performing a first special effects processing on the target image according to the first parameters and through a first process. The first special effects image is rendered and displayed on the target page corresponding to the first process.
9. The method according to claim 2, characterized in that, According to the second parameter, the target image is processed with special effects in the second process and then rendered and displayed on the target page, including: Determine the second parameter to select when to try out special effects after triggering the special effects trial request; The second special effects image is obtained by performing a second special effects processing on the target image according to the second parameters and through a second process. The second special effects image of the second process is rendered onto the target page and displayed using a preset display control, which is a control used to update the display page across processes.
10. The method according to claim 2, characterized in that, Before performing special effects processing on the target image in the second process according to the second parameter and rendering and displaying it on the target page, the process also includes: In response to a second operation for selecting effect parameters after triggering an effect trial request, a second parameter for selecting the effect trial in the second process is determined from a plurality of effect parameters.
11. The method according to claim 10, characterized in that, The second operation specifically involves selecting the identifier of one of the at least two effect parameters displayed on the target page.
12. A special effects processing device, characterized in that, include: The image sending module is used to send the target image to a first process and a second process when a special effects trial request is received; wherein, the first process is the currently running process used to perform real-time shooting control or live streaming; the second process is a process temporarily created for special effects trial; the first process and the second process have independent memory space and rendering resources, and are independent of each other in special effects processing; The first rendering module is used to process the target image in the first process according to the first parameter, which is the parameter used before receiving the special effects trial request; The second rendering module is used to process the target image in the second process according to the second parameter in order to perform a preview of the special effects. The second parameter is the special effect parameter corresponding to the special effects preview request. The second rendering module is further configured to: perform special effects processing on the target image in the second process according to the second parameters and render and display it on the target page; The image sending module further includes a creation unit, which is used to create a second process in response to a first operation for triggering a special effects trial task; The second rendering module further includes a special effects adoption unit, which is used to: in response to a third operation for confirming the adoption of the second parameter, close the second process and adjust the first parameter adopted by the first process to the second parameter; perform special effects processing on the target image in the first process according to the second parameter and render and display it on the target page.
13. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the special effects processing method as described in any one of claims 1-11.
14. A storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the special effects processing method as described in any one of claims 1-11.
Citation Information
Patent Citations
Beautifying method, device and system in live broadcast process, and storage medium
CN110971924A
Image effect refreshing method and device, electronic equipment and computer readable storage medium
CN113010300A
Image processing method, device and equipment based on end-cloud collaboration and storage medium
CN116934887A