CN110855897B - Image shooting method and device, electronic equipment and storage medium - Google Patents

Image shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110855897B
CN110855897B CN201911330514.2A CN201911330514A CN110855897B CN 110855897 B CN110855897 B CN 110855897B CN 201911330514 A CN201911330514 A CN 201911330514A CN 110855897 B CN110855897 B CN 110855897B
Authority
CN
China
Prior art keywords
image
mirror
area
preview image
shooting
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
CN201911330514.2A
Other languages
Chinese (zh)
Other versions
CN110855897A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911330514.2A priority Critical patent/CN110855897B/en
Publication of CN110855897A publication Critical patent/CN110855897A/en
Application granted granted Critical
Publication of CN110855897B publication Critical patent/CN110855897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses an image shooting method, an image shooting device, electronic equipment and a storage medium, wherein the method comprises the following steps: starting a mirror shooting mode under the condition that the mirror object is identified to be included in the preview image to be shot; identifying a flaw area in the specular object; responding to the shooting operation of the user on the preview image to obtain a target image; the target image is an image obtained by performing image processing on the defective area. The problem that in the related art, when a user uses electronic equipment to shoot a mirror surface, the mirror surface influences the final imaging quality of a shot image is solved.

Description

Image shooting method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of image processing, in particular to an image shooting method and device, electronic equipment and a storage medium.
Background
With the development of electronic devices and mobile internet, users using electronic devices to take pictures has become an indispensable part of daily life.
At present, a user who likes self-timer sometimes tries to shoot a mirror surface by using an electronic device, however, since the user shoots the mirror surface, the mirror surface may affect the final imaging quality of a shot image, and even if the user uses the current image processing mode to process the shot image, the user may not accurately repair the image due to the mirror surface, which affects the final image displaying effect.
Disclosure of Invention
The embodiment of the invention provides an image shooting method, an image shooting device, electronic equipment and a storage medium, and aims to solve the problem that in the related art, when a user shoots a mirror face by using the electronic equipment, the mirror face influences the final imaging quality of a shot image.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image capturing method, where the image capturing method may include:
starting a mirror shooting mode under the condition that the mirror object is identified to be included in the preview image to be shot;
identifying a flaw area in the specular object;
responding to the shooting operation of the user on the preview image to obtain a target image; the target image is an image obtained by performing image processing on the defective area.
In a second aspect, an embodiment of the present invention provides an image capturing apparatus, where the image capturing apparatus may include:
the trigger module is used for starting a mirror shooting mode under the condition that the preview image to be shot comprises a mirror object;
a transceiver module for identifying a flaw area in the mirror object;
the processing module is used for responding to shooting operation of a user on the preview image to obtain a target image; the target image is an image obtained by performing image processing on the defective area.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the electronic device implements the image capturing method according to the first aspect.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program for causing a computer to execute the image capturing method as shown in the first aspect, if the computer program is executed in the computer.
In the embodiment of the invention, the mirror shooting mode is started under the condition that the preview image to be shot comprises the mirror object; in the mirror shooting mode, a defective area in the mirror object is identified, and a target image obtained by performing image processing on the defective area is obtained in response to a shooting operation of a user on the preview image. Therefore, the trouble that the dirt degree of the mirror surface influences the definition of a shot image when a user shoots the mirror surface by using the electronic equipment is solved, so that a clear and high-quality image (such as a person object shot by the user) is provided. On the one hand, scenes of portrait shooting are enriched, and the user photographing experience is improved. On the other hand, in a scene of shooting by using a mirror object, a rear camera of the electronic device is generally used for self-shooting, and pixels of the rear camera are generally higher than those of the front camera, so that the utilization rate of the rear camera is improved, and meanwhile, the definition of a shot image is improved to a certain extent.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic view of an application scenario of image capturing according to an embodiment of the present invention;
fig. 2 is a flowchart of an image capturing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first interface of an image capturing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a second interface of an image capturing method according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for implementing image capture according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Embodiments of the present invention provide an image capturing method, an image capturing apparatus, an electronic device, and a storage medium, to solve the problem in the related art that when a user uses an electronic device to capture an image of a mirror surface, the mirror surface affects the final imaging quality of the captured image.
The image shooting method provided by the embodiment of the invention can be applied to the following application scenes, and is specifically described in detail with reference to fig. 1.
Most users who like autodyne can try to autodyne by facing the mirror with the rear lens of the electronic equipment, and the final imaging quality of the shot image is closely related to the dirt degree of the mirror surface. In the embodiment of the invention, the behavior of self-shooting by a user through electronic equipment facing a mirror is defined as mirror self-shooting, and an image shooting method based on a mirror shooting mode of mirror self-shooting is provided, namely as shown in FIG. 1, (referring to an interface diagram on the left side in FIG. 1) the mirror shooting mode is started under the condition that a preview image to be shot is identified to include a mirror object; identifying a defective region in the mirror object (referring to an interface diagram in the middle of fig. 1), and when the defective region is identified, displaying the defective region in a preview image differently; in response to the shooting operation of the user on the preview image, obtaining a target image (referring to the interface diagram on the right in FIG. 1); the target image is an image obtained by performing image processing on the defective area. In this way, a defective area (for example, a dirty area where dust or liquid adheres) of the mirror surface can be recognized, and the defective area in the mirror surface object can be displayed in the preview image, and then, the user can select an operation of removing the defective area in the preview image when taking a preview, so that the defective area on the mirror surface in the preview image can be removed by performing image processing on the defective area, and finally, a self-shot picture of a clean mirror surface can be generated.
It should be noted that, in a possible example, the mirror shooting mode may be understood as a functional mode superimposed on a rear portrait mode associated with a rear camera of the electronic terminal. Here, in shooting, mirror surface recognition may be performed by a lens (for example, a TOF (time Of flight) lens) that operates using a pulse type principle in the technology Of face recognition, and when reflected light from the mirror surface is received by the TOF and the distance Of the reflected light is within a preset threshold range (for example, 3 meters), the mirror surface shooting mode may be turned on.
Here, the method provided by the embodiment of the present invention may be applied to any mirror surface having light reflection and presenting, for example, a scene such as glass or a reflective plate, besides the scene of the mirror surface, i.e., the mirror. Therefore, the method provided by the embodiment of the invention can effectively solve the problem that the final imaging quality of the shot image is influenced by the dirt degree or flaw of the mirror surface when the electronic equipment shoots the reflected and imaged mirror surface and the like.
Therefore, based on the application scenario, the following describes the image capturing method provided by the embodiment of the present invention in detail.
Fig. 2 is a flowchart of an image capturing method according to an embodiment of the present invention.
As shown in fig. 2, the image capturing method may specifically include steps 210 to 230, which are specifically as follows:
and step 210, starting a mirror shooting mode under the condition that the mirror object is identified to be included in the preview image to be shot.
Specifically, how to identify whether the preview image to be captured includes the mirror surface object may be performed by a conventional method such as feature identification, which is not specifically limited in the embodiment of the present invention. Optionally, before determining to start the mirror shooting mode, in an embodiment of the present invention, it is required to determine whether the preview image includes a mirror object, where a manner of determining the mirror object may include:
acquiring a preview image to be shot; projecting first light rays to a plurality of objects corresponding to the preview image;
receiving second light reflected by at least one object in the plurality of objects;
and determining the target light rays meeting the preset conditions in each second light ray, and determining the object corresponding to the target light rays as the mirror surface object.
By the method, the mirror image can be more accurately identified.
For example, a preview image to be photographed is obtained (refer to the left interface diagram in fig. 1), a first light ray is projected to a plurality of objects (e.g., a character object, a mirror object, and an electronic device object) corresponding to the preview image, a second light ray corresponding to at least one object of the plurality of objects is received, and a target light ray satisfying a preset condition that the second light ray is a reflected light ray and the reflection distance of the reflected light ray is less than or equal to 3 meters in the plurality of second light rays is determined. And when the second light ray is determined to comprise the target light ray, determining the object corresponding to the target light ray as the specular object.
Thus, when it is determined that the preview image includes the mirror surface object, the mirror surface photographing mode can be turned on.
In addition, the embodiment of the invention also provides another mode for starting the mirror shooting mode, and the mode can be applied to scenes in which the user faces the mirror in a close-up manner. Specifically, as shown below, in the case where it is recognized that the mirror surface object and the person object are included in the preview image to be captured, the mirror surface capturing mode is turned on.
Step 220, identify a flaw area in the specular object.
Wherein, the step may specifically include: a flaw area in the specular object is identified and the flaw area is differentially displayed in the preview image. At this time, the presence of the defective region can be clearly recognized by the user.
In addition, before the step, a step of identifying a defective area may be further included, which may include:
and under the condition that the mirror shooting mode is started, carrying out flaw identification on the mirror object, and determining a flaw area on the mirror object. Here, the defective region may include a dirty region of the mirror surface, such as dust and liquid adhesion, and/or a region where the mirror surface is incomplete.
The defect identification of the mirror surface object in the embodiment of the present invention may specifically include: and carrying out flaw identification on the mirror surface object through a stain identification algorithm.
In one possible embodiment, as shown in FIG. 3, upon identifying defective areas on the mirror object, the defective areas may be displayed differently in the preview image for prompting the user that the mirror includes the defective areas.
Based on this, when the mirror shooting mode is turned on, the interface where the preview image is located includes the prompt information. The prompt message may include the first prompt message and/or the second prompt message. Further, the first prompt message may be used to prompt the user to turn off the mirror shooting mode; the second prompting information can be used for prompting the user to clear the flaw area in the mirror surface object when the flaw area is detected to be included in the mirror surface object. Therefore, the user can clear the flaw area conveniently, and a better picture can be obtained by shooting.
For example, referring to FIG. 4, the defect areas are displayed (e.g., shown in bold or colored) in the preview image, and the first prompt message of "mirror X" is displayed below the interface where the preview image is located; or displaying a second prompt message of 'cleaning stain' on the upper part of the interface.
Step 230: responding to the shooting operation of the user on the preview image to obtain a target image; and the target image is an image obtained by performing image processing on the defective area.
Optionally, the target image may be directly obtained in response to a shooting operation. Or responding to the shooting operation, and acquiring an original image firstly, wherein the original image comprises a defect area; and then, carrying out image processing on the defective area in the original image to obtain a target image. At this time, the user can compare the original image with the target image, so that the processing of the electronic equipment on the defective area is realized, and the satisfaction degree of the electronic equipment is enhanced.
Further, image restoration can be performed on the defective area in the original image, and image retouching can be performed on the original image to obtain the target image.
For example, in response to a shooting operation, an original image is acquired, a defective area in the original image is subjected to image restoration, and an overall adjustment exposure or a preset filter is adopted to perform image retouching on the original image, so that a target image is obtained and displayed.
Alternatively, based on another manner of starting the mirror shooting mode in step 210, that is, the preview image includes the mirror object and the person object, so that step 230 may specifically include, based on the scene:
responding to shooting operation, and acquiring an original image, wherein the original image comprises a defect area and a person object;
and performing image restoration on the defective area and the person object in the original image, and performing image retouching on the original image and/or the person object to obtain a target image.
For example, in response to the shooting operation, an original image is acquired, image restoration is performed on a defective region and a human object (for example, skin defects such as acne on the human face, red blood streak and the like) in the original image, and an overall adjustment exposure or image retouching is performed on the original image and/or the human object by using a preset filter to obtain and display a target image.
It should be noted that the image restoration according to the embodiment of the present invention may include at least one of the following: image stain repair, image restoration repair, and image filling repair.
In summary, in the embodiment of the present invention, the mirror plane shooting mode is started when the preview image to be shot is identified to include the mirror plane object; in the mirror shooting mode, a defective area in the mirror object is identified, and a target image obtained by performing image processing on the defective area is obtained in response to a shooting operation of a user on the preview image. Therefore, the trouble that the dirt degree of the mirror surface influences the definition of a shot image when a user shoots the mirror surface by using the electronic equipment is solved, so that a clear and high-quality image (such as a person object shot by the user) is provided. On the one hand, scenes of portrait shooting are enriched, and the user photographing experience is improved. On the other hand, in a scene of shooting by using a mirror object, a rear camera of the electronic device is generally used for self-shooting, and pixels of the rear camera are generally higher than those of the front camera, so that the utilization rate of the rear camera is improved, and meanwhile, the definition of a shot image is improved to a certain extent.
In order to facilitate understanding of the image capturing method provided by the embodiment of the present invention, based on the above, the image capturing method provided by the embodiment of the present invention is exemplified below by taking the image of the human object through the mirror surface as an example.
Fig. 5 is a flowchart of a method for implementing image capture according to an embodiment of the present invention.
As shown in fig. 5, the method may include steps 510-560, as follows:
step 510, acquiring a preview image to be shot, and determining whether the preview image comprises a mirror surface object; or whether a mirror object and a character object are included.
The method comprises the steps of obtaining a preview image to be shot, and projecting first light rays to a plurality of objects corresponding to the preview image; receiving second light reflected by at least one object in the plurality of objects; and determining the target light rays meeting the preset conditions in each second light ray, and determining the object corresponding to the target light rays as a mirror surface object. And identifying whether the preview image includes character features (e.g., facial features).
If the mirror surface object is determined to be included in the preview image, go to step 520;
if the preview image includes the mirror surface object and the character object, executing step 520;
if the mirror surface object is determined not to be included in the preview image; or, the mirror shooting mode is not started for the mirror object and the person object.
In step 520, when it is determined that the preview image includes the mirror surface object or includes the mirror surface object and the person object, the mirror surface photographing mode is turned on.
Step 530, flaw identification is carried out on the mirror surface object, and a flaw area on the mirror surface object is determined.
Step 540, the flaw area in the mirror object is displayed differently in the preview image.
Here, when defective areas on the mirror surface object are identified, the defective areas may be displayed differently in the preview image for prompting the user that the mirror surface includes the defective areas.
Based on this, when the mirror shooting mode is turned on, the interface where the preview image is located includes the prompt information. The prompt message may include the first prompt message and/or the second prompt message. Further, the first prompt message may be used to prompt the user to turn off the mirror shooting mode; the second prompting information can be used for prompting the user to clear the flaw area in the mirror surface object when the flaw area is detected to be included in the mirror surface object.
At this time, if a preset operation of turning off the mirror shooting mode by the user is received, step 560 is executed.
If the user's shooting operation for the preview image is received, step 550 is executed.
And step 550, responding to the shooting operation of the user on the preview image to obtain the target image.
Acquiring an original image in response to a shooting operation, wherein the original image comprises a defective area and a human object; and performing image restoration on the defective area and the person object in the original image, and performing image retouching on the original image and/or the person object to obtain a target image.
For example, in response to the shooting operation, an original image is acquired, image restoration is performed on a defective region and a human object (for example, skin defects such as acne on the human face, red blood streak and the like) in the original image, and an overall adjustment exposure or image retouching is performed on the original image and/or the human object by using a preset filter to obtain and display a target image.
It should be noted that the image restoration according to the embodiment of the present invention may include at least one of the following: image stain repair, image restoration repair, and image filling repair.
And step 560, in response to a preset operation of closing the mirror shooting mode by the user, canceling the mark for distinguishing and displaying the defective area in the preview page, and obtaining a normal image, wherein the normal image comprises the defective area.
To sum up, the embodiment of the present invention provides a mirror shooting mode, which relates to a new shooting function definition and effect definition, wherein the mirror shooting mode in the embodiment of the present invention can be one of portrait shooting modes, and is mainly used for shooting a portrait, and the effect of the portrait mode can be superimposed, so that a user can not only shoot people in the portrait mode, but also shoot himself in the portrait mode, and the use scene of the portrait shooting mode is widened, so that the user can obtain clear images at any time and any place at will.
Therefore, based on the image capturing method, the embodiment of the invention further provides an image capturing device, which is specifically shown as follows.
Fig. 6 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present invention.
As shown in fig. 6, the image photographing device 60 may include:
the trigger module 601 is configured to start a mirror shooting mode when it is recognized that the preview image to be shot includes a mirror object;
an identification module 602 for identifying a flaw area in a specular object;
the processing module 603 is configured to obtain a target image in response to a shooting operation of a user on the preview image; the target image is an image obtained by performing image processing on the defective area.
The triggering module 601 in the embodiment of the present invention may be specifically configured to acquire a preview image; projecting first light rays to a plurality of objects corresponding to the preview image; receiving second light reflected by at least one object in the plurality of objects; and determining the target light rays meeting the preset conditions in each second light ray, and determining the object corresponding to the target light rays as a mirror surface object.
In a possible embodiment, the identification module 602 is specifically configured to identify a defect area in the mirror object and to display the defect area in the preview image differently. .
Here, when the mirror shooting mode is turned on, the interface where the preview image is located includes the prompt information; the prompting information is used for prompting a user to clear the flaw area in the mirror surface object under the condition that the flaw area is detected to be included in the mirror surface object.
In another possible embodiment, the processing module 603 in the embodiment of the present invention may be specifically configured to, in response to a shooting operation, obtain an original image, where the original image includes a defective area; and carrying out image processing on the defective area in the original image to obtain a target image.
Further, the processing module 603 may be specifically configured to perform image restoration on a defective area in the original image, and perform image retouching on the original image to obtain the target image.
In yet another possible embodiment, the triggering module 601 in the embodiment of the present invention may be specifically configured to, in a case that it is recognized that the preview image to be captured includes the mirror surface object and the person object, turn on the mirror surface capturing mode.
Based on this, the processing module 603 in the embodiment of the present invention may be specifically configured to, in response to a shooting operation, obtain an original image, where the original image includes a defective region and a human object; and performing image restoration on the defective area and the person object in the original image, and performing image retouching on the original image and/or the person object to obtain a target image.
It should be noted that the image restoration according to the embodiment of the present invention includes at least one of the following: image stain repair, image restoration repair, and image filling repair.
Therefore, in the embodiment of the invention, the mirror shooting mode is started under the condition that the mirror object is identified to be included in the preview image to be shot; in the mirror shooting mode, a flaw area in the mirror object is distinguished and displayed in the preview image, and a target image obtained after image processing is performed on the flaw area is obtained in response to a shooting operation of a user on the preview image. Therefore, the trouble that the dirt degree of the mirror surface influences the definition of a shot image when a user shoots the mirror surface by using the electronic equipment is solved, so that a clear and high-quality image (such as a person object shot by the user) is provided. On the one hand, scenes of portrait shooting are enriched, and the user photographing experience is improved. On the other hand, in a scene of shooting by using a mirror object, a rear camera of the electronic device is generally used for self-shooting, and pixels of the rear camera are generally higher than those of the front camera, so that the utilization rate of the rear camera is improved, and meanwhile, the definition of a shot image is improved to a certain extent.
In addition, an embodiment of the present invention further provides a hardware structure diagram of an electronic device, which is specifically shown in fig. 7.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 710 may be configured to, in case that it is recognized that the preview image to be photographed includes the mirror surface object, turn on the mirror surface photographing mode; identifying a flaw area in the specular object;
responding to the shooting operation of the user on the preview image to obtain a target image; and the target image is an image obtained by performing image processing on the defective area.
Therefore, the trouble that the dirt degree of the mirror surface influences the definition of a shot image when a user shoots the mirror surface by using the electronic equipment is solved, so that a clear and high-quality image (such as a person object shot by the user) is provided. On the one hand, scenes of portrait shooting are enriched, and the user photographing experience is improved. On the other hand, in a scene of shooting by using a mirror object, a rear camera of the electronic device is generally used for self-shooting, and pixels of the rear camera are generally higher than those of the front camera, so that the utilization rate of the rear camera is improved, and meanwhile, the definition of a shot image is improved to a certain extent.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink resources from a base station and then processes the received downlink resources to the processor 710; in addition, the uplink resource is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert an audio resource received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image resources of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 707. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sound and may be capable of processing such sound into an audio asset. The processed audio resources may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless resource port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., resource information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit resources between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs and various resources. The memory 709 may mainly include a storage program area and a storage resource area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage resource area may store resources (such as audio resources, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions and processing resources of the electronic device by running or executing software programs and/or modules stored in the memory 709 and calling resources stored in the memory 709, thereby performing overall monitoring of the electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may further include a power supply 711 (e.g., a battery) for supplying power to various components, and preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when the computer program is executed in a computer, causes the computer to perform the steps of the image capturing method of an embodiment of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the image capturing method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An image shooting method applied to electronic equipment is characterized by comprising the following steps:
starting a mirror shooting mode under the condition that the mirror object is identified to be included in the preview image to be shot;
identifying a defective area in the mirror object, the defective area including a dirty area and/or an area of mirror imperfections in the mirror;
responding to the shooting operation of the user on the preview image to obtain a target image; and the target image is an image obtained by performing image processing on the defective area.
2. The method according to claim 1, wherein the identifying that the preview image to be captured includes a mirror object includes:
acquiring the preview image; projecting first light rays to a plurality of objects corresponding to the preview image;
receiving second light reflected by at least one object in the plurality of objects;
and determining target light rays meeting preset conditions in each second light ray, and determining an object corresponding to the target light rays as a mirror surface object.
3. The method of claim 1, wherein identifying a flaw region in the specular object comprises:
a flaw area in the specular object is identified and the flaw area is differentially displayed in the preview image.
4. The method according to claim 3, wherein in the case of starting the mirror shooting mode, the interface where the preview image is located includes a prompt message; wherein the prompt information is used for prompting the user to clear a defect area when the defect area is detected to be included in the mirror surface object.
5. The method of claim 1, wherein obtaining the target image in response to the user's operation of capturing the preview image comprises:
acquiring an original image in response to the photographing operation, wherein the original image comprises the defect area;
and carrying out image processing on the defective area in the original image to obtain the target image.
6. The method according to claim 1, wherein the mirror shooting mode is turned on, specifically including, in case that it is recognized that the preview image to be shot includes a mirror object;
in the case where it is recognized that the mirror surface object and the person object are included in the preview image to be photographed, the mirror surface photographing mode is turned on.
7. An image capturing apparatus, characterized by comprising:
the trigger module is used for starting a mirror shooting mode under the condition that the preview image to be shot comprises a mirror object;
an identification module for identifying a defect area in the mirror object, the defect area comprising a dirty area and/or an area of mirror imperfections in the mirror;
the processing module is used for responding to shooting operation of a user on the preview image to obtain a target image; and the target image is an image obtained by performing image processing on the defective area.
8. The apparatus according to claim 7, wherein the triggering module is specifically configured to obtain the preview image; projecting first light rays to a plurality of objects corresponding to the preview image;
receiving second light reflected by at least one object in the plurality of objects;
and determining target light rays meeting preset conditions in each second light ray, and determining an object corresponding to the target light rays as a mirror surface object.
9. The apparatus of claim 7, wherein the identification module is specifically configured to identify a defect region in the specular object and to differentially display the defect region in the preview image.
10. The apparatus of claim 7, wherein the processing module is specifically configured to, in response to the capture operation, obtain an original image, wherein the original image includes the defect region;
and carrying out image processing on the defective area in the original image to obtain the target image.
CN201911330514.2A 2019-12-20 2019-12-20 Image shooting method and device, electronic equipment and storage medium Active CN110855897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330514.2A CN110855897B (en) 2019-12-20 2019-12-20 Image shooting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330514.2A CN110855897B (en) 2019-12-20 2019-12-20 Image shooting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110855897A CN110855897A (en) 2020-02-28
CN110855897B true CN110855897B (en) 2021-10-15

Family

ID=69610239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330514.2A Active CN110855897B (en) 2019-12-20 2019-12-20 Image shooting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110855897B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953906A (en) * 2020-08-26 2020-11-17 深圳传音控股股份有限公司 Image processing method, image processing apparatus, and computer-readable storage medium
CN112468722B (en) * 2020-11-19 2022-05-06 惠州Tcl移动通信有限公司 Shooting method, device, equipment and storage medium
CN114125276B (en) * 2021-11-11 2024-05-10 维沃移动通信有限公司 Image processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872373A (en) * 2016-03-31 2016-08-17 北京奇虎科技有限公司 Automatic defogging photographing method, device and equipment
CN107563977A (en) * 2017-08-28 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8976160B2 (en) * 2005-03-01 2015-03-10 Eyesmatch Ltd User interface and authentication for a virtual mirror
US9524540B2 (en) * 2014-07-22 2016-12-20 Adobe Systems Incorporated Techniques for automatically correcting groups of images
US10127634B2 (en) * 2015-04-08 2018-11-13 Google Llc Image editing and repair
CN105959543B (en) * 2016-05-19 2019-04-30 努比亚技术有限公司 It is a kind of to remove reflective filming apparatus and method
JP6697680B2 (en) * 2016-08-17 2020-05-27 ソニー株式会社 Signal processing device, signal processing method, and program
CN106327445A (en) * 2016-08-24 2017-01-11 王忠民 Image processing method and device, photographic equipment and use method thereof
CN107862663A (en) * 2017-11-09 2018-03-30 广东欧珀移动通信有限公司 Image processing method, device, readable storage medium storing program for executing and computer equipment
CN108063884B (en) * 2017-11-15 2021-02-26 维沃移动通信有限公司 Image processing method and mobile terminal
CN207968553U (en) * 2017-11-23 2018-10-12 维沃移动通信有限公司 A kind of mobile terminal
CN108053377A (en) * 2017-12-11 2018-05-18 北京小米移动软件有限公司 Image processing method and equipment
CN108076290B (en) * 2017-12-20 2021-01-22 维沃移动通信有限公司 Image processing method and mobile terminal
CN108259756B (en) * 2018-03-14 2020-07-28 维沃移动通信有限公司 Image shooting method and mobile terminal
CN110099217A (en) * 2019-05-31 2019-08-06 努比亚技术有限公司 A kind of image capturing method based on TOF technology, mobile terminal and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872373A (en) * 2016-03-31 2016-08-17 北京奇虎科技有限公司 Automatic defogging photographing method, device and equipment
CN107563977A (en) * 2017-08-28 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN110855897A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110913132B (en) Object tracking method and electronic equipment
CN108989678B (en) Image processing method and mobile terminal
CN110557575B (en) Method for eliminating glare and electronic equipment
CN111263071B (en) Shooting method and electronic equipment
CN110365907B (en) Photographing method and device and electronic equipment
CN108345845B (en) Image sensor, lens module, mobile terminal, face recognition method and device
CN110992327A (en) Lens contamination state detection method and device, terminal and storage medium
CN110855897B (en) Image shooting method and device, electronic equipment and storage medium
CN108307106B (en) Image processing method and device and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN111050069B (en) Shooting method and electronic equipment
CN109241832B (en) Face living body detection method and terminal equipment
CN109361874B (en) Photographing method and terminal
CN108459788B (en) Picture display method and terminal
CN111246102A (en) Shooting method, shooting device, electronic equipment and storage medium
CN109525837B (en) Image generation method and mobile terminal
CN109246351B (en) Composition method and terminal equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN111401463A (en) Method for outputting detection result, electronic device, and medium
CN110868546B (en) Shooting method and electronic equipment
CN109639981B (en) Image shooting method and mobile terminal
CN110933307A (en) Electronic equipment and image processing method
CN110881105A (en) Shooting method and electronic equipment
CN108243489B (en) Photographing control method and mobile terminal
CN108259756B (en) Image shooting method and mobile terminal

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