CN110062157A - Render method, apparatus, electronic equipment and the computer readable storage medium of image - Google Patents

Render method, apparatus, electronic equipment and the computer readable storage medium of image Download PDF

Info

Publication number
CN110062157A
CN110062157A CN201910269947.5A CN201910269947A CN110062157A CN 110062157 A CN110062157 A CN 110062157A CN 201910269947 A CN201910269947 A CN 201910269947A CN 110062157 A CN110062157 A CN 110062157A
Authority
CN
China
Prior art keywords
parameter
rendering
target object
image
described image
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910269947.5A
Other languages
Chinese (zh)
Other versions
CN110062157B (en
Inventor
李润祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910269947.5A priority Critical patent/CN110062157B/en
Publication of CN110062157A publication Critical patent/CN110062157A/en
Application granted granted Critical
Publication of CN110062157B publication Critical patent/CN110062157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/107Static hand or arm
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/174Facial expression recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure discloses a kind of method, apparatus, electronic equipment and computer readable storage mediums for rendering image.Wherein the method for the rendering image includes: acquisition image;The parameter of target object is determined according to described image;Rendering parameter is determined according to the parameter of the target object;Described image is rendered according to the rendering parameter.The embodiment of the present disclosure determines rendering parameter by taking the technical solution, according to the parameter of the target object in image, and renders image according to determining rendering parameter, can neatly render the display effect of image and rich image.

Description

Render method, apparatus, electronic equipment and the computer readable storage medium of image
Technical field
This disclosure relates to field of information processing more particularly to a kind of method, apparatus, electronic equipment and calculating for rendering image Machine readable storage medium storing program for executing.
Background technique
With the development of computer technology, the application range of intelligent terminal has obtained extensive raising, such as can pass through Intelligent terminal shoots image and video etc..
Intelligent terminal also has powerful data-handling capacity simultaneously, such as is being carried out using intelligent terminal to target object When shooting, image obtained can be shot to intelligent terminal by image segmentation algorithm and be handled in real time, to identify Shoot the key point of the target object and the target object in image.It is to handle video by human body image partitioning algorithm Example, the computer equipments such as intelligent terminal can handle in real time each frame image of video by human body image partitioning algorithm, quasi- Really each key point of the human body contour outline in identification image and human body, such as the face of human body, the right hand can be identified etc. in image In position etc., this identification has been able to be accurate to Pixel-level.
In the prior art, when shooting to target object, the effect of rendering can be previously set, such as based on filter The image (or video) of effect rendering shooting and/or display, but this rendering mode is very inflexible, and rendering effect is also very It is single.
Summary of the invention
The embodiment of the present disclosure provides the method for rendering image, device, electronic equipment and computer readable storage medium, root Rendering parameter is determined according to the parameter of the target object in image, and image is rendered according to determining rendering parameter, it can be neatly Render the display effect of image and rich image.
In a first aspect, the embodiment of the present disclosure provides a kind of method for rendering image characterized by comprising obtain image; The parameter of target object is determined according to described image;Rendering parameter is determined according to the parameter of the target object;According to the wash with watercolours It contaminates parameter and renders described image.
Further, the target object includes human body, the key position of the human body, object or the object Key position.
Further, rendering parameter is determined according to the parameter of the target object, comprising: in the parameter of the target object In the case where belonging to first interval, determine that the rendering parameter includes the first rendering parameter;In the parameter category of the target object In the case where second interval, determine that the rendering parameter includes the second rendering parameter.
Further, the corresponding first virtualization effect of first rendering parameter, second rendering parameter corresponding second are empty Change effect.
Further, the parameter of the target object includes the area parameters of the target object;It is true according to described image Set the goal the parameter of object, comprising: the key point of the target object is determined in described image;According to the target object Key point determines the area parameters of the target object.
Further, the area parameters of the target object include the pixel quantity or the mesh of the target object Mark the ratio of the pixel quantity of object and the pixel quantity of described image.
Further, the parameter of the target object includes the location parameter of the target object;It is true according to described image Set the goal the parameter of object, comprising: the location parameter of the target object is determined according to the depth information of the target object.
Further, after rendering described image according to the rendering parameter, further includes: display described image is deposited Store up described image.
Second aspect, the embodiment of the present disclosure provide a kind of device for rendering image characterized by comprising image obtains Module, for obtaining image;Target object parameter determination module, for determining the parameter of target object according to described image;Wash with watercolours Parameter determination module is contaminated, for determining rendering parameter according to the parameter of the target object;Rendering module, for according to the wash with watercolours It contaminates parameter and renders described image.
Further, the target object includes human body, the key position of the human body, object or the object Key position.
Further, the rendering parameter determining module is also used to belong to first interval in the parameter of the target object In the case where, determine that the rendering parameter includes the first rendering parameter;Belong to second interval in the parameter of the target object In the case of, determine that the rendering parameter includes the second rendering parameter.
Further, the corresponding first virtualization effect of first rendering parameter, second rendering parameter corresponding second are empty Change effect.
Further, the parameter of the target object includes the area parameters of the target object;The target object ginseng Number determining module is also used to: the key point of the target object is determined in described image;According to the key of the target object Point determines the area parameters of the target object.
Further, the area parameters of the target object include the pixel quantity or the mesh of the target object Mark the ratio of the pixel quantity of object and the pixel quantity of described image.
Further, the parameter of the target object includes the location parameter of the target object;The target object ginseng Number determining module is also used to: the location parameter of the target object is determined according to the depth information of the target object.
Further, the device of the rendering image further includes display module, and the display module is for showing the figure Picture;And/or the device of the rendering image further includes memory module, the memory module is for storing described image.
The third aspect, the embodiment of the present disclosure provide a kind of electronic equipment, comprising: memory, it is computer-readable for storing Instruction;And one or more processors, for running the computer-readable instruction, so that the processor is realized when running The method of any rendering image in aforementioned first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of non-transient computer readable storage medium, which is characterized in that described Non-transient computer readable storage medium stores computer instruction, when the computer instruction is computer-executed, so that institute The method for stating any rendering image that computer executes in aforementioned first aspect.
The present disclosure discloses a kind of method, apparatus, electronic equipment and computer readable storage mediums for rendering image.Wherein The method of the rendering image characterized by comprising obtain image;The parameter of target object is determined according to described image;Root Rendering parameter is determined according to the parameter of the target object;Described image is rendered according to the rendering parameter.The embodiment of the present disclosure mentions Method for rendering image, device, electronic equipment and computer readable storage medium, according to the ginseng of the target object in image Number determines rendering parameters, and renders image according to determining rendering parameter, can neatly render image and rich image Display effect.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this public affairs The some embodiments opened for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the embodiment of the method for the rendering image that the embodiment of the present disclosure provides;
Fig. 2 is the structural schematic diagram of the embodiment of the device for the rendering image that the embodiment of the present disclosure provides;
Fig. 3 is the structural schematic diagram of the electronic equipment provided according to the embodiment of the present disclosure.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in diagram are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
Fig. 1 is the flow chart of the embodiment of the method for the rendering image that the embodiment of the present disclosure provides, wash with watercolours provided in this embodiment The method for contaminating image can render the device of image by one to execute, which can be implemented as software, can be implemented as hard Part, is also implemented as the combination of software and hardware, such as the device of the rendering image includes that computer equipment is (such as intelligent Terminal), thus the method for executing the rendering image provided in this embodiment by the computer equipment.
As shown in Figure 1, the method for the rendering image of the embodiment of the present disclosure includes the following steps:
Step S101 obtains image;
In step s101, the device for the rendering image that the embodiment of the present disclosure provides obtains image for rendering later Processing.Optionally, the device of the rendering image may include one or more filming apparatus, scheme to be obtained by filming apparatus As (those skilled in the art can define, and video is made of a series of images frame, and each picture frame is referred to as image); Optionally, the device of the rendering image can also obtain image by other means and render the image, for example, from preset or Specified storage location obtains image, and the embodiment of the present disclosure is to obtaining the mode of image without limitation.
Step S102 determines the parameter of target object according to described image;
In step s 102, the device for rendering image handles the image obtained in step S101, in the institute of acquisition State the parameter that target object is determined in image.
In an alternative embodiment, the target object includes human body, the key position of human body, object or object The key position of body.Wherein, the human body may include the profile of the human body, center, mass center or center of gravity etc.;The people The key position of body may include one or more organ, joint or the position of human body, can also include the human body One or more organ, joint or the center at position, mass center or center of gravity etc.;The object may include the object Profile, center, mass center or center of gravity etc.;The key position of the object may include one or more positions of object, It may include the center at one or more of positions, mass center or center of gravity etc..It will be appreciated by those skilled in the art that this Target object in open embodiment can be characterized by color characteristic and/or shape feature, thus step S102 according to It, can be by the color characteristic and/or shape feature to determine during described image determines the parameter of target object State the parameter of target object.
In an alternative embodiment, the parameter of the target object includes the area parameters of the target object.Example Such as, the area parameters of the target object include the pixel quantity of the target object or the pixel number of the target object The ratio of amount and the pixel quantity of described image.Optionally, the parameter of target object is determined in step S102 according to described image, It include: the key point that the target object is determined in described image;The mesh is determined according to the key point of the target object Mark the area parameters of object.As an example, the target object includes the profile of human body, then can based on existing or The key point location technology in future, it is true in described image according to the color characteristic of the profile of human body and/or shape feature first The key point of the fixed human body contour outline.Specifically, the image obtained in step s101 is made of pixel, for each pixel It will record colouring information and location information, therefore the colouring information of the pixel of described image and location information can have been inputted into base In the classifier of convolutional neural networks, the classifier can color characteristic based on the profile of human body and/or shape feature exist It scans for and identifies in described image, if there are human bodies in picture frame, people can be exported by the classifier The key point of the profile of body can also determine the target pair using other crucial independent positioning methods certainly in described image The key point of elephant, such as ASM and AAM method, statistics energy function class method, regression analysis, deep learning method, batch Extracting method etc., which kind of crucial independent positioning method is the embodiment of the present disclosure for using without limitation.Obtaining the target object Key point after, the area parameters of the target object can be determined according to the key point of the target object, it is optionally, described The area parameters of target object include the pixel quantity of the target object;Optionally, the area parameters packet of the target object Include the ratio of the pixel quantity of the target object and the pixel quantity of described image.According to aforementioned exemplary, the target object Profile including human body, then after determining the key point of profile of the human body, it can be by the key point of the human body contour outline Area parameters of the quantity of pixel within the human body contour outline of composition as the profile of the human body, can also be by the human body wheel The ratio of the pixel quantity of the quantity and described image of pixel within the human body contour outline that wide key point is constituted is as the people The area parameters of the profile of body.
In another optional embodiment, the parameter of the target object includes the location parameter of the target object. In the embodiment of the present disclosure, location parameter can be by coordinate representation, it will be understood by those skilled in the art that can pass through a variety of sides Formula characterizes the coordinate of the target object, and as an example for not limiting the embodiment of the present disclosure, the target object includes Human body, then can be by the center of the human body, the coordinate of mass center or center of gravity characterizes the coordinate of the human body, for this Coordinate system corresponding to coordinate involved in open embodiment, such as described image are shooting dresses captured by filming apparatus It sets and is corresponding with coordinate system, the image for obtaining or shooting by the filming apparatus can be based on the coordinate system in described image Each element marking pixel coordinate, so as to determine institute in the embodiment of the present disclosure based on the coordinate system corresponding to filming apparatus The coordinate being related to, it will be appreciated that the embodiment of the present disclosure to coordinate system corresponding to related coordinate without limitation, Any type of coordinate system is used equally for determining coordinate involved in the embodiment of the present disclosure.Such as the coordinate packet of the target object It includes one of following or a variety of: abscissa, ordinate, depth coordinate.Such as the coordinate of the human body described in described image can To be expressed as (x, y), x and y therein represent the abscissa and ordinate of the human body, if can obtain certainly described The depth coordinate of human body, the coordinate of the human body described in described image are also denoted as (x, y, z), described in z representative therein Human depth's coordinate.Optionally, the parameter of target object is determined in step S102 according to described image, comprising: according to the mesh The depth information of mark object determines the location parameter of the target object.As an example, part filming apparatus is in shooting figure As when will record the depth information of captured target object, such as record the target object and the bat during the focusing process The camera lens of device or the distance of imaging plane etc. are taken the photograph, then can be using the distance as the location parameter of the target object.
Step S103 determines rendering parameter according to the parameter of the target object;
Rendering parameter in the embodiment of the present disclosure includes or corresponds to one of following or a variety of: luminance parameter, color Parameter, colorimetric parameter blur parameter, sharpness parameter, filter params, light efficiency parameter, resolution parameter, material parameters etc., ability Field technique personnel can define, and be handled based on different rendering parameters image, can obtain display effect abundant and/ Or display styles, it will also be appreciated that the rendering parameter has corresponded to specific display effect or display styles, and ability Field technique personnel can define, and other existing or future rendering parameters in addition to above-mentioned cited rendering parameter It can be applied in the embodiment of the present disclosure.
In an alternative embodiment, the parameter of the rendering parameter and the target object has corresponding relationship.Example The parameter of target object and the corresponding relationship of the rendering parameter as described in can be stored by table data structure, thus After the parameter for determining the target object in step S102, according to the determining parameter pair with the target object of the corresponding relationship The rendering parameter answered.
In an alternative embodiment, in the case where the parameter of the target object belongs to first interval, institute is determined Stating rendering parameter includes the first rendering parameter;In the case where the parameter of the target object belongs to second interval, described in determination Rendering parameter includes the second rendering parameter.Wherein first rendering parameter is different from second rendering parameter, therefore basis The difference of the parameter of the target object, by the different rendering parameter of determination.Wherein first interval is, for example, to be greater than first threshold Section, second interval is, for example, to be less than or equal to the section of the first threshold, when the parameter of the target object belongs to greatly When the section of first threshold, identified rendering parameter includes the first rendering parameter, when the parameter of the target object belongs to Less than or equal to the first threshold section when, identified rendering parameter include the second rendering parameter, the first threshold It can be preset.Optionally, the first interval and the second interval are without intersection.
Optionally, the corresponding first virtualization effect of first rendering parameter, corresponding second virtualization of second rendering parameter Effect, such as virtualization of the virtualization degree than the second virtualization effect of the first virtualization effect double or more mould Paste;Optionally, first rendering parameter is corresponding first render style (e.g. animation style), second rendering parameter pair Answer the second render style (e.g. ink and wash style);Optionally, first rendering parameter corresponds to the first color mode (e.g. White-black pattern), second rendering parameter is corresponding second color mode (e.g. color mode).
Step S104 renders described image according to the rendering parameter.
In step S104, described image will be rendered according to the rendering parameter determined in step S103, to realize flexibly Ground renders the display effect of image and/or rich image.
By taking the parameter of the target object includes the area parameters of the profile of human body as an example, such as the area parameters include The pixel quantity of the profile of the human body, then being determined when the pixel quantity of the profile of the human body belongs to first interval Rendering parameter include the first rendering parameter, and then according to first rendering parameter render described image, when the human body When the pixel quantity of profile belongs to second interval, identified rendering parameter includes the second rendering parameter, and then according to described the Two rendering parameters render described image, wherein the first interval is, for example, to be less than the section of first threshold, the second interval E.g. it is greater than or equal to the section of the first threshold, and the corresponding first virtualization effect of the first rendering parameter, the second rendering are joined The virtualization degree of the corresponding second virtualization effect of number, the first virtualization effect is deeper or fuzzyyer than the second virtualization effect (as the example for not limiting the embodiment of the present disclosure, the corresponding first virtualization effect of first rendering parameter, the second rendering ginseng It includes lower resolution ratio that the corresponding second virtualization effect of number, which may include: first rendering parameter, second rendering parameter Including higher resolution ratio, so that display that is more fuzzy and/or blurring can be obtained by rendering image according to the first rendering parameter Effect can obtain according to the second rendering parameter rendering image and clearly indicate effect relatively;Or first rendering parameter Including the lower color parameter of contrast, second rendering parameter includes the higher color parameter of contrast, thus according to One rendering parameter rendering image can obtain display effect that is more fuzzy and/or blurring, rendered and schemed according to the second rendering parameter As can obtain it is opposite clearly indicates effect, the embodiment of the present disclosure is not particularly limited this), when the profile of the human body When pixel quantity belongs to the first interval less than first threshold, it might mean that the human body distance in described image shoots the figure The camera lens of picture farther out, therefore is doubled or corresponding first rendering parameter of fuzzyyer first virtualization effect is come wash with watercolours by blurring Described image is contaminated, when the pixel quantity of the profile of the human body belongs to the second interval more than or equal to the first threshold, It might mean that the camera lens of the human body distance shooting described image in described image is closer, therefore more clearly or more by virtualization degree More visible second blurs corresponding second rendering parameter of effect to render described image.
By taking the parameter of the target object includes the area parameters of the profile of human body as an example, such as the area parameters include The ratio of the pixel quantity of the pixel quantity and described image of the target object, then the pixel number of the profile when the human body When amount and the ratio of the pixel quantity of described image belong to first interval, identified rendering parameter includes the first rendering parameter, And then described image is rendered according to first rendering parameter, when the pixel quantity of the profile of the human body and the picture of described image When the ratio of prime number amount belongs to second interval, identified rendering parameter includes the second rendering parameter, and then according to described second Rendering parameter renders described image, wherein the first interval is, for example, to be less than the section of first threshold, the second interval example The section of first threshold as described in being greater than or equal to, and the first rendering parameter corresponds to white-black pattern, the second rendering parameter is corresponding Color mode, when the ratio of the pixel quantity of the pixel quantity and described image of the profile of the human body belongs to less than first threshold First interval when, might mean that in described image human body distance shooting described image camera lens farther out, therefore by with White-black pattern corresponding first rendering parameter renders described image, i.e., described image is rendered to black white image, as the people The ratio of the pixel quantity of the pixel quantity and described image of the profile of body belongs to second more than or equal to the first threshold When section, it might mean that the camera lens of the human body distance shooting described image in described image is closer, therefore pass through color mode Corresponding second rendering parameter renders described image, i.e., described image is rendered to color image.
Similarly, such as the location parameter of the target object includes the target object and the bat for shooting the target object Take the photograph the camera lens of device or the distance of imaging plane, the first interval or second interval will be also belonged to according to the location parameter and It determines different rendering parameters, and then described image is rendered according to determining rendering parameter, wherein on how to according to the mesh The parameter of mark object determines the rendering parameter and renders described image according to the rendering parameter, is referred to previous embodiment In identical or corresponding description, details are not described herein again.
It is worth noting that the embodiment of the present disclosure does not do specific limit to the form of rendering parameter and the mode of rendering image Fixed, those skilled in the art can be using existing or future any rendering parameter appropriate and rendering mode to disclosure reality The image applied in example is rendered, but the rendering parameter for rendering image is the ginseng according to the target object in described image Number determination.
In an alternative embodiment, it after step S104 renders described image according to the rendering parameter, also wraps It includes: display described image or storage described image.Such as in step S104 according to the rendering parameter rendering after Image can be stored to preset storage location, can also show the image by rendering for intuitively evaluating Its rendering effect, in addition it can send social networks etc. for the image for passing through rendering, the embodiment of the present disclosure does not limit this It is fixed.
In addition, as understood by those skilled in the art, video is made of a series of images frame, and each picture frame can also With referred to as image, therefore can be for the above-mentioned rendering image in each picture frame application embodiment of the present disclosure in the video Method.In an alternative embodiment, in the case where the parameter of the target object belongs to 3rd interval, described in determination Rendering parameter includes third rendering parameter, will render the figure according to the third rendering parameter in step S104 accordingly Picture.Optionally, the first interval, the second interval and the 3rd interval are without intersection.Wherein the first interval is for example It is less than the section of first threshold, the second interval is, for example, to be greater than or equal to the first threshold and less than the second threshold The section of value, and the 3rd interval is, for example, to be greater than or equal to the section of the second threshold, the second threshold can be It is preset.Optionally, the corresponding first virtualization effect of first rendering parameter, the corresponding second virtualization effect of the second rendering parameter, The third rendering parameter corresponds to third virtualization effect, wherein the first virtualization effect, the second virtualization effect and described The virtualization degree of third virtualization effect is successively successively decreased, i.e., the image rendered according to first rendering parameter is most fuzzy, according to institute The image for stating the rendering of third rendering parameter is clearest, therefore when the wash with watercolours to each picture frame application embodiment of the present disclosure in video When contaminating the method for image, if the target object in video is mobile from a distant place to lens direction, with the wheel of the target object Wide pixel quantity is more and more, or as the location parameter of the target object is smaller and smaller, may be successively according to institute The first rendering parameter, second rendering parameter and the third rendering parameter are stated to render the image in the video, so that When video after the method rendering for showing the rendering image by the embodiment of the present disclosure, target object in video can with away from It is closer from camera lens and display more clear, opposite, if the target object in video is apart from the remoter more mould by display of camera lens Paste, so can neatly render the display effect of image and rich image.
Fig. 2 show the structural schematic diagram of 200 embodiment of device of the rendering image of embodiment of the present disclosure offer, such as Fig. 2 Shown, described device includes image collection module 201, target object parameter determination module 202, rendering parameter determining module 203, With rendering module 204.Wherein, the image collection module 201, for obtaining image;The target object parameter determines mould Block 202, for determining the parameter of target object according to described image;The rendering parameter determining module 203, for according to The parameter of target object determines rendering parameter;The rendering module 204, for rendering described image according to the rendering parameter.
The method that Fig. 2 shown device can execute embodiment illustrated in fig. 1, the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 1.In implementation procedure and the technical effect embodiment shown in Figure 1 of the technical solution Description, details are not described herein.
Below with reference to Fig. 3, it illustrates the structural representations for the electronic equipment 300 for being suitable for being used to realize the embodiment of the present disclosure Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 3 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 3, electronic equipment 300 may include processing unit (such as central processing unit, graphics processor etc.) 301, random access can be loaded into according to the program being stored in read-only memory (ROM) 302 or from storage device 308 Program in memory (RAM) 303 and execute various movements appropriate and processing.In RAM 303, it is also stored with electronic equipment Various programs and data needed for 300 operations.Processing unit 301, ROM 302 and RAM 303 pass through bus or communication line 304 are connected with each other.Input/output (I/O) interface 305 is also connected to bus or communication line 304.
In general, following device can connect to I/O interface 305: including such as touch screen, touch tablet, keyboard, mouse, figure As the input unit 306 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking The output device 307 of device, vibrator etc.;Storage device 308 including such as tape, hard disk etc.;And communication device 309.It is logical T unit 309 can permit electronic equipment 300 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although Fig. 3 shows The electronic equipment 300 with various devices is gone out, it should be understood that being not required for implementing or having all dresses shown It sets.It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 309, or from storage device 308 It is mounted, or is mounted from ROM 302.When the computer program is executed by processing unit 301, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the method that the electronic equipment executes the rendering image in above-described embodiment.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of method for rendering image characterized by comprising
Obtain image;
The parameter of target object is determined according to described image;
Rendering parameter is determined according to the parameter of the target object;
Described image is rendered according to the rendering parameter.
2. the method for rendering image according to claim 1, which is characterized in that the target object includes human body, described The key position of human body, the key position of object or the object.
3. the method for rendering image according to claim 1 or 2, which is characterized in that according to the parameter of the target object Determine rendering parameter, comprising:
In the case where the parameter of the target object belongs to first interval, determine that the rendering parameter includes the first rendering ginseng Number;
In the case where the parameter of the target object belongs to second interval, determine that the rendering parameter includes the second rendering ginseng Number.
4. the method for rendering image according to claim 3, which is characterized in that first rendering parameter corresponding first is empty Change effect, the corresponding second virtualization effect of second rendering parameter.
5. the method for rendering image according to claim 3, which is characterized in that the parameter of the target object includes described The area parameters of target object;
The parameter of target object is determined according to described image, comprising:
The key point of the target object is determined in described image;
The area parameters of the target object are determined according to the key point of the target object.
6. the method for rendering image according to claim 5, which is characterized in that the area parameters of the target object include The ratio of the pixel quantity of the pixel quantity and described image of the pixel quantity of the target object or the target object.
7. the method for rendering image according to claim 3, which is characterized in that the parameter of the target object includes described The location parameter of target object;
The parameter of target object is determined according to described image, comprising:
The location parameter of the target object is determined according to the depth information of the target object.
8. the method for rendering image according to claim 1, which is characterized in that according to rendering parameter rendering After image, further includes:
Show described image or storage described image.
9. a kind of device for rendering image characterized by comprising
Image collection module, for obtaining image;
Target object parameter determination module, for determining the parameter of target object according to described image;
Rendering parameter determining module, for determining rendering parameter according to the parameter of the target object;
Rendering module, for rendering described image according to the rendering parameter.
10. a kind of electronic equipment, comprising:
Memory, for storing computer-readable instruction;And
Processor, for running the computer-readable instruction, so that realizing according to claim 1-8 when the processor is run Any one of described in rendering image method.
11. a kind of non-transient computer readable storage medium, for storing computer-readable instruction, when the computer-readable finger When order is executed by computer, so that the method that the computer perform claim requires rendering image described in any one of 1-8.
CN201910269947.5A 2019-04-04 2019-04-04 Method and device for rendering image, electronic equipment and computer readable storage medium Active CN110062157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910269947.5A CN110062157B (en) 2019-04-04 2019-04-04 Method and device for rendering image, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910269947.5A CN110062157B (en) 2019-04-04 2019-04-04 Method and device for rendering image, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110062157A true CN110062157A (en) 2019-07-26
CN110062157B CN110062157B (en) 2021-09-17

Family

ID=67318267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910269947.5A Active CN110062157B (en) 2019-04-04 2019-04-04 Method and device for rendering image, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110062157B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110910470A (en) * 2019-11-11 2020-03-24 广联达科技股份有限公司 Method and device for generating high-quality thumbnail
CN111598989A (en) * 2020-05-20 2020-08-28 上海联影医疗科技有限公司 Image rendering parameter setting method and device, electronic equipment and storage medium
WO2021098107A1 (en) * 2019-11-22 2021-05-27 北京市商汤科技开发有限公司 Image processing method and apparatus, electronic device, and storage medium
WO2022142388A1 (en) * 2020-12-29 2022-07-07 北京达佳互联信息技术有限公司 Special effect display method and electronic device
US11403788B2 (en) 2019-11-22 2022-08-02 Beijing Sensetime Technology Development Co., Ltd. Image processing method and apparatus, electronic device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033662A1 (en) * 2007-08-01 2009-02-05 Disney Enterprises, Incorporated Multiple artistic look rendering methods and apparatus
CN103777852A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Image obtaining method and device
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
WO2017045650A1 (en) * 2015-09-15 2017-03-23 努比亚技术有限公司 Picture processing method and terminal
CN106993091A (en) * 2017-03-29 2017-07-28 维沃移动通信有限公司 A kind of image weakening method and mobile terminal
CN107295262A (en) * 2017-07-28 2017-10-24 努比亚技术有限公司 Image processing method, mobile terminal and computer-readable storage medium
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107948514A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image virtualization processing method, device and mobile equipment
CN109360261A (en) * 2018-09-28 2019-02-19 北京达佳互联信息技术有限公司 Image processing method, device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033662A1 (en) * 2007-08-01 2009-02-05 Disney Enterprises, Incorporated Multiple artistic look rendering methods and apparatus
CN103777852A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Image obtaining method and device
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
WO2017045650A1 (en) * 2015-09-15 2017-03-23 努比亚技术有限公司 Picture processing method and terminal
CN106993091A (en) * 2017-03-29 2017-07-28 维沃移动通信有限公司 A kind of image weakening method and mobile terminal
CN107295262A (en) * 2017-07-28 2017-10-24 努比亚技术有限公司 Image processing method, mobile terminal and computer-readable storage medium
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107948514A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image virtualization processing method, device and mobile equipment
CN109360261A (en) * 2018-09-28 2019-02-19 北京达佳互联信息技术有限公司 Image processing method, device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110910470A (en) * 2019-11-11 2020-03-24 广联达科技股份有限公司 Method and device for generating high-quality thumbnail
CN110910470B (en) * 2019-11-11 2023-07-07 广联达科技股份有限公司 Method and device for generating high-quality thumbnail
WO2021098107A1 (en) * 2019-11-22 2021-05-27 北京市商汤科技开发有限公司 Image processing method and apparatus, electronic device, and storage medium
US11403788B2 (en) 2019-11-22 2022-08-02 Beijing Sensetime Technology Development Co., Ltd. Image processing method and apparatus, electronic device, and storage medium
CN111598989A (en) * 2020-05-20 2020-08-28 上海联影医疗科技有限公司 Image rendering parameter setting method and device, electronic equipment and storage medium
CN111598989B (en) * 2020-05-20 2024-04-26 上海联影医疗科技股份有限公司 Image rendering parameter setting method and device, electronic equipment and storage medium
WO2022142388A1 (en) * 2020-12-29 2022-07-07 北京达佳互联信息技术有限公司 Special effect display method and electronic device

Also Published As

Publication number Publication date
CN110062157B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN110062157A (en) Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN110047122A (en) Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN112241714B (en) Method and device for identifying designated area in image, readable medium and electronic equipment
CN109840881A (en) A kind of 3D special efficacy image generating method, device and equipment
CN110084154A (en) Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN110035236A (en) Image processing method, device and electronic equipment
CN110070551A (en) Rendering method, device and the electronic equipment of video image
CN110070499A (en) Image processing method, device and computer readable storage medium
CN110070585A (en) Image generating method, device and computer readable storage medium
CN110070495A (en) Processing method, device and the electronic equipment of image
WO2021057463A1 (en) Image stylization processing method and apparatus, and electronic device and readable medium
CN110069125A (en) The control method and device of virtual objects
CN109981989A (en) Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN112163993A (en) Image processing method, device, equipment and storage medium
CN114742856A (en) Video processing method, device, equipment and medium
CN110047126B (en) Method, apparatus, electronic device, and computer-readable storage medium for rendering image
CN110288691B (en) Method, apparatus, electronic device and computer-readable storage medium for rendering image
CN110062158A (en) Control method, apparatus, electronic equipment and the computer readable storage medium of filming apparatus
CN110070482B (en) Image processing method, apparatus and computer readable storage medium
CN110399802A (en) Handle method, apparatus, medium and the electronic equipment of the brightness of face-image eyes
CN110288552A (en) Video beautification method, device and electronic equipment
CN110264431A (en) Video beautification method, device and electronic equipment
US20240177409A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
CN110209861A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110059739A (en) Image composition method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder