CN106961558B - Photographing processing method and device - Google Patents

Photographing processing method and device Download PDF

Info

Publication number
CN106961558B
CN106961558B CN201610015094.9A CN201610015094A CN106961558B CN 106961558 B CN106961558 B CN 106961558B CN 201610015094 A CN201610015094 A CN 201610015094A CN 106961558 B CN106961558 B CN 106961558B
Authority
CN
China
Prior art keywords
image data
processing
information
detection result
mirror image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610015094.9A
Other languages
Chinese (zh)
Other versions
CN106961558A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610015094.9A priority Critical patent/CN106961558B/en
Priority to PCT/CN2016/077022 priority patent/WO2016197657A1/en
Publication of CN106961558A publication Critical patent/CN106961558A/en
Application granted granted Critical
Publication of CN106961558B publication Critical patent/CN106961558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Abstract

The invention discloses a photographing processing method and device. The photographing processing method comprises the following steps: acquiring image data through a front camera of the terminal equipment; detecting characteristic information of the image data to obtain a detection result; and carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result. The invention solves the problems that in the prior art, the mirror image processing function is started or closed through the setting of a user in the processing mode of taking pictures by adopting the front camera, the processing mode suitable for the current picture taking is judged by the user subjectively, and the manual setting operation is carried out by the user, so that the picture taking operation steps are complicated, and the picture distortion is easy to occur.

Description

