WO2020228406A1 - 图像风格化生成方法、装置及电子设备 - Google Patents
图像风格化生成方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2020228406A1 WO2020228406A1 PCT/CN2020/079205 CN2020079205W WO2020228406A1 WO 2020228406 A1 WO2020228406 A1 WO 2020228406A1 CN 2020079205 W CN2020079205 W CN 2020079205W WO 2020228406 A1 WO2020228406 A1 WO 2020228406A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target object
- displayed
- stylized
- interactive interface
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012545 processing Methods 0.000 claims abstract description 68
- 230000002452 interceptive effect Effects 0.000 claims abstract description 58
- 230000003068 static effect Effects 0.000 claims abstract description 21
- 230000008859 change Effects 0.000 claims abstract description 8
- 230000006870 function Effects 0.000 claims description 22
- 238000011176 pooling Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 11
- 230000007704 transition Effects 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000003672 processing method Methods 0.000 claims description 2
- 230000004044 response Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 6
- 238000004590 computer program Methods 0.000 description 13
- 230000009471 action Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000005070 sampling Methods 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000003062 neural network model Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000013519 translation Methods 0.000 description 4
- 238000003708 edge detection Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000036544 posture Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000037237 body shape Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 210000003414 extremity Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
Definitions
- the present disclosure relates to the field of data processing technology, and in particular to a method, device and electronic device for generating image stylization.
- the system can usually display more different types of stylization in a more friendly way, further improving the user experience.
- the embodiments of the present disclosure provide an image stylized generation method, device and electronic device, which at least partially solve the problems existing in the prior art.
- embodiments of the present disclosure provide a method for generating image stylization, including:
- the image to be displayed in the current interactive interface is converted into a first stylized image corresponding to the target object in real time within a first time period.
- the method After the image to be displayed in the current interactive interface is converted into a first stylized image corresponding to the target object in real time within the first time period, the method also includes:
- the transition image of the target object is displayed in the interactive interface in real time.
- the method further includes:
- the native image of the target object is displayed in real time on the interactive interface.
- the real-time display of the transition image of the target object in the interactive interface includes:
- the stylized image with the first transparency and the native image with the second transparency are superimposed and displayed.
- the method further includes:
- the image to be displayed in the current interactive interface is converted into a second stylized image corresponding to the target object in real time in the fourth time period.
- the acquiring multiple images containing the target object displayed on the interactive interface includes:
- One or more video frames are selected from the video file to form multiple images containing the target object.
- the selecting one or more video frames from the video file to form multiple images containing the target object includes:
- the method further includes:
- Weight the number of pixels in each gray level and use the weighted gray average value as the threshold
- the image after the binarization process is used as the edge image of the target object.
- the image processing parameter and the lightweight model are used to convert the image to be displayed in the current interactive interface into a stylized image corresponding to the target object in real time ,include:
- a stylized image corresponding to the target object is generated.
- an image stylization generation device including:
- An acquiring module configured to acquire a plurality of images containing a target object displayed on the interactive interface, and the target object forms a first graphic area in the plurality of images
- a determining module configured to determine whether the target object is in a static state based on the change trend of the first graphic area in the time series;
- the selection module is configured to randomly select a group of image processing parameters from a plurality of groups of image processing parameters stored in a preset lightweight model when the target object is in a static state, to form a first image processing parameter;
- the conversion module is configured to use the first image processing parameters and the lightweight model to convert the image to be displayed in the current interactive interface into a first stylized corresponding to the target object in a first time period image.
- an embodiment of the present disclosure also provides an electronic device, which includes:
- At least one processor and,
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute any of the foregoing first aspect or any implementation of the first aspect Image stylization generation method.
- embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions that are used to make the computer execute the first aspect or the first aspect described above.
- An image stylized generation method in any implementation manner of one aspect.
- the embodiments of the present disclosure also provide a computer program product.
- the computer program product includes a computing program stored on a non-transitory computer-readable storage medium.
- the computer program includes program instructions. When executed, the computer is caused to execute the image stylization generation method in the foregoing first aspect or any implementation manner of the first aspect.
- the image stylization generation scheme in the embodiment of the present disclosure includes acquiring a plurality of images containing a target object displayed on an interactive interface, and the target object forms a first graphic area in the plurality of images; based on the first graphic
- the change trend of the area in the time series determines whether the target object is in a static state; when the target object is in a static state, randomly select one from the multiple sets of image processing parameters stored in the preset lightweight model Set of image processing parameters to form a first image processing parameter; using the first image processing parameter and the lightweight model, in the first time period, the image to be displayed in the current interactive interface is converted in real time to the target
- the first stylized image corresponding to the object is converted in real time to the target
- the stylization effect of the image can be randomly set, which improves the user experience.
- FIG. 1 is a schematic diagram of an image stylized generation process provided by an embodiment of the disclosure
- FIG. 2 is a schematic diagram of a neural network model provided by an embodiment of the disclosure.
- FIG. 3 is a schematic diagram of another image stylized generation process provided by an embodiment of the disclosure.
- FIG. 4 is a schematic diagram of another image stylized generation process provided by an embodiment of the disclosure.
- FIG. 5 is a schematic structural diagram of an image stylization generating apparatus provided by an embodiment of the disclosure.
- FIG. 6 is a schematic diagram of an electronic device provided by an embodiment of the disclosure.
- the embodiment of the present disclosure provides a method for image stylization generation.
- the image stylization generation method provided in this embodiment can be executed by a computing device, which can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal device, etc.
- an image stylized generation method provided by an embodiment of the present disclosure includes the following steps:
- S101 Acquire a plurality of images containing a target object displayed on an interactive interface, and the target object forms a first graphic area in the plurality of images.
- the solutions of the embodiments of the present disclosure can be applied to an electronic device with data processing functions.
- the electronic device includes hardware and software installed in the electronic device.
- the electronic device can also install various applications, such as image processing applications. Programs, video playback applications, social applications, etc.
- the interactive interface is a window running in an application program, and an image or video containing the target object is displayed on the interactive interface.
- the target object is a specific object defined in the present disclosure.
- the target object has a certain shape. By changing the shape of the target object, commands based on different shapes can be formed.
- the target object may be the body shape of the human body, and the human body forms different postures through limbs, which can constitute different posture commands.
- the target object can also be various gestures, and gestures such as "thumbs up" are formed through gestures to express different gesture instructions.
- the target object occupies a certain position and area in the interactive interface.
- the projection of the target object on the interactive interface constitutes the first graphic area, which can be displayed in multiple images formed by the interactive area .
- the electronic device can acquire multiple images (target image sequence) obtained by shooting the target object and played on the interactive interface remotely or locally through a wired connection or a wireless connection.
- the interactive interface may be an interface for displaying an image obtained by shooting a target object.
- the interactive interface may be an interface of an application installed on the above-mentioned execution subject for capturing images.
- the target object may be a person for whom the image is taken.
- the target object may be a user who uses the above-mentioned execution subject to take a selfie.
- the multiple images can also be image sequences for moving target detection.
- the images included in the multiple images may be all or part of the images in the image sequence obtained by shooting the target object, and the multiple images include the images currently displayed on the interactive interface.
- the multiple images may include a preset number of images, including the image currently displayed on the interactive interface.
- S102 Determine whether the target object is in a static state based on the change trend of the first graphic area in the time series.
- Moving target detection can be performed on multiple images, and the action information corresponding to each of the multiple images can be determined. Since multiple images usually contain certain time information (for example, image capture time or image formation time) when they are formed, the time on the multiple images can be extracted to form a time sequence. Based on the time sequence, multiple images can be arranged in order of time, so that the action information (for example, action instructions) contained in the multiple images can be determined based on the time dimension.
- time information for example, image capture time or image formation time
- the action information is used to characterize the action state of the target object sequentially generated in the time sequence, and the action state can be a moving state or a static state.
- the action state corresponding to the image can be based on the image, relative to the image before the image (it can be an image adjacent to the image, or a preset number of intervals between the image and the image.
- the image of each image) the moving distance of the area composed of pixels that move on the target interface (for example, the moving distance may be the maximum moving distance of the moving distance of each pixel in the area composed of the moving pixels; or It can be the average value of the moving distance of each pixel).
- the moving speed is determined according to the moving distance and the play time difference between the image and the target image, and if the moving speed is greater than or equal to a preset speed threshold, it is determined that the action state corresponding to the image is a moving state.
- the shape command represented by the first graphic area formed by the target object in the static state is the action command that the user really wants to express.
- the shape formed by the target object in the motion state is usually the intermediate transient shape before the action command is formed. Therefore, it is necessary to determine which images of the first graphic area are related to user instructions based on multiple images.
- the judgment may be made based on the state changes of the multiple images in a time series.
- the graphics command represented by the first graphics area in the static state is parsed into the operation command of the target object.
- the operation instruction can be expressed in a variety of ways, and the form of the operation instruction can include but is not limited to at least one of the following: numbers, characters, symbols, level signals, etc.
- the electronic device is provided with a lightweight model, and the lightweight model is used to stylize the image received in the electronic device.
- the electronic device In order to reduce the resource consumption of the electronic device (for example, a mobile phone), the electronic device can still effectively stylize the input image with a small resource occupation.
- the solution of the present disclosure designs a targeted lightweight model.
- the lightweight model is designed in a neural network model, which includes a convolutional layer, a pooling layer, and a sampling layer. In order to improve the computational efficiency of the neural network and reduce the computational complexity of the system electronic equipment, the solution of the present disclosure does not provide a fully connected layer.
- the main parameters of the convolutional layer include the size of the convolution kernel and the number of input feature maps.
- Each convolutional layer can contain several feature maps of the same size.
- the feature values of the same layer adopt the method of sharing weights.
- the convolution in each layer The core size is the same.
- the convolution layer performs convolution calculation on the input image and extracts the layout features of the input image.
- the feature extraction layer of the convolutional layer can be connected to the sampling layer.
- the sampling layer is used to find the local average value of the input expression image and perform secondary feature extraction. By connecting the sampling layer and the convolutional layer, it can ensure that the neural network model is The input expression image has better robustness.
- a pooling layer is also provided behind the convolutional layer.
- the pooling layer uses average pooling to process the output results of the convolutional layer, which can improve the gradient flow of the neural network and obtain More contagious results.
- the lightweight model contains different parameters. By setting the parameters, the lightweight model can produce different artistic styles. Specifically, when it is determined that the target object is in a static state, a set of image processing parameters can be randomly selected from a plurality of sets of image processing parameters stored in a preset lightweight model to form the first image processing parameter.
- the stylization type can be set in the lightweight model, so that the image to be displayed can be converted into the target in real time in the current interactive interface.
- the image to be displayed may be one or more images selected by the user in the current interactive interface, and the image to be displayed may also be one or more video frame images in the video to be displayed. Since the first image processing parameter is generated by random generation, the stylization type of the first stylized image is also random, so that a stylized effect can be displayed randomly from multiple stylized effects, which improves users Experience.
- the second image processing parameter can be randomly generated after a preset period of time in a preset manner, and the second stylized image is generated through the second image processing parameter.
- the first stylized image is different.
- the transition image of the target object is displayed in real time on the interactive interface.
- the transition image is an image with a smooth transition between the stylized image and the native image.
- the native image of the target object is displayed in real time on the interactive interface.
- the user's experience of using stylized can be further improved.
- displaying the transition image of the target object in the interactive interface in real time may include the following steps:
- S301 Acquire n stylized images displayed in the second time period and n native images corresponding to the n stylized images, where the native images are images that have not undergone stylization processing.
- S302 Set a first transparency (n-i)/n for the i-th stylized image among the n stylized images, and set a second transparency i/n for the i-th native image among the n native images.
- i and n are natural numbers, and i is less than or equal to n.
- S303 Superimpose and display the stylized image with the first transparency and the native image with the second transparency.
- the image displayed on the interactive interface can be smoothly transitioned between the stylized image and the native image.
- the video content in the interactive interface can be collected to obtain A video file containing multiple video frames. Based on actual needs, one or more video frames are selected from the video file to form multiple images containing the target object.
- the target object detection may be performed on the video frame in the video file to obtain the target object.
- the image frame that does not contain the target object is not processed, thereby saving the resources of the electronic device.
- the first graphics area in the current video frame is the same as the first video area in the previous video frame. If so, in the Delete the current video frame from the image sequence. In this way, the resources of the electronic device can be further optimized.
- the method further include:
- the target object can be detected by the edge detection operator. If the edge detection operator uses only one structural element, the output image contains only one geometric information, which is not conducive to the preservation of image details. In order to ensure the accuracy of image detection, an edge detection operator containing multiple structural elements is selected.
- S402 Perform detail matching on the multiple images using each of the multiple structural elements to obtain a filtered image.
- each structural element is used as a scale to match the image details, which can fully maintain various details of the image while filtering out different types and sizes of noise.
- S403 Determine the gray level edge calculation of the filtered image to obtain the number of pixels existing in each gray level of the multiple gray levels in the filtered image.
- the filtered image can be converted into a grayscale image.
- the number of pixels in each grayscale image can be calculated .
- S404 Weight the number of pixels in each gray level, and use the weighted gray average value as a threshold.
- a gray level value with a larger number of pixels is given greater weight, and a gray level with a smaller number of pixels is given greater weight.
- the value is set with a smaller weight, and the weighted average gray value is calculated as an average value by calculating the weighted gray value as a threshold, so that the gray image can be binarized based on the average gray value.
- S405 Perform binarization processing on the filtered image based on the threshold.
- the filtered image can be binarized, for example, the pixels larger than the threshold are binarized to data 1, and the pixels smaller than the threshold are binarized to 0.
- S406 Use the binarized image as an edge image of the target object.
- the edge image of the target object is obtained. For example, the pixel that is binarized to 1 is assigned to black, and the image that is binarized to 0 is assigned to white.
- steps S401 to S406 the accuracy of target object detection is improved on the premise of reducing the resource consumption of the electronic device system.
- the mapping table can be defined in advance. Based on the pre-defined mapping table, the zoom factor and translation factor corresponding to the operation instruction can be searched for. By setting the zoom factor and translation factor, different Stylized effect of style.
- an input layer can be set in the lightweight model.
- the input layer contains scaling factors and translation factors. After obtaining specific image processing parameters, the scaling factors and translation factors corresponding to the operation instructions are used as input factors.
- the configuration of all conditional input layers in the lightweight model can simply and effectively configure the lightweight model.
- the conditional input layer can be set in one or more convolutional layers, pooling layers or sampling layers according to actual needs. The parameters of all the condition input layers after the configuration is completed are used as the image processing parameters of the lightweight model, so that different types of stylized models can be obtained.
- the generating a stylized image corresponding to the target object based on the multiple convolutional layers and pooling layers may include steps S501-S503:
- S501 Set the feature representation of the image to be displayed and the stylized image in the convolutional layer and the pooling layer.
- the image to be displayed and the stylized image in the training sample are sampled in the convolutional layer and the pooling layer of the lightweight network. After sampling, the data in each layer constitutes the image to be displayed and the stylized image in the convolution Feature representation of layers and pooling layers.
- the feature representation of the image to be displayed and the stylized image in the i-th layer can be Pi and Fi.
- the square error loss function can be defined based on these two characteristic representations, and the square error loss function is set to minimize the loss function L, then the minimized loss function L can be expressed in the i-th layer as:
- k and j are natural numbers less than or equal to i.
- S503 Generate a stylized image corresponding to the target object based on the minimized loss function.
- an image stylization generating device 50 including:
- the obtaining module 501 is configured to obtain a plurality of images containing a target object displayed on the interactive interface, and the target object forms a first graphic area in the plurality of images.
- the determining module 502 is configured to determine whether the target object is in a static state based on the change trend of the first graphic area in the time series.
- the selection module 503 is configured to randomly select a group of image processing parameters from a plurality of groups of image processing parameters stored in the preset lightweight model when the target object is in a static state, to form a first image processing parameter.
- the conversion module 504 is configured to use the first image processing parameters and the lightweight model to convert the image to be displayed in the current interactive interface into a first style corresponding to the target object in a first time period. ⁇ image.
- the device shown in FIG. 5 can correspondingly execute the content in the foregoing method embodiment.
- an electronic device 60 which includes:
- At least one processor and,
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the image stylization generation method in the foregoing method embodiment.
- the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the foregoing method embodiments.
- the embodiments of the present disclosure also provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, The computer executes the image stylization generation method in the foregoing method embodiment.
- FIG. 6 shows a schematic structural diagram of an electronic device 60 suitable for implementing embodiments of the present disclosure.
- the electronic 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 terminals (for example, Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
- the electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 60 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608
- the program in the memory (RAM) 603 executes various appropriate actions and processing.
- the RAM 603 also stores various programs and data required for the operation of the electronic device 60.
- the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screen, touch panel, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, An output device 607 such as a vibrator; a storage device 608 such as a magnetic tape, a hard disk, etc.; and a communication device 609.
- the communication device 609 may allow the electronic device 60 to perform wireless or wired communication with other devices to exchange data.
- the figure shows the electronic device 60 with various devices, it should be understood that it is not required to implement or have all the devices shown. It may be implemented alternatively or provided with more or fewer devices.
- the process described above with reference to the flowchart can be implemented as a computer software program.
- the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a 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 609, or installed from the storage device 608, or installed from the ROM 602.
- the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the above-mentioned 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, device, 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 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 at least two Internet protocol addresses; and sends to the node evaluation device including the at least two A node evaluation request for an Internet Protocol address, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein, the obtained The Internet Protocol address indicates the edge node in the content distribution network.
- the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; Among the at least two Internet Protocol addresses, select an Internet Protocol address; return the selected Internet Protocol address; wherein, the received Internet Protocol address indicates an edge node in the content distribution network.
- the computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
- 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, and 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 can be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
- the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (12)
- 一种图像风格化生成方法,其特征在于,包括:获取交互界面上显示的包含目标对象的多个图像,所述目标对象在所述多个图像中形成第一图形区域;基于所述第一图形区域在时间序列上的变化趋势,确定所述目标对象是否处于静止状态;当所述目标对象处于静止状态时,从预先设置的轻量化模型中存储的多组图像处理参数中,随机选择一组图像处理参数,形成第一图像处理参数;利用所述第一图像处理参数及所述轻量化模型,在第一时间段内将当前交互界面中待展示的图像实时转化为与所述目标对象相对应的第一风格化图像。
- 根据权利要求1所述的方法,其特征在于,所述在第一时间段内将当前交互界面中待展示的图像实时转化为与所述目标对象相对应的第一风格化图像之后,所述方法还包括:在所述第一时间段之后的第二时间段内,在所述交互界面中实时显示所述目标对象的过渡图像。
- 根据权利要求2所述的方法,其特征在于,所述在所述交互界面中实时显示所述目标对象的过渡图像之后,所述方法还包括:在所述第二时间段之后的第三时间段内,在所述交互界面中实时显示所述目标对象的原生图像。
- 根据权利要求2所述的方法,其特征在于,所述在所述交互界面中实时显示所述目标对象的过渡图像,包括:获取在所述第二时间段内显示的n个风格化图像及所述n个风格化图像对应的n原生图像,所述原生图像为没有经过风格化处理的图像;对n个风格化图像中的第i个风格化图像设置第一透明度(n-i)/n,对n个原生图像中的第i个原生图像设置第二透明度i/n;将具有第一透明度的风格化图像和第二透明度的原生图像叠加显示。
- 根据权利要求3所述的方法,其特征在于,所述在所述交互界面中实时显示所述目标对象的原生图像之后,所述方法还包括:在所述第三时间段之后的第四时间段内,从预先设置的轻量化模型中存储 的多组图像处理参数中,随机选择一组图像处理参数,形成第二图像处理参数;基于所述第二图像处理参数,在第四时间段内将当前交互界面中待展示的图像实时转化为与所述目标对象相对应的第二风格化图像。
- 根据权利要求1所述的方法,其特征在于,所述获取交互界面上显示的包含目标对象的多个图像,包括:对所述交互界面中的视频内容进行采集,以获得包含多个视频帧的视频文件;从所述视频文件中选取一个或多个的视频帧,以形成包含所述目标对象的多个图像。
- 根据权利要求6所述的方法,其特征在于,所述从所述视频文件中选取一个或多个的视频帧,形成包含所述目标对象的多个图像,包括:对所述视频文件中的视频帧进行目标对象检测,以得到包含目标对象的图像序列;在所述图像序列中,判断当前视频帧中的第一图形区域与上一视频帧中的第一视频区域是否相同;响应于当前视频帧中的第一图形区域与上一视频帧中的第一视频区域相同,在所述图像序列中删除当前视频帧。
- 根据权利要求1所述的方法,其特征在于,所述获取交互界面上显示的包含目标对象的多个图像之后,所述方法还包括:选取不同取向的多个结构元素;利用多个结构元素中的每一结构元素对所述多个图像进行细节匹配,以得到滤波图像;确定滤波图像的灰度边缘,以得到滤波图像中多个灰度级别中每一灰度级别中存在的像素数;对每一灰度级别中的像素数进行加权,并将加权后的灰度平均值作为阈值;基于所述阈值对所述滤波图像进行二值化处理;将二值化处理后的图像作为所述目标对象的边缘图像。
- 根据权利要求1所述的方法,其特征在于,在第一时间段内将当前交互 界面中待展示的图像实时转化为与所述目标对象相对应的第一风格化图像,包括:在所述轻量化模型中选取多个卷积层和池化层,其中,所述池化层采用平均池化处理方式;设置待展示的图像与风格化图像在所述卷积层和池化层的特征表示;基于所述特征表示,构建最小化损失函数;基于所述最小化损失函数,生成与所述目标对象相对应的风格化图像。
- 一种图像风格化生成装置,其特征在于,包括:获取模块,用于获取交互界面上显示的包含目标对象的多个图像,所述目标对象在所述多个图像中形成第一图形区域;确定模块,用于基于所述第一图形区域在时间序列上的变化趋势,确定所述目标对象是否处于静止状态;选择模块,用于当所述目标对象处于静止状态时,从预先设置的轻量化模型中存储的多组图像处理参数中,随机选择一组图像处理参数,形成第一图像处理参数;转化模块,用于利用所述第一图像处理参数及所述轻量化模型,在第一时间段内将当前交互界面中待展示的图像实时转化为与所述目标对象相对应的第一风格化图像。
- 一种电子设备,其特征在于,所述电子设备包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述任一权利要求1-9所述的图像风格化生成方法。
- 一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述任一权利要求1-9所述的图像风格化生成方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910403860.2A CN110189246B (zh) | 2019-05-15 | 2019-05-15 | 图像风格化生成方法、装置及电子设备 |
CN201910403860.2 | 2019-05-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020228406A1 true WO2020228406A1 (zh) | 2020-11-19 |
Family
ID=67716352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/079205 WO2020228406A1 (zh) | 2019-05-15 | 2020-03-13 | 图像风格化生成方法、装置及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110189246B (zh) |
WO (1) | WO2020228406A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113469923A (zh) * | 2021-05-28 | 2021-10-01 | 北京达佳互联信息技术有限公司 | 一种图像处理方法、装置、电子设备及存储介质 |
CN113742630A (zh) * | 2021-09-16 | 2021-12-03 | 阿里巴巴新加坡控股有限公司 | 图像处理方法、电子设备及计算机存储介质 |
CN113891141A (zh) * | 2021-10-25 | 2022-01-04 | 北京字节跳动网络技术有限公司 | 一种视频处理方法、装置及设备 |
CN114040129A (zh) * | 2021-11-30 | 2022-02-11 | 北京字节跳动网络技术有限公司 | 视频生成方法、装置、设备及存储介质 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110189246B (zh) * | 2019-05-15 | 2023-02-28 | 北京字节跳动网络技术有限公司 | 图像风格化生成方法、装置及电子设备 |
CN110598781A (zh) * | 2019-09-05 | 2019-12-20 | Oppo广东移动通信有限公司 | 图像处理方法、装置、电子设备及存储介质 |
CN111986076A (zh) * | 2020-08-21 | 2020-11-24 | 深圳市慧鲤科技有限公司 | 图像处理方法及装置、互动式展示装置和电子设备 |
CN112053286B (zh) * | 2020-09-04 | 2023-09-05 | 抖音视界有限公司 | 图像处理方法、装置、电子设备和可读介质 |
CN112148410A (zh) * | 2020-09-29 | 2020-12-29 | 维沃移动通信有限公司 | 图像显示方法及电子设备 |
CN112906553B (zh) * | 2021-02-09 | 2022-05-17 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备及介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108171652A (zh) * | 2017-12-28 | 2018-06-15 | 努比亚技术有限公司 | 一种改进图像风格效果的方法、移动终端及存储介质 |
CN108537776A (zh) * | 2018-03-12 | 2018-09-14 | 维沃移动通信有限公司 | 一种图像风格迁移模型生成方法及移动终端 |
US20180300850A1 (en) * | 2017-04-14 | 2018-10-18 | Facebook, Inc. | Artifact reduction for image style transfer |
CN110189246A (zh) * | 2019-05-15 | 2019-08-30 | 北京字节跳动网络技术有限公司 | 图像风格化生成方法、装置及电子设备 |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501445B (zh) * | 2013-10-12 | 2017-02-22 | 青岛旲天下智能科技有限公司 | 一种手势交互的双向互动数字电视盒***及实现方法 |
CN104869346A (zh) * | 2014-02-26 | 2015-08-26 | ***通信集团公司 | 一种视频通话中的图像处理方法及电子设备 |
CN106341695B (zh) * | 2016-08-31 | 2020-08-11 | 腾讯数码(天津)有限公司 | 直播间互动方法、装置及*** |
CN107171932B (zh) * | 2017-04-27 | 2021-06-08 | 腾讯科技(深圳)有限公司 | 一种图片风格转换方法、装置及*** |
CN107277615B (zh) * | 2017-06-30 | 2020-06-23 | 北京奇虎科技有限公司 | 直播风格化处理方法、装置、计算设备及存储介质 |
CN108205803B (zh) * | 2017-07-19 | 2020-12-25 | 北京市商汤科技开发有限公司 | 图像处理方法、神经网络模型的训练方法及装置 |
CN107633228A (zh) * | 2017-09-20 | 2018-01-26 | 北京奇虎科技有限公司 | 视频数据处理方法及装置、计算设备 |
CN108875751B (zh) * | 2017-11-02 | 2021-03-02 | 北京旷视科技有限公司 | 图像处理方法和装置、神经网络的训练方法、存储介质 |
CN108961349A (zh) * | 2018-06-29 | 2018-12-07 | 广东工业大学 | 一种风格化图像的生成方法、装置、设备及存储介质 |
CN108986110A (zh) * | 2018-07-02 | 2018-12-11 | Oppo(重庆)智能科技有限公司 | 图像处理方法、装置、移动终端及存储介质 |
CN109308679B (zh) * | 2018-08-13 | 2022-08-30 | 深圳市商汤科技有限公司 | 一种图像风格转换方法及装置、设备、存储介质 |
CN109151489B (zh) * | 2018-08-14 | 2019-05-31 | 广州虎牙信息科技有限公司 | 直播视频图像处理方法、装置、存储介质和计算机设备 |
CN109697690A (zh) * | 2018-11-01 | 2019-04-30 | 北京达佳互联信息技术有限公司 | 图像风格迁移方法和*** |
CN109636712B (zh) * | 2018-12-07 | 2022-03-01 | 北京达佳互联信息技术有限公司 | 图像风格迁移及数据存储方法、装置和电子设备 |
-
2019
- 2019-05-15 CN CN201910403860.2A patent/CN110189246B/zh active Active
-
2020
- 2020-03-13 WO PCT/CN2020/079205 patent/WO2020228406A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180300850A1 (en) * | 2017-04-14 | 2018-10-18 | Facebook, Inc. | Artifact reduction for image style transfer |
CN108171652A (zh) * | 2017-12-28 | 2018-06-15 | 努比亚技术有限公司 | 一种改进图像风格效果的方法、移动终端及存储介质 |
CN108537776A (zh) * | 2018-03-12 | 2018-09-14 | 维沃移动通信有限公司 | 一种图像风格迁移模型生成方法及移动终端 |
CN110189246A (zh) * | 2019-05-15 | 2019-08-30 | 北京字节跳动网络技术有限公司 | 图像风格化生成方法、装置及电子设备 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113469923A (zh) * | 2021-05-28 | 2021-10-01 | 北京达佳互联信息技术有限公司 | 一种图像处理方法、装置、电子设备及存储介质 |
CN113469923B (zh) * | 2021-05-28 | 2024-05-24 | 北京达佳互联信息技术有限公司 | 一种图像处理方法、装置、电子设备及存储介质 |
CN113742630A (zh) * | 2021-09-16 | 2021-12-03 | 阿里巴巴新加坡控股有限公司 | 图像处理方法、电子设备及计算机存储介质 |
CN113742630B (zh) * | 2021-09-16 | 2023-12-15 | 阿里巴巴新加坡控股有限公司 | 图像处理方法、电子设备及计算机存储介质 |
CN113891141A (zh) * | 2021-10-25 | 2022-01-04 | 北京字节跳动网络技术有限公司 | 一种视频处理方法、装置及设备 |
CN113891141B (zh) * | 2021-10-25 | 2024-01-26 | 抖音视界有限公司 | 一种视频处理方法、装置及设备 |
CN114040129A (zh) * | 2021-11-30 | 2022-02-11 | 北京字节跳动网络技术有限公司 | 视频生成方法、装置、设备及存储介质 |
CN114040129B (zh) * | 2021-11-30 | 2023-12-05 | 北京字节跳动网络技术有限公司 | 视频生成方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110189246B (zh) | 2023-02-28 |
CN110189246A (zh) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020228406A1 (zh) | 图像风格化生成方法、装置及电子设备 | |
US20220261960A1 (en) | Super-resolution reconstruction method and related apparatus | |
WO2020186935A1 (zh) | 虚拟对象的显示方法、装置、电子设备和计算机可读存储介质 | |
WO2018177379A1 (zh) | 手势识别、控制及神经网络训练方法、装置及电子设备 | |
WO2021254502A1 (zh) | 目标对象显示方法、装置及电子设备 | |
WO2022007627A1 (zh) | 一种图像特效的实现方法、装置、电子设备及存储介质 | |
WO2020156058A1 (zh) | 基于终端的图像拖拽变形实现方法和装置 | |
CN110287891A (zh) | 基于人体关键点的手势控制方法、装置及电子设备 | |
WO2020220809A1 (zh) | 目标对象的动作识别方法、装置和电子设备 | |
WO2020192195A1 (zh) | 图像处理方法、装置和电子设备 | |
CN111638791B (zh) | 虚拟角色的生成方法、装置、电子设备及存储介质 | |
CN112184548A (zh) | 图像超分辨率方法、装置、设备及存储介质 | |
WO2023138549A1 (zh) | 图像处理方法、装置、电子设备及存储介质 | |
CN113050860B (zh) | 一种控件识别方法和相关装置 | |
CN112258653A (zh) | 弹性对象的渲染方法、装置、设备及存储介质 | |
WO2021057463A1 (zh) | 图像风格化处理方法、装置、电子设备及可读介质 | |
CN109121000A (zh) | 一种视频处理方法及客户端 | |
US20240187725A1 (en) | Photographing method and electronic device | |
WO2022218042A1 (zh) | 视频处理方法、装置、视频播放器、电子设备及可读介质 | |
CN111199169A (zh) | 图像处理方法和装置 | |
CN110211017B (zh) | 图像处理方法、装置及电子设备 | |
CN110197459B (zh) | 图像风格化生成方法、装置及电子设备 | |
CN111652675A (zh) | 展示方法、装置和电子设备 | |
CN111191553A (zh) | 人脸跟踪方法、装置及电子设备 | |
WO2024120223A1 (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: 20805163 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: 20805163 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.03.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20805163 Country of ref document: EP Kind code of ref document: A1 |