Special effect processing method and device, electronic equipment and storage medium
By sending the target image to two processes for processing in real-time shooting or live broadcast scenes, the problem of excessive memory usage during the special effects trial is solved, and the stable progress of real-time shooting or live broadcast is achieved.
Patent Information
- Application Number
- CN202311460302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-06
AI Technical Summary
In real-time shooting or live broadcast scenes, the additional memory usage and special effects trials during the special effects trial are not effective, resulting in stuttering in the real-time shooting or live broadcast process.
When receiving a special effect trial request, the target image is sent to two processes: one process processes the image according to the previous parameters, and the other process processes according to the special effect parameters to perform a special effect trial preview.
By performing special effects processing in the second process, the special effects processing process avoids excessive memory usage of the first process, prevents crashes or black screens, and ensures smooth progress of real-time shooting or live broadcast.
Smart Images

Figure CN119946210A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to data processing technology, and more particularly to a special effects processing method, device, electronic device, and storage medium. Background Art
[0002] In real-time shooting or live broadcasting, it is usually necessary to add special effects to the real-time video to enrich the content of the video. Currently, in real-time shooting or live broadcasting, special effects adjustment is involved. If you want to change to other special effects, you need to preview the effect of the special effect in advance and then decide whether to use it. However, this will undoubtedly cause a sudden increase in the memory usage required for the real-time shooting or live broadcasting process, which may cause the real-time shooting or live broadcasting process to freeze, causing serious impact on the real-time shooting or live broadcasting process. Summary of the invention
[0003] The present disclosure provides a media information material generation method, device, electronic device and storage medium to solve the problem of freezes in real-time shooting or live broadcasting due to additional memory added during special effect trials or poor special effect trials.
[0004] In a first aspect, an embodiment of the present disclosure provides a special effect processing method, the method comprising:
[0005] When receiving a special effect trial request, sending the target image to the first process and the second process;
[0006] Processing the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving the special effect trial request;
[0007] The target image is processed in a second process according to a second parameter to perform a special effect trial preview, where the second parameter is a special effect parameter corresponding to the special effect trial request.
[0008] In a second aspect, an embodiment of the present disclosure further provides a special effects processing device, the device comprising:
[0009] An image sending module, used for sending a target image to the first process and the second process when receiving a special effect trial request;
[0010] A first rendering module, used to process the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving a special effect trial request;
[0011] The second rendering module is used to process the target image in a second process according to a second parameter to perform a special effect trial preview, where the second parameter is a special effect parameter corresponding to the special effect trial request.
[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0013] one or more processors;
[0014] a storage device for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effect processing method described in any embodiment of the present disclosure.
[0016] In a fourth aspect, a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the special effects processing method described in any embodiment of the present disclosure.
[0017] The technical solution of the disclosed embodiment is that, upon receiving a special effect trial request, the target image is sent to the first process and the 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 for special effect trial preview. The operation of performing special effect processing on the second parameter in the second process avoids crashes or black screens in the processing process of the second parameter, which affects the tasks being executed by the first process, thereby solving the problem of interruption of the ongoing live broadcast or real-time shooting due to the inability to use the special effects normally. In addition, the operation of performing special effect processing on the second parameter in the second process can also reduce the memory consumption of the first process, avoid interruption of the ongoing live broadcast or real-time shooting due to a sudden doubling of the memory consumed by the first process, and achieve effective use of memory and smooth progress of the real-time shooting or live broadcast process. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1a It is a flowchart of a special effect processing method provided by an embodiment of the present disclosure;
[0020] Figure 1b is a schematic diagram of the distribution of the first picture and the second picture presented on the target page applicable to the embodiment of the present disclosure;
[0021] Figure 1c is a schematic diagram of the distribution of the first picture and the second picture presented on the target page applicable to the embodiment of the present disclosure;
[0022] Figure 1dis a schematic diagram of the distribution of the first picture and the second picture presented on the target page applicable to the embodiment of the present disclosure;
[0023] FIG1 is a schematic diagram showing the distribution of a first picture and a second picture presented on a target page applicable to an embodiment of the present disclosure;
[0024] Figure 2 It is a schematic diagram of performing special effect processing using the special effect processing method of the present application applicable to the embodiment of the present disclosure;
[0025] Figure 3 is a structural schematic diagram of a special effect processing device provided by an embodiment of the present disclosure;
[0026] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0033] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0034] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0035] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0036] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0037] Figure 1a A flow chart of a special effects processing method provided in an embodiment of the present disclosure is applicable to situations where special effects adjustment is performed in real-time shooting or live broadcasting scenes. The method can be executed by a special effects processing device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC, a server, etc.
[0038] like Figure 1a As shown, the special effect processing method of this embodiment includes:
[0039] S110: When a special effect trial request is received, 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 broadcast, and the second process can be a process temporarily established for special effects trial. When the special effects trial request ends, the second process will also be closed at the same time. The target image can be data collected by an image acquisition device (camera).
[0041] Specifically, the first process controls an image acquisition device (such as a camera) to acquire a target image, sends the acquired target image to the first process, and sends the acquired target image to the second process across processes through the first process.
[0042] Optionally, before sending the target image to the first process and the second process, the method further includes: creating a second process in response to a first operation for triggering a special effect trial task, so as to facilitate subsequent use of the second process for special effect trial, thereby avoiding the problem of excessive memory usage caused by the special effect trial being directly operated in the first process, and greatly reducing the memory consumption of the first process. The first operation includes a triggering operation for an identifier of a special effect trial request presented in the target page, and the first process and the second process are independent of each other in special effect processing.
[0043] S120 , processing the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving the special effect trial request.
[0044] The first parameter may be a parameter used to render the target image before receiving the special effect trial request. By performing special effect processing on the second parameter in the second process, it is avoided that the special effect processing of the second parameter occupies the memory resources of the first process, causing crashes or black screens, etc., which affect the tasks being executed by the first process, thereby solving the problem of interruption of the ongoing live broadcast or real-time shooting due to the inability to use special effects normally.
[0045] Optionally, processing the target image in the first process according to the first parameter includes: performing special effect processing on the target image in the first process according to the first parameter and rendering and displaying the target image on a target page, where the target page is a page created by the first process for rendering and displaying.
[0046] The first parameter may be a parameter used for performing special effect processing on a target image and rendering the target image before receiving the special effect trial request.
[0047] Specifically, the target image is processed with special effects in the first process according to the first parameter and rendered and displayed on the target page. A more specific description may be: determining the first parameter used by the first process after receiving the special effect trial request, performing the first special effect processing on the target image through the first process according to the first parameter to obtain a first special effect image, and rendering and displaying the first special effect image on the target page corresponding to the first process. The first special effect processing may be a processing process of effectively displaying the special effect on the target page.
[0048] Among them, the target page is a page created by the first process for rendering and display, such as a display screen during live broadcast. There can be two screens on the target page. The large display screen is used to show the screen during live broadcast, and the small screen is used to show the effect of the special effect parameters after special effect processing by the second process; the first parameter is the parameter used before the special effect trial request is received, that is, if the special effect has not been used before the special effect trial request is received, then the first parameter does not include the special effect parameter. If the special effect has not been used before the special effect trial request is received, then the first parameter includes the special effect parameter used before.
[0049] With the above scheme, the first parameter participates in the rendering of the target image and the special effects processing of the target image in the first process, and has occupied a large amount of memory resources. When the special effects are tried, if the second parameter is used for the special effects in the first process, the special effects processing of the second parameter will occupy a large amount of memory resources of the first process, resulting in crashes or black screens, etc., affecting the tasks being executed by the first process. For this reason, the second parameter is processed for special effects 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 the present application is applied to the first client. Furthermore, the first special effect image obtained by performing special effect processing on the target image in the first process is pushed to the server, so that the server sends the first special effect image to the second client for rendering and display, so as to realize interaction with the user.
[0051] Optionally, provide a detailed explanation of the screen displayed on the target page, as follows:
[0052] The target page presents a first picture and a second picture. The first picture is rendered and displayed on the target page and other clients at the same time, and the second picture is rendered and displayed only on the target page. The first picture is a picture rendered after the target image is processed using the first parameter, and the second picture is a picture rendered after the target image is processed using the second parameter. The first picture and the second picture are displayed on the target page in a split-screen manner, or in a picture-in-picture manner, or the second picture is superimposed on the first picture, and these situations can be switched freely according to usage requirements; for example, the first picture and the second picture can be presented on the target page in at least three situations as follows:
[0053] The first type: the display size of the second picture on the target page is smaller than the display size of the first picture on the target page, and the second picture is displayed above the first picture, such as Figure 1b As shown;
[0054] The second type: the display size of the first picture on the target page is smaller than the display size of the second picture on the target page, and the first picture is displayed above the second picture, such as Figure 1c As shown;
[0055] The third type: the first picture and the second picture are spliced and displayed on the target page, and the display size of the picture after the first picture and the second picture are spliced on the target page is equal to the page size of the target page, such as Figure 1d and 1e shown.
[0056] S130: Process the target image in a second process according to the second parameter to perform a special effect trial preview.
[0057] Among them, the second parameter is the special effect parameter corresponding to the special effect trial request.
[0058] Optionally, the first parameter is the special effect parameter originally used to realize the first category of special effects before receiving the special effect trial request, and the second parameter is the special effect parameter corresponding to the special effect trial used to realize the second category of special effects after receiving the special effect trial request. For example, the first parameter is the special effect parameter originally used to realize special effect A before receiving the special effect trial request, and the second parameter is the special effect parameter corresponding to the special effect trial used to realize special effect B after receiving the special effect trial request.
[0059] Optionally, processing the target image in the second process according to the second parameter includes: performing special effect processing on the target image in the second process according to the second parameter and rendering and displaying the target image on the target page.
[0060] Specifically, the target image is processed with special effects in the second process according to the second parameter and rendered and displayed on the target page. A more specific description can be: in response to the second operation for selecting special effect parameters after the special effect trial request is triggered, the second parameter selected for the special effect trial in the second process is determined from multiple special effect parameters. The second operation is specifically a selection operation for the identifier of one of the at least two special effect parameters presented in the target page. After determining that the second parameter is selected for the special effect trial after the special effect trial request is triggered, the target image is processed with the second special effects through the second process according to the second parameter to obtain a second special effect image, and rendered and displayed on the target page.
[0061] In the above scheme, the second special effect parameters are processed in the second process instead of being executed in the first process for live broadcast or real-time shooting. On the one hand, the memory consumption of the first process is reduced, and the interruption of the ongoing live broadcast or real-time shooting due to the sudden doubling of the memory usage of the first process is avoided; on the other hand, the crash or black screen of the second parameter processing process is avoided, which affects the task being executed by the first process, greatly reducing the interruption of the ongoing live broadcast or real-time shooting due to the inability to use the special effects normally.
[0062] Furthermore, the second special effect image of the second process is rendered to the target page corresponding to the first process through a preset display control for display, so that the display of the special effect can be effectively previewed, so as to determine whether the special effect can be applied to the first process and whether to send it to the client; wherein, the preset display control is a control for updating 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 use of the second parameter, closing the second process and adjusting the first parameter used 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 operation in the above process is to confirm that the second parameter can be used to display special effects well and will not affect live broadcast or real-time shooting. Then the first parameter used in the first process can be adjusted to the second parameter, so that the target image can be processed with special effects in the first process according to the second parameter and rendered and displayed on the target page to present a better display picture. At this time, the second process is no longer needed, so the second process can be closed, which effectively avoids the consumption of extra memory.
[0065] For example, the whole process of this application is described by taking live broadcast as an example. Figure 2 As shown, when the live broadcast user is using a live broadcast device (mobile phone or tablet) for live broadcast, and the live broadcast user needs to switch special effects, the live broadcast user clicks the "Special Effects Trial" button on the page to trigger the special effects trial task. At this time, the camera on the live broadcast 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, and processes the target image through special effects according to the first parameter and renders it onto the display screen of the live broadcast device. At the same time, the first special effects image obtained by performing special effects processing on the target image in the first process is pushed to the server, so that the server distributes the first special effects image to the second client for rendering and display, so as to realize the interaction between the live broadcast user and the viewing user.
[0067] After the second process obtains the target image, it receives the target special effect that needs to be switched determined by the live broadcast user and obtains the special effect parameters of the target special effect, and uses them as the second parameters. Then, in the second process, the target image is processed with special effects according to the second parameters to obtain the second special effect image, which is further rendered to the remoteview in the second process, thereby using the remoteview to render the second special effect image to the remoteview in the first process across processes, so as to render it to the display screen of the live broadcast device, so as to observe whether the second parameter can be applied normally on the display screen of the live broadcast device, that is, if there are accidents such as black screen or crash, it means that the second parameter cannot be applied to the first process, thereby effectively avoiding problems such as live broadcast interruption caused by direct special effect display in the first process, and the preview process is displayed in the second process, which can effectively reduce the memory consumption of the live broadcast process of the first process, thereby improving the experience effect of the live broadcast user.
[0068] After the preview display, if it is determined that the second parameter can be adopted, the second process is closed and the first parameter adopted by the first process is adjusted to the second parameter, so that the target image is processed with special effects in the first process according to the second parameter and rendered and displayed on the target page.
[0069] The technical solution of the disclosed embodiment is that, upon receiving a special effect trial request, the target image is sent to the first process and the second process, and then the target image is processed and rendered and displayed in the first process according to the first parameter, and at the same time, the target image is processed and rendered and displayed in the second process according to the second parameter, so as to perform a special effect trial preview. The above-mentioned operation of performing special effect processing on the second parameter in the second process avoids crashes or black screens in the processing process of the second parameter, which affects the tasks being executed by the first process, thereby solving the problem of interruption of the ongoing live broadcast or real-time shooting due to the inability to use the special effects normally. In addition, the operation of performing special effect processing on the second parameter in the second process can also reduce the memory consumption of the first process, avoid interruption of the ongoing live broadcast or real-time shooting due to the sudden doubling of the memory consumed by the first process, thereby achieving effective use of memory and smooth progress of the real-time shooting or live broadcast process.
[0070] Figure 3 This is a structural schematic diagram of a special effects processing device provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where special effects are adjusted in real-time shooting or live broadcast scenes. The special effects processing device can be implemented in the form of software and / or hardware, and optionally, can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[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] The image sending module 210 is used to send the target image to the first process and the second process when receiving a special effect trial request;
[0073] A first rendering module 220, configured to process the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving the special effect trial request;
[0074] The second rendering module 230 is used to process the target image in the second process according to the second parameter to perform a special effect trial preview, where the second parameter is a special effect parameter corresponding to the special effect trial request.
[0075] Optionally, a first rendering module is used to: perform special effect processing on the target image in the first process according to the first parameter and render and display it on a target page, where 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 effect processing on the target image in a second process according to the second parameter and render and display it on the target page.
[0077] Optionally, a first picture and a second picture are presented on the target page, the first picture is a picture rendered after processing the target image using first parameters, and the second picture is a picture rendered after processing the target image using second parameters.
[0078] Optionally, the first picture and the second picture are displayed on the target page in a split-screen manner, or in a picture-in-picture manner, or the second picture is superimposed on the first picture.
[0079] Optionally, the device is applied to a first client, and the first rendering module further includes:
[0080] The pushing unit is used to push the first special effect image obtained by performing special effect processing on the target image in the first process to the server, so that the server sends the first special effect image to the second client for rendering and display.
[0081] Optionally, the image sending module further includes:
[0082] The creation unit is used to create a second process in response to a first operation for triggering a special effect trial task, wherein the first process and the second process are independent of each other in special effect processing.
[0083] Optionally, the first operation includes a triggering operation for an identifier of a special effect trial request presented in a target page.
[0084] Optionally, the image sending module is used to: control the image acquisition device to acquire the target image through the first process; send the acquired target image to the first process, and send the acquired target image to the second process across processes through the first process.
[0085] Optionally, a first rendering module is used to: determine a first parameter used by the first process; perform a first special effect processing on a target image through the first process according to the first parameter to obtain a first special effect image; and render and display the first special effect image on a target page corresponding to the first process.
[0086] Optionally, a second rendering module is used to: determine a second parameter for selecting a special effects trial after triggering a special effects trial request; perform a second special effects processing on the target image through a second process according to the second parameter to obtain a second special effects image; and render the second special effects image of the second process to the target page for display through a preset display control, where the preset display control is a control for updating the display page across processes.
[0087] Optionally, the second rendering module also includes a special effect determination unit, which is used to: in response to a second operation for selecting special effect parameters after triggering a special effect trial request, determine a second parameter selected for special effect trial in the second process from multiple special effect parameters.
[0088] Optionally, the second operation is specifically an operation of selecting an identifier of a special effect parameter among at least two identifiers of special effect parameters presented in the target page.
[0089] Optionally, the second rendering module also 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 a 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.
[0090] The special effects processing device provided in the embodiments of the present disclosure can execute the special effects processing method provided in any embodiment of the present disclosure, and has the functional modules and beneficial effects corresponding to the execution method.
[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-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0092] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 4 , which shows an electronic device (eg, Figure 4 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0093] like Figure 4 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0094] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0095] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 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, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0096] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0097] The electronic device provided by the embodiment of the present disclosure and the special effects processing method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0098] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the special effect processing method provided by the above embodiments is implemented.
[0099] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0100] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0101] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0102] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: when receiving a special effect trial request, sends the target image to the first process and the second process; processes the target image in the first process according to the first parameter, and the first parameter is the parameter used before receiving the special effect trial request; processes the target image in the second process according to the second parameter to perform a special effect trial preview, and the second parameter is the special effect parameter corresponding to the special effect trial request. When receiving a special effect trial request, send the target image to the first process and the second process; process the target image in the first process according to the first parameter and render it for display, and the first parameter is the parameter used before receiving the special effect trial request; process the target image in the second process according to the second parameter and render it for display, for special effect trial preview, and the second parameter is the special effect parameter corresponding to the special effect trial request.
[0103] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0106] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0107] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0108] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0109] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0110] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A special effect processing method, characterized in that: include: When receiving a special effect trial request, sending the target image to the first process and the second process; Processing the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving the special effect trial request; The target image is processed in a second process according to a second parameter to perform a special effect trial preview, where the second parameter is a special effect parameter corresponding to the special effect trial request.
2. The method according to claim 1, characterized in that 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 the target page; Accordingly, the target image is processed in the second process according to the second parameter, including: The target image is processed with special effects in the second process according to the second parameter and rendered and displayed on the target page.
3. The method according to claim 1, characterized in that The target page presents a first picture and a second picture, wherein the first picture is a picture rendered after processing the target image using the first parameter, and the second picture is a picture rendered after processing the target image using the second parameter.
4. The method according to claim 3, characterized in that The first picture and the second picture are displayed on the target page in a split-screen manner, or in a picture-in-picture manner, or the second picture is superimposed on the first picture.
5. The method according to claim 1, characterized in that: The method is applied to a first client; when a target image is processed with special effects in a first process according to a first parameter and rendered and displayed on a target page, the method further includes: The first special effect image obtained by performing special effect processing on the target image in the first process is pushed to the server, so that the server sends the first special effect image to the second client for rendering and display.
6. The method according to claim 1, characterized in that Before sending the target image to the first process and the second process, the method further includes: In response to a first operation for triggering a special effect trial task, a second process is created, and the first process and the second process are independent of each other in special effect processing.
7. The method according to claim 6, characterized in that The first operation includes a triggering operation for an identifier of a special effect trial request presented in a target page.
8. The method according to claim 1, characterized in that: Sending the target image to the first process and the second process includes: Controlling the image acquisition device to acquire the target image through the first process; The acquired target image is sent to the first process, and the acquired target image is sent to the second process across processes through the first process.
9. The method according to claim 2, characterized in that: According to the first parameter, the target image is processed with special effects in the first process and rendered and displayed on the target page, including: determining a first parameter used by the first process; Performing a first special effect processing on the target image through a first process according to the first parameter to obtain a first special effect image; The first special effect image is rendered and displayed on a target page corresponding to the first process.
10. The method according to claim 2, characterized in that Performing special effects processing on the target image in the second process according to the second parameter and rendering and displaying the target image on the target page includes: Determine a second parameter for selecting a special effect trial after a special effect trial request is triggered; Performing 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; The second special effect image of the second process is rendered onto the target page for display through a preset display control, where the preset display control is a control for updating a display page across processes.
11. The method according to claim 2, characterized in that Before performing special effect processing on the target image in the second process according to the second parameter and rendering and displaying the target page, the method further includes: In response to a second operation for selecting a special effect parameter after triggering a special effect trial request, a second parameter selected for the special effect trial in the second process is determined from a plurality of special effect parameters.
12. The method according to claim 11, characterized in that The second operation is specifically an operation of selecting an identifier of a special effect parameter among at least two identifiers of special effect parameters presented in the target page.
13. The method according to claim 2, characterized in that After performing special effect processing on the target image in the second process according to the second parameter and rendering and displaying the target image on the target page, the method further includes: In response to a third operation for confirming the use of the second parameter, closing the second process and adjusting the first parameter used by the first process to the second parameter; The target image is processed with special effects in the first process according to the second parameter and rendered and displayed on the target page.
14. A special effect processing device, characterized in that: include: An image sending module, used for sending a target image to the first process and the second process when receiving a special effect trial request; A first rendering module, used to process the target image in a first process according to a first parameter, where the first parameter is a parameter used before receiving a special effect trial request; The second rendering module is used to process the target image in a second process according to a second parameter to perform a special effect trial preview, where the second parameter is a special effect parameter corresponding to the special effect trial request.
15. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the special effect processing method as described in any one of claims 1-13.
16. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the special effect processing method according to any one of claims 1 to 13 when executed by a computer processor.
Citation Information
Patent Citations
Method and device for processing preview image and mobile terminal
CN104284076A
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 and device, electronic equipment and storage medium
CN115984088A
Image processing method, device and equipment based on end-cloud collaboration and storage medium
CN116934887A