Photographing processing method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for processing a photograph.
Background
With the development of computer technology, the application range of the intelligent terminal is widely improved, for example, the intelligent terminal can listen to music, play games, chat on internet, take pictures and the like. Particularly, a photographing mode of a front camera of the intelligent terminal, namely, an application of a self-photographing function is generally favored by users, and the front camera and image processing software are important factors for determining the quality of self-photographing capability.
The pixel capability of the front camera is a hardware factor for determining the definition of the shot image, and the definition of the shot image can be improved through hardware upgrading. In the process that a user carries out self-shooting by adopting a front camera of an intelligent terminal, images in a shooting view field can be seen through a display screen of the intelligent terminal, such as the user and family friends, in order to meet the requirement that the user tends to see and obtain in self-shooting, the shot images can be subjected to mirror image processing generally, and therefore, a picture generated after the shot and the images seen by the user on the display screen are kept consistent. In an application scene of photographing, if characters exist in a photographing field of a front camera, the characters are in a left-right opposite state in a photo generated by adopting mirror image processing, and the photo is poor in reality sense. In order to solve the above problems, the currently widely used processing method is as follows: a function switch is arranged in the camera application of the intelligent terminal, the mirror image processing function is started or closed through the setting of a user, the mode needs the user to subjectively judge the processing mode suitable for the current picture taking, and the user carries out manual setting operation.
In summary, in the processing mode of taking a picture by using a front-facing camera in the prior art, the mirror processing function is turned on or off by setting of a user, and since the mode requires the user to subjectively determine the processing mode suitable for the current picture taking and the user performs manual setting operation, the operation steps of taking a picture are complicated, and the problem of picture distortion is easily caused.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a photographing processing method and apparatus, so as to solve the problems that in the prior art, in a processing mode of photographing by using a front-facing camera, a mirror image processing function is turned on or off by setting of a user, the user needs to subjectively determine a processing mode suitable for the current photographing, and the user performs manual setting operation, so that the photographing operation steps are complicated, and the picture is easily distorted.
In a first aspect, the present invention provides a photographing processing method, including:
acquiring image data through a front camera of the terminal equipment;
detecting characteristic information of the image data to obtain a detection result;
and carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result.
In a first possible implementation manner of the first aspect, the detecting the feature information of the image data and obtaining a detection result refer to:
and detecting the characteristic information in the image data, and acquiring a detection result comprising the characteristic information, wherein the characteristic information comprises one or more items of face information and character information.
In a first possible implementation manner of the first aspect, in a second possible implementation manner, the feature information includes face information; the mirror image processing or mirror image neglecting processing on the image data according to the detection result is as follows:
and carrying out mirror image processing on the image data according to the detected face information.
In a first possible implementation manner of the first aspect, in a third possible implementation manner, the feature information includes text information; the mirror image processing or mirror image neglecting processing on the image data according to the detection result is as follows:
and omitting mirror image processing on the image data according to the detected character information.
In a first possible implementation manner of the first aspect, in a fourth possible implementation manner, a reference region is set in the image data, and the feature information includes face information and text information, where the face information includes a position and a size of the face region, and the text information includes a position and a size of the text region; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
determining the position relationship and the proportional relationship between the face region and the text region and the reference region according to the position and the size of the face region and the position and the size of the text region;
when the ratio of the face area occupying the reference area is greater than a first threshold value, carrying out mirror image processing on the image data;
and when the ratio of the character area occupying the reference area is larger than a second threshold value, omitting mirror image processing on the image data.
In a fifth possible implementation manner of the first aspect, the characteristic information is a detection target value preset in the terminal device, and the characteristic information is face information or text information; the detecting the characteristic information of the image data to obtain the detection result means that:
and detecting the image data, and judging whether data content meeting the characteristic information exists in the image data.
In a fifth possible implementation manner according to the first aspect, in a sixth possible implementation manner, the feature information is face information; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
when the detection result is that the data content which accords with the face information exists in the image data, carrying out mirror image processing on the image data;
and when the detection result indicates that the data content conforming to the face information does not exist in the image data, ignoring mirror image processing on the image data.
In a fifth possible implementation manner according to the first aspect, in a seventh possible implementation manner, the feature information is text information; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
when the detection result is that the data content which accords with the text information exists in the image data, the image data is ignored for mirror image processing;
and when the detection result indicates that the data content conforming to the face information does not exist in the image data, carrying out mirror image processing on the image data.
In a second aspect, the present invention provides a photographing processing apparatus, where the photographing processing apparatus is disposed in a terminal device, and the photographing processing apparatus includes:
the image acquisition module is used for acquiring image data through a front camera of the terminal equipment;
the detection module is used for detecting the characteristic information of the image data acquired by the image acquisition module to acquire a detection result;
and the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module.
In a first possible implementation manner of the second aspect, the detecting module is configured to perform characteristic information detection on the image data acquired by the image acquiring module, and acquiring a detection result refers to: and detecting characteristic information in the image data acquired by the image acquisition module, and acquiring a detection result comprising the characteristic information, wherein the characteristic information comprises one or more items of face information and character information.
In a first possible implementation manner of the second aspect, in a second possible implementation manner, the feature information includes face information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and the processing module is used for: and carrying out mirror image processing on the image data according to the face information detected by the detection module.
In a first possible implementation manner of the second aspect, in a third possible implementation manner, the feature information includes text information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and the processing module is used for: and ignoring mirror image processing on the image data according to the character information detected by the detection module.
In a first possible implementation manner of the second aspect, in a fourth possible implementation manner, a reference region is set in the image data, and the feature information includes face information and text information, where the face information includes a position and a size of the face region, and the text information includes a position and a size of the text region; the processing module comprises:
the determining unit is used for determining the position relationship and the proportional relationship between the face area and the text area and the reference area according to the position and the size of the face area and the position and the size of the text area which are acquired by the detection module;
the processing unit is used for carrying out mirror image processing on the image data when the determining unit determines that the ratio of the face area to the reference area is greater than a first threshold value;
the processing unit is further configured to ignore mirror image processing on the image data when the determining unit determines that the ratio of the text area to the reference area is greater than a second threshold.
In a fifth possible implementation manner of the second aspect, the characteristic information is a detection target value preset in the terminal device, and the characteristic information is face information or text information; the detection module is used for detecting the characteristic information of the image data acquired by the image acquisition module, and acquiring a detection result, namely: and detecting the image data acquired by the image acquisition module, and judging whether the image data has data content conforming to the characteristic information.
In a fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the feature information is face information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and comprises:
the processing module is used for carrying out mirror image processing on the image data when the detection result obtained by the detection module indicates that the data content which accords with the face information exists in the image data;
the processing module is further configured to ignore mirror image processing on the image data when the detection result obtained by the detection module indicates that no data content conforming to the face information exists in the image data.
In a fifth possible implementation manner of the second aspect, in a seventh possible implementation manner, the feature information is text information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and comprises:
the processing module is used for neglecting mirror image processing on the image data when the detection result obtained by the detection module indicates that the data content which accords with the text information exists in the image data;
the processing module is further configured to perform mirror image processing on the image data when the detection result obtained by the detection module indicates that no data content conforming to the face information exists in the image data.
The invention provides a photographing processing method and a device, which acquire image data through a front camera of a terminal device, detect characteristic information of the image data to obtain a detection result, and perform mirror image processing or neglect mirror image processing on the image data acquired by the front camera through the detection result, the invention uses the detection result of the image data as a trigger condition for turning on or turning off the mirror image processing function, realizes self-adaptive switching of the mirror image function in the image processing of the front camera, simultaneously avoids the user from executing complex setting operation, solves the problem that in the prior art, the mirror image processing function is turned on or turned off through the setting of the user in the processing mode of photographing by the front camera, the processing mode suitable for the current photographing is required to be judged subjectively by the user, and the manual setting operation is carried out by the user, so that the operation steps are complex, and the problem of picture distortion easily occurs.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a photographing processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of another photographing processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of image data obtained by the photographing processing method provided in the embodiment of fig. 2;
fig. 4 is a flowchart of another photographing processing method according to an embodiment of the present invention;
fig. 5 is a flowchart of a still another photographing processing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a photographing processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another photographing processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The technical solution of the present invention is described in detail below with specific embodiments, where the terminal device in the following embodiments of the present invention is an intelligent terminal with a camera, such as a smart phone, a self-timer camera, a tablet computer, or a Personal Digital Assistant (PDA), and the terminal device in the following embodiments of the present invention generally further has a display screen capable of displaying real-time taken images or displaying photos. The following specific embodiments of the present invention may be combined, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flowchart of a photographing processing method according to an embodiment of the present invention. The photographing processing method provided by the embodiment is suitable for the condition of photographing through a front camera of the terminal device, the method can be executed by the photographing processing device, the photographing processing device is realized in a mode of combining hardware and software, and the photographing processing device can be integrated in a processor of the terminal device and used for being called by the processor. As shown in fig. 1, the method provided by this embodiment may include:
and S110, acquiring image data through a front camera of the terminal equipment.
The terminal equipment used at present generally has a photographing function and also has the capability of performing post-processing on a photographed image, such as beauty processing, picture mirror processing and the like. The photographing processing method provided by each embodiment of the invention is mainly applied to the image processing process after photographing through the front-facing camera, and no matter which photographing mode is adopted, firstly, the camera is required to obtain the image data in the photographing field range, and further processing is executed on the basis of the obtained image data. The specific application scenario may be, for example: the self-shooting is carried out through a front camera of the smart phone.
It should be noted that the embodiments of the present invention may be applied to a photographing scene equivalent to a front-facing camera, for example, a camera in a smart phone is a rotary camera, and when the camera is rotated to the same side as a display screen, the camera is used as the front-facing camera, for example, a display screen of some micro single cameras may be rotated by 180 degrees, and a photographing effect after rotating the display screen is equivalent to a photographing effect of the front-facing camera. In the following embodiments of the present invention, the front-facing camera and the camera having the same photographing effect as the front-facing camera are collectively referred to as the front-facing camera, and will not be described in detail below.
And S120, detecting the characteristic information of the image data to obtain a detection result.
In the embodiment, the image data in the shooting field of view has been acquired by the front camera, and shooting with the front camera is usually self-portrait, i.e. the image data may have human face, scenery or other contents in the image data. In this embodiment, the detection result is a basis for processing image data acquired by the front-facing camera, and the feature information is a key parameter for performing detection.
In an application scenario of performing detection, the feature information may be an object to detect image data, in which case, the feature information is a specific detection result, for example, the feature information includes one or more items of face information and text information; in another application scenario of performing detection, the feature information may be a detection target value preset in the terminal device, that is, a comparison parameter for performing detection, for example, the detected target value is face information, and it is detected whether the image data has content related to the face information during detection, where the detection result is usually the presence or absence of data content related to the feature information. In the different application scenarios, the detection execution principles and modes are different, and the obtained detection results are also different; however, the detection is performed for the purpose of determining the manner in which the image data acquired by the front camera is processed.
It should be noted that the present invention is not limited to the above-mentioned several specific ways of performing detection, and as long as the key data for determining the image processing way can be obtained by detecting the image data, the detection behavior of the present invention can be taken; for example, a specified region in the image data is detected.
And S130, carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result.
In the present embodiment, the detection result of the image data has been acquired, and the detection result may be in different forms and contents, whichever form of the detection result has a key factor in determining how to process the image data. For example, in this embodiment, the mode of performing photographing is usually self-photographing, a face is in a photographing field, in this case, the detection result is, for example, face information or face information in image data, and at this time, in order to meet the requirement of what a user sees in self-photographing is what he obtains, the terminal device may perform mirror image processing on the image data; for another example, when the user performs self-shooting through the front camera, the shooting field of view has text content, or the text content occupies a large proportion of the shooting field of view, such as a background billboard or a text on a person's clothing, at this time, if the image data is subjected to mirror image processing, the text in the generated picture is in a state of opposite left and right, like the text on a printing plate, and the reality of the picture is poor, in this case, the mirror image processing can be omitted for the image data, that is, the shot picture can output a correct text effect, and the text content conforming to the reading habit is obtained. In the embodiment, the detection result is used as the trigger condition for turning on or off the mirror image processing function, so that the self-adaptive switch of the mirror image function in the self-photographing image processing process can be realized, the subjectivity of manual judgment is avoided, and the complex operation process is also avoided.
In the conventional manner of performing self-photographing through a front camera, a common implementation manner is as described in the above background art, a function switch is set for a camera of a terminal device, and a mirror image processing function is turned on or turned off through setting by a user, which requires the user to subjectively judge a processing manner suitable for current photographing and perform manual setting operation by the user, the operation of manually setting the function switch is complicated, the position of the function switch needs to be found, and setting positions of the function switch by different self-photographing application programs may be different; in addition, the setting of function switch may need to be changed according to judgment in the photographing process, a complex experience effect of photographing setting is brought to a user, and the photographing efficiency and the intelligence are poor.
The photographing processing method provided by this embodiment obtains image data through a front-facing camera of a terminal device, detects characteristic information of the image data to obtain a detection result, and performs mirror image processing or ignores the mirror image processing on the image data obtained by the front-facing camera through the detection result, and this embodiment uses the detection result of the image data as a trigger condition for turning on or turning off a mirror image processing function, thereby implementing an adaptive switch for the mirror image function in the image processing of the front-facing camera, and simultaneously avoiding a user from executing a complicated setting operation, and solving the problem that in the prior art, in a processing mode of photographing by using the front-facing camera, the mirror image processing function is turned on or turned off through the setting of the user, since the user needs to subjectively judge a processing mode suitable for the current photographing and performs a manual setting operation by the user, thereby leading the photographing operation steps to be complicated, and the problem of picture distortion easily occurs.
Further, in the shooting process of the front-facing camera in the prior art, the user is required to judge the processing mode suitable for the current shooting by himself, the user judgment has certain subjectivity, and the judgment is easy to cause misunderstanding for the user, especially for the user who does not know the mirror image function, if the mirror image function is turned on by default in the terminal device, the problem of shooting distortion can occur when characters are shot, and if the mirror image function is turned off by default, the user may not be satisfied with the self-shooting effect, resulting in the complaint of the user.
Optionally, the feature information in the embodiment shown in fig. 1 is a detection result, and on the basis of the embodiment shown in fig. 1, S120 in this embodiment may be replaced with: detecting the characteristic information in the image data, and obtaining a detection result comprising the characteristic information, wherein the characteristic information comprises one or more items of face information and character information.
In this embodiment, the detected feature information, that is, the detection result, may be different information or a combination of different information, for example, if the detected feature information is face information, the image data is processed in a mirror image manner; for another example, if the detected feature information is character information, the image data is processed by omitting the mirror image processing. Obviously, the principle that the mirror processing function is started when the face is photographed and the mirror processing function is stopped when the characters are photographed is followed in the embodiment, that is, the authenticity of the photographed picture is ensured as much as possible in different application scenes.
In a more complex case of the present embodiment, the detected feature information includes a combination of face information and text information, and the analysis processing can be performed according to the feature information. As shown in fig. 2, which is a flowchart of another photographing processing method according to an embodiment of the present invention, in this embodiment, a reference region is set in image data acquired by a front-facing camera, the face information includes a position and a size of a face region, and the text information includes a position and a size of a text region. As shown in fig. 3, which is a schematic diagram of image data obtained by the photographing processing method provided in the embodiment shown in fig. 2, a field of view region and a reference region of the front camera are identified in the diagram, the reference region is generally located at a center position of the field of view region, and a size and a position of the reference region may be changed by a user setting, in a specific implementation of this embodiment, S130 may include:
s131, determining the position relation and the proportional relation between the face area and the character area and the reference area according to the position and the size of the face area and the position and the size of the character area.
And S132, when the ratio of the face area occupying the reference area is greater than a first threshold value, carrying out mirror image processing on the image data.
And S133, when the ratio of the character area occupying the reference area is greater than a second threshold value, ignoring mirror image processing on the image data.
In this embodiment, the position and size of the face region, the position and size of the text region, and the reference region may be in the format of image information, and the position and size of the different regions may also be in the format of data information, such as coordinates of image boundary points; the terminal equipment determines which information in the image is more important based on the ratio of the face area or the character area occupying the reference area, and the information is used as a basis for determining the processing mode. For example, when a user takes a self-timer, a human face usually occupies a large range of a reference area, and at this time, mirroring can be performed; for another example, when a user holding a reward certificate takes a self-timer, the content of the certificate is expected to be embodied, at this time, a larger range of the reference area is occupied by characters in the certificate, and the mirroring process can be omitted to ensure the correctness of the characters of the certificate.
It should be noted that the first threshold and the second threshold in this embodiment may be set to be the same data or different data, but generally cannot be set to be data that may have conflicts in the application, for example, setting the first threshold to be 40% and the second threshold to be 35%, there may be conflicts, and setting the first threshold to be 50% and the second threshold to be 60%, there may be no conflicts; in addition, S132 and S133 in this embodiment are alternatively executed.
It should be further noted that the embodiment shown in fig. 2 is a possible implementation manner of the present invention, and the present invention does not limit the specific manner of turning on or off the mirror image processing function under the condition that the feature information includes a combination of face information and text information, for example, a proportional relationship between a face region and a text region in the entire field of view may be determined, and for example, the focus range may be used as a reference region.
Optionally, the feature information in the embodiment shown in fig. 1 may also be a detection target value preset in the terminal device, where the feature information is, for example, face information or text information, and on the basis of the embodiment shown in fig. 1, S120 in this embodiment may be replaced with: and detecting the image data and judging whether the image data has data content meeting the characteristic information.
In a specific implementation manner of this embodiment, the feature information in S120 is specifically face information, and as shown in fig. 4, is a flowchart of another photographing processing method provided in the embodiment of the present invention. S120 in this embodiment may include: s121, detecting image data; s122, judging whether data content conforming to the face information exists in the image data; s130 in this embodiment includes S131 and S132, and S131 and S132 are alternatively executed, specifically, if the determination result in S122 is that data content conforming to the face information exists in the image data, S131 is executed, and if the determination result in S122 is that data content conforming to the face information does not exist in the image data; s132 is performed.
S131, image data is subjected to mirroring.
S132, the image data is subjected to the image processing.
In another specific implementation manner of this embodiment, the feature information in S120 is specifically text information, and as shown in fig. 5, is a flowchart of another photographing processing method provided in this embodiment of the present invention. S120 in this embodiment may include: s121, detecting image data; s122, judging whether data content conforming to the text information exists in the image data; s130 in this embodiment also includes S131 and S132, and S131 and S132 are alternatively executed, specifically, if the determination result in S122 is that data content conforming to the character face information exists in the image data, S131 is executed, and if the determination result in S122 is that data content conforming to the character information does not exist in the image data; s132 is performed.
S131, the mirroring process is omitted for the image data.
S132, image data is subjected to mirroring.
In the embodiments shown in fig. 4 and 5, the processing manner of the image data acquired by the front-facing camera is determined by detecting the specified target value, the detected target value may be a main factor concerned by the user's photograph, a specific feature is defined as the detected target value, and no judgment is made for other features.
Further, on the basis of the foregoing embodiments, after processing the image data according to the detection result, the method further includes: and carrying out image coding storage on the processed image data. The image is usually stored in the local machine of the terminal equipment, and the image can also be stored in a cloud server of a terminal equipment user through a data stream.
Fig. 6 is a schematic structural diagram of a photographing processing apparatus according to an embodiment of the present invention. The photographing processing device provided by the embodiment is suitable for the condition of photographing through a front camera of the terminal device, the photographing processing device is realized in a mode of combining hardware and software, and the photographing processing device can be integrated in a processor of the terminal device and used for being called by the processor. As shown in fig. 6, the photographing processing apparatus of the present embodiment specifically includes: an image acquisition module 11, a detection module 12 and a processing module 13.
The image obtaining module 11 is configured to obtain image data through a front-facing camera of the terminal device.
The terminal device in this embodiment is mainly applied to the image processing process after photographing through the front-facing camera, and can also be applied to photographing equivalent to the front-facing camera. The specific application scenario that can be the same as the shooting by the front-facing camera has been specifically described in the above embodiments, and therefore, the detailed description thereof is omitted here.
And a detection module 12, configured to perform characteristic information detection on the image data acquired by the image acquisition module 11, and acquire a detection result.
In this embodiment, the detection result is a basis for processing image data acquired by the front-facing camera, and the feature information is a key parameter for performing detection. In an application scenario in which detection is performed in the present embodiment, the feature information may be an object to detect image data, and in this case, the feature information is a specific detection result; in another application scenario of performing detection, the characteristic information may be a detection target value preset in the terminal device, that is, a contrast parameter for performing detection.
It should be noted that the present invention is not limited to the above-mentioned several specific ways of performing detection, and as long as the key data for determining the image processing way can be obtained by detecting the image data, the detection behavior of the present invention can be taken; for example, a specified region in the image data is detected.
And the processing module 13 is configured to perform mirror image processing on the image data or ignore mirror image processing according to the detection result obtained by the detection module 12.
In this embodiment, the acquired detection results may be in different forms and contents, and any form of detection results has a key factor in determining how to process the image data. In the embodiment, the detection result is used as the trigger condition for turning on or off the mirror image processing function, so that the self-adaptive switch of the mirror image function in the self-photographing image processing process can be realized, the subjectivity of manual judgment is avoided, and the complex operation process is also avoided.
The photographing processing apparatus provided in the embodiment of the present invention is used for executing the photographing processing method provided in the embodiment shown in fig. 1 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Alternatively, the feature information in the embodiment shown in fig. 6 may be a detection result, and the detection module 12 in this embodiment is configured to detect the feature information of the image data acquired by the image acquisition module 11, where the acquiring of the detection result refers to: the feature information in the image data acquired by the image acquisition module 11 is detected, and a detection result including the feature information is acquired, wherein the feature information includes one or more items of face information and character information.
In this embodiment, the feature information detected by the detection module 12, i.e. the detection result, may be different information or a combination of different information. If the feature information includes face information, the processing module 13 is configured to perform mirror image processing or ignore mirror image processing on the image data according to the detection result obtained by the detection module 12, where the mirror image processing is: and carrying out mirror image processing on the image data according to the face information detected by the detection module 12. If the feature information includes text information, the processing module 13 is configured to perform mirror image processing or ignore mirror image processing on the image data according to the detection result obtained by the detection module 12, where the mirror image processing is: and image data is neglected and mirrored according to the character information detected by the detection module 12. The processing module 13 in this embodiment may follow the principle of starting the mirror processing function for face photographing and stopping the mirror processing function for character photographing, that is, the authenticity of photographed pictures is ensured as much as possible in different application scenes.
In a more complicated situation of this embodiment, the feature information detected by the detection module 12 includes a combination of face information and text information, and the processing module 13 may perform analysis processing according to the feature information, where in this embodiment, the image data acquired by the front-facing camera is provided with a reference region, the face information may include a position and a size of the face region, and the text information may include a position and a size of the text region, and also refer to the image data schematic diagram shown in fig. 3. As shown in fig. 7, which is a schematic structural diagram of another photographing processing apparatus according to an embodiment of the present invention, based on the structure of the apparatus shown in fig. 6, the processing module 13 in this embodiment includes: a determining unit 14, configured to determine a position relationship and a proportional relationship between the face region and the text region and the reference region according to the position and the size of the face region and the position and the size of the text region obtained by the detecting module 12; the processing unit 15 is configured to perform mirror image processing on the image data when the determining unit 14 determines that the ratio of the face area to the reference area is greater than a first threshold; the processing unit 15 is further configured to ignore mirror image processing on the image data when the determining unit 14 determines that the ratio of the text area to the reference area is greater than the second threshold.
In this embodiment, the position and size of the face region, the position and size of the text region, and the reference region may be in the format of image information, or may be in the format of data information, such as coordinates of image boundary points. The manner in which the terminal device determines to turn on or off the mirror function based on the information is described in detail in the above embodiments, and therefore, details are not described herein again.
It should be noted that the first threshold and the second threshold in this embodiment may be set to the same data or different data, but generally cannot be set to data that may conflict in the application; in addition, the processing manner of this embodiment is a possible implementation manner of the present invention, and the present invention does not limit the specific manner of determining to turn on or turn off the mirror image processing function under the condition that the feature information includes a combination of face information and text information.
The photographing processing apparatus according to the embodiment of the present invention is used for executing the photographing processing method according to the embodiment of fig. 2 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Optionally, the feature information in the embodiment shown in fig. 6 may also be a detection target value preset in the terminal device, where the feature information is, for example, face information or character information, on the basis of the embodiment shown in fig. 6, the detection module 12 in this embodiment is configured to detect the feature information of the image data acquired by the image acquisition module 11, and the acquiring of the detection result refers to: the image data acquired by the image acquisition module 11 is detected, and whether data content meeting the characteristic information exists in the image data is judged.
In a specific implementation manner of this embodiment, the characteristic information is specifically face information, and accordingly, the processing module 13 is configured to perform mirror image processing or ignore mirror image processing on the image data according to the detection result obtained by the detecting module 12, and includes: the processing module 13 is configured to perform mirror image processing on the image data when the detection result obtained by the detection module 12 is that data content meeting the face information exists in the image data; in addition, the processing module 13 is further configured to ignore mirror image processing on the image data when the detection result obtained by the detection module 12 is that no data content meeting the face information exists in the image data.
In another specific implementation manner of this embodiment, the characteristic information is specifically text information, and correspondingly, the processing module 13 is configured to perform mirror image processing or ignore mirror image processing on the image data according to the detection result obtained by the detection module 12, and includes: the processing module 13 is configured to ignore mirror image processing on the image data when the detection result obtained by the detection module 12 is that data content meeting the text information exists in the image data; in addition, the processing module 13 is further configured to perform mirror image processing on the image data when the detection result obtained by the detection module 12 is that no data content meeting the face information exists in the image data.
The photographing processing device provided by the embodiment of the present invention is used for executing the photographing processing method provided by the embodiment of the present invention shown in fig. 4 and 5, and has corresponding functional modules, which implement similar principles and technical effects, and are not described herein again.
In the embodiment, the processing mode of the image data acquired by the front camera is determined by detecting the specified target value, the detected target value can be a main factor concerned by the user photo, a specific characteristic is defined as the detected target value, and other characteristics are not judged.
Further, on the basis of the structure of the photographing processing apparatus in the foregoing embodiments, the photographing processing apparatus further includes a storage module, configured to perform image coding storage on the processed image data after the processing module 13 processes the image data according to the detection result. The image is usually stored in the local machine of the terminal equipment, and the image can also be stored in a cloud server of a terminal equipment user through a data stream.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing processing method, comprising:
acquiring image data through a front camera of the terminal equipment;
detecting feature information of the image data to obtain a detection result, wherein the feature information comprises one or more items of face information and character information;
carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result;
the image data mirroring or ignoring mirroring according to the detection result includes:
if the detection result is that the feature information only contains face information, carrying out mirror image processing on the image data according to the detected face information;
and if the detection result is that the feature information only contains character information, performing neglect mirroring processing on the image data according to the detected character information.
2. The photographing processing method according to claim 1, wherein a reference region is set in the image data, the feature information includes face information and text information, wherein the face information includes a position and a size of the face region, and the text information includes a position and a size of the text region; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
determining the position relationship and the proportional relationship between the face region and the text region and the reference region according to the position and the size of the face region and the position and the size of the text region;
when the ratio of the face area occupying the reference area is greater than a first threshold value, carrying out mirror image processing on the image data;
and when the ratio of the character area occupying the reference area is larger than a second threshold value, omitting mirror image processing on the image data.
3. The photographing processing method according to claim 1, wherein the characteristic information is a detection target value preset in the terminal device, and the characteristic information is face information or character information; the detecting the characteristic information of the image data to obtain the detection result means that:
and detecting the image data, and judging whether data content meeting the characteristic information exists in the image data.
4. The photographing processing method according to claim 3, wherein the feature information is face information; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
when the detection result is that the data content which accords with the face information exists in the image data, carrying out mirror image processing on the image data;
and when the detection result indicates that the data content conforming to the face information does not exist in the image data, ignoring mirror image processing on the image data.
5. The photographing processing method according to claim 3, wherein the characteristic information is text information; the image data is subjected to mirror image processing or mirror image neglecting processing according to the detection result, and the method comprises the following steps:
when the detection result is that the data content which accords with the text information exists in the image data, the image data is ignored for mirror image processing;
and when the detection result indicates that the data content conforming to the face information does not exist in the image data, carrying out mirror image processing on the image data.
6. The utility model provides a processing apparatus shoots, its characterized in that, the processing apparatus shoots sets up in terminal equipment, the processing apparatus shoots includes:
the image acquisition module is used for acquiring image data through a front camera of the terminal equipment;
the detection module is used for detecting the characteristic information of the image data acquired by the image acquisition module to acquire a detection result, wherein the characteristic information comprises one or more items of face information and character information;
a processing module, configured to perform mirror image processing or ignore mirror image processing on the image data according to the detection result obtained by the detection module, where performing mirror image processing or ignoring mirror image processing on the image data according to the detection result includes:
the detection result is that the feature information only contains face information, and the image data is subjected to mirror image processing according to the face information detected by the detection module;
and the detection result is that the characteristic information only contains character information, and the image data is neglected and subjected to mirror image processing according to the character information detected by the detection module.
7. The photographing processing device according to claim 6, wherein a reference region is provided in the image data, and the feature information includes face information and text information, wherein the face information includes a position and a size of a face region, and the text information includes a position and a size of a text region; the processing module comprises:
the determining unit is used for determining the position relationship and the proportional relationship between the face area and the text area and the reference area according to the position and the size of the face area and the position and the size of the text area which are acquired by the detection module;
the processing unit is used for carrying out mirror image processing on the image data when the determining unit determines that the ratio of the face area to the reference area is greater than a first threshold value;
the processing unit is further configured to ignore mirror image processing on the image data when the determining unit determines that the ratio of the text area to the reference area is greater than a second threshold.
8. The photographing processing apparatus according to claim 6, wherein the characteristic information is a detection target value preset in the terminal device, and the characteristic information is face information or character information; the detection module is used for detecting the characteristic information of the image data acquired by the image acquisition module, and acquiring a detection result, namely: and detecting the image data acquired by the image acquisition module, and judging whether the image data has data content conforming to the characteristic information.
9. The photographing processing apparatus according to claim 8, wherein the characteristic information is face information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and comprises:
the processing module is used for carrying out mirror image processing on the image data when the detection result obtained by the detection module indicates that the data content which accords with the face information exists in the image data;
the processing module is further configured to ignore mirror image processing on the image data when the detection result obtained by the detection module indicates that no data content conforming to the face information exists in the image data.
10. The image processing apparatus of claim 8, wherein the characteristic information is text information; the processing module is used for carrying out mirror image processing or neglecting mirror image processing on the image data according to the detection result obtained by the detection module, and comprises:
the processing module is used for neglecting mirror image processing on the image data when the detection result obtained by the detection module indicates that the data content which accords with the text information exists in the image data;
the processing module is further configured to perform mirror image processing on the image data when the detection result obtained by the detection module indicates that no data content conforming to the face information exists in the image data.
CN201610015094.9A 2016-01-08 2016-01-08 Photographing processing method and device Active CN106961558B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610015094.9A CN106961558B (en) 2016-01-08 2016-01-08 Photographing processing method and device
PCT/CN2016/077022 WO2016197657A1 (en) 2016-01-08 2016-03-22 Photographing processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610015094.9A CN106961558B (en) 2016-01-08 2016-01-08 Photographing processing method and device

