WO2021031846A1 - 水波纹效果实现方法、装置、电子设备和计算机可读存储介质 - Google Patents

水波纹效果实现方法、装置、电子设备和计算机可读存储介质 Download PDF

Info

Publication number
WO2021031846A1
WO2021031846A1 PCT/CN2020/106858 CN2020106858W WO2021031846A1 WO 2021031846 A1 WO2021031846 A1 WO 2021031846A1 CN 2020106858 W CN2020106858 W CN 2020106858W WO 2021031846 A1 WO2021031846 A1 WO 2021031846A1
Authority
WO
WIPO (PCT)
Prior art keywords
water ripple
image
displacement
pixel
map
Prior art date
Application number
PCT/CN2020/106858
Other languages
English (en)
French (fr)
Inventor
王兢业
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Priority to US17/635,629 priority Critical patent/US11854121B2/en
Publication of WO2021031846A1 publication Critical patent/WO2021031846A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular to a method, device, electronic device, and computer-readable storage medium for realizing a water ripple effect.
  • the first way is to use a video sequence that achieves the water ripple effect and superimpose it with the original video.
  • the video sequence that realizes the splash that is, the video sequence with low transparency
  • the second method is to simulate the effect of water droplets on the water surface, for example, using trigonometric functions to control the distortion of the image
  • the distortion effect is a circle, the radius expands with time, and the amplitude decays with time.
  • the above implementation methods have some defects.
  • the first method there is no connection between the original video and the video sequence that achieves the water ripple effect, and the effect is very unnatural;
  • the second method in the actual scene, the reflection of the water ripple The effect is difficult to simulate realistically.
  • the technical problem solved by the present disclosure is to provide a water ripple effect realization method, so as to at least partially solve the technical problem of unnatural and unrealistic water ripple effect in the prior art.
  • a water ripple effect realization device a water ripple effect realization hardware device, a computer-readable storage medium and a water ripple effect realization terminal are also provided.
  • a method for realizing water ripple effect including:
  • a water ripple effect realization device including:
  • Image acquisition module for acquiring the current frame image in the original video
  • a texture selection module configured to select a corresponding water ripple texture map from a pre-acquired water ripple texture sequence according to the current frame image
  • a vector diagram determining module configured to determine the displacement of each pixel in the water ripple map, and the displacement of each pixel constitutes a displacement vector diagram
  • a distortion image determining module configured to determine the coordinates of each pixel in the current frame image according to the displacement vector diagram to obtain a first water ripple distortion image
  • the water ripple image determining module is configured to determine the water ripple effect image corresponding to the current frame image according to the first water ripple distortion image and the water ripple map.
  • An electronic device including:
  • Memory for storing non-transitory computer readable instructions
  • the processor is configured to run the computer-readable instructions, so that the water ripple effect implementation method described in any one of the above is realized when the processor is executed.
  • a computer-readable storage medium for storing non-transitory computer-readable instructions.
  • the computer can execute any of the above-mentioned water ripple effects. method.
  • a water ripple effect realization terminal includes any of the above water ripple effect realization devices.
  • the displacement of each pixel in the water ripple map is determined, the displacement vector of each pixel is formed, and the coordinates of each pixel in the current frame image are determined according to the displacement vector to obtain the first
  • the water ripple distortion image, the water ripple effect image is determined according to the first water ripple distortion image and the water ripple map, which can display a beautiful and realistic water ripple effect image.
  • FIG. 1 is a schematic flowchart of a method for realizing a water ripple effect according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for realizing a water ripple effect according to an embodiment of the present disclosure
  • Fig. 3 is a schematic flowchart of a device for realizing a water ripple effect according to an embodiment of the present disclosure
  • Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the water ripple effect realization method mainly includes the following steps S11 to S15.
  • Step S11 Obtain the current frame image in the original video.
  • the original video may be a video stream input in real time, for example, a live video in a short video application, or a video image pre-stored in the terminal.
  • the terminal may be a mobile terminal, such as a smart phone, a tablet computer, or a fixed terminal, such as a desktop computer.
  • the current frame image is the image played at the current moment, and the current moment can be customized by the user.
  • the original video is first obtained, and then the image to be played at the current moment is determined according to the current playback progress of the original video, that is, the current frame image.
  • the current frame image For example, a video image is displayed on the terminal screen for playback.
  • the current frame image can be obtained by triggering the corresponding button.
  • Step S12 According to the current frame image, a corresponding water ripple map is selected from the water ripple map sequence obtained in advance.
  • the water ripple map is an image whose content contains water ripples.
  • the water ripple map sequence can be obtained from the Internet.
  • the number of water ripple maps in the water ripple map sequence is the same as the number of image frames to be processed in the original video. That is, a frame of original video image corresponds to a water ripple map.
  • Step S13 Determine the displacement of each pixel in the water ripple map, and form a displacement vector diagram from the displacement of each pixel.
  • each pixel in the water ripple map is moved, and a displacement vector diagram is formed by the displacement of each pixel.
  • Step S14 Determine the coordinates of each pixel in the current frame image according to the displacement vector diagram to obtain a first water ripple distortion image.
  • the displacement vector diagram contains the displacement of each pixel.
  • Each pixel in the current frame image is moved according to the displacement of each pixel in the displacement vector diagram to obtain a new image, the first water ripple distorted image.
  • Step S15 Determine a water ripple effect image corresponding to the current frame image according to the first water ripple distortion image and the water ripple map.
  • the displacement of each pixel in the water ripple map by determining the displacement of each pixel in the water ripple map, the displacement of each pixel is used to form a displacement vector diagram, and the coordinates of each pixel in the current frame image are determined according to the displacement vector to obtain the first water
  • the ripple distorted image, the water ripple effect image is determined according to the first water ripple distortion image and the water ripple map, and the beautiful and lifelike water ripple effect image can be displayed.
  • step S13 specifically includes:
  • Step S131 traverse the pixels in the water ripple map, and use the traversed pixel as the current pixel;
  • Step S132 Determine a preset image area with the current pixel as a reference point
  • the reference point can be the center point.
  • the preset image area can be customized.
  • it may be a square area with the current pixel as the center point.
  • Step S133 Select a pixel in the preset image area as a target pixel
  • Step S134 Determine the displacement of the current pixel point according to the current pixel point and the target pixel point;
  • Step S135 A displacement vector diagram is formed from the displacements of all current pixels traversed in the water ripple map.
  • step S134 specifically includes:
  • Step S1341 Determine the first coordinate of the current pixel and the second coordinate of the target pixel
  • Step S1342 Determine the first color value of the current pixel in the preset color channel and the second color value of the target pixel in the preset color channel;
  • the preset color channel may be the L channel of the Lab color space.
  • the Lab color space is composed of three elements, one element is brightness (L), and a and b are two color channels.
  • A includes colors from dark green (low brightness value) to gray (medium brightness value) to bright pink (high brightness value); b is from bright blue (low brightness value) to gray (medium brightness value 0) Then to yellow (high brightness value).
  • Step S1343 Obtain the displacement of the current pixel point according to the first coordinate, the second coordinate, the first color value and the second color value.
  • step S1343 specifically includes:
  • the displacement of the current pixel point is determined according to the square, the relative displacement and the difference.
  • the determining the displacement of the current pixel according to the square, the relative displacement, and the difference includes:
  • step S15 specifically includes:
  • Step S151 performing filter processing on the first water ripple distorted image to obtain a second water ripple distorted image with a preset tone
  • the preset tone can be customized. For example, it is bluish.
  • Step S152 Perform color processing on the water ripple map to obtain a colored water ripple map
  • the water ripple map is a black and white image or a gray image
  • the water ripple map needs to be color processed to obtain a color water ripple map. For example, it is processed into a bluish image.
  • Step S153 Determine a water ripple effect image corresponding to the current frame image according to the second water ripple distorted image and the color water ripple map.
  • step S151 specifically includes:
  • Step S1511 Determine at least one color channel corresponding to each pixel in the first water ripple warped image
  • the corresponding at least one color channel is an R channel, a G channel, and a B channel.
  • Step S1512 Multiply the color components of each color channel by a preset coefficient to obtain a second water ripple distorted image with a preset hue.
  • the preset coefficients can be customized. Each color channel corresponds to a different preset coefficient.
  • step S152 specifically includes:
  • the water ripple texture is mixed with the selected preset color to obtain a color water ripple texture.
  • the preset color may be a bluish color.
  • multiply multiply mixing is to mix the color of each pixel in the water ripple map with the selected preset color.
  • step S153 specifically includes:
  • the stacking and mixing is a combination of multiplying film and color filter.
  • the water ripple effect realization method mainly includes the following steps S21 to S25.
  • Step S21 Obtain the current frame image in the original video.
  • Step S22 According to the current frame image, a corresponding water ripple map is selected from the water ripple map sequence obtained in advance.
  • AE Anabe After Effects, graphics and video processing
  • Step S23 Determine the displacement of each pixel in the water ripple map, and form a displacement vector diagram from the displacement of each pixel.
  • can take a value of 0.06.
  • Step S24 Determine the coordinates of each pixel in the current frame image according to the displacement vector diagram to obtain a water ripple distortion image.
  • Step S25 Perform filter processing on the water ripple warped image to obtain a blue water ripple warped image.
  • the specific method is to multiply the RGB channel value of each pixel by the three values of 0.80, 0.88, and 1.1 to make the overall tone light blue and obtain a blue-toned distortion map.
  • Step S26 Perform multiply mixing processing on the water ripple map and the selected bluish color to obtain a color water ripple map.
  • Step S27 Perform a superposition and blending process on the bluish water ripple warped image and the color water ripple map to obtain a water ripple effect image corresponding to the current frame image.
  • the device embodiments of the present disclosure can be used to perform the steps implemented by the method embodiments of the present disclosure.
  • the device can execute the steps in the embodiment of the water ripple effect realization method described in the first embodiment.
  • the device mainly includes: an image acquisition module 31, a texture selection module 32, a vector diagram determination module 33, a distortion image determination module 34, and a water ripple image determination module 35; among them,
  • the image acquisition module 31 is used to acquire the current frame image in the original video
  • the texture selection module 32 is configured to select a corresponding water ripple texture map from a pre-acquired water ripple texture sequence according to the current frame image;
  • the vector diagram determining module 33 is configured to determine the displacement of each pixel in the water ripple map, and the displacement of each pixel constitutes a displacement vector diagram;
  • the distortion image determination module 34 is configured to determine the coordinates of each pixel in the current frame image according to the displacement vector diagram to obtain a first water ripple distortion image
  • the water ripple image determining module 35 is configured to determine the water ripple effect image corresponding to the current frame image according to the first water ripple distortion image and the water ripple map.
  • the vector diagram determination module 33 includes: a pixel point traversal unit 331, an image area determination unit 332, a pixel point selection unit 333, a displacement determination unit 334, and a vector diagram determination unit 335; wherein,
  • the pixel point traversal unit 331 is configured to traverse the pixels in the water ripple map, and use the traversed pixel as the current pixel;
  • the image area determining unit 332 is configured to determine a preset image area with the current pixel as a reference point
  • the pixel selection unit 333 is configured to select a pixel in the preset image area as a target pixel
  • the displacement determining unit 334 is configured to determine the displacement of the current pixel point according to the current pixel point and the target pixel point;
  • the vector diagram determining unit 335 is configured to form a displacement vector diagram from the displacements of all current pixels traversed in the water ripple map.
  • the displacement determining unit 334 is specifically configured to: determine the first coordinate of the current pixel point and the second coordinate of the target pixel point; determine the first color value of the current pixel point in the preset color channel And the second color value of the target pixel in the preset color channel; obtain the current pixel according to the first coordinate, the second coordinate, the first color value, and the second color value The displacement of the point.
  • the displacement determining unit 334 is specifically configured to: determine the square of the distance between the current pixel point and the target pixel point according to the first coordinate and the second coordinate; The second coordinate determines the relative displacement between the current pixel point and the target pixel point; calculates the difference between the second color value and the first color value; according to the square, the relative displacement and the The difference determines the displacement of the current pixel point.
  • the displacement determining unit 334 is specifically configured to: adopt a formula Determine the displacement of the current pixel; where p is the coordinate of the current pixel, V p is the displacement of the current pixel, q is the coordinate of the target pixel, and V pq is the relative displacement, w is the preset image area, ⁇ is the parameter,
  • the water ripple image determination module 35 includes: a filter unit 351, a color processing unit 352, and a water ripple image determination unit 353; wherein,
  • the filter unit 351 is configured to perform filter processing on the first water ripple distorted image to obtain a second water ripple distorted image with a preset tone;
  • the color processing unit 352 is configured to perform color processing on the water ripple map to obtain a color water ripple map
  • the water ripple image determining unit 353 is configured to determine the water ripple effect image corresponding to the current frame image according to the second water ripple distortion image and the color water ripple map.
  • the filter unit 351 is specifically configured to: determine at least one color channel corresponding to each pixel in the first water ripple distorted image; multiply the color component of each color channel by a preset coefficient, Obtain a second water ripple distorted image with a preset tone.
  • the color processing unit 352 is specifically configured to perform a multiply blending process on the water ripple map and the selected preset color to obtain a color water ripple map.
  • the water ripple image determining unit 353 is specifically configured to perform superposition and mixing processing on the second water ripple warped image and the color water ripple map to obtain a water ripple effect image corresponding to the current frame image.
  • the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
  • the electronic device 400 may include a processing device (such as a central processing unit, a graphics processor, etc.) 401, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 402 or from a storage device 406
  • the programs in the memory (RAM) 403 execute various appropriate actions and processes.
  • the RAM 403 also stores various programs and data required for the operation of the electronic device 400.
  • the processing device 401, ROM 402, and RAM 403 are connected to each other through a bus 404.
  • An input/output (I/O) interface 405 is also connected to the bus 404.
  • the following devices can be connected to the I/O interface 405: including input devices 406 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibration An output device 407 such as a device; a storage device 406 such as a magnetic tape and a hard disk; and a communication device 409.
  • the communication device 409 may allow the electronic device 400 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 4 shows an electronic device 400 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • 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.
  • the computer program may be downloaded and installed from the network through the communication device 409, or installed from the storage device 406, or installed from the ROM 402.
  • the processing device 401 When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the client and server can communicate with any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communication e.g., communication network
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future research and development network of.
  • LAN local area networks
  • WAN wide area networks
  • the Internet e.g., the Internet
  • end-to-end networks e.g., ad hoc end-to-end networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the current frame image in the original video; Select the corresponding water ripple map in the water ripple map sequence; determine the displacement of each pixel in the water ripple map, and the displacement of each pixel constitutes a displacement vector diagram; determine the displacement vector according to the displacement vector.
  • the coordinates of each pixel in the current frame image are used to obtain a first water ripple distorted image; the water ripple effect image corresponding to the current frame image is determined according to the first water ripple distortion image and the water ripple map.
  • the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations. Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Product
  • SOC System on Chip
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
  • machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read only memory
  • magnetic storage device or any suitable combination of the above.
  • an image processing method including:
  • the determining the displacement of each pixel in the water ripple map and forming a displacement vector diagram from the displacement of each pixel includes:
  • a displacement vector diagram is formed by the displacements of all current pixels traversed in the water ripple map.
  • the determining the displacement of the current pixel point according to the current pixel point and the target pixel point includes:
  • the obtaining the displacement of the current pixel point according to the first coordinate, the second coordinate, the first color value, and the second color value includes:
  • the displacement of the current pixel point is determined according to the square, the relative displacement and the difference.
  • the determining the displacement of the current pixel point according to the square, the relative displacement and the difference value includes:
  • the determining the water ripple effect image corresponding to the current frame image according to the first water ripple distortion image and the water ripple map includes:
  • the performing filter processing on the first water ripple distorted image to obtain a second water ripple distorted image with a preset hue includes:
  • each color channel The color components of each color channel are respectively multiplied by a preset coefficient to obtain a second water ripple distorted image with a preset hue.
  • the performing color processing on the water ripple map to obtain a colored water ripple map includes:
  • the water ripple texture is mixed with the selected preset color to obtain a color water ripple texture.
  • the determining the water ripple effect image corresponding to the current frame image according to the second water ripple distortion image and the color water ripple map includes:
  • an image processing apparatus including:
  • Image acquisition module for acquiring the current frame image in the original video
  • a texture selection module configured to select a corresponding water ripple texture map from a pre-acquired water ripple texture sequence according to the current frame image
  • a vector diagram determining module configured to determine the displacement of each pixel in the water ripple map, and the displacement of each pixel constitutes a displacement vector diagram
  • a distortion image determining module configured to determine the coordinates of each pixel in the current frame image according to the displacement vector diagram to obtain a first water ripple distortion image
  • the water ripple image determining module is configured to determine the water ripple effect image corresponding to the current frame image according to the first water ripple distortion image and the water ripple map.
  • the vector diagram determining module includes:
  • the pixel traversal unit is used to traverse the pixels in the water ripple map, and use the traversed pixel as the current pixel;
  • An image area determining unit configured to determine a preset image area with the current pixel as a reference point
  • the pixel selection unit is used to select a pixel in the preset image area as a target pixel
  • a displacement determining unit configured to determine the displacement of the current pixel point according to the current pixel point and the target pixel point
  • the vector diagram determining unit is used to form a displacement vector diagram from the displacements of all current pixels traversed in the water ripple map.
  • the displacement determining unit is specifically configured to: determine the first coordinate of the current pixel point and the second coordinate of the target pixel point; determine the first color value of the current pixel point in the preset color channel and The second color value of the target pixel in the preset color channel; obtain the current pixel according to the first coordinate, the second coordinate, the first color value, and the second color value The displacement.
  • the displacement determining unit is specifically configured to: determine the square of the distance between the current pixel point and the target pixel point according to the first coordinate and the second coordinate; according to the first coordinate and the The second coordinate determines the relative displacement of the current pixel point and the target pixel point; calculates the difference between the second color value and the first color value; according to the square, the relative displacement and the difference The value determines the displacement of the current pixel.
  • the displacement determining unit is specifically configured to: adopt a formula Determine the displacement of the current pixel; where p is the coordinate of the current pixel, V p is the displacement of the current pixel, q is the coordinate of the target pixel, and V pq is the relative displacement, w is the preset image area, ⁇ is the parameter,
  • the water ripple image determination module includes:
  • a filter unit configured to perform filter processing on the first water ripple distorted image to obtain a second water ripple distorted image with a preset tone
  • a color processing unit configured to perform color processing on the water ripple map to obtain a color water ripple map
  • the water ripple image determining unit is configured to determine the water ripple effect image corresponding to the current frame image according to the second water ripple distorted image and the color water ripple map.
  • the filter unit is specifically configured to: determine at least one color channel corresponding to each pixel in the first water ripple distorted image; multiply the color components of each color channel by a preset coefficient to obtain The second water ripple of the preset tone distorts the image.
  • the color processing unit is specifically configured to perform multiply mixing processing on the water ripple map and the selected preset color to obtain a color water ripple map.
  • the water ripple image determining unit is specifically configured to perform superposition and mixing processing on the second water ripple distortion image and the color water ripple map to obtain a water ripple effect image corresponding to the current frame image.
  • an electronic device including:
  • Memory for storing non-transitory computer readable instructions
  • the processor is configured to run the computer-readable instructions, so that the above-mentioned water ripple effect realization method is realized when the processor is executed.
  • a computer-readable storage medium for storing non-transitory computer-readable instructions.
  • the non-transitory computer-readable instructions are executed by a computer, the The computer executes the above-mentioned water ripple effect realization method.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

