Image special effects processing method, device, electronic device and computer-readable storage medium

By capturing and processing multi-frame images of video images through the rendering layer, the simplicity and flexibility of image special effects processing are achieved, the problems of complexity and inflexibility in the prior art are solved, and the processing efficiency is improved.

CN112346682BActive Publication Date: 2025-01-14DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910734932.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-09
Publication Date
2025-01-14
Estimated Expiration
2040-03-07

AI Technical Summary

Technical Problem

In the prior art, image special effects processing is relatively complex and inflexible, and it is impossible to process input images in real time. The program is large, making it complex, time-consuming and labor-intensive to implement multiple special effects.

Method used

The image capture unit of the rendering layer captures the image from the video image and stores it in the data storage layer. The image acquisition unit of the rendering layer acquires multiple frame images, and performs split-screen processing through the special effect unit of the rendering layer, and outputs the output The processed image is sent to the terminal screen to realize special effects processing.

Benefits of technology

It realizes the simplicity and flexibility of image special effects processing. Various special effects can be achieved by modifying the rendering layer, reducing the complexity and volume of the program and improving processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112346682B_ABST
    Figure CN112346682B_ABST
Patent Text Reader

Abstract

The present disclosure discloses an image special effects processing method, device, electronic device and computer-readable storage medium. The method includes: acquiring a video image; during the playback of the video image, capturing an image from the video image through an image capture unit of a rendering layer and storing it in a data storage layer; acquiring multiple frames of images from the data storage layer through an image acquisition unit of the rendering layer; performing split-screen processing on the multiple frames of images through a special effects unit of the rendering layer; and outputting the images after the split-screen processing on a terminal screen for display. The embodiment of the present disclosure captures an image from a video image through an image capture unit of a rendering layer and stores it in a data storage layer, acquires multiple frames of images from the data storage layer through an image acquisition unit of the rendering layer, performs split-screen processing on the multiple frames of images through a special effects unit of the rendering layer, and outputs the images after the split-screen processing on a terminal screen for display. In this way, special effects can be achieved by simply modifying the rendering layer, which is relatively simple and flexible to implement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of image special effects processing, and in particular to an image special effects processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of smart terminal technology, the functions of smart terminals are becoming more and more diversified. For example, users can use the camera in the terminal to shoot images (such as photos or videos), which has become a new mode of entertainment for people. However, simply shooting images can no longer meet the needs of users. As a result, how to perform special effects processing on the captured images to obtain more interesting images has become the focus of people's attention.

[0003] In the prior art, post-production of the captured images is usually adopted to obtain images with special effects. However, this method is not real-time and cannot process the input images with special effects in real time; or R&D personnel write programs specifically for each special effect, but this is very inflexible. If multiple special effects are required, multiple implementations are required, which will result in a larger program size, more complex implementation, and time-consuming and labor-intensive. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] The technical problem solved by the present disclosure is to provide an image special effect processing method to at least partially solve the technical problem that the image special effect implementation in the prior art is relatively complex and inflexible. In addition, an image special effect processing device, an image special effect processing hardware device, a computer-readable storage medium and an image special effect processing terminal are also provided.

[0006] In order to achieve the above object, according to one aspect of the present disclosure, the following technical solution is provided:

[0007] A method for processing image special effects, comprising:

[0008] Acquire video images;

[0009] During the playback of the video image, an image is captured from the video image by an image capture unit of the rendering layer and stored in the data storage layer;

[0010] Acquire multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer;

[0011] Performing split-screen processing on the multiple frames of images by using the special effect unit of the rendering layer;

[0012] The image after split-screen processing is output and displayed on the terminal screen.

[0013] In order to achieve the above object, according to one aspect of the present disclosure, the following technical solution is provided:

[0014] An image special effects processing device, comprising:

[0015] A video acquisition module, used for acquiring video images;

[0016] An image storage module, used for capturing images from the video image through an image capture unit of a rendering layer and storing them in a data storage layer during playback of the video image;

[0017] An image acquisition module, used for acquiring multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer;

[0018] A split-screen processing module, used for performing split-screen processing on the multiple frames of images through the special effect unit of the rendering layer;

[0019] The image display module is used to output the image after split-screen processing on the terminal screen for display.

[0020] In order to achieve the above object, according to one aspect of the present disclosure, the following technical solution is provided:

[0021] An electronic device, comprising:

[0022] a memory for storing non-transitory computer-readable instructions; and

[0023] A processor is used to run the computer-readable instructions so that the processor implements any of the above-mentioned image special effect processing methods when executing the instructions.

[0024] In order to achieve the above object, according to one aspect of the present disclosure, the following technical solution is provided:

[0025] A computer-readable storage medium is used to store non-transitory computer-readable instructions. When the non-transitory computer-readable instructions are executed by a computer, the computer is enabled to execute any of the above-mentioned image special effect processing methods.

[0026] In order to achieve the above object, according to another aspect of the present disclosure, the following technical solution is also provided:

[0027] An image special effect processing terminal comprises any one of the above-mentioned image special effect processing devices.

[0028] The disclosed embodiment captures images from video images through the image capture unit of the rendering layer and stores them in the data storage layer, obtains multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer, performs split-screen processing on the multiple frames of images through the special effects unit of the rendering layer, and outputs the split-screen processed images for display on the terminal screen. In this way, special effects can be achieved by only modifying the rendering layer, which is relatively simple and flexible to implement.

[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites the preferred embodiments and describes them in detail with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] 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.

[0031] Figure 1 is a flowchart of an image special effect processing method according to an embodiment of the present disclosure;

[0032] Figure 2 is a schematic diagram of a flow chart of an image special effect processing device according to an embodiment of the present disclosure;

[0033] Figure 3 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] 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.

[0035] 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.

[0036] 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.

[0037] Embodiment 1

[0038] In order to solve the technical problem that image special effects are relatively complex and inflexible in the prior art, the present disclosure provides an image special effects processing method. Figure 1 As shown, the image special effects processing method mainly includes the following steps S11 to S15.

[0039] Step S11: Acquire video images.

[0040] Specifically, the video image may be a real-time input video stream, such as a live video in a short video application, or a video image pre-stored in a terminal. The terminal may be a mobile terminal, such as a smart phone or a tablet computer, or a fixed terminal, such as a desktop computer.

[0041] Step S12: During the playback of the video image, an image capture unit of the rendering layer captures an image from the video image and stores the image in the data storage layer.

[0042] The data storage layer is used to store captured images. For example, the data storage layer may be composed of a cache, and the captured images may be temporarily stored in the cache so that they can be quickly accessed.

[0043] Step S13: acquiring multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer.

[0044] The data storage layer is used to store historical images. For example, the data storage layer may be composed of a cache, and the historical images are stored in the cache so that they can be quickly accessed.

[0045] Step S14: performing split-screen processing on the multiple frame images through the special effect unit of the rendering layer.

[0046] Specifically, multiple frames of images are arranged in a blank image according to the time sequence relationship of the multiple frames of images. For example, the blank image is divided into regions according to the number of image frames, and then the images are sequentially drawn in corresponding regions according to the time sequence relationship, and then combined into one image. If the number of image frames acquired is 9 frames, the blank image can be divided into 9 square regions of 3 rows and 3 columns, and then the images are sequentially drawn in corresponding square regions from top to bottom and from left to right according to the time sequence relationship, and then combined into one image.

[0047] Step S15: Output the image after the split-screen processing and display it on the terminal screen.

[0048] In this embodiment, the image grabbing unit of the rendering layer captures images from the video image and stores them in the data storage layer, the image acquisition unit of the rendering layer acquires multiple frames of images from the data storage layer, the special effects unit of the rendering layer performs split-screen processing on the multiple frames of images, and the split-screen processed images are output on the terminal screen for display. In this way, special effects can be achieved by only modifying the rendering layer, which is relatively simple and flexible to implement.

[0049] In an optional embodiment, step S13 specifically includes:

[0050] The image acquisition unit of the rendering layer acquires k images with a time interval of n from a cache with a total capacity of k*n in the data storage layer; wherein k is a positive integer greater than 1, and n is a positive integer.

[0051] Specifically, if the total capacity of the data storage layer cache is 9*10, then among the stored images, one image is acquired every 10 seconds according to the time sequence relationship, and a total of 9 images are acquired.

[0052] In an optional embodiment, the method further includes:

[0053] An image acquisition instruction is sent to the image acquisition unit of the rendering layer through the script layer to trigger the operation of the image acquisition unit.

[0054] The script layer includes a script program and a script file required for the script program to run. The control of the rendering layer is achieved by setting the logic in the script. For example, by sending an image acquisition instruction to the image acquisition unit of the rendering layer, the image acquisition unit acquires the historical image of the video image from the data storage layer according to the image acquisition instruction.

[0055] In an optional embodiment, the method further includes:

[0056] A control instruction is sent to the special effect acquisition unit of the rendering layer through the script layer to trigger the operation of the special effect unit.

[0057] Specifically, the control of the rendering layer is realized by setting the logic in the script. For example, a special effect is completed by controlling the special effect unit of the rendering layer. That is, a control instruction is sent to the special effect unit of the rendering layer, and the special effect unit superimposes the historical image with the current image according to the control instruction.

[0058] In an optional embodiment, the method further includes:

[0059] An image capture instruction is sent to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit.

[0060] Specifically, the control of the rendering layer is realized by setting the logic in the script. For example, an image capture instruction is sent to the image capture unit of the rendering layer through the script layer, and the image capture unit captures the image according to the capture instruction and caches the captured image in the storage layer.

[0061] Furthermore, the image capture instruction includes at least one of the following parameters: image identification, image coordinates, image width, image height, resolution of the terminal screen, and number of split screens.

[0062] The image identifier is the number or name of the captured image, and the image identifier may be randomly generated each time an image is captured.

[0063] The image coordinates are the starting coordinates and the ending coordinates of the captured image, including the x coordinates and the y coordinates. For example, they can be the coordinates of the upper left corner and the lower right corner of the terminal screen. The image coordinates can specifically be normalized coordinates. When they are normalized coordinates, the actual coordinates need to be calculated according to the resolution of the terminal screen, for example, the product of the normalized coordinates and the resolution of the terminal screen is used as the actual coordinates.

[0064] The image width is the width of the captured image.

[0065] The image height is the height of the captured image.

[0066] Those skilled in the art should understand that, based on the above-mentioned embodiments, obvious modifications (for example, superposition of the listed modes) or equivalent substitutions may be made.

[0067] In the above, although the various steps in the embodiment of the image special effects processing method are described in the above order, those skilled in the art should be aware that the steps in the embodiments of the present disclosure are not necessarily executed in the above order, and they can also be executed in other orders such as reverse order, parallel order, and cross order. Moreover, on the basis of the above steps, those skilled in the art can also add other steps. These obvious variations or equivalent replacement methods should also be included in the protection scope of the present disclosure and will not be repeated here.

[0068] The following is an embodiment of the device disclosed in the present invention. The embodiment of the device disclosed in the present invention can be used to execute the steps implemented by the embodiment of the method disclosed in the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the embodiment of the method disclosed in the present invention.

[0069] Embodiment 2

[0070] In order to solve the technical problem that image special effects are relatively complex and inflexible in the prior art, the present disclosure provides an image special effects processing device. The device can execute the steps in the image special effects processing method embodiment described in the first embodiment. Figure 2 As shown, the device mainly includes: a video acquisition module 21, an image storage module 22, an image acquisition module 23, a layered processing module 24 and an image display module 25; wherein,

[0071] The video acquisition module 21 is used to acquire video images;

[0072] The image storage module 22 is used to capture images from the video image through the image capture unit of the rendering layer and store them in the data storage layer during the playback of the video image;

[0073] The image acquisition module 23 is used to acquire multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer;

[0074] The split-screen processing module 24 is used to perform split-screen processing on the multiple frames of images through the special effect unit of the rendering layer;

[0075] The image display module 25 is used to output the image after the split-screen processing and display it on the terminal screen.

[0076] Furthermore, the image acquisition module 23 is specifically used to acquire k images with a time interval of n from a cache with a total capacity of k*n in a data storage layer through the image acquisition unit of the rendering layer; wherein k is a positive integer greater than 1, and n is a positive integer.

[0077] Furthermore, the device further comprises: an acquisition instruction sending module 26; wherein,

[0078] The acquisition instruction sending module 26 is used to send an image acquisition instruction to the image acquisition unit of the rendering layer through the script layer to trigger the operation of the image acquisition unit.

[0079] Furthermore, the device further comprises: a control instruction sending module 27; wherein,

[0080] The control instruction sending module 27 is used to send a control instruction to the special effect unit of the rendering layer through the script layer to trigger the operation of the special effect unit.

[0081] Furthermore, the device further comprises: a grabbing instruction sending module 28; wherein,

[0082] The capture instruction sending module 28 is used to send an image capture instruction to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit.

[0083] Furthermore, the image capture instruction includes at least one of the following parameters: image identification, image coordinates, image width, image height, resolution of the terminal screen, and number of split screens.

[0084] For detailed descriptions of the working principle, technical effects achieved, etc. of the embodiment of the image special effects processing device, reference can be made to the relevant descriptions in the aforementioned embodiment of the image special effects processing method, which will not be repeated here.

[0085] Embodiment 3

[0086] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 300 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 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.

[0087] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 306 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0088] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 306 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 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.

[0089] 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 the network through the communication device 309, or installed from the storage device 306, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0090] 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 superposition 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 superposition 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 superposition 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 superposition 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 superposition of the above.

[0091] 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.

[0092] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0093] 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: obtains a video image; during the playback of the video image, grabs an image from the video image through the image grabbing unit of the rendering layer and stores it in the data storage layer; obtains multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer; performs split-screen processing on the multiple frames of images through the special effects unit of the rendering layer; and outputs the split-screen processed images on the terminal screen for display.

[0094] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or superpositions 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., via the Internet using an Internet service provider).

[0095] 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 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 alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flow chart, and the superposition of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with the superposition of dedicated hardware and computer instructions.

[0096] 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".

[0097] 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.

[0098] 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 superposition 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 superposition of the foregoing.

[0099] According to one or more embodiments of the present disclosure, a method for processing image special effects is provided, comprising:

[0100] Acquire video images;

[0101] During the playback of the video image, an image is captured from the video image by an image capture unit of the rendering layer and stored in the data storage layer;

[0102] Acquire multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer;

[0103] Performing split-screen processing on the multiple frames of images by using the special effect unit of the rendering layer;

[0104] The image after split-screen processing is output and displayed on the terminal screen.

[0105] Furthermore, the step of acquiring multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer includes:

[0106] The image acquisition unit of the rendering layer acquires k images with a time interval of n from a cache with a total capacity of k*n in the data storage layer; wherein k is a positive integer greater than 1, and n is a positive integer.

[0107] Furthermore, the method further comprises:

[0108] An image acquisition instruction is sent to the image acquisition unit of the rendering layer through the script layer to trigger the operation of the image acquisition unit.

[0109] Furthermore, the method further comprises:

[0110] A control instruction is sent to the special effect acquisition unit of the rendering layer through the script layer to trigger the operation of the special effect unit.

[0111] Furthermore, the method further comprises:

[0112] An image capture instruction is sent to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit.

[0113] Furthermore, the image capture instruction includes at least one of the following parameters: image identification, image coordinates, image width, image height, resolution of the terminal screen, and number of split screens.

[0114] According to one or more embodiments of the present disclosure, there is provided an image special effect processing device, comprising:

[0115] A video acquisition module, used for acquiring video images;

[0116] An image storage module, used for capturing images from the video image through an image capture unit of a rendering layer and storing them in a data storage layer during playback of the video image;

[0117] An image acquisition module, used for acquiring multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer;

[0118] A split-screen processing module, used for performing split-screen processing on the multiple frames of images through the special effect unit of the rendering layer;

[0119] The image display module is used to output the image after split-screen processing on the terminal screen for display.

[0120] Furthermore, the image acquisition module is specifically used to: acquire k images with a time interval of n from a cache with a total capacity of k*n in a data storage layer through the image acquisition unit of the rendering layer; wherein k is a positive integer greater than 1, and n is a positive integer.

[0121] Furthermore, the device also includes:

[0122] The acquisition instruction sending module is used to send an image acquisition instruction to the image acquisition unit of the rendering layer through the script layer to trigger the operation of the image acquisition unit.

[0123] Furthermore, the device also includes:

[0124] The control instruction sending module is used to send a control instruction to the special effect acquisition unit of the rendering layer through the script layer to trigger the operation of the special effect unit.

[0125] Furthermore, the device also includes:

[0126] The capture instruction sending module is used to send an image capture instruction to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit.

[0127] Furthermore, the image capture instruction includes at least one of the following parameters: image identification, image coordinates, image width, image height, resolution of the terminal screen, and number of split screens.

[0128] According to one or more embodiments of the present disclosure, there is provided an electronic device, including:

[0129] a memory for storing non-transitory computer-readable instructions; and

[0130] The processor is used to run the computer-readable instructions so that the processor implements the above-mentioned image special effect processing method when executing.

[0131] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided for storing non-transitory computer-readable instructions. When the non-transitory computer-readable instructions are executed by a computer, the computer executes the above-mentioned image special effect processing method.

[0132] 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 solution formed by the specific superposition of the above-mentioned technical features, but should also cover other technical solutions formed by any superposition of the above-mentioned technical features or their equivalent features without departing from the above-mentioned disclosure concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) to form a technical solution.

[0133] 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 a superimposed manner. 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-superimposed mode.

[0134] 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 method for processing image special effects, characterized in that: include: Sending an image acquisition instruction to an image acquisition unit of the rendering layer through the script layer to trigger an operation of the image acquisition unit; Sending a control instruction to the special effect unit of the rendering layer through the script layer to trigger the operation of the special effect unit; Sending an image capture instruction to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit; Acquire video images; During the playback of the video image, an image is captured from the video image by an image capture unit of the rendering layer and stored in the data storage layer; Acquiring multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer, comprising: acquiring k images with a time interval of n from a cache with a total capacity of k*n in the data storage layer through the image acquisition unit of the rendering layer; wherein k is a positive integer greater than 1 and n is greater than 2; Performing split-screen processing on the multiple frames of images by using the special effect unit of the rendering layer; Output the split-screen processed image to display on the terminal screen; Among them, the step of performing split-screen processing on the multiple frame images through the special effects unit of the rendering layer includes: dividing the display image into areas according to the number of image frames, drawing the images in corresponding square areas from top to bottom and from left to right in sequence according to the time sequence relationship of the multiple frame images, and combining them into images after split-screen processing.

2. The method according to claim 1, characterized in that The image capture instruction includes at least one of the following parameters: image identification, image coordinates, image width, image height, resolution of the terminal screen, and number of split screens.

3. An image special effects processing device, characterized in that: include: An acquisition instruction sending module is used to send an image acquisition instruction to an image acquisition unit of a rendering layer through a script layer to trigger an operation of the image acquisition unit; A control instruction sending module, used to send a control instruction to the special effect unit of the rendering layer through the script layer to trigger the operation of the special effect unit; A capture instruction sending module, used to send an image capture instruction to the image capture unit of the rendering layer through the script layer to trigger the operation of the image capture unit; A video acquisition module, used for acquiring video images; An image storage module, used for capturing images from the video image through an image capture unit of a rendering layer and storing them in a data storage layer during playback of the video image; An image acquisition module, used to acquire multiple frames of images from the data storage layer through the image acquisition unit of the rendering layer, comprising: acquiring k images with a time interval of n from a cache with a total capacity of k*n in the data storage layer through the image acquisition unit of the rendering layer; wherein k is a positive integer greater than 1; A split screen processing module, used for performing split screen processing on the multiple frames of images through the special effect unit of the rendering layer, including: dividing the displayed image into regions according to the number of image frames, drawing the images in corresponding square regions from top to bottom and from left to right in sequence according to the time sequence relationship of the multiple frames of images, and then combining them into images after split screen processing; The image display module is used to output the image after split-screen processing on the terminal screen for display.

4. An electronic device comprising: a memory for storing non-transitory computer-readable instructions; as well as A processor is used to run the computer-readable instructions so that the processor implements the image special effects processing method according to any one of claims 1-2 when executing.

5. A computer-readable storage medium for storing non-transitory computer-readable instructions, which, when executed by a computer, enables the computer to execute the image special effect processing method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Device and method for intercepting and processing of videos on OTT box

    CN104159151A

  • Display method, apparatus, hardware apparatus, and computer readable storage medium

    CN109144384A