Publications (2)

Publication Number Publication Date
CN106961558A CN106961558A (en) 2017-07-18
CN106961558B true CN106961558B (en) 2020-06-16

Family

ID=57504504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610015094.9A Active CN106961558B (en) 2016-01-08 2016-01-08 Photographing processing method and device

Country Status (2)

Country Link
CN (1) CN106961558B (en)
WO (1) WO2016197657A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203964A (en) * 2017-05-24 2017-09-26 北京小米移动软件有限公司 Image processing method and device
CN107563960A (en) * 2017-08-30 2018-01-09 惠州Tcl移动通信有限公司 A kind of processing method, storage medium and the mobile terminal of self-timer picture
CN108055463A (en) * 2017-12-26 2018-05-18 努比亚技术有限公司 Image processing method, terminal and storage medium
CN108632413B (en) * 2018-05-15 2019-12-03 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108650463B (en) * 2018-05-15 2019-11-26 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN112422821B (en) * 2020-11-01 2022-01-04 艾普科创(北京)控股有限公司 Intelligent terminal picture shooting and publishing method and system based on Internet
CN112929561B (en) * 2021-01-19 2023-04-28 北京达佳互联信息技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium
CN113242385A (en) * 2021-05-12 2021-08-10 广州朗国电子科技有限公司 Method for intelligently adjusting camera image and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620795A (en) * 2001-12-19 2005-05-25 三洋电机株式会社 Collapsible communication terminal apparatus
CN103152489A (en) * 2013-03-25 2013-06-12 锤子科技(北京)有限公司 Showing method and device for self-shooting image
CN104243831A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6008309B2 (en) * 2013-03-29 2016-10-19 パナソニックIpマネジメント株式会社 Electronic mirror device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620795A (en) * 2001-12-19 2005-05-25 三洋电机株式会社 Collapsible communication terminal apparatus
CN103152489A (en) * 2013-03-25 2013-06-12 锤子科技(北京)有限公司 Showing method and device for self-shooting image
CN104243831A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN106961558A (en) 2017-07-18
WO2016197657A1 (en) 2016-12-15

