CN111586280A - Shooting method, shooting device, terminal and readable storage medium - Google Patents
Shooting method, shooting device, terminal and readable storage medium Download PDFInfo
- Publication number
- CN111586280A CN111586280A CN201910120445.6A CN201910120445A CN111586280A CN 111586280 A CN111586280 A CN 111586280A CN 201910120445 A CN201910120445 A CN 201910120445A CN 111586280 A CN111586280 A CN 111586280A
- Authority
- CN
- China
- Prior art keywords
- shooting
- mode
- moon
- photographing
- program
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 claims abstract description 205
- 238000012545 processing Methods 0.000 claims abstract description 18
- 238000005375 photometry Methods 0.000 claims description 37
- 230000002093 peripheral effect Effects 0.000 abstract description 8
- 238000010801 machine learning Methods 0.000 description 53
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 239000004973 liquid crystal related substance Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000013473 artificial intelligence Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000035945 sensitivity Effects 0.000 description 3
- 230000000881 depressing effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000006748 scratching Methods 0.000 description 1
- 230000002393 scratching effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000011282 treatment Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Studio Devices (AREA)
Abstract
The disclosure relates to a shooting method, a shooting device, a terminal and a readable storage medium, and belongs to the field of image processing. The method comprises the following steps: starting a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky; adjusting the shooting parameters in the shooting program to be the shooting parameters corresponding to the moon shooting mode; and displaying a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program. According to the method and the device, the moon shooting mode in the shooting program is started for shooting, and the moon image with better image quality can be shot due to the fact that the moon shooting mode has corresponding shooting parameters instead of the shooting parameters automatically generated by the Auto mode, so that the problem that the final image shooting quality is poor due to the fact that the Auto mode suitable for the portrait or the peripheral scenery cannot be adjusted to the proper shooting parameters can be solved.
Description
Technical Field
The present disclosure relates to the field of image processing, and in particular, to a shooting method, an apparatus, a terminal, and a readable storage medium.
Background
The photographing function is the most widely used function on mobile terminals.
When a user uses the mobile terminal to shoot, the user mainly shoots a portrait or a peripheral scene. The shooting program in the mobile terminal is provided with an Auto (automatic) mode, and shooting parameters can be adjusted reasonably according to shooting preview images acquired by a camera.
However, some users may use the mobile terminal to shoot the moon in the sky, and due to the fact that the distance between the moon and the mobile terminal is relatively long, and the brightness difference between the moon and the sky is relatively large, the Auto mode applicable to the portrait or the peripheral scenery cannot be adjusted to a proper shooting parameter, and the final image shooting quality is poor.
Disclosure of Invention
The embodiment of the disclosure provides a shooting method, a shooting device, a terminal and a readable storage medium, which can be used for solving the problem that the final image shooting quality is poor due to the fact that an Auto mode suitable for a portrait or a peripheral scene cannot be adjusted to a proper shooting parameter. The technical scheme is as follows:
according to a first aspect of the present disclosure, there is provided a photographing method including:
starting a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky;
adjusting the shooting parameters in the shooting program to be the shooting parameters corresponding to the moon shooting mode;
and displaying a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
In an optional embodiment, the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode includes:
setting a photometry mode of the automatic exposure mode as a partial photometry mode, the partial photometry mode being a mode of performing photometry according to a pixel area having a luminance value larger than a first threshold value;
setting the focusing focal length of the automatic zooming mode as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
In an optional embodiment, the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode includes:
the available grade interval of the digital ZOOM ZOOM is increased from a first grade interval to a second grade interval, and the maximum grade of the second grade area is greater than the maximum grade of the first grade interval.
In an alternative embodiment, the first rank interval is [1.0X,10X ], and the second rank interval is [1.0X, 20X ]; or, the first grade interval is [1.0X,10X ], and the second grade interval is [10X, 20X ].
In an optional embodiment, the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode further includes:
and adjusting the color of the pixel region with the brightness value larger than the first threshold value to a preset color interval.
In an optional embodiment, the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode further includes:
and adjusting the image definition to a preset definition region.
In an optional embodiment, after the starting of the moon shooting mode in the shooting procedure, the method further includes:
and switching the camera used for shooting from the wide-angle camera to the tele-camera.
According to a second aspect of the present disclosure, there is provided a photographing apparatus, the apparatus including:
a processing module configured to start a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky;
the shooting module is configured to adjust shooting parameters in the shooting program to shooting parameters corresponding to the moon shooting mode;
and the display module is configured to display a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
In an alternative embodiment, the photographing module is configured to set a photometry mode of the automatic exposure mode AE to a partial photometry mode that performs photometry according to a pixel area having a luminance value larger than a first threshold; setting the focusing focal length of the automatic zooming mode AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
In an alternative embodiment, the photographing module is further configured to increase an available level interval of the digital ZOOM from a first level interval to a second level interval, and a maximum level of the second level area is greater than a maximum level of the first level interval.
In an alternative embodiment, the first rank interval is [1.0X,10X ], and the second rank interval is [1.0X, 20X ]; or, the first grade interval is [1.0X,10X ], and the second grade interval is [10X, 20X ].
In an optional embodiment, the photographing module is further configured to adjust the color of the pixel region with the brightness value greater than the first threshold to a preset color interval.
In an optional embodiment, the shooting module is further configured to adjust the image definition to be within a preset definition range.
In an optional embodiment, the processing module is further configured to switch a camera used for shooting from the wide-angle camera to the tele-camera.
According to a third aspect of the present disclosure, there is provided a terminal comprising: a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the photographing method as described in the first aspect above.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions that is loaded and executed by the processor to implement the photographing method of the first aspect as described above.
The technical scheme provided by the embodiment of the disclosure at least comprises the following beneficial effects:
the moon image with better image quality can be shot by starting the moon shooting mode in the shooting program instead of the shooting parameter automatically generated by the Auto mode, so that the problem that the final image shooting quality is poorer due to the fact that the Auto mode suitable for the portrait or the peripheral scenery cannot be adjusted to the proper shooting parameter can be solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment;
fig. 2 is a flowchart of a photographing method according to another exemplary embodiment of the present disclosure;
fig. 3 is a flowchart of a photographing method according to another exemplary embodiment of the present disclosure;
FIG. 4 is a diagram of a machine learning model for identifying a moon capture scene provided by an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a machine learning model for identifying a moon capture scene provided by another exemplary embodiment of the present disclosure;
fig. 6 is a flowchart of a photographing method according to another exemplary embodiment of the present disclosure;
FIG. 7 is an interface schematic diagram of a photographing method provided by an exemplary embodiment of the present disclosure;
fig. 8 is a flowchart of a photographing method according to another exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram of a camera shown in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 shows a flowchart of a photographing method according to an exemplary embodiment of the present application. The method can be implemented by a terminal provided with a camera, and comprises the following steps:
the terminal is provided with a shooting program, and the shooting program can be a default shooting program provided by a terminal manufacturer or a third-party shooting program installed by a user.
The photographing program is provided with a moon photographing mode. Alternatively, the moon photographing mode in the photographing program is manually started by the user, or is automatically started by an AI (Artificial Intelligence) program in the terminal.
The moon photographing mode is a photographing mode set for photographing the moon in the sky. The shooting parameters in the moon shooting mode are shooting parameters set for a moon shooting scene.
optionally, the shooting parameters in the moon shooting mode include:
1. setting a photometry mode of an Automatic Exposure mode (AE) as a partial photometry mode, which is a mode of performing photometry according to a pixel area having a luminance value larger than a first threshold value;
2. setting a focusing focal length of an Automatic zoom (AF) mode as an infinite focal length, or setting the focusing focal length of the AF mode as a preset focal length, where a difference between the preset focal length and the infinite focal length is smaller than a second threshold.
And 106, displaying a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
The shooting preview interface displays a shooting preview image. Optionally, at least one of a shooting button, a start control of multiple shooting modes, a flash switch, a front-back camera switching button, a timing shooting button, and other controls is also displayed in the shooting preview interface.
The shooting preview image is an image shot by a camera currently in use, and the shooting preview image is saved as a shooting image after receiving a shutter signal.
In summary, in the method provided in this embodiment, the moon shooting mode in the shooting program is started for shooting, and since the moon shooting mode has corresponding shooting parameters instead of the shooting parameters automatically generated in the Auto mode, the moon image with better image quality can be shot, so that the problem that the Auto mode applicable to the portrait or the surrounding scenery cannot be adjusted to appropriate shooting parameters, which results in poorer final image shooting quality can be solved.
Fig. 2 shows a flowchart of a photographing method provided by another exemplary embodiment of the present disclosure. The method can be implemented by a terminal provided with a camera, and comprises the following steps:
the terminal is provided with a shooting program, and the shooting program can be a default shooting program provided by a terminal manufacturer or a third-party shooting program installed by a user.
The photographing program is provided with a moon photographing mode. Alternatively, the moon photographing mode in the photographing program is manually started by the user, or is automatically started by an Artificial Intelligence (AI) program in the terminal.
The moon photographing mode is a photographing mode set for photographing the moon in the sky. The shooting parameters in the moon shooting mode are shooting parameters set for a moon shooting scene.
The shooting parameters include: at least one of an Automatic Exposure mode (AE) parameter, an Automatic Focus mode (AF) parameter, a ZOOM parameter, a color temperature parameter (also called white balance), and a sharpness parameter (also called sharpness).
the default mode of the automatic exposure mode is a global metering mode, and the global metering mode is to perform metering by adopting brightness values of all pixel points in a shot preview image. In a moon shooting scene, the area occupied by a moon region in the whole shooting preview image is small, and other regions are night sky regions which are basically black, so that an exposure value measured by adopting a global photometry mode is small, and the shot moon image is overexposed.
Therefore, when the photographing program is in the moon photographing mode, the terminal modifies the photometry mode of the AE to the partial photometry mode, which is a mode of performing photometry according to a pixel area having a luminance value greater than the first threshold value. For example, when the color coding method adopts a YUV (luminance and chrominance separation) method, the luminance is measured by using a pixel point whose luminance Y is greater than 50. That is, the terminal sets the local area of the moon in the captured preview image as the area during the time measurement, and ignores the non-moon area as much as possible.
The distance between the moon and the terminal is far larger than the focal distance used by the user in daily shooting. In the moon photographing mode, the focusing focal distance of the AF may be set to an infinite focal distance, or close to an infinite focal distance.
In summary, in the method provided in this embodiment, the moon shooting mode in the shooting program is started for shooting, and since the moon shooting mode has corresponding shooting parameters instead of the shooting parameters automatically generated in the Auto mode, the moon image with better image quality can be shot, so that the problem that the Auto mode applicable to the portrait or the surrounding scenery cannot be adjusted to appropriate shooting parameters, which results in poorer final image shooting quality can be solved.
According to the method provided by the embodiment, the photometry mode of the AE is adjusted to be the local photometry mode, so that the photometry inaccuracy of the global photometry mode in a moon shooting scene can be avoided, the moon area is prevented from being overexposed, and a moon image with reasonable exposure is shot.
According to the method provided by the embodiment, the focusing focal distance of the AF is adjusted to be infinity or close to infinity, so that the defects that the distance between the moon and the terminal is too far and the proper focal distance cannot be obtained by automatic focusing can be overcome, and the shooting quality of the moon image is improved.
In an alternative embodiment based on fig. 2, the adjusting of the shooting parameters in the moon shooting mode further includes at least one of the following ways:
1. increasing the available grade interval of the ZOOM from a first grade interval to a second grade interval, wherein the maximum grade of the second grade area is greater than that of the first grade interval;
since the moon is far from the terminal, in addition to setting the focus distance of AF to an infinitely distant focus distance, the available grade interval of ZOOM may be increased from a first grade interval to a second grade interval, the maximum grade of the second grade area being greater than that of the first grade interval. The first level interval is a ZOOM level interval used in Auto mode or night mode.
Optionally, the minimum levels of the first and second level intervals are the same, and the maximum level of the second level interval is twice the maximum level of the first level interval. For example, the first level interval is [1.0X,10X ], and the second level interval is [1.0X, 20X ].
Optionally, the minimum level of the second level interval is equal to the maximum level of the first level interval, and the maximum level of the second level interval is twice the maximum level of the first level interval. For example, the first level interval is [1.0X,10X ], and the second level interval is [10X, 20X ].
2. Adjusting the color temperature of the pixel region with the brightness value larger than the first threshold value to a preset color temperature interval;
in the moon photographing mode, the white balance of the photographed preview image is mainly affected by the moon region, and the terminal adjusts the color temperature of the pixel region having the luminance value greater than the first threshold value (i.e., the moon region) to a preset color temperature interval. In other words, the color temperature in the shooting parameters is adjusted to a preset color temperature interval based on the color temperature of the pixel region (i.e., the moon region) whose brightness value is greater than the first threshold. Optionally, the preset color temperature interval includes: 4500K to 5000K, K being an abbreviation in kelvin units.
3. And adjusting the image definition to a preset definition region.
In the moon shooting mode, the terminal also adjusts the image definition (sharpness) in the shot preview image to a preset definition region through a dynamic adjustment algorithm. Alternatively, the sharpness adjustment and the ZOOM level adjustment may be interrelated, such as dynamically adjusting the ZOOM level to a level close to the maximum level to achieve better image sharpness.
In summary, in the method provided in this embodiment, the light metering mode of the AE is adjusted to the local light metering mode, so that it is possible to avoid inaccurate light metering in the global light metering mode in the moon shooting scene, thereby avoiding overexposure of the moon area, and obtaining a reasonably exposed moon image through shooting.
According to the method provided by the embodiment, the focusing focal distance of the AF is adjusted to be infinity or close to infinity, so that the defects that the distance between the moon and the terminal is too far and the proper focal distance cannot be obtained by automatic focusing can be overcome, and the shooting quality of the moon image is improved.
The method provided by the embodiment can solve the defect that the distance between the moon and the terminal is too far and the grade interval used in the Auto mode can not be zoomed to a proper focal length by adjusting the available grade interval of the ZOOM to the second grade interval, and improves the shooting quality of the moon image by adopting the higher second grade interval.
Fig. 3 shows a flowchart of a photographing method according to an exemplary embodiment of the present application. The method can be implemented by a terminal provided with a camera, and comprises the following steps:
when shooting is needed, the user starts a shooting program on the terminal. For example, the user clicks an icon of the shooting program on a touch screen of the terminal, thereby starting the shooting program.
And after the shooting program is started, displaying a shooting preview interface of the shooting program, wherein a shooting preview image is displayed in the shooting preview interface. Optionally, at least one of a shooting button, a start control of multiple shooting modes, a flash switch, a front-back camera switching button, a timing shooting button, and other controls is also displayed in the shooting preview interface.
The shooting preview image is an image shot by a camera currently in use, and the shooting preview image is saved as a shooting image after receiving a shutter signal.
and the terminal inputs the shooting preview image into the machine learning model to identify the shooting scene.
The machine learning model is used for identifying whether the current shooting scene is a moon shooting scene. The moon photographing scene is a scene in which the current photographing object is the moon.
Optionally, the machine learning model is a neural network model, such as a convolutional neural network model.
the shooting parameters include: at least one of an AE parameter, an AF parameter, a ZOOM parameter, a color temperature parameter (also called white balance) and a sharpness parameter (also called sharpness).
Optionally, adjusting the shooting parameters in the moon shooting mode at least includes:
1. the photometry mode of AE is set to a partial photometry mode, which is a mode of performing photometry according to a pixel area whose luminance value is larger than a first threshold value.
2. And setting the focusing focal length of the AF as an infinite focal length, or setting the focusing focal length of the AF as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
Optionally, adjusting the shooting parameters in the moon shooting mode further includes at least one of the following modes:
3. increasing the available grade interval of the ZOOM from a first grade interval to a second grade interval, wherein the maximum grade of the second grade area is greater than that of the first grade interval;
4. adjusting the color temperature of the pixel region with the brightness value larger than the first threshold value to a preset color temperature interval;
5. and adjusting the image definition to a preset definition region.
305, displaying a shooting preview image obtained according to shooting parameters corresponding to a moon shooting mode on a shooting preview interface of a shooting program;
and step 306, shooting the shooting preview image as a moon image when the shutter signal is received.
In summary, according to the shooting method provided in this embodiment, the shooting scene for shooting the preview image is identified by calling the machine learning model, and when the shooting scene belongs to a moon scene, a moon shooting mode in the shooting program is started to shoot, so that a moon image with better image quality can be obtained.
In an alternative embodiment based on fig. 3, the number of machine learning models provided in the terminal is plural, and each machine learning model is used for identifying a shooting scene. The plurality of machine learning models include, but are not limited to: the system comprises a first machine learning model for identifying a night scene shooting scene, a second machine learning model for identifying a moon scene shooting scene, a third machine learning model for identifying a portrait scene shooting scene, a fourth machine learning model for identifying a moment shooting scene, a fifth machine learning model for identifying a gourmet scene shooting scene, a sixth machine learning model for identifying a flower shooting scene and the like.
Alternatively, since the moon shooting mode is one of the night-scene shooting modes, after the first machine learning model 22 recognizes that the current shooting scene belongs to the night-scene shooting scene, the second machine learning model 24 is called to recognize whether the current shooting scene belongs to the moon shooting scene, and whether the current shooting scene belongs to the ordinary scene or other AI shooting scenes, as schematically shown in fig. 4.
In an alternative embodiment based on fig. 3, the machine learning model provided in the terminal is the machine learning model 20 composed of a plurality of sub-machine learning models, the machine learning model 24 for identifying the moon shooting scene is one of the plurality of sub-machine learning models, and after each sub-machine learning model outputs its own identification result, the final identification result is output by the fusion layer 24, as schematically shown in fig. 5.
In an alternative embodiment based on fig. 1, the machine learning model for identifying the moon photography scene is trained by using an Error Back Propagation algorithm (Error Back Propagation) based on sample images in training, where the training set includes: a positive sample image set and a negative sample image set. Wherein,
the positive sample image set includes: and testing the moon image and the artificial moon image which are shot by the terminal. The test terminal is a terminal used in the development process, and the performance of the test terminal is the same as or similar to that of the terminal.
On one hand, research and development personnel shoot the moon under different time, different places and different ambient light scenes by using the Auto mode in the test terminal, and obtain a plurality of moon images to be added to the positive sample image set.
On the other hand, research personnel can also pull out the moon region in the moon image shot by the test terminal in a scratching mode to obtain a local moon image. And then collect (e.g., network download) a night sky image that does not contain the moon, which may be a night sky image taken at an elevation angle, which may include environmental elements such as buildings. And synthesizing the night sky image and the moon local image by research personnel to obtain an artificial moon image, and adding the artificial moon image to the positive sample image set.
The negative sample image set includes: a non-lunar image. The non-lunar image includes: images that do not include the moon, and night sky images that contain a suspected moon but not the moon. Wherein the night sky image of suspected moon but not moon includes: street lamp images.
The shooting method can be applied to a terminal provided with a single camera and can also be applied to a terminal provided with a plurality of cameras, and the terminal provided with the plurality of cameras comprises the following steps: the terminal of taking a photograph of two that are provided with two cameras, the terminal of taking a photograph of three that is provided with three camera, the terminal of taking a photograph of four that is provided with four cameras.
The embodiment of fig. 6 is used to illustrate that the shooting method is applied to a terminal with a single camera; and the embodiment of fig. 8 is adopted to exemplify that the shooting method is applied to a terminal with a plurality of cameras.
Fig. 6 shows a flowchart of a photographing method according to another exemplary embodiment of the present application. The method may be implemented by a terminal provided with a single camera, the method including:
the terminal is provided with a shooting program, and the shooting program can be a default shooting program provided by a terminal manufacturer or a third-party shooting program installed by a user.
When shooting is needed, the user starts a shooting program on the terminal. For example, the user clicks an icon of the shooting program on a touch screen of the terminal, thereby starting the shooting program.
and after the shooting program is started, displaying a shooting preview interface of the shooting program, wherein a shooting preview image is displayed in the shooting preview interface. Optionally, at least one of a shooting button, a start control of multiple shooting modes, a flash switch, a front-back camera switching button, a timing shooting button, and other controls is also displayed in the shooting preview interface.
Referring to fig. 7, a flash on/off control, a High-Dynamic Range (HDR) on/off control, an AI function on/off control, and a special effect mode on/off control are displayed on the upper portion 51 of the photographing preview interface from left to right, respectively. A shooting preview screen is displayed in the middle 52 of the shooting preview interface, and an album start button 53, a shooting button 54, and a front-rear camera switching button 55 are displayed in the lower portion of the shooting preview interface from left to right, respectively. Optionally, the center portion 52 of the capture preview interface also displays a ZOOM rating 56.
Optionally, the shooting preview interface also has a function of setting the ZOOM level of the digital ZOOM. The digital zooming means that zooming shooting is realized by adopting a digital difference value mode. In some embodiments, the level range of the digital zoom includes: zoom 1 (1.0X) to zoom 10 (10. X). In the present embodiment, the level range in the digital zoom includes: zoom 1 (1.0X) to zoom 10 (20.X) are exemplified.
Optionally, the user performs a two-finger zoom-in gesture in the shooting preview interface to control the digital zoom level in the shooting program to increase; and the user performs a double-finger zooming-out gesture in the shooting preview interface to control the digital zoom level in the shooting program to be reduced.
and when the ZOOM grade is greater than the preset grade, the terminal calls the machine learning model to identify the shooting scene for shooting the preview image. The machine learning model is a model for recognizing a moon-shooting scene.
Since the user adjusts the ZOOM level up in the night view photographing mode, there is a high probability that the moon is desired to be photographed. In an optional embodiment, when the ZOOM level is greater than the preset level and the night view shooting mode is currently performed, a machine learning model is called to identify a shooting scene for shooting the preview image.
The preset level is set based on a larger value of the user's commonly used ZOOM level, which is a level for photographing a human image or a peripheral scene. Optionally, the preset level is 4.0X.
optionally, a plurality of shooting modes are provided in the shooting program: a portrait photographing mode, a gourmet photographing mode, a night scene photographing mode, a flower photographing mode, a macro photographing mode, a large aperture photographing mode, a moon photographing mode, and the like. Each shooting mode has respective shooting parameters.
Alternatively, when the shooting scene belongs to a moon shooting scene, a start control of a moon shooting mode is displayed on the shooting preview interface. And when a trigger signal on the starting control is received, starting a moon shooting mode in a shooting program. The launch control may be a button control, a toggle control, or the like. For example, the start control is a switching control of the moon shooting mode and the night view shooting mode.
Referring to fig. 7, taking as an example a switching control 57 in which the start control is a moon shooting mode and a night view shooting mode, when the user clicks the left side of the control 57, the shooting mode of the shooting program is switched to the night view shooting mode; when the user clicks the right side 57 of the control, the photographing mode of the photographing program is switched to the moon photographing mode.
the shooting parameters include: at least one of an Automatic Exposure mode (AE) parameter, an Automatic Focus mode (AF) parameter, a ZOOM parameter, a color temperature parameter (also called white balance), and a sharpness parameter (also called sharpness).
Optionally, adjusting the shooting parameters in the moon shooting mode at least includes:
1. the photometry mode of AE is set to a partial photometry mode, which is a mode of performing photometry according to a pixel area whose luminance value is larger than a first threshold value.
2. And setting the focusing focal length of the AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
Optionally, adjusting the shooting parameters in the moon shooting mode further includes at least one of the following modes:
3. increasing the available grade interval of the ZOOM from a first grade interval to a second grade interval, wherein the maximum grade of the second grade area is greater than that of the first grade interval;
4. adjusting the color temperature of the pixel region with the brightness value larger than the first threshold value to a preset color temperature interval;
5. and adjusting the image definition to a preset definition region.
The shutter signal is a signal for triggering photographing. The shutter signal is triggered by the user or generated by the terminal itself. For example, the shutter signal is generated by the user touching a shooting button, or the shutter signal is generated by the user double-clicking or depressing a volume key, and the generation manner of the shutter signal is not limited in this embodiment.
In summary, in the method provided in this embodiment, the machine learning model is called to identify the shooting scene for shooting the preview image, and when the shooting scene belongs to a moon scene, the moon shooting mode in the shooting program is started to shoot, so that a moon image with better image quality can be shot.
The method provided by the embodiment can solve the defect that the distance between the moon and the terminal is too far and the grade interval used in the Auto mode can not be zoomed to a proper focal length by adjusting the available grade interval of the ZOOM to the second grade interval, and improves the shooting quality of the moon image by adopting the higher second grade interval.
Fig. 8 shows a flowchart of a photographing method according to another exemplary embodiment of the present application. The method may be implemented by a terminal provided with a plurality of cameras including a wide angle (wide) camera and a tele (tele) camera, the method comprising:
the terminal is provided with a shooting program, and the shooting program can be a default shooting program provided by a terminal manufacturer or a third-party shooting program installed by a user.
When shooting is needed, the user starts a shooting program on the terminal. For example, the user clicks an icon of the shooting program on a touch screen of the terminal, thereby starting the shooting program.
and after the shooting program is started, displaying a shooting preview interface of the shooting program, wherein a shooting preview image is displayed in the shooting preview interface. Optionally, at least one of a shooting button, a start control of multiple shooting modes, a flash switch, a front-back camera switching button, a timing shooting button, and other controls is also displayed in the shooting preview interface.
Referring to fig. 7, a shooting preview interface is displayed at an upper portion, a middle portion, and a lower portion.
Optionally, the shooting preview interface also has a function of setting the ZOOM level of the digital ZOOM. The digital zooming means that zooming shooting is realized by adopting a digital difference value mode. In some embodiments, the level range of the digital zoom includes: zoom 1 (1.0X) to zoom 10 (10. X). In the present embodiment, the level range in the digital zoom includes: zoom 1 (1.0X) to zoom 10 (20.X) are exemplified.
Optionally, the user performs a two-finger zoom-in gesture in the shooting preview interface to control the digital zoom level in the shooting program to increase; and the user performs a double-finger zooming-out gesture in the shooting preview interface to control the digital zoom level in the shooting program to be reduced.
and when the ZOOM grade is greater than the preset grade, the terminal calls the machine learning model to identify the shooting scene for shooting the preview image. The machine learning model is a model for recognizing a moon-shooting scene.
Since the user adjusts the ZOOM level up in the night view photographing mode, there is a high probability that the moon is desired to be photographed. In an optional embodiment, when the ZOOM level is greater than the preset level and the night view shooting mode is currently performed, a machine learning model is called to identify a shooting scene for shooting the preview image.
The preset level is set based on a larger value of the user's commonly used ZOOM level, which is a level for photographing a human image or a peripheral scene. Optionally, the preset level is 4.0X.
optionally, a plurality of shooting modes are provided in the shooting program: a portrait photographing mode, a gourmet photographing mode, a night scene photographing mode, a flower photographing mode, a macro photographing mode, a large aperture photographing mode, a moon photographing mode, and the like. Each shooting mode has respective shooting parameters.
Alternatively, when the shooting scene belongs to a moon shooting scene, a start control of a moon shooting mode is displayed on the shooting preview interface. And when a trigger signal on the starting control is received, starting a moon shooting mode in a shooting program. The launch control may be a button control, a toggle control, or the like. For example, the start control is a switching control of the moon shooting mode and the night view shooting mode.
Referring to fig. 5, taking the starting control as a switching control of the moon shooting mode and the night view shooting mode as an example, when the user clicks the left side of the control, the shooting mode of the shooting program is switched to the night view shooting mode; when the user clicks the right side of the control, the photographing mode of the photographing program is switched to the moon photographing mode.
the shooting parameters include: at least one of an AE parameter, an AF parameter, a ZOOM parameter, a color temperature parameter (also called white balance) and a sharpness parameter (also called sharpness).
Optionally, adjusting the shooting parameters in the moon shooting mode at least includes:
1. the photometry mode of AE is set to a partial photometry mode, which is a mode of performing photometry according to a pixel area whose luminance value is larger than a first threshold value.
The default mode of the automatic exposure mode is a global metering mode, and the global metering mode is to perform metering by adopting brightness values of all pixel points in a shot preview image. In a moon shooting scene, the area occupied by a moon region in the whole shooting preview image is small, and other regions are night sky regions which are basically black, so that an exposure value measured by adopting a global photometry mode is small, and the shot moon image is overexposed.
Therefore, when the photographing program is in the moon photographing mode, the terminal modifies the photometry mode of the AE to the partial photometry mode, which is a mode of performing photometry according to a pixel area having a luminance value greater than the first threshold value. For example, when the color coding method adopts a YUV (luminance and chrominance separation) method, the luminance is measured by using a pixel point whose luminance Y is greater than 50. That is, the terminal sets the local area of the moon in the captured preview image as the area during the time measurement, and ignores the non-moon area as much as possible.
2. And setting the focusing focal length of the AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
The distance between the moon and the terminal is far larger than the focal distance used by the user in daily shooting. In the moon photographing mode, the focusing focal distance of the AF may be set to an infinite focal distance, or close to an infinite focal distance.
Optionally, adjusting the shooting parameters in the moon shooting mode further includes at least one of the following modes:
3. increasing the available grade interval of the ZOOM from a first grade interval to a second grade interval, wherein the maximum grade of the second grade area is greater than that of the first grade interval;
since the moon is far from the terminal, in addition to setting the focus distance of AF to an infinitely distant focus distance, the available grade interval of ZOOM may be increased from a first grade interval to a second grade interval, the maximum grade of the second grade area being greater than that of the first grade interval. The first level interval is a ZOOM level interval used in Auto mode or night mode.
Optionally, the minimum levels of the first and second level intervals are the same, and the maximum level of the second level interval is twice the maximum level of the first level interval. For example, the first level interval is [1.0X,10X ], and the second level interval is [1.0X, 20X ].
Optionally, the minimum level of the second level interval is equal to the maximum level of the first level interval, and the maximum level of the second level interval is twice the maximum level of the first level interval. For example, the first level interval is [1.0X,10X ], and the second level interval is [10X, 20X ].
4. Adjusting the color temperature of the pixel region with the brightness value larger than the first threshold value to a preset color temperature interval;
in the moon photographing mode, the white balance of the photographed preview image is mainly affected by the moon region, and the terminal adjusts the color temperature of the pixel region having the luminance value greater than the first threshold value (i.e., the moon region) to a preset color temperature interval. In other words, the color temperature in the shooting parameters is adjusted to a preset color temperature interval based on the color temperature of the pixel region (i.e., the moon region) whose brightness value is greater than the first threshold. Optionally, the preset color temperature interval includes: 4500K to 5000K.
5. And adjusting the image definition to a preset definition region.
In the moon shooting mode, the terminal also adjusts the image definition (sharpness) in the shot preview image to a preset definition region through a dynamic adjustment algorithm. Alternatively, the sharpness adjustment and the ZOOM level adjustment may be interrelated, such as dynamically adjusting the ZOOM level to a level close to the maximum level to achieve better image sharpness.
and step 808, shooting the shooting preview image as a moon image when the shutter signal is received.
The shutter signal is a signal for triggering photographing. The shutter signal is triggered by the user or generated by the terminal itself. For example, the shutter signal is generated by the user touching a shooting button, or the shutter signal is generated by the user double-clicking or depressing a volume key, and the generation manner of the shutter signal is not limited in this embodiment.
In summary, in the method provided in this embodiment, the machine learning model is called to identify the shooting scene for shooting the preview image, and when the shooting scene belongs to a moon scene, the moon shooting mode in the shooting program is started to shoot, so that a moon image with better image quality can be shot.
In the method provided by the embodiment, when the ZOOM level is greater than the preset level, the machine learning model is called to identify the shooting scene of the shooting preview image, and the machine learning model is called to perform calculation when the user intends to shoot the moon, so that unnecessary calculation amount can be reduced, and performance occupation and power consumption loss caused by calculation of the machine learning model can be reduced.
In the method provided by the embodiment, when the moon shooting mode is started, the default camera is switched from the wide-angle camera to the tele camera, so that the moon image with better morality is shot by utilizing the tele shooting characteristic of the tele camera.
In the optional embodiments based on the above embodiments, before calling the machine learning model to perform shooting scene recognition, the terminal needs to determine whether the current shooting scene meets the pre-detection condition, and when the current shooting scene meets the pre-detection condition, the machine learning model is called to recognize the shooting scene for shooting the preview image.
Optionally, the process of determining the pre-detection condition includes, but is not limited to, at least one of the following three ways.
Firstly, acquiring metadata (meta data) of a camera; detecting whether the shot preview image is a picture displayed by the liquid crystal display screen or not according to the metadata; and when the shooting preview image is not a picture displayed by the liquid crystal display screen, calling a machine learning model to identify a shooting scene of the shooting preview image.
Considering that a user does not really shoot a moon image displayed on a liquid crystal display (such as a computer, a tablet or other mobile phones) when shooting the moon image by using a terminal, the terminal acquires metadata of a camera, detects whether a shooting preview image is a picture displayed by the liquid crystal display according to the metadata, for example, the metadata comprises exposure time and sensitivity (ISO), and determines that the shooting preview image is the picture displayed by the liquid crystal display when the exposure time is less than a third threshold and the sensitivity is less than a fourth threshold; and when the exposure time is not less than the third threshold and the sensitivity is not less than the fourth threshold, determining that the shooting preview image is not a picture displayed by the liquid crystal display screen.
When the shooting preview image is not the picture displayed by the liquid crystal display screen, calling a machine learning model to identify a shooting scene of the shooting preview image; when the photographed preview image is a screen displayed on a liquid crystal display, the machine learning model is not called to recognize the photographing scene of the photographed preview image, and other processing is performed. Other treatments include, but are not limited to: other machine learning models are invoked to recognize a shooting scene in which a preview image is shot, or shooting is performed using Auto mode, or the like.
Secondly, acquiring attitude data of the terminal; detecting whether the shooting attitude of the terminal is an upward shooting attitude or not according to the attitude data; and when the posture data is the upward-looking shooting posture, calling a machine learning model to identify a shooting scene for shooting the preview image.
The attitude data of the terminal can be acquired by a gravity acceleration sensor and/or an angular velocity sensor.
Optionally, the components of the gravitational acceleration on the coordinate axes are used to determine whether the current posture of the terminal is an upward posture. The component change of the gravitational acceleration on each coordinate axis, and/or the component change of the angular velocity on each coordinate axis is used to determine whether the current posture of the terminal is a shooting posture (the shooting posture is a state in which the terminal is relatively stationary).
Optionally, when the current posture of the terminal is a head-up posture or a top-down posture, the terminal does not belong to a moon shooting scene, and a machine learning model is not required to be started for recognizing the shooting scene; when the terminal is in violent movement or rotation, the terminal does not belong to a moon shooting scene, and a machine learning model does not need to be started to identify the shooting scene.
Thirdly, performing image semantic recognition on a focusing area of the shot preview image; and when the image semantic recognition result is that the focusing area is of the point light source type, calling a machine learning model to recognize a shooting scene for shooting the preview image.
Alternatively, the focus area is an area where the focus point is located, and when the focus point is changed, the focus area is also changed. Alternatively, the focus area is a relatively fixed area, such as an area located at the middle upper portion of the photographing window.
Alternatively, the moon shooting mode belongs to one of point light source shooting modes, and when a focus region in a shot preview image is not a point light source type, it is not necessary to call a machine learning model to recognize a shooting scene in which the preview image is shot.
In summary, according to the method provided in this embodiment, the machine learning model is called to identify the shooting scene only when the pre-detection condition is satisfied, so that unnecessary calculation amount in the machine learning model can be reduced. In addition, since the preview condition is set based on a plurality of auxiliary data such as metadata of the camera, attitude data of the terminal, and semantic recognition of the image, it is possible to increase the degree of intelligence of the imaging program.
The terminal provided by each of the above embodiments may further be provided with an AI chip, and the calculation process of the machine learning model is calculated by the AI chip, so as to improve the calculation speed of the machine learning model. The terminal may be a mobile terminal such as a smartphone, a tablet, a laptop, an MP3, an MP4, etc.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 9 is a block diagram illustrating a camera that may be implemented as part or all of a terminal by software, hardware, or a combination of both, according to an example embodiment. The photographing apparatus may include:
a processing module 920 configured to start a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky;
a shooting module 940 configured to adjust shooting parameters in the shooting program to shooting parameters corresponding to the moon shooting mode;
a display module 960 configured to display a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
In an alternative embodiment, the photographing module 940 is configured to set a light metering mode of the automatic exposure mode AE to a partial light metering mode, which is a mode of performing light metering according to a pixel area whose luminance value is greater than a first threshold value; setting the focusing focal length of the automatic zooming mode AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
In an alternative embodiment, the shooting module 940 is further configured to increase the available level interval of the digital ZOOM from a first level interval to a second level interval, and the maximum level of the second level area is greater than the maximum level of the first level interval.
In an alternative embodiment, the first rank interval is [1.0X,10X ], and the second rank interval is [1.0X, 20X ]; or, the first grade interval is [1.0X,10X ], and the second grade interval is [10X, 20X ].
In an optional embodiment, the capturing module 940 is further configured to adjust the color of the pixel region with the luminance value greater than the first threshold to a preset color interval.
In an optional embodiment, the capturing module 940 is further configured to adjust the image sharpness to a preset sharpness interval.
In an optional embodiment, the processing module 920 is further configured to switch the camera used for shooting from the wide-angle camera to the tele-camera.
It should be noted that, when the photographing apparatus provided in the above embodiment photographs a moon image, only the division of the above function modules is exemplified, and in practical applications, the above function assignment may be performed by different function modules according to actual needs, that is, the content structure of the device is divided into different function modules, so as to perform all or part of the above described functions.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure also provides a photographing apparatus capable of implementing the photographing method provided by the present disclosure. The device includes: a processor, and a memory for storing executable instructions for the processor. Wherein, the processor is configured to execute the shooting method provided by the above method embodiments.
Fig. 10 is a block diagram illustrating a terminal 1000 in accordance with an exemplary embodiment. For example, terminal 1000 can be a mobile telephone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to FIG. 10, terminal 1000 can include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The multimedia component 1008 includes a screen that provides an output interface between the terminal 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera can receive external multimedia data when the terminal 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when terminal 1000 is in an operational mode, such as call mode, record mode, and voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
In an exemplary embodiment, terminal 1000 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described photographing methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1004, that are executable by processor 820 of terminal 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of terminal 1000, enable terminal 1000 to perform the photographing method provided by the various method embodiments described above.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A photographing method, characterized in that the method comprises:
starting a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky;
adjusting the shooting parameters in the shooting program to be the shooting parameters corresponding to the moon shooting mode;
and displaying a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
2. The method according to claim 1, wherein the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode comprises:
setting a photometry mode of the automatic exposure mode AE as a partial photometry mode, which is a mode of performing photometry according to a pixel area having a luminance value larger than a first threshold value;
setting the focusing focal length of the automatic zooming mode AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
3. The method according to claim 2, wherein the adjusting the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode comprises:
the available grade interval of the digital ZOOM ZOOM is increased from a first grade interval to a second grade interval, and the maximum grade of the second grade area is greater than the maximum grade of the first grade interval.
4. The method of claim 3,
the first grade interval is [1.0X,10X ], the second grade interval is [1.0X, 20X ];
or,
the first rating interval is [1.0X,10X ], and the second rating interval is [10X, 20X ].
5. The method according to any one of claims 1 to 4, wherein the adjusting of the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode further comprises:
and adjusting the color of the pixel region with the brightness value larger than the first threshold value to a preset color interval.
6. The method according to any one of claims 1 to 4, wherein the adjusting of the shooting parameters in the shooting program to the shooting parameters corresponding to the moon shooting mode further comprises:
and adjusting the image definition to a preset definition region.
7. The method according to any one of claims 1 to 4, further comprising, after the starting of the moon photography mode in the photography program:
and switching the camera used for shooting from the wide-angle camera to the tele-camera.
8. A camera, characterized in that the camera comprises:
a processing module configured to start a moon photographing mode in a photographing program, the moon photographing mode being a photographing mode set for photographing a moon in the sky;
the shooting module is configured to adjust shooting parameters in the shooting program to shooting parameters corresponding to the moon shooting mode;
and the display module is configured to display a shooting preview image obtained according to the shooting parameters corresponding to the moon shooting mode on a shooting preview interface of the shooting program.
9. The apparatus of claim 8,
the photographing module is configured to set a photometry mode of an automatic exposure mode AE to a partial photometry mode, which is a mode of performing photometry according to a pixel area having a luminance value greater than a first threshold; setting the focusing focal length of the automatic zooming mode AF as an infinite focal length, or setting the focusing focal length of the automatic zooming mode as a preset focal length, wherein the difference value between the preset focal length and the infinite focal length is smaller than a second threshold value.
10. The apparatus of claim 9,
the shooting module is further configured to increase the available grade interval of the digital ZOOM ZOOM from a first grade interval to a second grade interval, and the maximum grade of the second grade area is greater than that of the first grade interval.
11. The apparatus of claim 10,
the first grade interval is [1.0X,10X ], the second grade interval is [1.0X, 20X ];
or,
the first rating interval is [1.0X,10X ], and the second rating interval is [10X, 20X ].
12. The apparatus according to any one of claims 8 to 11,
the shooting module is further configured to adjust the color of the pixel region with the brightness value larger than the first threshold value to a preset color interval.
13. The apparatus according to any one of claims 8 to 11,
the shooting module is further configured to adjust the image definition to be within a preset definition range.
14. The apparatus according to any one of claims 8 to 11,
the processing module is further configured to switch a camera used for shooting from the wide-angle camera to the tele-camera.
15. A terminal, characterized in that the terminal comprises: a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the photographing method according to any one of claims 1 to 7.
16. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the photographing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910120445.6A CN111586280B (en) | 2019-02-18 | 2019-02-18 | Shooting method, shooting device, terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910120445.6A CN111586280B (en) | 2019-02-18 | 2019-02-18 | Shooting method, shooting device, terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111586280A true CN111586280A (en) | 2020-08-25 |
CN111586280B CN111586280B (en) | 2022-02-11 |
Family
ID=72126060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910120445.6A Active CN111586280B (en) | 2019-02-18 | 2019-02-18 | Shooting method, shooting device, terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111586280B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492198A (en) * | 2020-11-23 | 2021-03-12 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
WO2024005333A1 (en) * | 2022-06-30 | 2024-01-04 | 삼성전자 주식회사 | Electronic device including camera and method therefor |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092942A (en) * | 2014-07-17 | 2014-10-08 | 深圳市中兴移动通信有限公司 | Shooting method and device |
CN104104886A (en) * | 2014-07-24 | 2014-10-15 | 深圳市中兴移动通信有限公司 | Overexposure shooting method and device |
CN106488134A (en) * | 2016-11-18 | 2017-03-08 | 上海传英信息技术有限公司 | The image pickup method of photo and mobile terminal |
-
2019
- 2019-02-18 CN CN201910120445.6A patent/CN111586280B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092942A (en) * | 2014-07-17 | 2014-10-08 | 深圳市中兴移动通信有限公司 | Shooting method and device |
CN104104886A (en) * | 2014-07-24 | 2014-10-15 | 深圳市中兴移动通信有限公司 | Overexposure shooting method and device |
CN106488134A (en) * | 2016-11-18 | 2017-03-08 | 上海传英信息技术有限公司 | The image pickup method of photo and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492198A (en) * | 2020-11-23 | 2021-03-12 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN112492198B (en) * | 2020-11-23 | 2022-05-31 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
WO2024005333A1 (en) * | 2022-06-30 | 2024-01-04 | 삼성전자 주식회사 | Electronic device including camera and method therefor |
Also Published As
Publication number | Publication date |
---|---|
CN111586280B (en) | 2022-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111586282B (en) | Shooting method, shooting device, terminal and readable storage medium | |
CN108419016B (en) | Shooting method and device and terminal | |
CN108462833B (en) | Photographing method, photographing device and computer-readable storage medium | |
CN104811609A (en) | Photographing parameter adjustment method and device | |
CN107463052B (en) | Shooting exposure method and device | |
CN108040204B (en) | Image shooting method and device based on multiple cameras and storage medium | |
CN111385456A (en) | Photographing preview method and device and storage medium | |
CN113364965A (en) | Shooting method and device based on multiple cameras and electronic equipment | |
CN111586280B (en) | Shooting method, shooting device, terminal and readable storage medium | |
CN107820025B (en) | Method and device for photographing processing | |
CN111461950A (en) | Image processing method and device | |
CN111277754B (en) | Mobile terminal shooting method and device | |
US11617023B2 (en) | Method for brightness enhancement of preview image, apparatus, and medium | |
CN112312034B (en) | Exposure method and device of image acquisition module, terminal equipment and storage medium | |
CN114338956B (en) | Image processing method, image processing apparatus, and storage medium | |
CN116152078A (en) | Image processing method, device, system and storage medium | |
CN114979455A (en) | Photographing method, photographing device and storage medium | |
CN107707819B (en) | Image shooting method, device and storage medium | |
CN114339017B (en) | Distant view focusing method, device and storage medium | |
CN111464753B (en) | Picture shooting method and device and storage medium | |
CN111225158B (en) | Image generation method and device, electronic equipment and computer readable storage medium | |
WO2023230860A1 (en) | Zooming method, zooming device, electronic equipment, and storage medium | |
CN109862252B (en) | Image shooting method and device | |
CN107317977B (en) | Shooting method and device | |
CN117395504A (en) | Image acquisition method, device and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |