CN111860342A - Image processing method, image processing device, storage medium and electronic equipment - Google Patents

Image processing method, image processing device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111860342A
CN111860342A CN202010713488.8A CN202010713488A CN111860342A CN 111860342 A CN111860342 A CN 111860342A CN 202010713488 A CN202010713488 A CN 202010713488A CN 111860342 A CN111860342 A CN 111860342A
Authority
CN
China
Prior art keywords
image
human body
determining
target
effect
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.)
Pending
Application number
CN202010713488.8A
Other languages
Chinese (zh)
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.)
Beijing ByteDance Network Technology 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 CN202010713488.8A priority Critical patent/CN111860342A/en
Publication of CN111860342A publication Critical patent/CN111860342A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure relates to an image processing method, an apparatus, a storage medium, and an electronic device, the image processing method including: identifying a human body image from the image; determining human figure parameters according to the human body image; and determining a target image effect according to the human body figure parameter, wherein the target image effect is used for being associated with the image for display. By the image processing method, when a user watches the image, the user can also watch the target image effect corresponding to the human body in the image, the content richness of the image is increased, the watching experience of the user on the image can be improved, and the requirement that the user interacts with other users through the image is better met.

Description

Image processing method, image processing device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to an image processing method and apparatus, a storage medium, and an electronic device.
Background
With the development of computer science and technology, more and more application software enters the lives of people and enriches the amateur lives of people gradually. Taking short video application software as an example, a user may upload a captured video or photo to the short video application software, interact with other users through the uploaded video or photo, and the like. However, in the related art, the content of the video or the photo shot by the image capturing device of the terminal device is single, and the requirement that the user interacts with other users through the video or the photo cannot be well met.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method of image processing, the method comprising:
identifying a human body image from the image;
determining human figure parameters according to the human body image;
and determining a target image effect according to the human body figure parameters, wherein the target image effect is used for being associated with the image for display.
In a second aspect, the present disclosure provides an image processing apparatus, the apparatus comprising:
the identification module is used for identifying the human body image from the image;
the first determining module is used for determining human body figure parameters according to the human body image;
and the second determining module is used for determining a target image effect according to the human body figure parameter, and the target image effect is used for being associated with the image for display.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method in the first aspect.
Through the technical scheme, the human body image can be identified from the image, then the human body figure parameter is determined according to the human body image, then the target image effect is determined according to the human body figure parameter, the target image effect is used for being associated with the image for displaying, therefore, when the user watches the image, the target image effect corresponding to the human body figure parameter in the image can be watched, compared with the image directly shot by the terminal equipment, the content richness of the image is increased, the watching experience of the user on the image can be improved, and the interactive requirement of the user through the image and other users is better met.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart illustrating a method of image processing according to an exemplary embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a display of a target visual effect in association with a visual in an image processing method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a method of image processing according to another exemplary embodiment of the present disclosure;
FIG. 4 is a block diagram illustrating an image processing apparatus according to an exemplary embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and examples of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units. In addition, references to "a", "an", and "the" modifications in the present disclosure are intended to be illustrative rather than limiting, and one skilled in the art will appreciate that "one or more" will be understood unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure provides an image processing method, an image processing apparatus, a storage medium, and an electronic device, so as to increase content richness of an image or a video, improve viewing experience of a user on the image, and better satisfy a demand of the user for interaction with other users through the image.
A possible implementation scenario of the present disclosure is first explained. The image processing method provided by the embodiment of the disclosure can be integrated in image processing software or video processing software, and is used for adding a target image effect to an image or a video and increasing the content richness of the image or the video. Or, the image processing method provided by the embodiment of the disclosure may be integrated in social software such as short video application software, and is used for adding a target image effect to a photo to be published or a video to be published uploaded by a user, and increasing the content richness of the photo or the video.
Fig. 1 is a flowchart illustrating an image processing method according to an exemplary embodiment of the present disclosure. Referring to fig. 1, the image processing method may include:
step 101, recognizing a human body image from the image.
The image may be a photo or a video captured by an image capturing device of the terminal device, such as a photo or a video taken by a mobile phone or a camera. In a possible mode, the images uploaded by the user can be acquired to identify the human body images in response to the image uploading operation of the user. Or after the user uploads the image, the image uploaded by the user is acquired to identify the human body image in response to an image effect adding operation triggered by the user, and the like.
It should be understood that if the image is a photograph, step 101 may be to segment the photograph by a human body segmentation algorithm of the related art to obtain a human body image. If the image is a video, step 101 may be to select a video frame from the video, for example, randomly select the video frame or select the video frame according to a predetermined selection rule, and the like, which is not limited in the embodiment of the present disclosure. And then, identifying the selected video frame, and if a human body is identified from the video frame, further carrying out human body segmentation on the video frame through a human body segmentation algorithm of the related technology to obtain a human body image.
For example, the human body segmentation algorithm may be a deep neural network used for human body segmentation in the related art, or may also be other human body segmentation algorithms in the related art, which is not limited in this disclosure. For the sake of understanding, the human body segmentation process (i.e., the process of recognizing the human body image from the image) is described below by taking a deep neural network in the related art as an example.
First, considering the connection between different network layers in the deep neural network, the label prediction of the global image, and the interaction between different superpixels, the deep neural network can utilize three kinds of context information of different scales: and the interlayer context information, the global image context information and the local superpixel context information are used for obtaining a more accurate human body image segmentation result. For example, the input image size is 150 × 100, four feature maps (e.g., 150 × 100, 75 × 50, 37 × 25, and 18 × 12) with different resolutions may be extracted step by step through a convolutional network, and then the feature maps for each resolution are up-sampled step by step to increase the resolution of the feature maps while deepening the number of network layers. The deep neural network may then combine feature maps of different resolutions to combine features between different network layers. Then, after the feature map of 18 × 12 resolution, image labels may be extracted through two full-connected layers, the extracted labels may be up-sampled to different degrees, and the up-sampled images may be combined with the feature maps of the same resolution, respectively. By this process, the context information of the global image can be sufficiently considered. Finally, the deep neural network can carry out superpixel segmentation on the input image, and process the feature map extracted in the last process based on superpixel information to obtain the feature map after smoothing superpixels and different superpixels. By this process, context information between different superpixels can be taken into account. In addition, during the training process of the deep neural network, the truth value can be used for supervision, so that the segmentation result of each pixel in the image is obtained, and the human body image can be more accurately identified from the image.
And 102, determining human figure parameters according to the human body image.
For example, the human body figure parameter can be used for characterizing the figure condition of the human body. In a possible manner, the stature parameter may include parameters of the chest circumference, waist circumference, hip circumference, height, etc. of the human body, and the body parameter may be obtained by measuring the human body contour in the human body image. Or, in other possible ways, the body figure parameter can also be determined by: the method comprises the steps of firstly determining a longitudinal height value and a transverse width value of a human body in a human body image, and then taking the ratio of the longitudinal height value to the transverse width value as a human body figure parameter.
The longitudinal height value of the human body may be a height value of the human body in the human body image, the transverse width value may be a waist circumference value of the human body in the human body image, or the transverse width value may be a value calculated according to the waist circumference value, the chest circumference value, and the hip circumference value of the human body in the human body image, and the like, which is not limited in this embodiment of the disclosure.
After the longitudinal height value and the transverse width value of the human body in the human body image are obtained, the ratio of the longitudinal height value to the transverse width value can be used as the human body stature parameter. For example, the ratio of the longitudinal height value to the upper transverse width value can be used as the body size parameter. In this case, the larger the stature parameter is, the better the stature condition is, and otherwise, the worse the stature condition is. Alternatively, the ratio of the transverse width value to the upper longitudinal width value can be used as the figure parameter of the human body. In this case, the smaller the stature parameter, the better the stature condition, otherwise, the worse the stature condition. By the method, the human body figure condition can be visually represented according to the human body figure parameter, so that the target image effect can be determined quickly according to the human body figure parameter subsequently, and the image processing efficiency is improved.
And 103, determining a target image effect according to the human body figure parameters, wherein the target image effect is used for being displayed in association with the image.
Illustratively, the target visual effect may be a special effect implemented by computer software. For example, the human body in the image is deformed, and characters and figures are added. The target image effect and the image are displayed in a related manner, namely the target image effect is superposed in the image, so that the target effect and the image are displayed simultaneously, namely, a user can watch the target image effect while watching the image. For example, a text effect may be displayed above the top of the human body in the image, or a graphic effect may be displayed around the outline of the human body in the image, and the like.
It should be understood that, if the image processing method provided by the present disclosure is integrated in social software such as short video application software, and after the target video effect is determined, that is, after the target video effect is displayed in association with the video, the video with the target video effect displayed in association with the video may be published on a network in response to a video publishing operation of a user. Compared with the image directly shot by the terminal equipment, the image released under the condition also displays the target image effect, and increases the content richness of the image, so that the requirement that the user interacts with other users through the image can be better met.
The following describes possible ways to determine the target image effect according to the body figure parameters.
In a possible mode, the target figure value can be determined according to the figure parameter and the preset corresponding relation between the figure parameter and the figure value, and then the target figure value is used as the target image effect.
For example, the preset correspondence may be obtained as follows: and collecting a plurality of sample human body images in advance, and respectively determining the figure parameters of the human body in each sample human body image according to the above mentioned mode. And then, manually calibrating the corresponding stature value according to the determined stature parameter. For example, the figure parameter may be set within a first range of values, the corresponding figure score is F1, the figure parameter may be set within a second range of values, the corresponding figure score is F2, and so on. The values of F1 and F2 are different, the first numerical range is different from the second numerical range, and the same value does not exist in the first numerical range and the second numerical range.
It should be understood that, when the ratio between the longitudinal height value and the transverse width value of the human body in the human body image is taken as the stature parameter, the first value range and the second value range in the above example are different value ranges of the ratio. When the chest circumference, waist circumference, hip circumference and height of the human body in the human body image are directly taken as the figure parameters, the first numerical value range and the second numerical value range in the above example correspond to different value ranges of the chest circumference, waist circumference, hip circumference and height. In addition, it should be understood that, since the preset corresponding relationship is obtained according to a large amount of sample data, after the stature parameter is determined, a unique stature score can be obtained according to the preset corresponding relationship.
In the embodiment of the present disclosure, after obtaining the stature parameter, the target stature score corresponding to the stature parameter may be determined by searching in a preset corresponding relationship according to the stature parameter, so that the target stature score is used as a target image effect. In this case, the target figure value may be displayed in association with the image corresponding to the human body image. For example, referring to fig. 2, a picture is taken through a mobile phone, and if the target figure score of the human body in the picture is determined to be 86, the target figure score may be displayed above the top of the head of the human body in the image. It should be understood that the display manner of the target stature value in the image is not limited in the embodiments of the present disclosure, and fig. 2 is only an exemplary illustration.
Through the mode, the figure value of the human body in the photo or the video can be determined, and the figure value and the photo or the video are displayed in a correlated mode, so that the user can watch the figure value of the human body in the photo or the video, and can visually know the figure condition of the human body in the photo or the video through the figure value.
In a possible mode, a target special effect can be determined in a plurality of preset special effects according to the human figure parameters, wherein the special effects comprise a character special effect and/or a graphic special effect for representing the human figure condition. Then, the target special effect is taken as the target image effect.
For example, the preset plurality of special effects may be determined as follows: first, a plurality of human body parameters are obtained according to a sample human body image, and then corresponding special effects are respectively set for the plurality of human body parameters, or parameter ranges may be first divided for the plurality of human body parameters, and then corresponding special effects are respectively set for each parameter range, and so on, which are not limited in the embodiments of the present disclosure. The setting of the corresponding special effect may be setting of a corresponding text special effect and/or a corresponding graphic special effect, or may also be setting of a corresponding filter special effect, and the like, which is not limited in the embodiment of the present disclosure.
After the plurality of preset special effects are determined, each special effect can respectively correspond to a unique human figure parameter or a human figure parameter range, so that after the human figure parameters are determined according to the human body images, the target special effect can be determined in the plurality of preset special effects according to the human figure parameters. Then, the target special effect can be used as a target image effect, the associated display of the target image effect and the image is realized, so that a user can view the special effect for representing the body condition of the human body in the image, compared with the image directly shot through terminal equipment, the content richness of the image is increased, the viewing experience of the user on the image is improved, and the requirement that the user interacts with other users through the image can be better met.
It should be understood that, in the process of setting the special effects, one human figure parameter or a range of the human figure parameter may be set to correspond to one special effect or a plurality of special effects, so that the determined target special effect may also be one special effect or a plurality of special effects. If the target special effect is a plurality of special effects, when the target special effect is displayed in a manner of being associated with the image as the target image effect, the plurality of special effects can be circularly and automatically switched and displayed, so that the content richness of the image is further increased.
Alternatively, one special effect may be selected as the target special effect among the plurality of special effects according to a selection operation by the user. That is, in a possible manner, a plurality of candidate special effects corresponding to the human figure parameter may be determined in a plurality of preset special effects, and the plurality of candidate special effects are displayed, and then the target special effect corresponding to the human figure parameter is determined according to a selection operation of a user for the plurality of candidate special effects, where the selection operation is used to select one special effect among the plurality of candidate special effects.
For example, the selection operation may be a click operation, a long-press operation, and the like of the user for a certain candidate special effect of the plurality of candidate special effects, which is not limited in this disclosure.
For example, when the human figure parameter is within a first numerical range, the corresponding special effects are respectively a character special effect 1, a character special effect 2 and a figure special effect 1, and when the human figure parameter is within a second numerical range, the corresponding special effects are respectively a character special effect 3, a character special effect 4 and a figure special effect 2. If the human figure parameter determined according to the human body image is within the first numerical range, the plurality of candidate special effects can be determined to be a character special effect 1, a character special effect 2 and a graph special effect 1 respectively, and the plurality of candidate special effects can be displayed to a user simultaneously or sequentially. Then, according to a selection operation of the user for a certain candidate special effect of the plurality of candidate special effects, for example, a click operation of the user for a character special effect 2, or a long press operation of the user for an image special effect 1, and the like, the candidate special effect corresponding to the selection operation of the user is determined as the target special effect.
By the mode, a human body parameter or a human body parameter range can be set to correspond to a plurality of special effects, a target special effect can be determined according to selection operation of a user, image content richness is increased, interactivity with the user in the image processing process is increased, the image processing result can better meet actual expectation of the user, and user experience is improved. In addition, when the images include a plurality of human body images with the same stature parameter, different target image effects can be determined for the plurality of human body images according to the selection operation of the user through the method, so that the content richness of the images is further increased.
In a possible mode, the target stature value can be determined according to the stature parameter and a preset corresponding relation between the stature parameter and the stature value, and then the target special effect is determined in a plurality of preset special effects according to the stature parameter of the human body. Or determining a target special effect in a plurality of preset special effects according to the body parameters of the human body, and then determining the body score of the target according to the body parameters and the preset corresponding relation between the body parameters and the body score. Or, determining the figure value and the target special effect corresponding to the human body according to the figure parameters, and finally taking the figure value and the target special effect as the target image effect.
That is to say, the figure value and the target special effect corresponding to the human body in the human body image can be displayed at the same time in the image, the content richness of the image is further increased, the watching experience of the user on the image is improved, and the requirement that the user interacts with other users through the image is better met.
In a possible mode, in order to obtain a target image effect which is more in line with the actual stature condition of the human body, the stature parameter of the human body can be corrected, and then the target image effect is determined according to the corrected stature parameter of the human body.
For example, after the human body image is recognized from the image, the human body image may be input into a parameter determination model, which is used for determining the figure parameter of the human body in the human body image, and may be a model in the related art, so that the direct measurement of the human body image by the parameter determination model obtains the figure parameters including, for example, the chest circumference, the waist circumference, the hip circumference and the height, or the direct measurement by the model in the related art obtains the longitudinal height value or the transverse width value of the human body in the human body image, and then the ratio between the longitudinal height value and the transverse width value is taken as the figure parameter.
Based on the two mentioned ways of determining the body figure parameters of the human body, the body figure parameters of the human body can be corrected by acquiring a large number of sample body figure parameters in advance, then comparing the body figure parameters including the chest circumference, the waist circumference, the hip circumference and the height obtained by directly measuring through the model with the sample body figure parameters, and correcting the measured body figure parameters according to the comparison result and the sample body figure parameters. Or, the longitudinal height value and the transverse width value of the human body in the human body image can be measured for multiple times, the average value of the multiple measurement results is calculated to obtain the average longitudinal height value and the average transverse width value, and then the ratio of the average longitudinal height value to the average transverse width value is used as the stature parameter. Of course, the correction of the human body figure parameter may also be performed in other ways, which is not limited in the embodiment of the disclosure.
By the mode, the human body parameters can be corrected, the body parameters more conforming to the actual body conditions of the human body in the human body image are obtained, the target image effect more conforming to the actual conditions of the human body is obtained, and the user experience is improved.
The image processing method provided by the present disclosure is explained below by another exemplary embodiment. Referring to fig. 3, the image processing method includes:
step 301, recognizing the human body image from the image.
Step 302, determining a longitudinal height value and a transverse width value of a human body in the human body image.
Step 303, taking the ratio of the longitudinal height value to the transverse width value as a human body figure parameter.
Step 304, determining the target figure value according to the figure parameter and the preset corresponding relation between the figure parameter and the figure value.
Step 305, determining a plurality of candidate special effects corresponding to the human body figure parameters in a plurality of preset special effects, and displaying the plurality of candidate special effects. The special effects comprise character special effects and/or graphic special effects used for representing the stature of a human body.
And step 306, determining a target special effect corresponding to the figure parameters of the human body according to the selection operation of the user for the plurality of candidate special effects. Wherein the selecting operation is for selecting one of the plurality of candidate effects.
And 307, taking the target stature value and the target special effect as target image effects.
In step 308, the target image effect is displayed in association with the image.
The detailed description of the above steps is given above for illustrative purposes, and will not be repeated here. It will be further appreciated that for simplicity of explanation, the above-described method embodiments are all presented as a series of acts or combination of acts, but those skilled in the art will recognize that the present disclosure is not limited by the order of acts or combination of acts described above. Further, those skilled in the art will also appreciate that the embodiments described above are preferred embodiments and that the steps involved are not necessarily required for the present disclosure.
Through the mode, the figure value and the target special effect corresponding to the human body in the human body image can be displayed in the image at the same time, and compared with the image directly shot through the terminal equipment, the content richness of the image is increased, the watching experience of the user on the image is promoted, and the requirement that the user interacts with other users through the image is better met.
Based on the same inventive concept, the embodiment of the present disclosure further provides an image processing apparatus, which may be a part or all of an electronic device through software, hardware, or a combination of both. Referring to fig. 4, the image processing apparatus 400 may include:
an identification module 401, configured to identify a human body image from the image;
a first determining module 402, configured to determine a body figure parameter according to the body image;
a second determining module 403, configured to determine a target image effect according to the human body stature parameter, where the target image effect is used for being displayed in association with the image.
Optionally, the first determining module 402 is configured to:
determining a longitudinal height value and a transverse width value of a human body in the human body image;
and taking the ratio of the longitudinal height value to the transverse width value as the human body figure parameter.
Optionally, the second determining module 403 is configured to:
determining a target figure score according to the figure parameters and a preset corresponding relation between the figure parameters and the figure scores;
and taking the target stature value as the target image effect.
Optionally, the second determining module 403 is configured to:
determining a target special effect in a plurality of preset special effects according to the human figure parameters, wherein the special effects comprise a character special effect and/or a graphic special effect for representing the human figure condition;
and taking the target special effect as the target image effect.
Optionally, the second determining module 403 is configured to:
determining a plurality of candidate special effects corresponding to the human figure parameters in a plurality of preset special effects, and displaying the plurality of candidate special effects;
and determining a target special effect corresponding to the human body figure parameter according to the selection operation of the user for the plurality of candidate special effects, wherein the selection operation is used for selecting one special effect from the plurality of candidate special effects.
Optionally, the second determining module 403 is configured to:
correcting the human body figure parameters;
and determining the target image effect according to the corrected human body figure parameters.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Through any one of the image processing devices, the target influence effect corresponding to the human body in the human body image can be displayed in the image, the content richness of the image is increased compared with the image directly shot through the terminal equipment, the watching experience of the user on the image is improved, and the requirement that the user interacts with other users through the image is better met.
Based on the same inventive concept, the disclosed embodiments also provide a computer readable medium, on which a computer program is stored, which when executed by a processing device, implements the steps of any of the image processing methods described above.
Based on the same inventive concept, an embodiment of the present disclosure further provides an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of any of the image processing methods described above.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium mentioned in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the communication may be via any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: identifying a human body image from the image; determining human figure parameters according to the human body images; and determining a target image effect according to the human body figure parameter, wherein the target image effect is used for being associated with the image for display.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation of the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides an image processing method according to one or more embodiments of the present disclosure, including:
identifying a human body image from the image;
determining human figure parameters according to the human body image;
and determining a target image effect according to the human body figure parameters, wherein the target image effect is used for being associated with the image for display.
Example 2 provides the method of example 2, wherein the determining of the human body figure parameter from the human body image includes:
determining a longitudinal height value and a transverse width value of a human body in the human body image;
and taking the ratio of the longitudinal height value to the transverse width value as the human body figure parameter.
Example 3 provides the method of example 1, wherein the determining the target image effect according to the human body stature parameter includes:
determining a target figure score according to the figure parameters and a preset corresponding relation between the figure parameters and the figure scores;
and taking the target stature value as the target image effect.
Example 4 provides the method of any one of examples 1 to 3, wherein the determining the target image effect according to the human body stature parameter includes:
determining a target special effect in a plurality of preset special effects according to the human figure parameters, wherein the special effects comprise a character special effect and/or a graphic special effect for representing the human figure condition;
and taking the target special effect as the target image effect.
Example 5 provides the method of example 4, wherein the determining a target special effect among a plurality of preset special effects according to the human stature parameter includes:
determining a plurality of candidate special effects corresponding to the human figure parameters in a plurality of preset special effects, and displaying the plurality of candidate special effects;
and determining a target special effect corresponding to the human body figure parameter according to the selection operation of the user for the plurality of candidate special effects, wherein the selection operation is used for selecting one special effect from the plurality of candidate special effects.
Example 6 provides the method of any one of examples 1-3, wherein the determining a target image effect according to the human body stature parameter includes:
correcting the human body figure parameters;
and determining the target image effect according to the corrected human body figure parameters.
Example 7 provides an image processing apparatus according to one or more embodiments of the present disclosure, the apparatus including:
the identification module is used for identifying the human body image from the image;
the first determining module is used for determining human body figure parameters according to the human body image;
and the second determining module is used for determining a target image effect according to the human body figure parameter, and the target image effect is used for being associated with the image for display.
Example 8 provides the apparatus of example 7, wherein the first determination module is to:
determining a longitudinal height value and a transverse width value of a human body in the human body image;
and taking the ratio of the longitudinal height value to the transverse width value as the human body figure parameter.
Example 9 provides the apparatus of example 7, wherein the second determination module 403 is to:
determining a target figure score according to the figure parameters and a preset corresponding relation between the figure parameters and the figure scores;
and taking the target stature value as the target image effect.
Example 10 provides the apparatus of any one of examples 7-9, wherein the target effect is determined among a plurality of preset effects according to the human stature parameter, the effect including a text effect and/or a graphic effect for representing a human stature;
and taking the target special effect as the target image effect.
Example 11 provides the apparatus of example 10, wherein the second determination module 403 is to:
determining a plurality of candidate special effects corresponding to the human figure parameters in a plurality of preset special effects, and displaying the plurality of candidate special effects;
and determining a target special effect corresponding to the human body figure parameter according to the selection operation of the user for the plurality of candidate special effects, wherein the selection operation is used for selecting one special effect from the plurality of candidate special effects.
Example 12 provides the apparatus of any of examples 7-9, wherein the second determination module 403 is to:
correcting the human body figure parameters;
and determining the target image effect according to the corrected human body figure parameters.
Example 13 provides a computer readable medium having stored thereon a computer program that, when executed by a processing apparatus, performs the steps of the method of any of examples 1-6, in accordance with one or more embodiments of the present disclosure.
Example 14 provides, in accordance with one or more embodiments of the present disclosure, an electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of any of examples 1-6.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present disclosure.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

Claims (10)

1. An image processing method, characterized in that the method comprises:
identifying a human body image from the image;
determining human figure parameters according to the human body image;
and determining a target image effect according to the human body figure parameter, wherein the target image effect is used for being associated with the image for display.
2. The method of claim 1, wherein determining the human figure parameter from the human image comprises:
determining a longitudinal height value and a transverse width value of a human body in the human body image;
and taking the ratio of the longitudinal height value to the transverse width value as the human body stature parameter.
3. The method of claim 1, wherein determining the target image effect according to the body size parameter comprises:
determining a target figure value according to the figure parameters and a preset corresponding relation between the figure parameters and the figure values;
and taking the target stature value as the target image effect.
4. The method according to any one of claims 1-3, wherein said determining a target image effect based on said body size parameters comprises:
determining a target special effect in a plurality of preset special effects according to the human figure parameters, wherein the special effects comprise a character special effect and/or a graphic special effect for representing the human figure condition;
and taking the target special effect as the target image effect.
5. The method according to claim 4, wherein the determining a target special effect among a plurality of preset special effects according to the human figure parameter comprises:
determining a plurality of candidate special effects corresponding to the human figure parameters in a plurality of preset special effects, and displaying the plurality of candidate special effects;
and determining a target special effect corresponding to the human body figure parameter according to the selection operation of the user for the plurality of candidate special effects, wherein the selection operation is used for selecting one special effect from the plurality of candidate special effects.
6. The method according to any one of claims 1-3, wherein said determining a target image effect based on said body size parameters comprises:
correcting the human body figure parameters;
and determining the target image effect according to the corrected human body figure parameters.
7. An image processing apparatus, characterized in that the apparatus comprises:
the identification module is used for identifying the human body image from the image;
the first determining module is used for determining human body figure parameters according to the human body image;
and the second determining module is used for determining a target image effect according to the human body figure parameter, and the target image effect is used for being associated with the image for display.
8. The apparatus of claim 7, wherein the first determining module is configured to:
determining a longitudinal height value and a transverse width value of a human body in the human body image;
and taking the ratio of the longitudinal height value to the transverse width value as the human body stature parameter.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 6.
CN202010713488.8A 2020-07-22 2020-07-22 Image processing method, image processing device, storage medium and electronic equipment Pending CN111860342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010713488.8A CN111860342A (en) 2020-07-22 2020-07-22 Image processing method, image processing device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010713488.8A CN111860342A (en) 2020-07-22 2020-07-22 Image processing method, image processing device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111860342A true CN111860342A (en) 2020-10-30

Family

ID=72950989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010713488.8A Pending CN111860342A (en) 2020-07-22 2020-07-22 Image processing method, image processing device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111860342A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140270395A1 (en) * 2013-03-15 2014-09-18 Propel lP Methods and apparatus for determining information about objects from object images
CN107948506A (en) * 2017-11-22 2018-04-20 珠海格力电器股份有限公司 A kind of image processing method, device and electronic equipment
CN110197165A (en) * 2019-06-04 2019-09-03 南京信息工程大学 A method of identification customer's figure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140270395A1 (en) * 2013-03-15 2014-09-18 Propel lP Methods and apparatus for determining information about objects from object images
CN107948506A (en) * 2017-11-22 2018-04-20 珠海格力电器股份有限公司 A kind of image processing method, device and electronic equipment
CN110197165A (en) * 2019-06-04 2019-09-03 南京信息工程大学 A method of identification customer's figure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
年少轻帅传奇: "快手颜值测试在哪?快手怎么拍颜值测试视频?", pages 1 - 5, Retrieved from the Internet <URL:https://jingyan.baidu.com/article/b907e6276eab6e46e7891c02.html> *
炎林数码分享: "抖音测年龄和颜值特效怎么拍", pages 1 - 5, Retrieved from the Internet <URL:https://jingyan.baidu.com/article/6d704a136ce1ad28db51cab8.html> *

Similar Documents

Publication Publication Date Title
CN112184738B (en) Image segmentation method, device, equipment and storage medium
CN111242881A (en) Method, device, storage medium and electronic equipment for displaying special effects
CN110070551B (en) Video image rendering method and device and electronic equipment
CN110070063B (en) Target object motion recognition method and device and electronic equipment
CN112905839A (en) Model training method, model using device, storage medium and equipment
CN110062157B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN110084154B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN112381717A (en) Image processing method, model training method, device, medium, and apparatus
CN110796664A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN115311178A (en) Image splicing method, device, equipment and medium
US20240112299A1 (en) Video cropping method and apparatus, storage medium and electronic device
CN109816023B (en) Method and device for generating picture label model
CN114445269A (en) Image special effect processing method, device, equipment and medium
CN112800276A (en) Video cover determination method, device, medium and equipment
CN110399802B (en) Method, apparatus, medium, and electronic device for processing eye brightness of face image
CN112287790A (en) Image processing method, image processing device, storage medium and electronic equipment
CN112380929A (en) Highlight segment obtaining method and device, electronic equipment and storage medium
CN109816670B (en) Method and apparatus for generating image segmentation model
CN110765304A (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN110457106B (en) Information display method, device, equipment and storage medium
CN111353536B (en) Image labeling method and device, readable medium and electronic equipment
CN114612909A (en) Character recognition method and device, readable medium and electronic equipment
CN111586295B (en) Image generation method and device and electronic equipment
CN111860342A (en) Image processing method, image processing device, storage medium and electronic equipment
CN114495080A (en) Font identification method and device, readable medium and electronic equipment

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