一种水波纹效果实现方法、装置、电子设备和计算机可读存储介质。其中方法包括:获取原始视频中的当前帧图像(S11);根据当前帧图像选取对应的水波纹贴图(S12);确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图(S13);根据所述位移矢量图确定当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像(S14);根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像(S15)。该方法通过确定水波纹贴图中每个像素点的位移,由每个像素点的位移构成位移矢量图,并根据位移矢量图确定当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像,根据第一水波纹扭曲图像和水波纹贴图确定水波纹效果图像,可以显示出美观、逼真的水波纹效果图像。

Description

水波纹效果实现方法、装置、电子设备和计算机可读存储介质
相关申请的交叉引用
本申请要求于2019年08月16日提交的,申请号为201910759026.7、发明名称为“水波纹效果实现方法、装置、电子设备和计算机可读存储介质”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。
技术领域
本公开涉及图像处理技术领域,特别是涉及一种水波纹效果实现方法、装置、电子设备和计算机可读存储介质。
背景技术
随着智能终端技术的发展,智能终端的功能也越来越多样化,例如,用户可以使用终端进行直播或者短视频拍摄。而在直播或者短视频拍摄中,模拟实现水波纹效果是一个非常有趣的交互娱乐。
在现有技术中,水波纹效果实现主要有以下两种方式:第一种方式,采用实现水波纹效果的视频序列,与原始视频进行叠加。其中,该叠加时,将实现水花的视频序列即低透明度的视频序列,放置在原始视频的上面;第二种方式,模拟水滴滴入水面的效果,例如,使用三角函数来控制图像的扭曲,其中,扭曲效果为一个圆周,半径随着时间而扩大,而振幅随着时间而衰减。
但是,上述实现方式均存在一些缺陷,第一种方式,原始视频和实现水波纹效果的视频序列之间没有产生联系,效果非常不自然;第二种方式,在实际场景中,水波纹的反光效果很难逼真地进行模拟。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
本公开解决的技术问题是提供一种水波纹效果实现方法,以至少部分地解决现有技术中水波纹实现效果不自然、不逼真的技术问题。此外,还提供一种水波纹效果实现装置、水波纹效果实现硬件装置、计算机可读存储介质和水波纹效果实现终端。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种水波纹效果实现方法,包括:
获取原始视频中的当前帧图像;
根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种水波纹效果实现装置,包括:
图像获取模块,用于获取原始视频中的当前帧图像;
贴图选取模块,用于根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
矢量图确定模块,用于确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
扭曲图像确定模块,用于根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
水波纹图像确定模块,用于根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种电子设备,包括:
存储器,用于存储非暂时性计算机可读指令;以及
处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现上述任一项所述的水波纹效果实现方法。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行上述任一项所述的水波纹效果实现方法。
为了实现上述目的,根据本公开的又一个方面,还提供以下技术方案:
一种水波纹效果实现终端,包括上述任一水波纹效果实现装置。
本公开实施例通过确定水波纹贴图中每个像素点的位移,由每个像素点的位移构成位移矢量图,并根据位移矢量图确定当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像,根据第一水波纹扭曲图像和水波纹贴图确定水波纹效果图像,可以显示出美观、逼真的水波纹效果图像。
上述说明仅是本公开技术方案的概述,为了能更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为让本公开的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为根据本公开一个实施例的水波纹效果实现方法的流程示意图;
图2为根据本公开一个实施例的水波纹效果实现方法的流程示意图;
图3为根据本公开一个实施例的水波纹效果实现装置的流程示意图;
图4为根据本公开一个实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
实施例一
为了解决现有技术中水波纹实现效果不自然、不逼真的技术问题,本公开实施例提供一种水波纹效果实现方法。如图1所示,该水波纹效果实现方法主 要包括如下步骤S11至步骤S15。
步骤S11:获取原始视频中的当前帧图像。
其中,原始视频可以为实时输入的视频流,例如,短视频应用中的直播视频,也可以为预先存储在终端中的视频图像。其中,终端可以为移动终端,例如智能手机、平板电脑,也可以为固定终端,例如台式电脑。
其中,当前帧图像为当前时刻播放的图像,其中,当前时刻可以由用户自定义设置。具体的,首先获取原始视频,然后根据原始视频的当前播放进度确定当前时刻播放的图像,即当前帧图像。例如,将视频图像显示在终端屏幕上进行播放,当用户有需求或者观看到感兴趣的图像时,可以通过触发相应的按钮获取当前帧图像。
步骤S12:根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图。
其中,水波纹贴图为内容包含水波纹的图像。
具体的,可以从互联网获取水波纹贴图序列。其中,水波纹贴图序列中水波纹贴图的数量与原始视频中待处理的图像帧数相同。即一帧原始视频图像对应一张水波纹贴图。
步骤S13:确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图。
具体的,对水波纹贴图中每个像素点进行移动,由每个像素点的位移构成位移矢量图。
步骤S14:根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像。
其中,位移矢量图中包含每个像素点的位移,将当前帧图像中的每个像素点按照位移矢量图中每个像素点的位移进行移动,得到新的图像即第一水波纹 扭曲图像。
步骤S15:根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
本实施例通过确定水波纹贴图中每个像素点的位移,由每个像素点的位移构成位移矢量图,并根据位移矢量图确定当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像,根据第一水波纹扭曲图像和水波纹贴图确定水波纹效果图像,可以显示出美观、逼真的水波纹效果图像。
在一个可选的实施例中,步骤S13具体包括:
步骤S131:遍历所述水波纹贴图中的像素点,并将遍历到的像素点作为当前像素点;
步骤S132:确定以所述当前像素点为参照点的预设图像区域;
其中,参照点可以为中心点。
其中,预设图像区域可以自定义设置。例如,可以为以所述当前像素点为中心点的正方形区域。
步骤S133:选取所述预设图像区域中的像素点作为目标像素点;
步骤S134:根据所述当前像素点和所述目标像素点确定所述当前像素点的位移;
步骤S135:由所述水波纹贴图中所有遍历到的当前像素点的位移构成位移矢量图。
在一个可选的实施例中,步骤S134具体包括:
步骤S1341:确定所述当前像素点的第一坐标和所述目标像素点的第二坐标;
步骤S1342:确定所述当前像素点在预设颜色通道的第一颜色值和所述目标像素点在所述预设颜色通道的第二颜色值;
其中,预设颜色通道可以为Lab颜色空间的L通道。其中,Lab颜色空间由三个要素组成,一个要素是亮度(L),a和b是两个颜色通道。a包括的颜色是从深绿色(低亮度值)到灰色(中亮度值)再到亮粉红色(高亮度值);b是从亮蓝色(低亮度值)到灰色(中亮度值0)再到黄色(高亮度值)。
步骤S1343:根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移。
在一个可选的实施例中,步骤S1343具体包括:
根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的距离的平方;
根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的相对位移;
计算所述第二颜色值与所述第一颜色值的差值;
根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移。
在一个可选的实施例中,所述根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移,包括:
采用公式
Figure PCTCN2020106858-appb-000001
确定所述当前像素点的位移;
其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
在一个可选的实施例中,步骤S15具体包括:
步骤S151:对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像;
其中,预设色调可以自定义设置。例如,偏蓝色。
步骤S152:对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图;
具体的,水波纹贴图如果为黑白图像或灰色图像,则需要对水波纹贴图进行色彩处理,得到彩色水波纹贴图。例如,处理成偏蓝色图像。
步骤S153:根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
在一个可选的实施例中,步骤S151具体包括:
步骤S1511:确定所述第一水波纹扭曲图像中的每个像素点对应的至少一个颜色通道;
例如,如果第一水波纹扭曲图像为RGB(红绿蓝)图像,则对应的至少一个颜色通道为R通道、G通道和B通道。
步骤S1512:对于每个颜色通道的颜色分量分别乘以预设系数,得到预设色调的第二水波纹扭曲图像。
其中,预设系数可以自定义设置。每个颜色通道对应不同的预设系数。
在一个可选的实施例中,步骤S152具体包括:
将所述水波纹贴图与选定的预设颜色进行正片叠底混合处理,得到彩色水波纹贴图。
其中,预设颜色可以为偏蓝颜色。
其中,正片叠底混合为将水波纹贴图中每个像素点的颜色与选定的预设颜色进行混合。
在一个可选的实施例中,步骤S153具体包括:
对所述第二水波纹扭曲图像和所述彩色水波纹贴图进行叠加混合处理,得到所述当前帧图像对应的水波纹效果图像。
其中,叠加混合为正片叠底和滤色的组合。
实施例二
本实施例为一具体实现,用于解释说明本公开,如图2所示,该水波纹效果实现方法主要包括如下步骤S21至步骤S25。
步骤S21:获取原始视频中的当前帧图像。
步骤S22:根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图。
具体的,可以先使用AE(Adobe After Effects,图形视频处理)软件,获取一个柔和自然美观的水波纹贴图序列。该水波纹贴图序列的每个原始图像,都是黑白图像,然后使用柔和线性的分形杂色来生成该水波纹贴图序列。
步骤S23:确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图。
具体的,采用公式
Figure PCTCN2020106858-appb-000002
确定所述当前像素点的位移;
其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
其中,α可以取值为0.06。
另外,需要把横向与纵向的位移偏移量限定在4到30个像素内。防止偏移量过小,能够有效去除毛刺现象;防止放置偏移量过大,能够有效去除过扭曲现象,最终获取扭曲效果图。
步骤S24:根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到水波纹扭曲图像。
步骤S25:对所述水波纹扭曲图像进行滤镜处理,得到蓝色调的水波纹扭曲图像。
具体方法为,每个像素点上到RGB通道值,分别乘以0.80、0.88和1.1三个数值,使整体色调偏浅蓝色,获取蓝色调的扭曲图。
步骤S26:将所述水波纹贴图与选定的偏蓝颜色进行正片叠底混合处理,得到彩色水波纹贴图。
步骤S27:对偏蓝色的水波纹扭曲图像和所述彩色水波纹贴图进行叠加混合处理,得到所述当前帧图像对应的水波纹效果图像。
本领域技术人员应能理解,在上述各个实施例的基础上,还可以进行明显变型(例如,对所列举的模式进行组合)或等同替换。
在上文中,虽然按照上述的顺序描述了水波纹效果实现方法实施例中的各个步骤,本领域技术人员应清楚,本公开实施例中的步骤并不必然按照上述顺序执行,其也可以倒序、并行、交叉等其他顺序执行,而且,在上述步骤的基础上,本领域技术人员也可以再加入其他步骤,这些明显变型或等同替换的方式也应包含在本公开的保护范围之内,在此不再赘述。
下面为本公开装置实施例,本公开装置实施例可用于执行本公开方法实施例实现的步骤,为了便于说明,仅示出了与本公开实施例相关的部分,具体技术细节未揭示的,请参照本公开方法实施例。
实施例三
为了解决现有技术中水波纹实现效果不自然、不逼真的技术问题,本公开实施例提供一种水波纹效果实现装置。该装置可以执行上述实施例一所述的水波纹效果实现方法实施例中的步骤。如图3所示,该装置主要包括:图像获取模块31、贴图选取模块32、矢量图确定模块33、扭曲图像确定模块34和水波纹图像确定模块35;其中,
图像获取模块31用于获取原始视频中的当前帧图像;
贴图选取模块32用于根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
矢量图确定模块33用于确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
扭曲图像确定模块34用于根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
水波纹图像确定模块35用于根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述矢量图确定模块33包括:像素点遍历单元331、图像区域确定单元332、像素点选取单元333、位移确定单元334和矢量图确定单元335;其中,
像素点遍历单元331用于遍历所述水波纹贴图中的像素点,并将遍历到的像素点作为当前像素点;
图像区域确定单元332用于确定以所述当前像素点为参照点的预设图像区域;
像素点选取单元333用于选取所述预设图像区域中的像素点作为目标像素点;
位移确定单元334用于根据所述当前像素点和所述目标像素点确定所述当前像素点的位移;
矢量图确定单元335用于由所述水波纹贴图中所有遍历到的当前像素点的位移构成位移矢量图。
进一步的,所述位移确定单元334具体用于:确定所述当前像素点的第一坐标和所述目标像素点的第二坐标;确定所述当前像素点在预设颜色通道的第一颜色值和所述目标像素点在所述预设颜色通道的第二颜色值;根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移。
进一步的,所述位移确定单元334具体用于:根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的距离的平方;根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的相对位移;计算所述第二颜色值与所述第一颜色值的差值;根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移。
进一步的,所述位移确定单元334具体用于:采用公式
Figure PCTCN2020106858-appb-000003
确定所述当前像素点的位移;其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
进一步的,所述水波纹图像确定模块35包括:滤镜单元351、色彩处理单元352和水波纹图像确定单元353;其中,
滤镜单元351用于对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像;
色彩处理单元352用于对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图;
水波纹图像确定单元353用于根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述滤镜单元351具体用于:确定所述第一水波纹扭曲图像中的每个像素点对应的至少一个颜色通道;对于每个颜色通道的颜色分量分别乘以预设系数,得到预设色调的第二水波纹扭曲图像。
进一步的,所述色彩处理单元352具体用于:将所述水波纹贴图与选定的预设颜色进行正片叠底混合处理,得到彩色水波纹贴图。
进一步的,所述水波纹图像确定单元353具体用于:对所述第二水波纹扭曲图像和所述彩色水波纹贴图进行叠加混合处理,得到所述当前帧图像对应的 水波纹效果图像。
实施例四
下面参考图4,其示出了适于用来实现本公开实施例的电子设备400的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图4示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图4所示,电子设备400可以包括处理装置(例如中央处理器、图形处理器等)401,其可以根据存储在只读存储器(ROM)402中的程序或者从存储装置406加载到随机访问存储器(RAM)403中的程序而执行各种适当的动作和处理。在RAM 403中,还存储有电子设备400操作所需的各种程序和数据。处理装置401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。
通常,以下装置可以连接至I/O接口405:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置406;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置407;包括例如磁带、硬盘等的存储装置406;以及通信装置409。通信装置409可以允许电子设备400与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有各种装置的电子设备400,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装 置409从网络上被下载和安装,或者从存储装置406被安装,或者从ROM 402被安装。在该计算机程序被处理装置401执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取原始视频中的当前帧图像;根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合, 可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,提供了一种图像处理方法,包括:
获取原始视频中的当前帧图像;
根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第 一水波纹扭曲图像;
根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图,包括:
遍历所述水波纹贴图中的像素点,并将遍历到的像素点作为当前像素点;
确定以所述当前像素点为参照点的预设图像区域;
选取所述预设图像区域中的像素点作为目标像素点;
根据所述当前像素点和所述目标像素点确定所述当前像素点的位移;
由所述水波纹贴图中所有遍历到的当前像素点的位移构成位移矢量图。
进一步的,所述根据所述当前像素点和所述目标像素点确定所述当前像素点的位移,包括:
确定所述当前像素点的第一坐标和所述目标像素点的第二坐标;
确定所述当前像素点在预设颜色通道的第一颜色值和所述目标像素点在所述预设颜色通道的第二颜色值;
根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移。
进一步的,所述根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移,包括:
根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的距离的平方;
根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的相对位移;
计算所述第二颜色值与所述第一颜色值的差值;
根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移。
进一步的,所述根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移,包括:
采用公式
Figure PCTCN2020106858-appb-000004
确定所述当前像素点的位移;
其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
进一步的,所述根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像,包括:
对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像;
对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图;
根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像,包括:
确定所述第一水波纹扭曲图像中的每个像素点对应的至少一个颜色通道;
对于每个颜色通道的颜色分量分别乘以预设系数,得到预设色调的第二水波纹扭曲图像。
进一步的,所述对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图,包括:
将所述水波纹贴图与选定的预设颜色进行正片叠底混合处理,得到彩色水波纹贴图。
进一步的,所述根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像,包括:
根据本公开的一个或多个实施例,提供了一种图像处理装置,包括:
图像获取模块,用于获取原始视频中的当前帧图像;
贴图选取模块,用于根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
矢量图确定模块,用于确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
扭曲图像确定模块,用于根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
水波纹图像确定模块,用于根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述矢量图确定模块包括:
像素点遍历单元,用于遍历所述水波纹贴图中的像素点,并将遍历到的像素点作为当前像素点;
图像区域确定单元,用于确定以所述当前像素点为参照点的预设图像区域;
像素点选取单元,用于选取所述预设图像区域中的像素点作为目标像素点;
位移确定单元,用于根据所述当前像素点和所述目标像素点确定所述当前像素点的位移;
矢量图确定单元,用于由所述水波纹贴图中所有遍历到的当前像素点的位移构成位移矢量图。
进一步的,所述位移确定单元具体用于:确定所述当前像素点的第一坐标 和所述目标像素点的第二坐标;确定所述当前像素点在预设颜色通道的第一颜色值和所述目标像素点在所述预设颜色通道的第二颜色值;根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移。
进一步的,所述位移确定单元具体用于:根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的距离的平方;根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的相对位移;计算所述第二颜色值与所述第一颜色值的差值;根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移。
进一步的,所述位移确定单元具体用于:采用公式
Figure PCTCN2020106858-appb-000005
确定所述当前像素点的位移;其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
进一步的,所述水波纹图像确定模块包括:
滤镜单元,用于对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像;
色彩处理单元,用于对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图;
水波纹图像确定单元,用于根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
进一步的,所述滤镜单元具体用于:确定所述第一水波纹扭曲图像中的每个像素点对应的至少一个颜色通道;对于每个颜色通道的颜色分量分别乘以预设系数,得到预设色调的第二水波纹扭曲图像。
进一步的,所述色彩处理单元具体用于:将所述水波纹贴图与选定的预设颜色进行正片叠底混合处理,得到彩色水波纹贴图。
进一步的,所述水波纹图像确定单元具体用于:对所述第二水波纹扭曲图像和所述彩色水波纹贴图进行叠加混合处理,得到所述当前帧图像对应的水波纹效果图像。
根据本公开的一个或多个实施例,提供了一种电子设备,包括:
存储器,用于存储非暂时性计算机可读指令;以及
处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现上述的水波纹效果实现方法。
根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行上述的水波纹效果实现方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或 动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (12)

  1. 一种水波纹效果实现方法,其特征在于,包括:
    获取原始视频中的当前帧图像;
    根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
    确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
    根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
    根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图,包括:
    遍历所述水波纹贴图中的像素点,并将遍历到的像素点作为当前像素点;
    确定以所述当前像素点为参照点的预设图像区域;
    选取所述预设图像区域中的像素点作为目标像素点;
    根据所述当前像素点和所述目标像素点确定所述当前像素点的位移;
    由所述水波纹贴图中所有遍历到的当前像素点的位移构成位移矢量图。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述当前像素点和所述目标像素点确定所述当前像素点的位移,包括:
    确定所述当前像素点的第一坐标和所述目标像素点的第二坐标;
    确定所述当前像素点在预设颜色通道的第一颜色值和所述目标像素点在所述预设颜色通道的第二颜色值;
    根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述第一坐标、所述第二坐标、所述第一颜色值和所述第二颜色值得到所述当前像素点的位移,包括:
    根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的距离的平方;
    根据所述第一坐标与所述第二坐标确定所述当前像素点与所述目标像素点的相对位移;
    计算所述第二颜色值与所述第一颜色值的差值;
    根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述平方、所述相对位移和所述差值确定所述当前像素点的位移,包括:
    采用公式
    Figure PCTCN2020106858-appb-100001
    确定所述当前像素点的位移;
    其中,p为所述当前像素点的坐标,V p为所述当前像素点的位移,q为所述目标像素点的坐标,V pq为所述相对位移,w为所述预设图像区域,α为参数,||.||为求绝对值,∑.为求和。
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述第一水波纹扭曲图像和所述水波纹贴图确定所述当前帧图像对应的水波纹效果图像,包括:
    对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像;
    对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图;
    根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像 对应的水波纹效果图像。
  7. 根据权利要求6所述的方法,其特征在于,所述对所述第一水波纹扭曲图像进行滤镜处理,得到预设色调的第二水波纹扭曲图像,包括:
    确定所述第一水波纹扭曲图像中的每个像素点对应的至少一个颜色通道;
    对于每个颜色通道的颜色分量分别乘以预设系数,得到预设色调的第二水波纹扭曲图像。
  8. 根据权利要求6所述的方法,其特征在于,所述对所述水波纹贴图进行色彩处理,得到彩色水波纹贴图,包括:
    将所述水波纹贴图与选定的预设颜色进行正片叠底混合处理,得到彩色水波纹贴图。
  9. 根据权利要求6所述的方法,其特征在于,所述根据所述第二水波纹扭曲图像和所述彩色水波纹贴图确定所述当前帧图像对应的水波纹效果图像,包括:
    对所述第二水波纹扭曲图像和所述彩色水波纹贴图进行叠加混合处理,得到所述当前帧图像对应的水波纹效果图像。
  10. 一种水波纹效果实现装置,其特征在于,包括:
    图像获取模块,用于获取原始视频中的当前帧图像;
    贴图选取模块,用于根据所述当前帧图像从预先获取的水波纹贴图序列中选取对应的水波纹贴图;
    矢量图确定模块,用于确定所述水波纹贴图中每个像素点的位移,由所述每个像素点的位移构成位移矢量图;
    扭曲图像确定模块,用于根据所述位移矢量图确定所述当前帧图像中的每个像素点的坐标,得到第一水波纹扭曲图像;
    水波纹图像确定模块,用于根据所述第一水波纹扭曲图像和所述水波纹贴 图确定所述当前帧图像对应的水波纹效果图像。
  11. 一种电子设备,包括:
    存储器,用于存储非暂时性计算机可读指令;以及
    处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现根据权利要求1-9任一项所述的水波纹效果实现方法。
  12. 一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行权利要求1-9任一项所述的水波纹效果实现方法。
