CN111226431B - Photographing method and photographing system based on intelligent terminal - Google Patents

Photographing method and photographing system based on intelligent terminal Download PDF

Info

Publication number
CN111226431B
CN111226431B CN201780095902.XA CN201780095902A CN111226431B CN 111226431 B CN111226431 B CN 111226431B CN 201780095902 A CN201780095902 A CN 201780095902A CN 111226431 B CN111226431 B CN 111226431B
Authority
CN
China
Prior art keywords
skin tone
module
value
tone value
skin
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.)
Active
Application number
CN201780095902.XA
Other languages
Chinese (zh)
Other versions
CN111226431A (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.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication 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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111226431A publication Critical patent/CN111226431A/en
Application granted granted Critical
Publication of CN111226431B publication Critical patent/CN111226431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a photographing method and a photographing system based on an intelligent terminal, wherein the photographing method comprises the following steps: acquiring a preview image containing at least two target characters; respectively extracting a first skin tone value of a first target character and a second skin tone value of a second target character; calculating a first difference value between the first skin tone value and the second skin tone value; comparing the first difference value with a preset threshold value; receiving a photographing instruction; and when the first difference value is larger than the preset threshold value, exchanging a first skin tone value of the first target person and a second skin tone value of the second target person according to the photographing instruction so as to generate an updated image. The photographing system includes: the device comprises an acquisition module, an extraction module, a calculation module, a comparison module, a receiving module and an exchange module. By adopting the configuration, the skin color exchange among a plurality of target characters can be realized, and the interest of photographing is further increased.

Description

Photographing method and photographing system based on intelligent terminal
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a photographing method and a photographing system based on an intelligent terminal.
Background
Intelligent terminals are becoming an increasingly indispensable part of today's life. With the rapid development of the intelligent terminal, the built-in functions of the intelligent terminal are more and more diversified. Listening to music, business, games and photographing are becoming the necessary mature functions of intelligent terminals. At present, in order to further improve the functions and user experience of the intelligent terminal, technicians make continuous innovation and optimization aiming at the existing functions.
For example, for the photographing function of the intelligent terminal, a lot of contributions are made from the aspects of pixels, color tone, beauty and the like through the continuous efforts of technicians. Today users even take beauty shots as an interesting entertainment activity. However, the existing beauty techniques are limited to skin polishing, whitening, acne removing, slimming, makeup or pattern adding, and the like, and are of limited interest, and are often suitable for only one person or two persons, but not for the case of photographing for many persons.
Therefore, a new photographing method and a new photographing system based on an intelligent terminal are needed to be provided, so that the skin color exchange among a plurality of target characters can be realized, the diversification of the photographing function is further enriched, the interestingness of the photographing function is increased, and a more interesting photographing experience is provided for a user.
Disclosure of Invention
According to the intelligent terminal-based photographing method and the intelligent terminal-based photographing system, the skin color values of the target figures in the preview image can be extracted, and when the difference of the skin color values among the target figures is larger than a preset threshold value, the skin color values of the target figures are automatically exchanged, so that the skin color exchange among a plurality of target figures is realized, and the interestingness of photographing is further increased.
The invention provides a photographing method based on an intelligent terminal, which comprises the following steps:
acquiring a preview image containing at least two target characters;
respectively extracting a first skin tone value of a first target character and a second skin tone value of a second target character;
calculating a first difference value between the first skin tone value and the second skin tone value;
comparing the first difference value with a preset threshold value;
receiving a photographing instruction;
and when the first difference value is larger than the preset threshold value, exchanging a first skin tone value of the first target person and a second skin tone value of the second target person according to the photographing instruction so as to generate an updated image.
Preferably, the photographing method further comprises:
acquiring the preview image containing three target characters;
respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target character;
calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively;
comparing the first difference value and the second difference value with the preset threshold value;
receiving the photographing instruction;
and when the first difference value and the second difference value are both larger than the preset threshold value, randomly exchanging a first skin tone value of the first target person, a second skin tone value of the second target person and a third skin tone value of the third target person according to the photographing instruction to generate the updated image.
Preferably, the photographing method further comprises:
and when the difference value is smaller than or equal to the preset threshold value, saving the preview image according to the photographing instruction.
Preferably, the photographing method further comprises:
extracting the skin color saturation of the target person;
then exchanging the skin tone value of the target person further comprises exchanging the skin tone saturation of the target person.
Preferably, the photographing method further comprises:
and respectively identifying the exposed skin parts of the target person including the face, the neck, the hands and the legs.
The invention further provides a photographing system based on the intelligent terminal, which comprises: the device comprises an acquisition module, an extraction module, a calculation module, a comparison module, a receiving module and an exchange module;
the acquisition module acquires a preview image containing at least two target characters;
the extraction module is in communication connection with the acquisition module and the calculation module and respectively extracts a first skin tone value of a first target character and a second skin tone value of a second target character;
the calculation module is in communication connection with the extraction module and the comparison module and calculates a first difference value between the first skin tone value and the second skin tone value;
the comparison module is in communication connection with the calculation module and compares the first difference value with a preset threshold value;
the receiving module is in communication connection with the switching module and receives a photographing instruction;
the exchange module is in communication connection with the comparison module and the receiving module, and when the first difference value is larger than the preset threshold value, the exchange module exchanges the first skin tone value of the first target character and the second skin tone value of the second target character according to the photographing instruction so as to generate an updated image.
Preferably, the obtaining module obtains the preview image containing three target characters;
the extraction module is used for respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target figure;
the calculation module is used for calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively;
the comparison module compares the first difference value and the second difference value with the preset threshold value;
the receiving module is used for receiving the photographing instruction;
when the first difference value and the second difference value are both greater than the preset threshold value, the exchanging module randomly exchanges the first skin tone value of the first target character, the second skin tone value of the second target character and the third skin tone value of the third target character according to the photographing instruction to generate the updated image.
Preferably, the photographing system further comprises a storage module;
the storage module is in communication connection with the comparison module and the receiving module;
and when the difference value is smaller than or equal to the preset threshold value, the storage module stores the preview image according to the photographing instruction.
Preferably, the extraction module further comprises:
extracting the skin color saturation of the target person;
then, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin color saturation of the target person while exchanging the skin color tone value of the target person.
Preferably, the photographing system further comprises an identification module; the identification module is in communication connection with the acquisition module and the extraction module;
the identification module is used for identifying the skin exposed parts of the target person, including the face, the neck, the hands and the legs.
Compared with the prior art, the invention has the technical advantages that:
1) automatically extracting skin color degree value of target person in preview image
2) Calculating skin color values among different target figures, and automatically exchanging the skin color values among the different target figures when the difference between the skin color values is larger than a preset threshold value;
3) further extracting the skin color saturation among different figures, and further exchanging the skin color saturation while automatically exchanging the skin color values among different target figures;
4) the system is suitable for multi-person interaction;
5) the user is provided with a more interesting photographing experience.
Drawings
Fig. 1 is a schematic flowchart of a photographing method based on an intelligent terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a photographing method based on an intelligent terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a photographing system based on an intelligent terminal according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are described in detail below with reference to the accompanying drawings and specific embodiments.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the term "connected" is to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, or a communication between two elements, or may be a direct connection or an indirect connection through an intermediate medium, and a specific meaning of the term may be understood by those skilled in the art according to specific situations.
The smart terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a smart terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
In the following description, suffixes such as "module" used to represent elements are used only for facilitating the explanation of the present invention and have no specific meaning in itself.
Fig. 1 is a schematic flow chart of a photographing method based on an intelligent terminal according to an embodiment of the present invention. In this embodiment, a photographing method based on an intelligent terminal specifically includes the following steps:
acquiring a preview image containing at least two target characters;
when a user needs to take a picture, a shooting button can be selected from a shortcut icon or a shortcut pull-down menu of the desktop of the intelligent terminal, and a shooting program is started. Preferably, the photographing program can be a photographing program carried by the intelligent terminal itself, or can also be an application program developed based on an operating system of the intelligent terminal. After the photographing program is started, a camera of the intelligent terminal is started, and a photographing area is selected. The camera of the intelligent terminal can be a front camera, a rear camera, an external camera and the like. The selected photographing region is a region including at least two target persons. And after selection, displaying a preview image in a screen of the intelligent terminal.
Preferably, the target person is identified by the exposed skin portions including the face, neck, hands and legs, respectively.
After the preview image including the target person is acquired, further, the intelligent terminal identifies the exposed part of the skin of the target person in the preview image, including: face, neck, hands, legs, etc. Firstly, the intelligent terminal can accurately calibrate the position and the size of a human face in a preview image through a human face recognition technology. And further identifying other skin exposed parts of the target person in the preview image according to the color information of the human face skin.
Respectively extracting a first skin tone value of a first target character and a second skin tone value of a second target character;
when the intelligent terminal identifies the exposed skin part (including the face, the neck, the hands and the legs) of the target person, the skin tone value of the target person is further extracted from the color information of the exposed skin part. Defining a skin tone value of a first target character in the preview image as a first skin tone value; and setting the skin tone value of the second target character in the preview image as a second skin tone value.
Preferably, extracting the skin color saturation of the target person;
preferably, the intelligent terminal further extracts the skin color saturation of the target person, and the skin color saturation is recorded as the first skin color saturation and the second skin color saturation. And through the hue value and the skin color saturation, the skin color parameter of the target character is more comprehensively extracted.
Calculating a first difference value between the first skin tone value and the second skin tone value;
and after the skin tone value of the target character is obtained, calling a function, substituting data corresponding to the first skin tone value and the second skin tone value into a calculation formula, further calculating the first skin tone value and the second skin tone value, and calculating the difference value of the first skin tone value and the second skin tone value. Namely, the difference in skin color between the first target person and the second target person is determined.
Comparing the first difference value with a preset threshold value;
and after the calculation is finished, the calculated first difference value is further compared with a preset threshold value arranged in the intelligent terminal. Wherein, the first difference value is an absolute value; the preset threshold is a standard for measuring the difference between the first skin tone value and the second skin tone value.
Receiving a photographing instruction;
when a user needs to shoot a current preview image, a shooting instruction is sent to the intelligent terminal, and the shooting instruction comprises: single, double click, long press, swipe, etc. And after receiving a photographing instruction sent by a user, the intelligent terminal executes photographing and captures a preview image displayed in the current interface.
And when the first difference value is larger than the preset threshold value, exchanging a first skin tone value of the first target person and a second skin tone value of the second target person according to the photographing instruction so as to generate an updated image.
In the process that the intelligent terminal executes the photographing instruction, the intelligent terminal further obtains a comparison result of the first difference value calculated in the previous step and a preset threshold value. When the first difference value is larger than the preset threshold value, namely, the intelligent terminal judges that the skin colors of the first target character and the second target character are different to a certain extent, the intelligent terminal executes a photographing instruction and further exchanges the skin colors of the first target character and the second target character by exchanging numerical value codes corresponding to the first color tone value and the second color tone value so as to generate an updated image. In the updated image, the first skin tone value is applied to the second target person and the second skin tone value is applied to the first target person.
Preferably, when the difference value is less than or equal to the preset threshold value, the preview image is saved according to the photographing instruction.
Preferably, exchanging the skin tone value of the target person further comprises exchanging the skin tone saturation of the target person.
In order to ensure that the skin color after the swapping is completely consistent with the skin color in the preview image and more truly restore the skin color between the swapping target objects, the swapped numerical code in this embodiment further includes a numerical code representing the saturation of the skin color of the target person.
Fig. 2 is a schematic flow chart of a photographing method based on an intelligent terminal according to an embodiment of the present invention. In this embodiment, a photographing method based on an intelligent terminal specifically includes the following steps:
acquiring the preview image containing three target characters;
when a user needs to take a picture, a shooting button can be selected from a shortcut icon or a shortcut pull-down menu of the desktop of the intelligent terminal, and a shooting program is started. Preferably, the photographing program can be a photographing program carried by the intelligent terminal itself, or can also be an application program developed based on an operating system of the intelligent terminal. After the photographing program is started, a camera of the intelligent terminal is started, and a photographing area is selected. The camera of the intelligent terminal can be a front camera, a rear camera, an external camera and the like. The selected photographing region is a region including three target persons. And after selection, displaying a preview image in a screen of the intelligent terminal.
Preferably, the target person is identified by the exposed skin portions including the face, neck, hands and legs, respectively.
After the preview image including the target person is acquired, further, the intelligent terminal identifies the exposed part of the skin of the target person in the preview image, including: face, neck, hands, legs, etc. Firstly, the intelligent terminal can accurately calibrate the position and the size of a human face in a preview image through a human face recognition technology. And further identifying other skin exposed parts of the target person in the preview image according to the color information of the human face skin.
Respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target character; when the intelligent terminal identifies the exposed skin part (including the face, the neck, the hands and the legs) of the target person, the skin tone value of the target person is further extracted from the color information of the exposed skin part. Defining a skin tone value of a first target character in the preview image as a first skin tone value; setting the skin tone value of the second target figure in the preview image as a second skin tone value; and setting the skin tone value of the third target character in the preview image as a third skin tone value.
Preferably, extracting the skin color saturation of the target person;
preferably, the intelligent terminal further extracts the skin color saturation of the target person, and the skin color saturation is recorded as a first skin color saturation, a second skin color saturation and a third skin color saturation. And through the hue value and the skin color saturation, the skin color parameter of the target character is more comprehensively extracted.
Calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively; and after obtaining the skin tone value of the target character, calling a function, substituting corresponding data between the first skin tone value, the second skin tone value and the third skin tone value into a calculation formula, further calculating the first skin tone value, the second skin tone value and the third skin tone value, and calculating a difference value between the first skin tone value, the second skin tone value and the third skin tone value so as to obtain a first difference value and a second difference value. Namely, the skin color difference between the first target person, the second target person and the third target person is judged.
Comparing the first difference value and the second difference value with the preset threshold value; and after the calculation is finished, the calculated first difference value and the second difference value are further compared with a preset threshold value arranged in the intelligent terminal. Wherein, the first difference value and the second difference value are absolute values; the predetermined threshold is a measure of the magnitude of the difference between the first skin tone value, the second skin tone value, and the third skin tone value.
Receiving the photographing instruction; when a user needs to shoot a current preview image, a shooting instruction is sent to the intelligent terminal, and the shooting instruction comprises: single, double click, long press, swipe, etc. And after receiving a photographing instruction sent by a user, the intelligent terminal executes photographing and captures a preview image displayed in the current interface.
And when the first difference value and the second difference value are both larger than the preset threshold value, randomly exchanging a first skin tone value of the first target person, a second skin tone value of the second target person and a third skin tone value of the third target person according to the photographing instruction to generate the updated image. In the process that the intelligent terminal executes the photographing instruction, the intelligent terminal further obtains a comparison result of the first difference value and the second difference value which are calculated in the prior art and a preset threshold value. When the first difference value and the second difference value are both larger than the preset threshold value, namely, the intelligent terminal judges that the skin colors of the first target character, the second target character and the third target character are different to a certain extent, the intelligent terminal executes the photographing instruction and further randomly exchanges the skin colors of the first target character, the second target character and the third target character by randomly exchanging numerical codes corresponding to the first color value, the second color value and the third color value so as to generate an updated image. In the updated image, the first skin tone value may be randomly applied to the second target person or the third target person, the second skin tone value is applied to the first target person or the third target person, and the third skin tone value is applied to the first target person or the second target person.
Preferably, when the difference value is less than or equal to the preset threshold value, the preview image is saved according to the photographing instruction.
Preferably, exchanging the skin tone value of the target person further comprises exchanging the skin tone saturation of the target person.
In order to ensure that the skin color after the swapping is completely consistent with the skin color in the preview image and more truly restore the skin color between the swapping target objects, the swapped numerical code in this embodiment further includes a numerical code representing the saturation of the skin color of the target person.
Fig. 3 is a schematic structural diagram of a photographing system based on an intelligent terminal according to an embodiment of the present invention. In this embodiment, a photographing system based on intelligent terminal includes: the device comprises an acquisition module, an extraction module, a calculation module, a comparison module, a receiving module and an exchange module;
the acquisition module acquires a preview image containing at least two target characters;
when a user needs to take a picture, a shooting button can be selected from a shortcut icon or a shortcut pull-down menu of the desktop of the intelligent terminal, and a shooting program is started. Preferably, the photographing program can be a photographing program carried by the intelligent terminal itself, or can also be an application program developed based on an operating system of the intelligent terminal. After the photographing program is started, the camera of the intelligent terminal is started, and the acquisition module selects a photographing area through the camera. The camera of the intelligent terminal can be a front camera, a rear camera, an external camera and the like. The selected photographing region is a region including at least two target persons. And after selection, displaying a preview image in a screen of the intelligent terminal.
Preferably, the photographing system further comprises an identification module; the identification module is in communication connection with the acquisition module and the extraction module;
the identification module is used for identifying the skin exposed parts of the target person, including the face, the neck, the hands and the legs.
After the obtaining module obtains the preview image including the target person, further, the identifying module identifies the exposed part of the skin of the target person in the preview image, including: face, neck, hands, legs, etc. Firstly, the recognition module can accurately calibrate the position and the size of the face in the preview image through a face recognition technology. And further identifying other skin exposed parts of the target person in the preview image according to the color information of the human face skin.
The extraction module is in communication connection with the acquisition module and the calculation module and respectively extracts a first skin tone value of a first target character and a second skin tone value of a second target character;
after the identification module identifies the exposed skin part (including face, neck, hands and legs) of the target person, the extraction module further extracts the skin tone value of the target person from the color information of the exposed skin part. Defining a skin tone value of a first target character in the preview image as a first skin tone value; and setting the skin tone value of the second target character in the preview image as a second skin tone value.
Preferably, the extraction module further comprises:
extracting the skin color saturation of the target person;
then, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin color saturation of the target person while exchanging the skin color tone value of the target person.
Preferably, the extracting module further extracts the skin color saturation of the target person, which is recorded as the first skin color saturation and the second skin color saturation. And through the hue value and the skin color saturation, the skin color parameter of the target character is more comprehensively extracted.
The calculation module is in communication connection with the extraction module and the comparison module and calculates a first difference value between the first skin tone value and the second skin tone value;
after the extraction module obtains the skin tone value of the target character, the calculation module calls a function, data corresponding to the first skin tone value and the second skin tone value are brought into a calculation formula, the first skin tone value and the second skin tone value are further calculated, and the difference value between the first skin tone value and the second skin tone value is calculated. Namely, the difference in skin color between the first target person and the second target person is determined.
The comparison module is in communication connection with the calculation module and compares the first difference value with a preset threshold value;
after the calculation is completed, the comparison module further compares the calculated first difference value with a preset threshold value arranged in the intelligent terminal. Wherein, the first difference value is an absolute value; the preset threshold is a standard for measuring the difference between the first skin tone value and the second skin tone value.
The receiving module is in communication connection with the switching module and receives a photographing instruction;
when a user needs to shoot a current preview image, a shooting instruction is sent to the intelligent terminal, and the shooting instruction comprises: single, double click, long press, swipe, etc. And after receiving a photographing instruction sent by a user, the receiving module executes photographing and captures a preview image displayed in the current interface.
The exchange module is in communication connection with the comparison module and the receiving module, and when the first difference value is larger than the preset threshold value, the exchange module exchanges the first skin tone value of the first target character and the second skin tone value of the second target character according to the photographing instruction so as to generate an updated image.
In the process that the intelligent terminal executes the photographing instruction, the exchange module further obtains a comparison result of the first difference value calculated in the prior art and a preset threshold value. When the first difference value is larger than the preset threshold value, namely the comparison module judges that the skin colors of the first target character and the second target character are different to a certain extent, the exchange module executes the photographing instruction and further exchanges the skin colors of the first target character and the second target character by exchanging numerical codes corresponding to the first tone value and the second tone value so as to generate an updated image. In the updated image, the first skin tone value is applied to the second target person and the second skin tone value is applied to the first target person.
Preferably, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin tone value of the target person and further exchanges the skin tone saturation of the target person.
In order to ensure that the skin color after the swapping is completely consistent with the skin color in the preview image, and more truly restore the skin color between the swapping target objects, the numerical code swapped by the swapping module in this embodiment further includes a numerical code representing the saturation of the skin color of the target person.
The storage module is in communication connection with the comparison module and the receiving module;
and when the difference value is smaller than or equal to the preset threshold value, the storage module stores the preview image according to the photographing instruction.
And when the comparison module judges that the first difference value is smaller than the preset threshold value, the exchange module does not execute skin color exchange. After the receiving module receives the photographing instruction, the storage module stores the preview image acquired by the acquiring module.
Fig. 3 is a schematic structural diagram of a photographing system based on an intelligent terminal according to an embodiment of the present invention. In this embodiment, a photographing system based on intelligent terminal includes: the device comprises an acquisition module, an extraction module, a calculation module, a comparison module, a receiving module and an exchange module;
the acquisition module acquires the preview image containing three target characters;
when a user needs to take a picture, a shooting button can be selected from a shortcut icon or a shortcut pull-down menu of the desktop of the intelligent terminal, and a shooting program is started. Preferably, the photographing program can be a photographing program carried by the intelligent terminal itself, or can also be an application program developed based on an operating system of the intelligent terminal. After the photographing program is started, the camera of the intelligent terminal is started, and the acquisition module selects a photographing area through the camera. The camera of the intelligent terminal can be a front camera, a rear camera, an external camera and the like. The selected photographing region is a region including three target persons. And after selection, displaying a preview image in a screen of the intelligent terminal.
Preferably, the photographing system further comprises an identification module; the identification module is in communication connection with the acquisition module and the extraction module;
the identification module is used for identifying the skin exposed parts of the target person, including the face, the neck, the hands and the legs.
After the obtaining module obtains the preview image including the target person, further, the identifying module identifies the exposed part of the skin of the target person in the preview image, including: face, neck, hands, legs, etc. Firstly, the recognition module can accurately calibrate the position and the size of the face in the preview image through a face recognition technology. And further identifying other skin exposed parts of the target person in the preview image according to the color information of the human face skin.
The extraction module is used for respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target figure; after the identification module identifies the exposed skin part (including face, neck, hands and legs) of the target person, the extraction module further extracts the skin tone value of the target person from the color information of the exposed skin part. Defining a skin tone value of a first target character in the preview image as a first skin tone value; setting the skin tone value of the second target figure in the preview image as a second skin tone value; and setting the skin tone value of the third target character in the preview image as a third skin tone value.
Preferably, the extraction module further comprises:
extracting the skin color saturation of the target person;
then, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin color saturation of the target person while exchanging the skin color tone value of the target person.
Preferably, the extracting module further extracts the skin color saturation of the target person, which is recorded as the first skin color saturation, the second skin color saturation and the third skin color saturation. And through the hue value and the skin color saturation, the skin color parameter of the target character is more comprehensively extracted.
The calculation module is used for calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively; after the extraction module obtains the skin tone value of the target character, the calculation module calls a function, data corresponding to the first skin tone value and the second skin tone value are brought into a calculation formula, difference values between the first skin tone value, the second skin tone value and the third skin tone value are further calculated, and difference values between the first skin tone value, the second skin tone value and the third skin tone value are calculated. Namely, the skin color difference between the first target person, the second target person and the third target person is judged.
The comparison module compares the first difference value and the second difference value with the preset threshold value; after the calculation is completed, the comparison module further compares the calculated first difference value and the calculated second difference value with a preset threshold value arranged in the intelligent terminal. Wherein, the first difference value and the second difference value are both an absolute value; the preset threshold value is a standard for measuring the difference between the first skin tone value, the second skin tone value and the third skin tone value.
The receiving module is used for receiving the photographing instruction;
when a user needs to shoot a current preview image, a shooting instruction is sent to the intelligent terminal, and the shooting instruction comprises: single, double click, long press, swipe, etc. And after receiving a photographing instruction sent by a user, the receiving module executes photographing and captures a preview image displayed in the current interface.
When the first difference value and the second difference value are both greater than the preset threshold value, the exchanging module randomly exchanges the first skin tone value of the first target character, the second skin tone value of the second target character and the third skin tone value of the third target character according to the photographing instruction to generate the updated image.
In the process of executing the photographing instruction by the intelligent terminal, the exchange module further obtains a comparison result of the first difference value and the second difference value which are calculated in advance and a preset threshold value. When the first difference value and the second difference value are both larger than a preset threshold value, namely, the comparison module judges that the skin colors of the first target character, the second target character and the third target character are different to a certain degree, the exchange module executes a photographing instruction and further exchanges numerical codes corresponding to the first tone value, the second tone value and the third tone value at will so as to realize the skin colors of the first target character, the second target character and the third target character at will and generate an updated image. In the updated image, the first skin tone value is applied to the second target person or the third target person, the second skin tone value is applied to the first target person or the third target person, and the third skin tone value is applied to the second target person or the third target person.
Preferably, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin tone value of the target person and further exchanges the skin tone saturation of the target person.
In order to ensure that the skin color after the swapping is completely consistent with the skin color in the preview image, and more truly restore the skin color between the swapping target objects, the numerical code swapped by the swapping module in this embodiment further includes a numerical code representing the saturation of the skin color of the target person.
Preferably, the photographing system further comprises a storage module;
the storage module is in communication connection with the comparison module and the receiving module;
and when the difference value is smaller than or equal to the preset threshold value, the storage module stores the preview image according to the photographing instruction.
In a preferred embodiment, the photographing system further comprises a storage module, and the storage module is in communication connection with the comparison module and the receiving module. When the comparison module judges that at least one of the first difference value and the second difference value is smaller than or equal to a preset threshold value, namely, the difference between at least two of the first skin tone value, the second skin tone value and the third skin tone value is smaller, the exchange module does not execute skin tone exchange, and after the receiving module receives a photographing instruction, the storage module stores the preview image in the intelligent terminal according to the photographing instruction.
By adopting the photographing method and the photographing system based on the intelligent terminal, provided by the invention, the skin color value of the target person in the preview image can be extracted, and when the difference of the skin color values among the target persons is larger than a preset threshold value, the skin color values of the target persons are automatically exchanged, so that the skin color exchange among the target persons is realized, and the interestingness of photographing is further increased.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.

Claims (10)

1. A photographing method based on an intelligent terminal is characterized by comprising the following steps:
acquiring a preview image containing at least two target characters;
respectively extracting a first skin tone value of a first target character and a second skin tone value of a second target character;
calculating a first difference value between the first skin tone value and the second skin tone value;
comparing the first difference value with a preset threshold value;
receiving a photographing instruction;
and when the first difference value is larger than the preset threshold value, exchanging a first skin tone value of the first target person and a second skin tone value of the second target person according to the photographing instruction so as to generate an updated image.
2. A photographing method as defined in claim 1,
the photographing method further includes:
acquiring the preview image containing three target characters;
respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target character;
calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively;
comparing the first difference value and the second difference value with the preset threshold value;
receiving the photographing instruction;
and when the first difference value and the second difference value are both larger than the preset threshold value, randomly exchanging the first skin tone value of the first target character, the second skin tone value of the second target character and the third skin tone value of the third target character according to the photographing instruction so as to generate the updated image.
3. A photographing method according to claim 1 or 2,
the photographing method further includes:
and when the difference value is smaller than or equal to the preset threshold value, saving the preview image according to the photographing instruction.
4. A photographing method according to claim 1 or 2,
the photographing method further includes:
extracting the skin color saturation of the target person;
and when the skin tone value of the target character is exchanged, exchanging the skin tone saturation of the target character.
5. A photographing method according to claim 1 or 2,
the photographing method further includes:
respectively identifying the exposed skin parts of the target characters, wherein the exposed skin parts comprise at least one of the following parts: face, neck, hands, legs.
6. The utility model provides a system of shooing based on intelligent terminal which characterized in that includes: the device comprises an acquisition module, an extraction module, a calculation module, a comparison module, a receiving module and an exchange module;
the acquisition module acquires a preview image containing at least two target characters;
the extraction module is in communication connection with the acquisition module and the calculation module and respectively extracts a first skin tone value of a first target character and a second skin tone value of a second target character;
the calculation module is in communication connection with the extraction module and the comparison module and calculates a first difference value between the first skin tone value and the second skin tone value;
the comparison module is in communication connection with the calculation module and compares the first difference value with a preset threshold value;
the receiving module is in communication connection with the exchanging module and receives a photographing instruction;
the replacing module is in communication connection with the comparing module and the receiving module, and when the first difference value is larger than the preset threshold value, the replacing module replaces the first skin tone value of the first target figure and the second skin tone value of the second target figure according to the photographing instruction so as to generate an updated image.
7. The photographing system of claim 6,
the acquisition module acquires the preview image containing three target characters;
the extraction module is used for respectively extracting the first skin tone value, the second skin tone value and a third skin tone value of a third target figure;
the calculation module is used for calculating the first difference value and the second difference value between the first skin tone value and the second skin tone value and between the first skin tone value and the third skin tone value respectively;
the comparison module compares the first difference value and the second difference value with the preset threshold value; the receiving module is used for receiving the photographing instruction;
when the first difference value and the second difference value are both larger than the preset threshold value, the exchanging module exchanges the first skin tone value of the first target character, the second skin tone value of the second target character and the third skin tone value of the third target character randomly according to the photographing instruction so as to generate the updated image.
8. The photographing system of claim 6 or 7,
the photographing system further comprises a storage module;
the storage module is in communication connection with the comparison module and the receiving module;
and when the difference value is smaller than or equal to the preset threshold value, the storage module stores the preview image according to the photographing instruction.
9. The photographing system of claim 6 or 7,
the extraction module further comprises:
extracting the skin color saturation of the target person;
then, the exchanging module is further in communication connection with the extracting module, and further exchanges the skin color saturation of the target person while exchanging the skin color tone value of the target person.
10. The photographing system of claim 6 or 7,
the photographing system further comprises an identification module; the identification module is in communication connection with the acquisition module and the extraction module;
the identification modules respectively identify the skin exposure parts of the target characters, and the skin exposure parts comprise at least one of the following components: face, neck, hands, legs.
CN201780095902.XA 2017-10-11 2017-10-11 Photographing method and photographing system based on intelligent terminal Active CN111226431B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105760 WO2019071488A1 (en) 2017-10-11 2017-10-11 Photography method and photography system based on smart terminal

Publications (2)

Publication Number Publication Date
CN111226431A CN111226431A (en) 2020-06-02
CN111226431B true CN111226431B (en) 2021-06-01

Family

ID=66100195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780095902.XA Active CN111226431B (en) 2017-10-11 2017-10-11 Photographing method and photographing system based on intelligent terminal

Country Status (2)

Country Link
CN (1) CN111226431B (en)
WO (1) WO2019071488A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065290A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Device and method for correcting skin color in photo
CN105303161A (en) * 2015-09-21 2016-02-03 广东欧珀移动通信有限公司 Method and device for shooting multiple people
CN105869111A (en) * 2016-04-05 2016-08-17 广东欧珀移动通信有限公司 Skin color adjusting method and apparatus when group picture of multiple persons is taken
CN106023063A (en) * 2016-05-09 2016-10-12 西安北升信息科技有限公司 Video transplantation face changing method
CN107222675A (en) * 2017-05-23 2017-09-29 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4750520B2 (en) * 2005-09-21 2011-08-17 富士フイルム株式会社 Human image correction apparatus and method
KR20100056280A (en) * 2008-11-19 2010-05-27 삼성전자주식회사 Apparatus for processing digital image and method for controlling thereof
CN105516585B (en) * 2015-11-30 2019-08-16 努比亚技术有限公司 A kind of device and method of the adjust automatically colour of skin

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065290A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Device and method for correcting skin color in photo
CN105303161A (en) * 2015-09-21 2016-02-03 广东欧珀移动通信有限公司 Method and device for shooting multiple people
CN105869111A (en) * 2016-04-05 2016-08-17 广东欧珀移动通信有限公司 Skin color adjusting method and apparatus when group picture of multiple persons is taken
CN106023063A (en) * 2016-05-09 2016-10-12 西安北升信息科技有限公司 Video transplantation face changing method
CN107222675A (en) * 2017-05-23 2017-09-29 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal

Also Published As

Publication number Publication date
WO2019071488A1 (en) 2019-04-18
CN111226431A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN112348969B (en) Display method and device in augmented reality scene, electronic equipment and storage medium
CN106558025B (en) Picture processing method and device
CN111556278B (en) Video processing method, video display device and storage medium
CN106161939B (en) Photo shooting method and terminal
WO2015001437A1 (en) Image processing method and apparatus, and electronic device
CN111368796B (en) Face image processing method and device, electronic equipment and storage medium
CN105843390B (en) A kind of method of image scaling and the AR glasses based on this method
CN111339842A (en) Video jamming identification method and device and terminal equipment
CN111643900A (en) Display picture control method and device, electronic equipment and storage medium
CN108646920A (en) Identify exchange method, device, storage medium and terminal device
CN112949547A (en) Data transmission and display method, device, system, equipment and storage medium
CN112035042A (en) Application program control method and device, electronic equipment and readable storage medium
CN108519811A (en) Screenshot method and Related product
EP4191513A1 (en) Image processing method and apparatus, device and storage medium
CN112422817B (en) Image processing method and device
CN111652983A (en) Augmented reality AR special effect generation method, device and equipment
CN108683845A (en) Image processing method, device, storage medium and mobile terminal
CN112184540A (en) Image processing method, image processing device, electronic equipment and storage medium
CN106127166A (en) A kind of augmented reality AR image processing method, device and intelligent terminal
CN107357424B (en) Gesture operation recognition method and device and computer readable storage medium
CN108921815A (en) It takes pictures exchange method, device, storage medium and terminal device
CN111226431B (en) Photographing method and photographing system based on intelligent terminal
CN112511743A (en) Video shooting method and device
CN114266305A (en) Object identification method and device, electronic equipment and storage medium
CN109064416B (en) Image processing method, image processing device, storage 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
GR01 Patent grant
GR01 Patent grant