CN112367464A - Image output method and device and electronic equipment - Google Patents

Image output method and device and electronic equipment Download PDF

Info

Publication number
CN112367464A
CN112367464A CN202011193956.XA CN202011193956A CN112367464A CN 112367464 A CN112367464 A CN 112367464A CN 202011193956 A CN202011193956 A CN 202011193956A CN 112367464 A CN112367464 A CN 112367464A
Authority
CN
China
Prior art keywords
image
glare phenomenon
shooting
acquiring
glare
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011193956.XA
Other languages
Chinese (zh)
Inventor
赵盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202011193956.XA priority Critical patent/CN112367464A/en
Publication of CN112367464A publication Critical patent/CN112367464A/en
Pending legal-status Critical Current

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/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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming

Abstract

The application discloses an image output method, an image output device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: under the condition that a corresponding preview image of a shot object at a first shooting angle has a glare phenomenon, acquiring a corresponding first image of the shot object at the first shooting angle; acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not include the first shooting angle; acquiring a second image without the glare phenomenon in the initial image; and performing image information replacement processing on the first image based on the second image, and outputting a target image without the glare phenomenon. The method and the device can effectively improve the glare phenomenon, and improve the quality of the image shot by the user and the shooting experience of the user.

Description

Image output method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an image output method and device and electronic equipment.
Background
Glare refers to the condition of vision in the field of view due to unfavorable luminance distributions, or extreme luminance contrast in space or time, so as to cause visual discomfort and reduce the visibility of objects.
As the frequency of camera applications in daily electronic devices is higher and higher, some users usually take some lens glare related considerations when evaluating the imaging quality of the camera. For users, glare may cause image cloudiness, reduce the contrast of the image, generate odd speckles, and the like, and reduce the quality of the photographed image and the user's experience of photographing.
Disclosure of Invention
The embodiment of the application aims to provide an image output method, an image output device and electronic equipment, and the problems that in the prior art, the quality of a shot image is reduced and the user experience of shooting is reduced due to the fact that the shot image has a glare phenomenon are solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image output method, including:
under the condition that a corresponding preview image of a shot object at a first shooting angle has a glare phenomenon, acquiring a corresponding first image of the shot object at the first shooting angle;
acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not include the first shooting angle;
acquiring a second image without the glare phenomenon in the initial image;
and performing image information replacement processing on the first image based on the second image, and outputting a target image without the glare phenomenon.
In a second aspect, an embodiment of the present application provides an image output apparatus, including:
the device comprises a first image acquisition module, a second image acquisition module and a display module, wherein the first image acquisition module is used for acquiring a first image corresponding to a shooting object at a first shooting angle under the condition that a corresponding preview image of the shooting object at the first shooting angle has a glare phenomenon;
the initial image acquisition module is used for acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not include the first shooting angle;
the second image acquisition module is used for acquiring a second image without the glare phenomenon in the initial image;
and the target image output module is used for carrying out image information replacement processing on the first image based on the second image and outputting a target image without the glare phenomenon.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the image output method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the image output method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the image output method according to the first aspect.
In the embodiment of the application, when the corresponding preview image of the photographic subject at the first shooting angle has the glare phenomenon, the first image corresponding to the photographic subject at the first shooting angle is acquired, the initial image corresponding to the photographic subject at least two shooting angles is acquired, the at least two shooting angles do not include the first shooting angle, the second image without the glare phenomenon in the initial image is acquired, the image information replacement processing is performed on the first image based on the second image, and the target image without the glare phenomenon is output. According to the embodiment of the application, the images with the glare phenomenon are processed by combining the images with the plurality of shooting angles, so that the images with the improved glare can be obtained, the quality of the images shot by a user can be effectively improved, and the shooting experience of the user is further improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an image output method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating the presence and absence of a glare phenomenon according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an image output apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image output method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an image output method provided in an embodiment of the present application is shown, and as shown in fig. 1, the image output method may specifically include the following steps:
step 101: the method comprises the steps of acquiring a first image corresponding to a shooting object at a first shooting angle under the condition that a glare phenomenon exists in a preview image corresponding to the shooting object at the first shooting angle.
The embodiment of the application can be applied to the replacement of image information of a plurality of images with multiple shooting angles and a basic frame image with a glare phenomenon so as to output a scene of an image with improved glare.
The first shooting angle is a shooting angle corresponding to the current position of the camera when the camera is used for shooting the image of the shooting object.
Before a user starts a camera to shoot, whether the user turns on an option for improving the glare mode is judged, and it can be understood that when the user shoots an image, part of the user may need to shoot some images with artistic feelings through the glare mode, and at the moment, the user can turn off the option for improving the glare mode.
When the glare improving mode is determined to be started by the user, whether the glare phenomenon exists in the preview image can be determined through the preview image corresponding to the shooting object at the first shooting angle, if the glare phenomenon exists, the shooting object can be shot by the user to obtain a first image corresponding to the shooting object at the first shooting angle and having the glare phenomenon, the first image is used as a basic frame, and the subsequently obtained image can process the basic frame.
After the first image corresponding to the shooting object at the first shooting angle is acquired, step 102 is executed.
Step 102: and acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not comprise the first shooting angle.
The initial image is an image obtained by image-capturing the subject at least two capturing angles, which, as will be understood, does not include the first capturing angle mentioned in step 101 above.
In this embodiment, in the case that it is detected that the image captured at the first capturing angle has the glare phenomenon, the camera may be controlled to move to adjust the capturing angle of the camera, move the camera to at least two capturing angles, and capture an image of the object at the at least two capturing angles to obtain initial images of the object at the at least two capturing angles. In particular, the detailed description may be combined with the following specific implementations.
In a specific implementation manner of the present application, the step 102 may include:
substep A1: based on the micro-cloud deck, the camera is controlled to move to the at least two shooting angles respectively.
Substep A2: and acquiring an initial image corresponding to the shooting object at each shooting angle.
In this embodiment, the micro cloud platform refers to a device that is pre-installed in the electronic device and is used for controlling the movement of the camera, and specifically, the micro cloud platform is movable, and the movement of the camera is driven by controlling the movement of the micro cloud platform, so as to adjust the shooting angle of the camera.
After the first image of the shooting object with the glare phenomenon at the first shooting angle is acquired, the camera can be controlled to move to at least two shooting angles respectively based on the micro-cloud platform, and at each photographing angle, an initial image corresponding to the subject is acquired, for example, at least two photographing angles including an angle 1, an angle 2, and an angle 3, and first, the camera can be controlled to move to the angle 1, and image shooting is carried out on the shot object under the angle 1, so as to obtain an initial image corresponding to the shot object under the angle 1, then, the camera is controlled to move to an angle 2, and the image of the shooting object is shot under the angle 2, to obtain an initial image corresponding to the shot object under the angle 2, and finally, the camera is controlled to move to the angle 3, and shooting the image of the shot object at the angle 3 to obtain an initial image corresponding to the shot object at the angle 3.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
According to the embodiment of the application, the micro cloud platform is installed in the electronic equipment in advance, the camera is controlled to move through the micro cloud platform, the camera can shoot images at different shooting angles, the shooting angle does not need to be manually adjusted by a user, the operation flow of shooting angle adjustment is reduced, and the user experience is improved.
After acquiring initial images corresponding to the photographic subject at least two photographing angles, step 103 is performed.
Step 103: and acquiring a second image without the glare phenomenon in the initial image.
The second image is an image screened from the initial image without the glare phenomenon.
After the initial images corresponding to the photographic subject at least two photographing angles are acquired, the initial images may be screened in combination with the region where the glare phenomenon is located in the first image, so as to acquire the second image without the glare phenomenon in the initial images, and specifically, the detailed description may be described in combination with the following specific implementation manner.
In another specific implementation manner of the present application, the step 103 may include:
substep B1: and acquiring a first area with a glare phenomenon in the first image.
In this embodiment, the first area refers to an area in the first image where the glare phenomenon exists, and it can be understood that there may be one or more areas in the first image where the glare phenomenon exists, and specifically, the area may be determined according to business requirements, and this embodiment is not limited thereto.
After the first image is acquired, a first region in the first image where the glare phenomenon exists may be acquired, and specifically, a region in the first image where the glare phenomenon exists, that is, the first region may be detected through a glare detection algorithm and a contrast algorithm, as shown in the left side of fig. 2, the image obtained by shooting is an image 1, and the region in the image 1 where the glare phenomenon exists is detected as a region 3.
After the first region where the glare phenomenon exists in the first image is acquired, sub-step B2 is performed.
Substep B2: and screening the second image from the initial image according to the first region, wherein no glare phenomenon exists in a second region matched with the first region in the second image.
The second region refers to a region in the second image that matches the first region in the first image.
After the initial images of a plurality of shooting angles are acquired, a second image can be screened from the initial images, and the second image does not have the glare phenomenon in a second area matched with the first area of the first image. It is understood that the number of the second images obtained may be one image or a plurality of images, for example, when the first region is a region, one image without glare phenomenon in the second region matching the first region may be screened from the plurality of initial images to be used as the second image; when the first region is a plurality of regions, the first region may be respectively marked as region 1, region 2, etc., one image 1 without the glare phenomenon in the region matching with region 1 may be selected from the plurality of initial images, and then one image 2 without the glare phenomenon in the region matching with region 2 may be selected from the plurality of initial images, and at this time, image 1, image 2, etc. may be used as the second image.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
The embodiment of the application shoots images at multiple angles, and selects the image which is not glare phenomenon in the second area matched with the first area to carry out subsequent adjustment process on the basic frame image (namely the first image), thereby achieving the purpose of effectively improving the glare phenomenon.
After acquiring the second image without the glare phenomenon in the initial image, step 104 is performed.
Step 104: and performing image information replacement processing on the first image based on the second image, and outputting a target image without the glare phenomenon.
The target image is an image which is output after the image information with the glare phenomenon in the first image is replaced by the image information of the second image.
After acquiring the second image in which the glare phenomenon does not exist in the initial image, the first image may be subjected to image information replacement processing based on the second image to output the target image. In particular, the detailed description may be combined with the following specific implementations.
In another specific implementation manner of the present application, the step 104 may include:
substep C1: acquiring first image information in the second image and positioned in the second area
In this embodiment, the first image information refers to image information located in the second area in the second image.
After the second image is acquired, the first image information located in the second region in the second image may be acquired, and then, sub-step C2 is performed.
Substep C2: and replacing second image information positioned in the first area in the first image based on the first image information to obtain the target image.
Substep C3: and outputting the target image.
The second image information refers to image information located within the first area in the first image.
After the first image information is acquired, the second image information may be replaced based on the first image information, so that the target image with the improved glare phenomenon may be output, for example, as shown in fig. 2, in the right diagram of fig. 2, the acquired second image is image 2, the region of image 2 corresponding to the region 3 with the glare phenomenon in the left image 1 is region 4, and the glare phenomenon does not exist in the region 4, at this time, the image information in the region 4 may be replaced with the image information in the region 3 in the image 1, so that the target image may be obtained.
According to the embodiment of the application, the glare phenomenon in the image can be improved by replacing the image information of the area where the glare phenomenon is located, the operation mode is simple and effective, the glare phenomenon of the shot image can be improved, the quality of the image shot by the user can be effectively improved, and the shooting experience of the user is further improved.
In this application, a shooting angle at the next moment may also be predicted according to a motion trajectory of the glare area when the glare area changes in the preview image, so as to adjust the shooting angle of the camera in time to output an image without glare, and specifically, the following specific implementation manner may be combined for detailed description.
In another specific implementation manner of the present application, before the step 101, the method may further include:
step C1: and under the condition that the preview images have the glare phenomenon, determining whether the regions of the glare phenomenon in the preview images are changed or not through the plurality of preview images.
In this embodiment, in the case that it is determined that the glare phenomenon exists in the preview image, whether the region of the glare phenomenon in the plurality of preview images changes may be determined through the plurality of preview images, and specifically, a previous frame preview image and a subsequent frame preview image may be compared to determine whether the region of the glare phenomenon in the preview image changes.
After determining that the glare phenomenon changes in the regions of the plurality of preview images, step C2 is performed.
Step C2: and under the condition that the regions of the glare phenomenon in the plurality of preview images are determined to be changed, obtaining a motion track corresponding to the glare phenomenon according to the plurality of preview images.
After determining that the area where the glare phenomenon is located in the preview image changes, the motion track of the area where the glare phenomenon is located, that is, the change track corresponding to the glare phenomenon, can be obtained according to the plurality of preview images.
After the motion trajectory of the area where the glare phenomenon is located is obtained, step C3 is performed.
Step C3: and acquiring a third area where the glare phenomenon is positioned in the preview image at the current moment.
After the motion trajectory corresponding to the glare phenomenon is obtained, a third area in the preview image at the current time may be obtained, and then step C4 is performed.
Step C4: and determining a target shooting angle corresponding to the camera according to the motion track and the third area.
After the third area is obtained, the target shooting angle corresponding to the camera can be determined according to the motion track and the third area, that is, according to the motion track and the third area, it is predicted which shooting angle the camera can shoot at to obtain an image without a glare phenomenon, that is, the shooting angle is used as the target shooting angle.
After the target shooting angle corresponding to the camera is determined, step C5 is executed.
Step C5: and controlling the camera to move to the target shooting angle, and shooting to obtain a third image which corresponds to the shot object and does not have the glare phenomenon.
After the target shooting angle corresponding to the camera is determined, the camera can be controlled to move to the target shooting angle based on the micro cloud platform, and the shooting object is shot at the target shooting angle, so that an image without glare, namely a third image, can be obtained.
According to the embodiment of the application, by adding logic of glare track prediction, the corresponding glare position and degree when the micro cloud platform is moved are calculated according to the movement direction of glare during preview, and the purpose of controlling the rotation of the micro cloud platform to eliminate the glare phenomenon in a high-precision manner can be achieved.
According to the image output method provided by the embodiment of the application, under the condition that the corresponding preview image of the shot object at the first shooting angle has the glare phenomenon, the first image corresponding to the shot object at the first shooting angle is obtained, the initial images corresponding to the shot object at least two shooting angles are obtained, the at least two shooting angles do not include the first shooting angle, the second image without the glare phenomenon in the initial images is obtained, the first image is subjected to image information replacement processing based on the second image, and the target image without the glare phenomenon is output. According to the embodiment of the application, the images with the glare phenomenon are processed by combining the images with the plurality of shooting angles, so that the images with the improved glare can be obtained, the quality of the images shot by a user can be effectively improved, and the shooting experience of the user is further improved.
It should be noted that, in the image output method provided in the embodiment of the present application, the execution subject may be an image output apparatus, or a control module in the image output apparatus for executing the image output method. The embodiment of the present application describes an image output apparatus provided in the embodiment of the present application by taking an image output apparatus as an example to execute an image output method.
Referring to fig. 3, a schematic structural diagram of an image output apparatus provided in an embodiment of the present application is shown, and as shown in fig. 3, the image output apparatus 300 may specifically include the following modules:
a first image obtaining module 310, configured to obtain a first image corresponding to a photographic subject at a first shooting angle when a corresponding preview image of the photographic subject at the first shooting angle has a glare phenomenon;
an initial image obtaining module 320, configured to obtain initial images corresponding to the photographic object at least two photographic angles, where the at least two photographic angles do not include the first photographic angle;
a second image obtaining module 330, configured to obtain a second image without a glare phenomenon in the initial image;
and a target image output module 340, configured to perform image information replacement processing on the first image based on the second image, and output a target image without a glare phenomenon.
Optionally, the initial image acquiring module 320 includes:
the camera control unit is used for controlling the cameras to move to the at least two shooting angles respectively based on the micro-pan-tilt;
and the initial image acquisition unit is used for acquiring an initial image corresponding to the shooting object under each shooting angle.
Optionally, the second image acquiring module 330 includes:
a first region acquisition unit, configured to acquire a first region in the first image where a glare phenomenon exists;
the second image screening unit is used for screening the second image from the initial image according to the first area;
wherein no glare phenomenon exists in a second region of the second image matching the first region.
Optionally, the target image output module 340 includes:
an image information acquiring unit, configured to acquire first image information located in the second region in the second image;
a target image obtaining unit, configured to replace, based on the first image information, second image information located in the first region in the first image to obtain the target image;
and the target image output unit is used for outputting the target image.
Optionally, the method further comprises:
the glare area determining module is used for determining whether the area of the glare phenomenon in the preview images changes or not through the preview images under the condition that the preview images have the glare phenomenon;
a motion track determining module, configured to determine a motion track corresponding to a glare phenomenon according to the multiple preview images when it is determined that a region of the glare phenomenon in the multiple preview images changes;
the third area acquisition module is used for acquiring a third area where the glare phenomenon is located in the preview image at the current moment;
the target angle determining module is used for determining a target shooting angle corresponding to the camera according to the motion track and the third area;
and the third image acquisition module is used for controlling the camera to move to the target shooting angle and shooting to obtain a third image which corresponds to the shot object and does not have the glare phenomenon.
The image output device provided by the embodiment of the application acquires a first image corresponding to a shooting object at a first shooting angle under the condition that a corresponding preview image of the shooting object at the first shooting angle has a glare phenomenon, acquires initial images corresponding to the shooting object at least two shooting angles, at least two shooting angles do not include the first shooting angle, acquires a second image without the glare phenomenon in the initial images, performs image information replacement processing on the first image based on the second image, and outputs a target image without the glare phenomenon. According to the embodiment of the application, the images with the glare phenomenon are processed by combining the images with the plurality of shooting angles, so that the images with the improved glare can be obtained, the quality of the images shot by a user can be effectively improved, and the shooting experience of the user is further improved.
The image output device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image output apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image output device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing embodiment of the image output method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The input unit 504 is configured to acquire a first image corresponding to a photographic subject at a first shooting angle when a glare phenomenon exists in a preview image corresponding to the photographic subject at the first shooting angle; acquiring initial images corresponding to the shot object under at least two shooting angles;
a processor 510 for obtaining a second image without a glare phenomenon in the initial image; and performing image information replacement processing on the first image based on the second image, and outputting a target image without the glare phenomenon.
According to the embodiment of the application, the image information replacement processing is carried out on the image with the glare phenomenon by combining the images of a plurality of shooting angles, so that an image with improved glare can be obtained, the quality of the image shot by a user can be effectively improved, and the shooting experience of the user is further improved.
Optionally, the processor 510 is further configured to control the cameras to move to the at least two shooting angles respectively based on the micro-pan-tilt;
the input unit 504 is further configured to acquire an initial image corresponding to the photographic subject at each of the shooting angles.
Optionally, the processor 510 is further configured to obtain a first region in the first image where the glare phenomenon exists; screening the second image from the initial image according to the first area; wherein no glare phenomenon exists in a second region of the second image matching the first region.
Optionally, the processor 510 is further configured to obtain first image information in the second image, where the first image information is located in the second region; replacing second image information located in the first area in the first image based on the first image information to obtain the target image; and outputting the target image.
Optionally, the processor 510 is further configured to, in a case that the preview image has a glare phenomenon, determine whether a region of the glare phenomenon in the plurality of preview images changes through the plurality of preview images; under the condition that the region of the glare phenomenon in the plurality of preview images is determined to be changed, determining a motion track corresponding to the glare phenomenon according to the plurality of preview images; acquiring a third area where the glare phenomenon is located in the preview image at the current moment; determining a target shooting angle corresponding to the camera according to the motion track and the third area; and controlling the camera to move to the target shooting angle, and shooting to obtain a third image which corresponds to the shot object and does not have the glare phenomenon.
According to the embodiment of the application, the shooting angle is calculated according to the movement direction of the glare during previewing, and the purpose of controlling rotation and eliminating the glare with high precision is achieved.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the image output method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned embodiment of the image output method, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An image output method, comprising:
under the condition that a corresponding preview image of a shot object at a first shooting angle has a glare phenomenon, acquiring a corresponding first image of the shot object at the first shooting angle;
acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not include the first shooting angle;
acquiring a second image without the glare phenomenon in the initial image;
and performing image information replacement processing on the first image based on the second image, and outputting a target image without the glare phenomenon.
2. The method according to claim 1, wherein the acquiring initial images of the photographic subject corresponding to at least two photographic angles comprises:
controlling the camera to move to the at least two shooting angles respectively based on the micro-tripod head;
and acquiring an initial image corresponding to the shooting object at each shooting angle.
3. The method of claim 1, wherein said obtaining a second image in the initial image without a glare phenomenon comprises:
acquiring a first area with a glare phenomenon in the first image;
screening the second image from the initial image according to the first area;
wherein no glare phenomenon exists in a second region of the second image matching the first region.
4. The method according to claim 3, wherein the performing image information replacement processing on the first image based on the second image and outputting a target image without a glare phenomenon includes:
acquiring first image information in the second image and positioned in the second area;
replacing second image information located in the first area in the first image based on the first image information to obtain the target image;
and outputting the target image.
5. The method according to claim 1, wherein before the acquiring the first image of the photographic subject corresponding to the glare phenomenon at the first photographing angle, the method further comprises:
under the condition that the preview images have the glare phenomenon, determining whether the regions of the glare phenomenon in the preview images are changed or not through the plurality of preview images;
under the condition that the region of the glare phenomenon in the plurality of preview images is determined to be changed, determining a motion track corresponding to the glare phenomenon according to the plurality of preview images;
acquiring a third area where the glare phenomenon is located in the preview image at the current moment;
determining a target shooting angle corresponding to the camera according to the motion track and the third area;
and controlling the camera to move to the target shooting angle, and shooting to obtain a third image which corresponds to the shot object and does not have the glare phenomenon.
6. An image output apparatus, characterized by comprising:
the device comprises a first image acquisition module, a second image acquisition module and a display module, wherein the first image acquisition module is used for acquiring a first image corresponding to a shooting object at a first shooting angle under the condition that a corresponding preview image of the shooting object at the first shooting angle has a glare phenomenon;
the initial image acquisition module is used for acquiring initial images corresponding to the shooting object under at least two shooting angles, wherein the at least two shooting angles do not include the first shooting angle;
the second image acquisition module is used for acquiring a second image without the glare phenomenon in the initial image;
and the target image output module is used for carrying out image information replacement processing on the first image based on the second image and outputting a target image without the glare phenomenon.
7. The apparatus of claim 6, wherein the initial image acquisition module comprises:
the camera control unit is used for controlling the cameras to move to the at least two shooting angles respectively based on the micro-pan-tilt;
and the initial image acquisition unit is used for acquiring an initial image corresponding to the shooting object under each shooting angle.
8. The apparatus of claim 6, wherein the second image acquisition module comprises:
a first region acquisition unit, configured to acquire a first region in the first image where a glare phenomenon exists;
the second image screening unit is used for screening the second image from the initial image according to the first area;
wherein no glare phenomenon exists in a second region of the second image matching the first region.
9. The apparatus of claim 8, wherein the target image output module comprises:
an image information acquiring unit, configured to acquire first image information located in the second region in the second image;
a target image obtaining unit, configured to replace, based on the first image information, second image information located in the first region in the first image to obtain the target image;
and the target image output unit is used for outputting the target image.
10. The apparatus of claim 6, further comprising:
the glare area determining module is used for determining whether the area of the glare phenomenon in the preview images changes or not through the preview images under the condition that the preview images have the glare phenomenon;
a motion track determining module, configured to determine a motion track corresponding to a glare phenomenon according to the multiple preview images when it is determined that a region of the glare phenomenon in the multiple preview images changes;
the third area acquisition module is used for acquiring a third area where the glare phenomenon is located in the preview image at the current moment;
the target angle determining module is used for determining a target shooting angle corresponding to the camera according to the motion track and the third area;
and the third image acquisition module is used for controlling the camera to move to the target shooting angle and shooting to obtain a third image which corresponds to the shot object and does not have the glare phenomenon.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the image output method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the image output method according to any one of claims 1 to 5.
CN202011193956.XA 2020-10-30 2020-10-30 Image output method and device and electronic equipment Pending CN112367464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011193956.XA CN112367464A (en) 2020-10-30 2020-10-30 Image output method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011193956.XA CN112367464A (en) 2020-10-30 2020-10-30 Image output method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112367464A true CN112367464A (en) 2021-02-12

Family

ID=74513138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011193956.XA Pending CN112367464A (en) 2020-10-30 2020-10-30 Image output method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112367464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116051450A (en) * 2022-08-15 2023-05-02 荣耀终端有限公司 Glare information acquisition method, device, chip, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331511A (en) * 2016-11-16 2017-01-11 广东欧珀移动通信有限公司 Method and device of tracking shoot by intelligent terminal
CN108781261A (en) * 2016-06-09 2018-11-09 谷歌有限责任公司 Photo is shot by dysopia
US10187580B1 (en) * 2013-11-05 2019-01-22 Dragonfly Innovations Inc. Action camera system for unmanned aerial vehicle
CN110557575A (en) * 2019-08-28 2019-12-10 维沃移动通信有限公司 method for eliminating glare and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10187580B1 (en) * 2013-11-05 2019-01-22 Dragonfly Innovations Inc. Action camera system for unmanned aerial vehicle
CN108781261A (en) * 2016-06-09 2018-11-09 谷歌有限责任公司 Photo is shot by dysopia
CN106331511A (en) * 2016-11-16 2017-01-11 广东欧珀移动通信有限公司 Method and device of tracking shoot by intelligent terminal
CN110557575A (en) * 2019-08-28 2019-12-10 维沃移动通信有限公司 method for eliminating glare and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116051450A (en) * 2022-08-15 2023-05-02 荣耀终端有限公司 Glare information acquisition method, device, chip, electronic equipment and medium
CN116051450B (en) * 2022-08-15 2023-11-24 荣耀终端有限公司 Glare information acquisition method, device, chip, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112492214B (en) Image shooting method and device, electronic equipment and readable storage medium
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN112637500B (en) Image processing method and device
CN112333382B (en) Shooting method and device and electronic equipment
US20160080654A1 (en) Method of capturing images and image capturing device using the method
CN112954212B (en) Video generation method, device and equipment
CN113596294A (en) Shooting method and device and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112887617A (en) Shooting method and device and electronic equipment
CN112367465B (en) Image output method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113709368A (en) Image display method, device and equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112367464A (en) Image output method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN112153291B (en) Photographing method and electronic equipment
CN111654623B (en) Photographing method and device and electronic equipment
CN114093005A (en) Image processing method and device, electronic equipment and readable storage medium
CN115278047A (en) Shooting method, shooting device, electronic equipment and storage medium
CN112672056A (en) Image processing method and device
CN112399092A (en) Shooting method and device and electronic equipment
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210212

RJ01 Rejection of invention patent application after publication