PCT/CN2020/106858 2019-08-16 2020-08-04 水波纹效果实现方法、装置、电子设备和计算机可读存储介质 WO2021031846A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/635,629 US11854121B2 (en) 2019-08-16 2020-08-04 Water ripple effect implementing method and apparatus, electronic device, and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910759026.7A CN112396671B (zh) 2019-08-16 2019-08-16 水波纹效果实现方法、装置、电子设备和计算机可读存储介质
CN201910759026.7 2019-08-16

Publications (1)

Publication Number Publication Date
WO2021031846A1 true WO2021031846A1 (zh) 2021-02-25

Family

ID=74601937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106858 WO2021031846A1 (zh) 2019-08-16 2020-08-04 水波纹效果实现方法、装置、电子设备和计算机可读存储介质

Country Status (3)

Country Link
US (1) US11854121B2 (zh)
CN (1) CN112396671B (zh)
WO (1) WO2021031846A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6377712B1 (en) * 2000-04-10 2002-04-23 Adobe Systems Incorporated Iteratively building displacement maps for image warping
CN101814006A (zh) * 2010-04-28 2010-08-25 中兴通讯股份有限公司 一种实现水波纹特效的方法和装置
CN102592296A (zh) * 2011-12-29 2012-07-18 深圳市万兴软件有限公司 一种实现水波纹荡漾特效的方法和装置
CN104571887A (zh) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 一种基于静态图片的动态交互方法和装置
CN105046726A (zh) * 2015-06-12 2015-11-11 广东小天才科技有限公司 实现终端中水波纹模拟的方法和装置
CN105913471A (zh) * 2016-04-06 2016-08-31 腾讯科技(深圳)有限公司 图片处理的方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7312805B1 (en) * 2003-09-29 2007-12-25 Adobe Systems Incorporated User defined warping tool
CA2834978A1 (fr) * 2012-06-12 2012-11-08 Media Relief Procede de fabrication d'une image iridescente, image obtenue et dispositif la comprenant, programme associe
US9336604B2 (en) * 2014-02-08 2016-05-10 Honda Motor Co., Ltd. System and method for generating a depth map through iterative interpolation and warping
CN107770606A (zh) * 2017-10-24 2018-03-06 北京奇虎科技有限公司 视频数据扭曲处理方法、装置、计算设备及存储介质
CN109598777B (zh) * 2018-12-07 2022-12-23 腾讯科技(深圳)有限公司 图像渲染方法、装置、设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6377712B1 (en) * 2000-04-10 2002-04-23 Adobe Systems Incorporated Iteratively building displacement maps for image warping
CN101814006A (zh) * 2010-04-28 2010-08-25 中兴通讯股份有限公司 一种实现水波纹特效的方法和装置
CN102592296A (zh) * 2011-12-29 2012-07-18 深圳市万兴软件有限公司 一种实现水波纹荡漾特效的方法和装置
CN104571887A (zh) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 一种基于静态图片的动态交互方法和装置
CN105046726A (zh) * 2015-06-12 2015-11-11 广东小天才科技有限公司 实现终端中水波纹模拟的方法和装置
CN105913471A (zh) * 2016-04-06 2016-08-31 腾讯科技(深圳)有限公司 图片处理的方法和装置

Also Published As

Publication number Publication date
CN112396671B (zh) 2024-01-30
US20220292734A1 (en) 2022-09-15
US11854121B2 (en) 2023-12-26
CN112396671A (zh) 2021-02-23

Similar Documents

Publication Publication Date Title
US11842425B2 (en) Interaction method and apparatus, and electronic device and computer-readable storage medium
EP4231650A1 (en) Picture display method and apparatus, and electronic device
CN110070495B (zh) 图像的处理方法、装置和电子设备
CN110070515B (zh) 图像合成方法、装置和计算机可读存储介质
US20220159197A1 (en) Image special effect processing method and apparatus, and electronic device and computer readable storage medium
US20220272283A1 (en) Image special effect processing method, apparatus, and electronic device, and computer-readable storage medium
WO2022093110A1 (zh) 增强现实交互显示方法及设备
WO2023169287A1 (zh) 美妆特效的生成方法、装置、设备、存储介质和程序产品
WO2023197860A1 (zh) 高光渲染方法、装置、介质及电子设备
WO2021031846A1 (zh) 水波纹效果实现方法、装置、电子设备和计算机可读存储介质
WO2023035973A1 (zh) 视频处理方法、装置、设备及介质
CN111292247A (zh) 图像处理方法和装置
CN111415393B (zh) 一种调节多媒体黑板显示的方法、装置、介质和电子设备
US11805219B2 (en) Image special effect processing method and apparatus, electronic device and computer-readable storage medium
CN111223105B (zh) 图像处理方法和装置
CN111324404B (zh) 信息获取进度的显示方法、装置、电子设备及可读介质
WO2021004171A1 (zh) 水波纹图像实现方法及装置
WO2021121291A1 (zh) 图像处理方法、装置、电子设备及计算机可读存储介质
CN110570502A (zh) 显示图像帧的方法、装置、电子设备和计算机可读存储介质
RU2802724C1 (ru) Способ и устройство обработки изображений, электронное устройство и машиночитаемый носитель информации
WO2021018179A1 (zh) 文字特效处理方法及装置
WO2023036111A1 (zh) 视频处理方法、装置、设备及介质
CN111292245A (zh) 图像处理方法和装置
US11880919B2 (en) Sticker processing method and apparatus
WO2023040767A1 (zh) 渲染方法、装置、电子设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20853914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20853914

Country of ref document: EP

Kind code of ref document: A1