Similar Documents

Publication Publication Date Title
CN106961558B (en) Photographing processing method and device
WO2017020488A1 (en) Picture processing method and apparatus
US9066017B2 (en) Viewfinder display based on metering images
US9154697B2 (en) Camera selection based on occlusion of field of view
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN112565589B (en) Photographing preview method and device, storage medium and electronic equipment
WO2018176925A1 (en) Hdr image generation method and apparatus
CN109120863B (en) Shooting method, shooting device, storage medium and mobile terminal
CN108154465B (en) Image processing method and device
WO2016192325A1 (en) Method and device for processing logo on video file
US9195880B1 (en) Interactive viewer for image stacks
CN107465856B (en) Image pickup method and device and terminal equipment
WO2020192692A1 (en) Image processing method and related apparatus
WO2020259655A1 (en) Image photographing method and electronic device
KR20110124965A (en) Apparatus and method for generating bokeh in out-of-focus shooting
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN111491102A (en) Detection method and system for photographing scene, mobile terminal and storage medium
JP2015126326A (en) Electronic apparatus and image processing method
US20130308829A1 (en) Still image extraction apparatus
CN110381247B (en) Image pickup apparatus and control method of image pickup apparatus
CN114500821A (en) Photographing method and device, terminal and storage medium
CN109120856B (en) Camera shooting method and device
CN114915852B (en) Video call interaction method, device, computer equipment and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
US9774791B2 (en) Method and related camera device for generating pictures with object moving trace

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