CN112449115A - Shooting method and device and electronic equipment - Google Patents

Shooting method and device and electronic equipment Download PDF

Info

Publication number
CN112449115A
CN112449115A CN202011340166.XA CN202011340166A CN112449115A CN 112449115 A CN112449115 A CN 112449115A CN 202011340166 A CN202011340166 A CN 202011340166A CN 112449115 A CN112449115 A CN 112449115A
Authority
CN
China
Prior art keywords
glare
camera
preview image
shooting
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011340166.XA
Other languages
Chinese (zh)
Other versions
CN112449115B (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 Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011340166.XA priority Critical patent/CN112449115B/en
Publication of CN112449115A publication Critical patent/CN112449115A/en
Application granted granted Critical
Publication of CN112449115B publication Critical patent/CN112449115B/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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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
    • 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/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera

Landscapes

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

Abstract

The application discloses a shooting method, a shooting device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: acquiring a first preview image through a camera of the electronic equipment; under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera; and shooting by using the adjusted camera to obtain a shot image. Through the bright and clean degree of adjustment camera, can make the camera receive adnexed dirty influence on the camera when acquireing the image, change the formation of image effect, obtain the special effect image that has the light of dazzling, image quality is high.

Description

Shooting method and device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a shooting method, a shooting device and electronic equipment.
Background
With the development of electronic devices, more and more scenes are shot by using the electronic devices, and the demands of people are more and more abundant. In the prior art, a shot image is processed in a software mode, so that a better image display effect, such as a glare effect, can be obtained.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device and electronic equipment, and the problems that in the prior art, a dazzling effect is obtained in a software processing mode, and the display effect is poor are solved.
In a first aspect, an embodiment of the present application provides a shooting method, which is executed by an electronic device, and includes:
acquiring a first preview image through a camera of the electronic equipment;
under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera;
and shooting by using the adjusted camera to obtain a shot image.
In a second aspect, an embodiment of the present application provides a shooting apparatus, executed by an electronic device, including:
the first acquisition module is used for acquiring a first preview image through a camera of the electronic equipment;
the first display module is used for outputting first prompt information under the condition that the current scene is determined to be a dazzling shooting scene according to the first preview picture, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera;
and the second acquisition module is used for shooting by utilizing the adjusted camera to acquire a shot image.
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 method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the 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 method according to the first aspect.
In the embodiment of the application, a first preview image is acquired through a camera of the electronic equipment; under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera; and shooting by using the adjusted camera to obtain a shot image. Through the bright and clean degree of adjustment camera, can make the camera receive adnexed dirty influence on the camera when acquireing the image, change the formation of image effect, obtain the special effect image that has the light of dazzling, image quality is high.
Drawings
Fig. 1 is a flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is a structural diagram of a photographing device provided in an embodiment of the present application;
fig. 3 is a block diagram of an electronic device provided in 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 should be understood that the data so used are interchangeable under appropriate circumstances such that embodiments of the application can be practiced in sequences other than those illustrated or described herein, and the terms "first" and "second" used herein generally do not denote any order, nor do they denote any order, for example, the first object may be one or more. In addition, "and/or" in the specification and the claims means at least one of connected objects, and a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting 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.
Fig. 1 is a flowchart of a shooting method provided in an embodiment of the present application, and as shown in fig. 1, the shooting method, executed by an electronic device, includes:
step 101, acquiring a first preview image through a camera of the electronic equipment.
The first preset image is obtained through a camera of the electronic device, for example, the camera is turned on, a viewing frame is entered, and the first preview image is displayed in the viewing frame.
And 102, outputting first prompt information under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera.
The glare shooting scene may be defined in advance, for example, if there is an area with a luminance value higher than a preset luminance value in the image, it is determined that the image is in the glare shooting scene, or a pre-trained model is used to identify whether the image is in the glare shooting scene, and the model training process may be: training the neural network model by adopting the artificially marked sample image to obtain a trained model, wherein the image in the dazzling shooting scene in the sample image is marked as a first mark, and the image not in the dazzling shooting scene in the sample image is marked as a second mark. And identifying the first preview image through the trained model, and identifying whether the current scene is a dazzling shooting scene.
If the current scene is determined to be a glare shooting scene according to the first preview image, outputting first prompt information to prompt a user to adjust the smoothness of the camera, for example, to smear the camera or to wipe the smear on the camera clean. The first prompt message may further include a position of the camera where the degree of smoothness is adjusted, for example, the upper left corner of the camera is wiped clean, or the upper right corner of the camera is smeared with dirt, or a filter is used to block the left position of the camera, and so on. The first prompt message can be displayed on a display screen of the electronic device, and can also be output in a voice mode.
And 103, shooting by using the adjusted camera to obtain a shot image.
After the smoothness of the camera is adjusted, shooting is carried out by the adjusted camera, and a shot image is obtained. Through the bright and clean degree of adjustment camera, can make the camera receive the dirty influence of adnexed on the camera when acquireing the image, change the formation of image effect, obtain the special effect image that has the light of dazzling. The dazzling image shot by the mode has natural dazzling effect and high image quality.
In this embodiment, a first preview image is obtained through a camera of the electronic device; under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera; and shooting by using the adjusted camera to obtain a shot image. Through the bright and clean degree of adjustment camera, can make the camera receive adnexed dirty influence on the camera when acquireing the image, change the formation of image effect, obtain the special effect image that has the light of dazzling, image quality is high. And moreover, the special effect image with the dazzling light is obtained by adjusting the smoothness of the camera, so that the operation is simple, the special effect image is independent of professional knowledge and is convenient to popularize.
Optionally, when it is determined that the current scene is a glare shooting scene according to the first preview image, after outputting first prompt information, before shooting with the adjusted camera and acquiring a shot image, the method further includes:
acquiring a second preview;
according to the second preview image, determining a glare level of the second preview image;
the shooting is carried out by utilizing the adjusted camera to obtain a shot image, and the method comprises the following steps:
and if the glare grade of the second preview image is a preset target glare grade, shooting by using the adjusted camera to obtain a shot image.
After the electronic equipment outputs the second prompt message, a second preview image is obtained, and the glare level of the second preview image is determined, namely whether the adjustment of the finish degree of the camera by the user is proper is judged according to the glare level of the second preview image. The glare rating may be determined according to one or more of a brightness mean value of the light source area, a shape, a size, a position, and a glare degree value of the light source area in the second preview image. The glare distance value may be determined according to a glare detection algorithm.
For example, when the glare level is determined according to a second preview, if the second preview includes a second light source area, the glare level of the second light source area in the second preview is determined according to a mean luminance value of the second light source area.
If the brightness mean value of the second light source area is in the preset brightness interval, determining the glare grade of the second preview image as the target glare grade; if the brightness mean value of the second light source area is smaller than the lower limit value of the preset brightness interval, determining that the glare grade of the second preview image is smaller than the target glare grade; and if the brightness mean value of the second light source area is larger than the upper limit value of the preset brightness interval, determining that the glare grade of the second preview image is larger than the target glare grade.
Further, the target glare level can be determined according to the brightness mean value and the area shape of the second light source area. For example, if the brightness mean value of the second light source area is located in a preset brightness interval, and the area shape of the second light source area is a sector, a circle, or a radial shape, the glare rating of the second preview image is determined to be the target glare rating; if the brightness mean value of the second light source area is smaller than the lower limit value of the preset brightness interval, and the area shape of the second light source area is fan-shaped, circular or radial, determining that the glare grade of the second preview image is smaller than the target glare grade; and if the brightness mean value of the second light source area is larger than the upper limit value of the preset brightness interval and the area shape of the second light source area is fan-shaped, circular or radial, determining that the glare grade of the second preview image is larger than the target glare grade. For example, the preset glare rating may be three levels and the target glare rating may be a second level. The glare grade of the first level is smaller than that of the second level, the glare grade of the third level is larger than that of the second level, and each glare grade corresponds to different brightness intervals.
And when the glare level of the second preview image is the target glare level, the better shooting condition is met, the adjusted camera is used for shooting to obtain a shot image, and the better image with the glare effect can be obtained.
Optionally, after the determining, according to the second preview image, a glare level of the second preview image, further includes:
if the glare grade of the second preview image is smaller than the target glare grade, outputting second prompt information, wherein the second prompt information is used for prompting a user to increase the smoothness of the camera;
if the glare grade of the second preview image is greater than the target glare grade, displaying third prompt information, wherein the third prompt information is used for prompting a user to reduce the smoothness of the camera;
the shooting is carried out by utilizing the adjusted camera to obtain a shot image, and the method comprises the following steps:
acquiring a third preview image according to the adjusted camera;
and if the glare grade of the third preview image is the target glare grade, shooting by using the adjusted camera to obtain a shot image.
If the brightness mean value of the light source region in the second preview image is located in a preset brightness interval, determining the glare grade of the second preview image as a target glare grade; if the brightness mean value of the light source area in the second preview image is smaller than the lower limit value of the preset brightness interval, determining that the glare grade of the second preview image is smaller than the target glare grade, and outputting second prompt information to inform a user that the camera is wiped cleanly; and if the brightness mean value of the light source area in the second preview image is larger than the upper limit value of the preset brightness interval, determining that the glare grade of the second preview image is larger than the target glare grade, and outputting third prompt information to inform a user that the camera is smeared more dirty so as to increase the dirty degree of the camera.
After the smoothness degree of the camera is adjusted, a third preview image is obtained, the glare grade of the third preview image is determined, if the glare grade of the third preview image is the target glare grade, the adjusted camera is used for shooting to obtain a shot image, and a better image with a glare effect can be obtained.
Optionally, after the glare level of the first preview image is determined to be the target glare level, or after the glare level of the third preview image is determined to be the target glare level, fourth prompt information may be output to the user to prompt the user to select an appropriate shooting angle for shooting, and meanwhile, the fourth prompt information may further include information for adjusting the shooting angle, for example, moving left, moving right, moving up or moving down, and the like.
Optionally, when it is determined that the current scene is a glare shooting scene according to the first preview image, outputting first prompt information, including:
if the first preview image comprises a first light source area, determining that the current scene is a dazzling shooting scene, wherein the mean value of the brightness of the first light source area is greater than a preset brightness value;
and outputting the first prompt information, wherein the first prompt information comprises a position for adjusting the smoothness of the camera.
In this embodiment, it is determined that the current scene is a glare shooting scene according to the first light source area in the first preview image. And under the condition that the brightness mean value of the first light source area is greater than a preset brightness value, the current scene is considered as a glare shooting scene. Further, under the condition that the brightness mean value of the first light source region is adopted for judgment, the shape and the region area of the first light source region can be judged, for example, if the brightness mean value of the first light source region is greater than a preset brightness value and the shape of the first light source region is fan-shaped, circular or radial, the current scene is judged to be a glare shooting scene; or if the brightness mean value of the first light source area is larger than a preset brightness value and the area of the first light source area is larger than a preset area, judging that the current scene is a dazzling shooting scene.
If the current scene is determined to be a glare shooting scene according to the first preview image, outputting first prompt information to prompt a user to adjust the smoothness of the camera, for example, to smear the camera or to wipe the smear on the camera clean. The first prompt message may further include a position of the camera where the degree of smoothness is adjusted, for example, the upper left corner of the camera is wiped clean, or the upper right corner of the camera is smeared with dirt, or a filter is used to block the position at the left side of the camera, and so on. The position for adjusting the smoothness of the camera is prompted to a user, so that the user can be guided to accurately adjust the position on the camera, and the efficiency of adjusting the smoothness is improved.
Further, if there are multiple light source regions in the first preview image, respectively obtaining a brightness average value of each of the multiple light source regions, and if the brightness average value of one light source region is greater than a preset brightness value, determining that the current scene is a glare shooting scene, and outputting first prompt information.
In the shooting method provided by the embodiment of the application, the execution subject can be a shooting device, or a control module used for executing the method of loading shooting in the shooting device. In the embodiment of the present application, a method for executing loading shooting by a shooting device is taken as an example, and a shooting method provided in the embodiment of the present application is described.
As shown in fig. 2, fig. 2 is a structural diagram of a camera according to an embodiment of the present disclosure, where the camera 200 according to the present disclosure is executed by an electronic device, and includes:
a first obtaining module 201, configured to obtain a first preview through a camera of the electronic device;
the first display module 202 is configured to output first prompt information when it is determined that the current scene is a glare shooting scene according to the first preview, where the first prompt information is used to prompt a user to adjust the smoothness of the camera;
and a second obtaining module 203, configured to use the adjusted camera to perform shooting, so as to obtain a shot image.
Optionally, the photographing apparatus 200 further includes:
the third acquisition module is used for acquiring a second preview;
the determining module is used for determining the glare level of the second preview image according to the second preview image;
the second obtaining module 203 is configured to, if the glare rating of the second preview image is a preset target glare rating, shoot by using the adjusted camera, and obtain a shot image.
Optionally, the photographing apparatus 200 further includes:
the second display module is used for outputting second prompt information if the glare grade of the second preview image is smaller than the target glare grade, and the second prompt information is used for prompting a user to increase the smoothness of the camera;
the third display module is used for displaying third prompt information if the glare grade of the second preview image is greater than the target glare grade, wherein the third prompt information is used for prompting a user to reduce the smoothness of the camera;
the second obtaining module 203 includes:
the first obtaining submodule is used for obtaining a third preview picture according to the adjusted camera;
and the second obtaining submodule is used for shooting by using the adjusted camera to obtain a shot image if the glare grade of the third preview image is the target glare grade.
Optionally, the first display module 202 includes:
the determining submodule is used for determining that the current scene is a glare shooting scene if the first preview image comprises a first light source area, and the brightness mean value of the first light source area is greater than a preset brightness value;
and the display submodule is used for outputting the first prompt information, and the first prompt information comprises a position for adjusting the smoothness of the camera.
Optionally, the determining module is configured to determine, if the second preview image includes a second light source area, a glare rating of the second light source area in the second preview image according to a brightness mean of the second light source area.
The shooting device 200 provided in the embodiment of the present application can implement each process implemented by the electronic device in the method embodiment of fig. 1 and achieve the same technical effect, and for avoiding repetition, details are not described here again.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. As shown in fig. 3, an electronic device according to an embodiment of the present application is further provided, which includes a processor 610, a memory 609, and a program or an instruction stored in the memory 609 and capable of running on the processor 610, where the program or the instruction is executed by the processor 610 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 3 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 processor 610 is configured to obtain a first preview through a camera of the electronic device;
under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera;
and shooting by using the adjusted camera to obtain a shot image.
Optionally, the processor 610 is further configured to obtain a second preview image;
according to the second preview image, determining a glare level of the second preview image;
and if the glare grade of the second preview image is a preset target glare grade, shooting by using the adjusted camera to obtain a shot image.
Optionally, the processor 610 is further configured to output a second prompt message if the glare level of the second preview image is less than the target glare level, where the second prompt message is used to prompt the user to increase the smoothness of the camera;
if the glare grade of the second preview image is greater than the target glare grade, displaying third prompt information, wherein the third prompt information is used for prompting a user to reduce the smoothness of the camera;
acquiring a third preview image according to the adjusted camera;
and if the glare grade of the third preview image is the target glare grade, shooting by using the adjusted camera to obtain a shot image.
Optionally, the processor 610 is further configured to determine that the current scene is a glare shooting scene if the first preview image includes a first light source area, where a brightness mean value of the first light source area is greater than a preset brightness value;
and outputting the first prompt information, wherein the first prompt information comprises a position for adjusting the smoothness of the camera.
Optionally, the processor 610 is further configured to, if the second preview image includes a second light source region, determine a glare rating of the second light source region in the second preview image according to a brightness mean of the second light source region.
In the electronic device 600 in this embodiment, a first preview image is acquired by a camera of the electronic device; under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera; and shooting by using the adjusted camera to obtain a shot image. Through the bright and clean degree of adjustment camera, can make the camera receive adnexed dirty influence on the camera when acquireing the image, change the formation of image effect, obtain the special effect image that has the light of dazzling, image quality is high. And moreover, the special effect image with the dazzling light is obtained by adjusting the smoothness of the camera, so that the operation is simple, the special effect image is independent of professional knowledge and is convenient to popularize.
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 shooting method embodiment, 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 shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here 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 (10)

1. A photographing method performed by an electronic device, comprising:
acquiring a first preview image through a camera of the electronic equipment;
under the condition that the current scene is determined to be a glare shooting scene according to the first preview picture, outputting first prompt information, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera;
and shooting by using the adjusted camera to obtain a shot image.
2. The method according to claim 1, wherein after outputting the first prompt message when the current scene is determined to be a glare shooting scene according to the first preview image, before the shooting with the adjusted camera and acquiring the shot image, further comprising:
acquiring a second preview;
according to the second preview image, determining a glare level of the second preview image;
the shooting is carried out by utilizing the adjusted camera to obtain a shot image, and the method comprises the following steps:
and if the glare grade of the second preview image is a preset target glare grade, shooting by using the adjusted camera to obtain a shot image.
3. The method of claim 2, further comprising, after the determining the glare rating for the second preview image from the second preview image:
if the glare grade of the second preview image is smaller than the target glare grade, outputting second prompt information, wherein the second prompt information is used for prompting a user to increase the smoothness of the camera;
if the glare grade of the second preview image is greater than the target glare grade, displaying third prompt information, wherein the third prompt information is used for prompting a user to reduce the smoothness of the camera;
the shooting is carried out by utilizing the adjusted camera to obtain a shot image, and the method comprises the following steps:
acquiring a third preview image according to the adjusted camera;
and if the glare grade of the third preview image is the target glare grade, shooting by using the adjusted camera to obtain a shot image.
4. The method of claim 1, wherein in the case that the current scene is determined to be a glare shooting scene according to the first preview image, outputting first prompt information comprises:
if the first preview image comprises a first light source area, determining that the current scene is a dazzling shooting scene, wherein the mean value of the brightness of the first light source area is greater than a preset brightness value;
and outputting the first prompt information, wherein the first prompt information comprises a position for adjusting the smoothness of the camera.
5. The method of claim 2, wherein the determining the glare rating for the second preview image from the second preview image comprises:
if the second preview image comprises a second light source area, determining the glare rating of the second light source area in the second preview image according to the brightness mean value of the second light source area.
6. A camera implemented by an electronic device, comprising:
the first acquisition module is used for acquiring a first preview image through a camera of the electronic equipment;
the first display module is used for outputting first prompt information under the condition that the current scene is determined to be a dazzling shooting scene according to the first preview picture, wherein the first prompt information is used for prompting a user to adjust the smoothness of the camera;
and the second acquisition module is used for shooting by utilizing the adjusted camera to acquire a shot image.
7. The apparatus of claim 6, further comprising:
the third acquisition module is used for acquiring a second preview;
the determining module is used for determining the glare level of the second preview image according to the second preview image;
and the second acquisition module is used for shooting by using the adjusted camera to acquire a shot image if the glare grade of the second preview image is a preset target glare grade.
8. The apparatus of claim 7, further comprising:
the second display module is used for outputting second prompt information if the glare grade of the second preview image is smaller than the target glare grade, and the second prompt information is used for prompting a user to increase the smoothness of the camera;
the third display module is used for displaying third prompt information if the glare grade of the second preview image is greater than the target glare grade, wherein the third prompt information is used for prompting a user to reduce the smoothness of the camera;
the second obtaining module includes:
the first obtaining submodule is used for obtaining a third preview picture according to the adjusted camera;
and the second obtaining submodule is used for shooting by using the adjusted camera to obtain a shot image if the glare grade of the third preview image is the target glare grade.
9. The apparatus of claim 6, wherein the first display module comprises:
the determining submodule is used for determining that the current scene is a glare shooting scene if the first preview image comprises a first light source area, and the brightness mean value of the first light source area is greater than a preset brightness value;
and the display submodule is used for outputting the first prompt information, and the first prompt information comprises a position for adjusting the smoothness of the camera.
10. The apparatus of claim 7, wherein the determining module is configured to determine a glare rating of a second light source area in the second preview image according to a brightness mean of the second light source area if the second preview image includes the second light source area.
CN202011340166.XA 2020-11-25 2020-11-25 Shooting method and device and electronic equipment Active CN112449115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011340166.XA CN112449115B (en) 2020-11-25 2020-11-25 Shooting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011340166.XA CN112449115B (en) 2020-11-25 2020-11-25 Shooting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112449115A true CN112449115A (en) 2021-03-05
CN112449115B CN112449115B (en) 2022-03-29

Family

ID=74737702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011340166.XA Active CN112449115B (en) 2020-11-25 2020-11-25 Shooting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112449115B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489901A (en) * 2021-06-30 2021-10-08 维沃移动通信(杭州)有限公司 Shooting method and device thereof
CN117135438A (en) * 2023-03-10 2023-11-28 荣耀终端有限公司 Image processing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4324467A (en) * 1979-12-18 1982-04-13 Konishiroku Photo Industry Co., Ltd. Programed exposure control device
EP2399775A2 (en) * 2010-06-28 2011-12-28 Audi AG Method for operating a motor vehicle lighting device with automated dipping function
CN104811690A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Message prompting method and device
CN106210532A (en) * 2016-07-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 One is taken pictures processing method and terminal unit
CN107128242A (en) * 2016-02-29 2017-09-05 长城汽车股份有限公司 The illuminator and its control method of vehicle, vehicle
CN110557575A (en) * 2019-08-28 2019-12-10 维沃移动通信有限公司 method for eliminating glare and electronic equipment
CN210381079U (en) * 2019-10-25 2020-04-21 信利光电股份有限公司 Electric anti-dazzle light camera
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4324467A (en) * 1979-12-18 1982-04-13 Konishiroku Photo Industry Co., Ltd. Programed exposure control device
EP2399775A2 (en) * 2010-06-28 2011-12-28 Audi AG Method for operating a motor vehicle lighting device with automated dipping function
CN104811690A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Message prompting method and device
CN107128242A (en) * 2016-02-29 2017-09-05 长城汽车股份有限公司 The illuminator and its control method of vehicle, vehicle
CN106210532A (en) * 2016-07-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 One is taken pictures processing method and terminal unit
CN110557575A (en) * 2019-08-28 2019-12-10 维沃移动通信有限公司 method for eliminating glare and electronic equipment
CN210381079U (en) * 2019-10-25 2020-04-21 信利光电股份有限公司 Electric anti-dazzle light camera
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489901A (en) * 2021-06-30 2021-10-08 维沃移动通信(杭州)有限公司 Shooting method and device thereof
CN113489901B (en) * 2021-06-30 2023-04-28 维沃移动通信(杭州)有限公司 Shooting method and device thereof
CN117135438A (en) * 2023-03-10 2023-11-28 荣耀终端有限公司 Image processing method and electronic equipment

Also Published As

Publication number Publication date
CN112449115B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
TWI709091B (en) Image processing method and device
CN112308095A (en) Picture preprocessing and model training method and device, server and storage medium
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112449115B (en) Shooting method and device and electronic equipment
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
CN111917991B (en) Image quality control method, device, equipment and storage medium
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN111667420B (en) Image processing method and device
CN110798627B (en) Shooting method, shooting device, storage medium and terminal
CN107404647A (en) Camera lens condition detection method and device
CN112767392A (en) Image definition determining method, device, equipment and storage medium
CN111182212A (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN106373139A (en) Image processing method and device
CN102724541B (en) Intelligent diagnosis and recovery method for monitoring images
CN111654643B (en) Exposure parameter determination method and device, unmanned aerial vehicle and computer readable storage medium
CN110213486A (en) Image capturing method, terminal and computer readable storage medium
CN112532891A (en) Photographing method and device
WO2021128593A1 (en) Facial image processing method, apparatus, and system
CN104883495A (en) Shooting method and device
CN105893578A (en) Method and device for selecting photos
CN116681613A (en) Illumination-imitating enhancement method, device, medium and equipment for face key point detection
CN110248104B (en) Image processing method and device and electronic equipment
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN113256523A (en) Image processing method and apparatus, medium, and computer device
CN113706402A (en) Neural network training method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant