CN108683847B - Photographing method, device, terminal and storage medium - Google Patents

Photographing method, device, terminal and storage medium Download PDF

Info

Publication number
CN108683847B
CN108683847B CN201810457231.3A CN201810457231A CN108683847B CN 108683847 B CN108683847 B CN 108683847B CN 201810457231 A CN201810457231 A CN 201810457231A CN 108683847 B CN108683847 B CN 108683847B
Authority
CN
China
Prior art keywords
shooting
picture
adjusted
preview
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810457231.3A
Other languages
Chinese (zh)
Other versions
CN108683847A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810457231.3A priority Critical patent/CN108683847B/en
Publication of CN108683847A publication Critical patent/CN108683847A/en
Application granted granted Critical
Publication of CN108683847B publication Critical patent/CN108683847B/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/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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/617Upgrading or updating of programs or applications for camera control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application discloses a photographing method, a photographing device, a terminal and a storage medium, wherein the photographing method comprises the following steps: when the terminal is in a shooting state and a preview picture is displayed, a shooting parameter adjusting instruction for adjusting the shooting parameters is obtained; updating the displayed preview picture by using the shooting parameters adjusted in the shooting parameter adjusting instruction, and storing the updated preview picture and the adjusted shooting parameters; when the collected picture is changed and the shooting parameters are changed, matching the collected picture with the stored preview picture; if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied; and after the shooting instruction is acquired, shooting to obtain a shot picture. The photographing method, the photographing device, the photographing terminal and the storage medium can reduce photographing operations of a user and improve use experience of the user.

Description

Photographing method, device, terminal and storage medium
Technical Field
The present disclosure relates to digital imaging technologies, and in particular, to a photographing method, a photographing apparatus, a terminal, and a storage medium.
Background
In order to improve the user experience, various terminal devices having a photographing function provide a photographing preview function. The user can preview the picture acquired by the camera in the display screen of the terminal device so as to determine the shooting effect before formal shooting, and can observe the changed shooting effect in real time in the preview picture after the shooting parameters of the camera are changed, so that the user can shoot more satisfactory pictures or videos.
When shooting preview, if a user changes the shooting position after adjusting the shooting parameters of the camera, the shooting parameters may need to be adjusted again, so that the user needs to perform additional operations when shooting, and the shooting experience of the user is affected.
Disclosure of Invention
The application provides a photographing method, a photographing device, a photographing terminal and a storage medium, which are used for reducing photographing operations of a user and improving use experience of the user.
In a first aspect, an embodiment of the present application provides a photographing method, including:
when the terminal is in a shooting state and a preview picture is displayed, a shooting parameter adjusting instruction for adjusting the shooting parameters is obtained;
updating the displayed preview picture by using the shooting parameters adjusted in the shooting parameter adjusting instruction, and storing the updated preview picture and the adjusted shooting parameters;
when the collected picture is changed and the shooting parameters are changed, matching the collected picture with the stored preview picture;
if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied;
and after the shooting instruction is acquired, shooting to obtain a shot picture.
In a possible implementation manner of the first aspect, acquiring a shooting parameter adjustment instruction for adjusting a shooting parameter when the preview screen is displayed in a shooting state includes:
when the shooting state is achieved and the preview picture is displayed, the shooting subject selected by the user in the preview picture is obtained;
automatically determining shooting parameters required to be adjusted according to a shooting subject or receiving shooting parameters required to be adjusted and indicated by a user to the shooting subject;
the method for updating the preview picture displayed in the display screen by using the shooting parameters adjusted in the shooting parameter adjusting instruction and storing the updated preview picture and the adjusted shooting parameters comprises the following steps:
and updating the preview picture displayed in the display screen by using the shooting parameters required to be adjusted, and storing the updated preview picture and the adjusted shooting parameters.
In a possible implementation manner of the first aspect, the storing the updated preview screen and the adjusted shooting parameters includes:
storing the image characteristics of the shooting subject and the adjusted shooting parameters in the updated preview picture;
when the collected picture changes and the shooting parameters change, the collected picture is matched with the stored preview picture, and the method comprises the following steps:
when the collected picture is changed and the shooting parameters are changed, matching the image characteristics of the collected picture with the stored image characteristics of the shooting subject;
if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied, and the method comprises the following steps:
and if the similarity between the image characteristics of the acquired picture and the image characteristics of the shooting subject exceeds a preset threshold, applying the adjusted shooting parameters.
In a possible implementation manner of the first aspect, if the acquired picture is successfully matched with the stored preview picture, applying the adjusted shooting parameter includes:
and if the acquired picture is successfully matched with the stored preview picture within the preset time after the updated preview picture is stored, applying the adjusted shooting parameters.
In a possible implementation manner of the first aspect, after storing the updated preview screen and the adjusted shooting parameters, the method further includes:
and if the shooting state is quitted, within the preset time after the updated preview picture and the adjusted shooting parameters are stored, if the shooting state is carried out again, the adjusted shooting parameters are applied.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the shooting parameter adjusting instruction obtaining module is used for obtaining a shooting parameter adjusting instruction for adjusting the shooting parameters when the shooting state is achieved and the preview picture is displayed;
the preview picture and shooting parameter storage module is used for updating the displayed preview picture by applying the shooting parameters adjusted in the shooting parameter adjusting instruction and storing the updated preview picture and the adjusted shooting parameters;
the image matching module is used for matching the acquired picture with the stored preview picture after the acquired picture is changed and the shooting parameters are changed;
the shooting parameter adjusting module is used for applying the adjusted shooting parameters if the acquired picture is successfully matched with the stored preview picture;
and the image shooting module is used for shooting after the shooting instruction is obtained to obtain the shot picture.
In a possible implementation manner of the second aspect, the shooting parameter adjustment instruction obtaining module is specifically configured to obtain a shooting subject selected by a user in a preview screen when the shooting state is achieved and the preview screen is displayed; automatically determining shooting parameters required to be adjusted according to a shooting subject or receiving shooting parameters required to be adjusted and indicated by a user to the shooting subject;
and the preview picture and shooting parameter storage module is specifically used for updating the preview picture displayed in the display screen by applying the shooting parameters to be adjusted, and storing the updated preview picture and the adjusted shooting parameters.
In a possible implementation manner of the second aspect, the preview image and shooting parameter storage module is specifically configured to store image features of a shooting subject and adjusted shooting parameters in an updated preview image;
the image matching module is specifically used for matching the image characteristics of the acquired image with the stored image characteristics of the shooting subject after the acquired image changes and the shooting parameters change;
and the shooting parameter adjusting module is specifically used for applying the adjusted shooting parameters if the similarity between the image characteristics of the acquired picture and the image characteristics of the shooting subject exceeds a preset threshold.
In a third aspect, an embodiment of the present application provides a terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the photographing method according to any one of the possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the photographing method according to any one of the possible implementation manners of the first aspect.
According to the photographing method, the photographing device, the terminal and the storage medium, when the photographing state is achieved and the preview picture is displayed, the photographing parameter adjusting instruction for adjusting the photographing parameters is obtained, the displayed preview picture is updated by using the photographing parameters adjusted in the photographing parameter adjusting instruction, the updated preview picture and the adjusted photographing parameters are stored, when the collected picture is changed and the photographing parameters are changed, the collected picture is matched with the stored preview picture, if the collected picture is successfully matched with the stored preview picture, the adjusted photographing parameters are applied, and after the photographing instruction is obtained, photographing is carried out to obtain the photographed picture, so that the operation of photographing by a user can be reduced, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart of a first embodiment of a photographing method according to an embodiment of the present application;
fig. 2 is a flowchart of a first embodiment of a photographing method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a first photographing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Along with the development of hardware integration technology and optical technology, the volume of camera module has been developed very little, and various intelligent terminal all dispose at least one camera module at present, provide the function of shooing or making a video recording for the user. Various terminal devices with a shooting function, such as a digital camera, a digital video camera, a smart phone, a tablet computer, and the like, have a shooting preview function. The user can observe the picture obtained by the camera in real time in the display screen of the terminal equipment when the terminal equipment is used for shooting or shooting, great convenience is provided for the user to shoot, and the user can shoot photos or videos with better effect and more satisfaction.
Along with the development of hardware integration technology and optical technology, the volume of camera module has been developed very little, and various intelligent terminal all dispose at least one camera module at present, provide the function of shooing or making a video recording for the user. Various terminal devices with a shooting function, such as a digital camera, a digital video camera, a smart phone, a tablet computer, and the like, have a shooting preview function. The user can observe the picture obtained by the camera in real time in the display screen of the terminal equipment when the terminal equipment is used for shooting or shooting, great convenience is provided for the user to shoot, and the user can shoot photos or videos with better effect and more satisfaction.
In order to enable the shot pictures to better meet the requirements of the user, the user can adjust the shooting parameters of the camera of the terminal equipment when finding that the pictures do not meet the requirements after the display screen displays the preview picture. After the shooting parameters of the camera are adjusted, the camera collects the preview picture again according to the adjusted shooting parameters and realizes the preview picture in the display screen until a user presses a shooting key to finish shooting after satisfying the displayed preview picture. However, after the user finishes adjusting the shooting parameters of the camera, the user often finds that the current position is not suitable for shooting, and needs to replace the shooting position or wait for a certain time before shooting. However, since the shooting mode of the terminal device is generally set to the automatic mode, if the user moves with the terminal device, the shooting parameters of the camera may be automatically adjusted when the camera detects that the shooting scene changes, and after the user reaches a suitable shooting position, the user still needs to adjust the shooting parameters again even if shooting the same area. For example, when a user travels in a scenic spot, the user needs to take pictures in hot scenic spots, but due to the fact that the number of people in the hot scenic spots is large, the user often needs to take pictures after adjusting shooting parameters due to the influence of other visitors and changing positions or wait for a certain time. However, no matter the position is changed or the camera waits for a certain time, the pictures collected in the camera are changed, and if the terminal equipment is in the automatic shooting mode, the shooting parameters of the camera are readjusted according to the changed pictures. The user needs to repeatedly adjust the shooting parameters although shooting the same scene, which affects the user's experience of shooting with the terminal device.
Fig. 1 is a flowchart of a first embodiment of a photographing method provided in an embodiment of the present application, and as shown in fig. 1, the method provided in this embodiment includes:
step 101, when the device is in a shooting state and a preview screen is displayed, acquiring a shooting parameter adjustment instruction for adjusting shooting parameters.
The photographing method provided by the embodiment of the application is applied to any terminal equipment comprising a camera or a camera module, has the capability of photographing photos or videos, is provided with a display screen, and can display the photographing preview in the display screen. Such as digital cameras, digital video cameras, smart phones, tablet computers, and the like.
When the terminal equipment is in a shooting state, if the terminal equipment has a shooting preview function, a preview picture is displayed in a display screen. The current terminal device has at least two shooting modes of automatic shooting and manual shooting, wherein the automatic shooting is generally a default setting. In the automatic shooting mode, after a camera of the terminal equipment aims at a shooting area, the automatic adjustment of shooting parameters can be realized according to a series of adjustment mechanisms, so that users without shooting experience can shoot photos with good effect. However, the automatic shooting mode is only to adjust the shooting parameters according to a preset adjusting program, and the shooting parameters after automatic adjustment cannot necessarily meet the requirements of all users. For more professional users or users who need to shoot specific effects, the shooting parameters automatically adjusted cannot meet the requirements of the users, and at the moment, the users need to adjust the shooting parameters of the cameras. In the manual shooting mode of the terminal device, the terminal device does not automatically adjust the shooting parameters, only maintains the default shooting parameters, and needs to adjust various shooting parameters by the user.
And 102, updating the displayed preview picture by using the shooting parameters adjusted in the shooting parameter adjusting instruction, and storing the updated preview picture and the adjusted shooting parameters.
After the user adjusts the shooting parameters, the camera of the terminal device uses the adjusted shooting parameters to re-collect the preview picture, and uses the re-collected preview picture to update the preview picture displayed in the display screen. The user can determine whether the required shooting effect is satisfied according to the updated preview displayed in the display screen. In order to avoid the need of repeatedly adjusting the shooting parameters of the camera when the user shoots the same scene, in the embodiment of the application, each time the camera of the terminal device applies the shooting parameter adjustment instruction to adjust the shooting parameters and updates the displayed preview picture, the updated preview picture and the corresponding shooting parameters are stored. The storage of the updated preview picture may be to store the whole updated preview picture, or to perform image processing on the updated preview picture to obtain corresponding image features and store the corresponding image features.
And 103, matching the acquired picture with the stored preview picture after the acquired picture is changed and the shooting parameters are changed.
After the updated preview image is stored, if the user moves with the terminal device or the object to be photographed in the camera moves, the image collected by the camera changes. If the change range of the pictures collected by the camera is too large, the terminal equipment in the automatic shooting mode automatically adjusts the shooting parameters of the camera so that the shooting parameters of the camera meet the current pictures. However, the changed picture is often not the picture that the user needs to take, and in most cases, the user still desires to take the image before the picture is changed. Even if the user moves to a position where the user can shoot an image before the picture is changed or the object in the shooting scene moves to the original position, the shooting parameters of the camera are changed, and the shooting effect required by the user cannot be directly shot.
In the prior art, a user is required to readjust shooting parameters of a camera. In the embodiment of the present application, since the updated preview image is stored, when the image acquired by the camera changes and the shooting parameters of the camera change, the image acquired by the camera can be matched with the stored preview image. The specific method for matching the picture acquired by the camera with the stored preview picture can adopt any image matching method, and the purpose of image matching is to determine whether the picture acquired by the camera is consistent with the preview picture after the shooting parameters are adjusted by the user.
And 104, if the picture acquired by the head is successfully matched with the stored preview picture, applying the adjusted shooting parameters.
If the picture collected by the camera is successfully matched with the stored preview picture, the picture collected by the camera is the same as the stored preview picture or the similarity of the picture collected by the camera and the stored preview picture exceeds a preset threshold value. Therefore, the shooting parameters stored simultaneously with the stored preview picture are applied to the picture collected by the current camera, and the shooting effect required by the user can be achieved. Therefore, after the picture collected by the camera is successfully matched with the stored preview picture, the camera can be controlled to apply the stored adjusted shooting parameters.
And 105, shooting to obtain a shot picture after the shooting instruction is acquired.
After the camera is controlled to apply the stored shooting parameters, the shooting parameters of the camera are also adjusted by the user because the current picture collected by the camera is the same as the stored preview picture, so that the user does not need to adjust the shooting parameters again. The user can directly press or touch the photographing button to trigger photographing, and after the terminal equipment acquires the photographing instruction, the camera is controlled to photograph, so that a satisfactory photo of the user can be obtained.
In this embodiment, after the user adjusts the shooting parameters of the camera according to the shooting requirements, even if the image acquired by the camera changes, the shooting parameters of the camera also change, and as the shooting parameters and the preview image adjusted by the user are stored, the terminal device can control the camera to directly apply the stored shooting parameters as long as the image acquired by the camera is matched with the stored preview image again, and the user can shoot the photo of the cardioscope without adjusting the shooting parameters.
According to the shooting method provided by the embodiment of the application, when the shooting state is achieved and the preview picture is displayed, the shooting parameter adjusting instruction for adjusting the shooting parameters is obtained, the displayed preview picture is updated by applying the shooting parameters adjusted in the shooting parameter adjusting instruction, the updated preview picture and the adjusted shooting parameters are stored, when the collected picture is changed and the shooting parameters are changed, the collected picture is matched with the stored preview picture, if the collected picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied, and after the shooting instruction is obtained, the shot picture is obtained, so that the shooting operation of a user can be reduced, and the use experience of the user is improved.
Fig. 2 is a flowchart of a second embodiment of a photographing method provided in the embodiment of the present application, and as shown in fig. 2, the method provided in the embodiment includes:
step 201, when the shooting state is in the shooting state and the preview screen is displayed, the shooting subject selected by the user in the preview screen is obtained.
In the embodiment shown in fig. 1, after the user adjusts the shooting parameters, the terminal device stores the updated entire preview screen or the image features corresponding to the entire preview screen. However, in step 103, when the image acquired by the camera is matched with the stored preview image, if the whole preview image or the corresponding image features are used, the calculation amount of image processing is large, and the real-time processing can be realized only by a terminal device with strong calculation capability. Therefore, in the present embodiment, when the terminal device displays the preview screen, the photographic subject selected by the user in the preview screen may be acquired first. Whether the user uses the terminal device to photograph a landscape, a person, an animal or other objects, a plurality of photographed targets can be divided within the photographed area. One or more of the objects may be the objects of most interest to the user, and the user may take a picture to meet the desired effect.
Therefore, in the present embodiment, a photographic subject selected by the user in the preview screen, that is, a photographic subject in which the user is interested, can be acquired. The user may select the photographic subject by clicking in the preview screen, or the user may also select the photographic subject in a certain figure or gesture in the preview screen. For example, when the user is taking a portrait and the user's shooting target is a person in the preview screen, the user may click on the face of the person in the preview screen, or the user may include the person in a closed image. The terminal device may determine the photographic subject in the preview screen according to a user operation in the preview screen.
Step 202, automatically determining the shooting parameters required to be adjusted according to the shooting subject or receiving the shooting parameters required to be adjusted and indicated by the user to the shooting subject.
The terminal equipment has two modes of automatic shooting and manual shooting, and in the automatic shooting mode, if a user selects a shooting subject in a preview picture, the terminal equipment can automatically adjust shooting parameters of the camera to shooting parameters required by the shooting subject, and the user does not need to manually adjust the shooting parameters. Of course, if the user is not satisfied with the automatically adjusted shooting parameters, the shooting parameters of the camera can still be adjusted again. In the manual shooting mode, a user needs to adjust shooting parameters of the camera according to own requirements. However, in any adjustment method, the shooting parameters to be adjusted by the corresponding camera of the shooting subject in the preview picture can be finally obtained.
And step 203, updating the displayed preview picture by using the shooting parameters required to be adjusted, and storing the updated preview picture and the adjusted shooting parameters.
This step is similar to step 102, however, after the preview screen displayed on the display screen is updated, the preview screen may be stored entirely. Of course, if the user selects a photographic subject in the preview screen, it is more preferable to store only the image features of the photographic subject in the updated preview screen. Since the subject in the preview screen is only a part of the preview screen, storing the image features of the subject can reduce the space required for storage, and can reduce the amount of matching calculation when performing image matching. Therefore, only the image feature of the photographic subject in the updated preview screen can be stored.
And 204, matching the image characteristics of the acquired picture with the stored image characteristics of the shooting subject after the acquired picture is changed and the shooting parameters are changed.
Since the user selects the shooting subject in the preview image, when the picture acquired by the camera changes and the shooting parameters of the camera change and then the picture acquired by the camera is matched again, only the image features of the picture acquired by the camera and the image features of the shooting subject in the stored preview image can be matched. After the user adjusts the shooting parameters according to a shooting scene, even if the shooting scene is aligned again, the re-aligned shooting scene and the scene when the shooting parameters are adjusted will not be identical due to the influence of various factors. Especially, when a user shoots outdoors, various complicated factors in the outdoors can affect the shooting scene. Therefore, when matching a picture captured by a camera with a stored preview picture, only a photographic subject in the preview picture can be matched. Since the shooting subject is selected by the user and is the target that the user desires to shoot, the shooting parameters of the camera are also adjusted according to the shooting subject. Therefore, as long as the image characteristics of the picture acquired by the camera are matched with the image characteristics of the shooting subject in the stored preview picture, the shooting parameters stored simultaneously with the preview picture are applied to the camera, and the shooting effect of the shooting subject can meet the requirements of the user.
In step 205, if the similarity between the image feature of the acquired image and the image feature of the shooting subject exceeds a preset threshold, the adjusted shooting parameters are applied.
When the image characteristics of the picture acquired by the camera are matched with the stored image characteristics of the shooting subject, the shooting subject can be determined to exist in the picture acquired by the camera as long as the feature with the similarity exceeding the preset threshold value with the stored image characteristics of the shooting subject exists in the picture acquired by the camera. It is thus possible to control the camera to apply the photographing parameters stored simultaneously with the photographing subject at this time.
And step 206, after the shooting instruction is obtained, shooting is carried out to obtain a shot picture.
The photographing method provided by the embodiment of the application obtains the photographing subject selected by the user in the preview picture when the photographing state is in a photographing state and the preview picture is displayed, automatically determines the photographing parameters required to be adjusted according to the photographing subject or receives the photographing parameters required to be adjusted and indicated by the user to the photographing subject, updates the displayed preview picture by using the photographing parameters required to be adjusted, stores the updated preview picture and the adjusted photographing parameters, matches the acquired picture with the stored preview picture after the acquired picture is changed and the photographing parameters are changed, applies the adjusted photographing parameters if the acquired picture is successfully matched with the stored preview picture, performs photographing after the photographing instruction is obtained, obtains the photographed picture, can reduce the photographing operation of the user, improves the use experience of the user, and can reduce the calculation amount for image matching, the photographing method can be applied to low-cost terminal equipment.
Further, in the embodiment shown in fig. 1 or fig. 2, if the acquired picture is successfully matched with the stored preview picture, the applying the adjusted shooting parameter includes: and if the acquired picture is successfully matched with the stored preview picture within the preset time after the updated preview picture is stored, applying the adjusted shooting parameters.
Since a user cannot always photograph a target or a scene by photographing using a terminal device, there is a time limit required for storing and matching updated preview pictures and adjusted photographing parameters. If the time limit is not provided, the terminal device needs to match the image acquired by the camera with the stored image all the time, which consumes a lot of processing resources of the terminal device, and in addition, if only one group of preview pictures and shooting parameters are provided and stored, the user can only adjust the automatic shooting parameters of the pictures all the time, obviously, the user requirements cannot be met, and if a plurality of groups of preview pictures and shooting parameters are provided and stored at the same time, more processing resources are consumed by image matching. Therefore, a time period needs to be set for storing and matching the preview image and the shooting parameters, and if the updated preview image is stored within a preset time, the image acquired by the camera is matched with the stored preview image. If the updated preview image is stored after a preset time, the matching is not performed any more, and the stored preview image and the shooting parameters can be deleted.
Further, in the embodiment shown in fig. 1 or fig. 2, after storing the updated preview screen, the method further includes: and if the shooting state is quitted, within the preset time after the updated preview picture is stored, if the shooting state is maintained again, the adjusted shooting parameters are applied.
When the user takes a picture, the user may exit the shooting state after finding that the shooting parameter is not suitable for shooting after adjusting the shooting parameter. If the shooting state is performed again after the shooting state is exited, the terminal device in the prior art will reapply the default shooting parameters of the camera. In the embodiment of the present application, after the user adjusts the shooting parameters and stores the updated preview picture and the adjusted shooting parameters, if the terminal device exits from the shooting state, the preview picture and the adjusted shooting parameters are still stored within a preset time. If the terminal equipment is in the shooting state again within the preset time, the shooting parameters stored by the camera can be controlled. Since it is within the preset time for storing the photographing parameters that the terminal device is in the photographing state again, there is a high probability that the user still needs to photograph the same object or scene. Therefore, at this time, the camera is controlled to apply the stored shooting parameters, which is equivalent to using the stored shooting parameters as default shooting parameters of the camera, so that the user can be prevented from adjusting the shooting parameters again in a very large rate. Of course, since the preview screen is stored at the same time, when the terminal device is in the shooting state again, the shooting parameters of the camera can be adjusted after the screen matching is performed.
Fig. 3 is a schematic structural diagram of a first photographing device according to an embodiment of the present application, and as shown in fig. 3, the photographing device according to the embodiment includes:
a shooting parameter adjustment instruction obtaining module 31, configured to obtain a shooting parameter adjustment instruction for adjusting a shooting parameter when the shooting state is achieved and the preview screen is displayed.
And a preview picture and shooting parameter storage module 32, configured to update the displayed preview picture by applying the shooting parameters adjusted in the shooting parameter adjustment instruction, and store the updated preview picture and the adjusted shooting parameters.
And the image matching module 33 is configured to match the acquired image with the stored preview image after the acquired image changes and the shooting parameters change.
And a shooting parameter adjusting module 34, configured to apply the adjusted shooting parameters if the acquired picture is successfully matched with the stored preview picture.
And the image shooting module 35 is configured to shoot after the shooting instruction is obtained, so as to obtain a shot picture.
The photographing device provided by the embodiment of the application can execute the photographing method provided by the embodiment shown in fig. 1 or fig. 2, and has the corresponding functional modules and beneficial effects of the execution method.
Further, on the basis of the embodiment shown in fig. 3, the shooting parameter adjustment instruction obtaining module 31 is specifically configured to, when the shooting status is in a shooting state and a preview screen is displayed, obtain a shooting subject selected by a user in the preview screen; automatically determining shooting parameters required to be adjusted according to a shooting subject or receiving shooting parameters required to be adjusted and indicated by a user to the shooting subject; the preview picture and shooting parameter storage module 32 is specifically configured to update the displayed preview picture by applying the shooting parameters that need to be adjusted, and store the updated preview picture and the adjusted shooting parameters.
Further, on the basis of the embodiment shown in fig. 3, the preview screen and shooting parameter storage module 32 is specifically configured to store the image features and the adjusted shooting parameters of the shooting subject in the updated preview screen; the image matching module 33 is specifically configured to match the image characteristics of the acquired image with the stored image characteristics of the shooting subject after the acquired image changes and the shooting parameters change; the shooting parameter adjusting module 34 is specifically configured to apply the adjusted shooting parameter if the similarity between the image feature of the acquired picture and the image feature of the shooting subject exceeds a preset threshold.
Further, on the basis of the embodiment shown in fig. 3, the shooting parameter adjusting module 34 is specifically configured to apply the adjusted shooting parameter if the acquired picture is successfully matched with the stored preview picture within a preset time after the updated preview picture is stored.
Further, on the basis of the embodiment shown in fig. 3, the shooting parameter adjusting module 34 is further configured to, if the shooting state is exited, apply the adjusted shooting parameter within a preset time after the updated preview image and the adjusted shooting parameter are stored, and if the shooting state is resumed
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal includes a processor 41, a memory 42, a camera assembly 43, and a display 44; the number of the processors 41 in the terminal may be one or more, and one processor 41 is taken as an example in fig. 4; a processor 41, a memory 42, a camera assembly 43 and a display 44 in the terminal; may be connected by a bus or other means, such as by a bus as illustrated in fig. 4.
The memory 42 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the photographing method in the embodiment of fig. 1 or fig. 2 (for example, the photographing parameter adjusting instruction obtaining module 31, the preview picture and photographing parameter storing module 32, the image matching module 33, the camera control module 34, and the image photographing module 35 in the photographing apparatus). The processor 41 executes software programs, instructions and modules stored in the memory 42, thereby implementing various functional applications and data processing of the terminal, i.e., implementing the photographing method described above.
The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
The number of the camera assemblies 43 may be one or more, and may be any form of camera or camera module, and the image may be captured under the control of the processor 41, and the preview image may be displayed on the display screen. The display screen 44 may be any form of display screen, and may display the preview image acquired by the camera 43 according to the control of the processor 41, and may display an image obtained by processing the preview image by the processor 41.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of taking a picture, the method comprising:
when the terminal is in a shooting state and a preview picture is displayed, a shooting parameter adjusting instruction for adjusting the shooting parameters is obtained;
updating the displayed preview picture by using the shooting parameters adjusted in the shooting parameter adjusting instruction, and storing the updated preview picture and the adjusted shooting parameters;
when the collected picture is changed and the shooting parameters are changed, matching the collected picture with the stored preview picture;
if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied;
when a shooting instruction is obtained, shooting is carried out to obtain a shot picture
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the method operations described above, and may also perform related operations in the photographing method provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (9)

1. A method of taking a picture, comprising:
when the terminal is in a shooting state and a preview screen is displayed, a shooting parameter adjusting instruction for adjusting shooting parameters is acquired;
updating the displayed preview picture by using the shooting parameters adjusted in the shooting parameter adjusting instruction, and storing the updated preview picture and the adjusted shooting parameters;
when the collected picture is changed and the shooting parameters are changed, matching the collected picture with a stored preview picture;
if the updated preview picture is stored for a preset time, the matching is not carried out, and the stored preview picture and the shooting parameters are deleted;
if the acquired picture is successfully matched with the stored preview picture, applying the adjusted shooting parameters;
when a shooting instruction is obtained, shooting is carried out to obtain a shot picture;
if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied, and the method comprises the following steps:
and if the acquired picture is successfully matched with the stored preview picture within the preset time after the updated preview picture is stored, applying the adjusted shooting parameters, wherein the adjusted shooting parameters are generated according to a shooting parameter adjusting instruction sent by a user in a manual shooting mode.
2. The method according to claim 1, wherein the acquiring of the shooting parameter adjustment instruction for adjusting the shooting parameter when the preview screen is displayed in the shooting state comprises:
when the shooting state is achieved and a preview picture is displayed, a shooting subject selected by a user in the preview picture is obtained;
automatically determining shooting parameters required to be adjusted according to the shooting subject or receiving shooting parameters required to be adjusted and indicated by a user to the shooting subject;
the updating the displayed preview picture by applying the shooting parameters adjusted in the shooting parameter adjustment instruction, and storing the updated preview picture and the adjusted shooting parameters, comprising:
and updating the displayed preview picture by applying the shooting parameters to be adjusted, and storing the updated preview picture and the adjusted shooting parameters.
3. The method of claim 2, wherein storing the updated preview screen and the adjusted capture parameters comprises:
storing the image characteristics of the shooting subject and the adjusted shooting parameters in the updated preview picture;
when the collected picture is changed and the shooting parameters are changed, matching the collected picture with a stored preview picture, comprising the following steps:
when the collected picture is changed and the shooting parameters are changed, matching the image characteristics of the collected picture with the stored image characteristics of the shooting subject;
if the acquired picture is successfully matched with the stored preview picture, the adjusted shooting parameters are applied, and the method comprises the following steps:
and if the similarity between the image characteristics of the acquired picture and the image characteristics of the shooting subject exceeds a preset threshold, applying the adjusted shooting parameters.
4. The method according to any one of claims 1 to 3, further comprising, after storing the updated preview screen and the adjusted shooting parameters:
and if the shooting state is quitted, the adjusted shooting parameters are applied if the preview picture after updating and the adjusted shooting parameters are stored in the preset time, and the shooting state is carried out again.
5. A photographing apparatus, comprising:
a shooting parameter adjustment instruction acquisition module, configured to acquire a shooting parameter adjustment instruction for adjusting a shooting parameter when the preview screen is displayed in a shooting state;
the preview picture and shooting parameter storage module is used for updating the displayed preview picture by applying the shooting parameters adjusted in the shooting parameter adjusting instruction and storing the updated preview picture and the adjusted shooting parameters;
the image matching module is used for matching the acquired picture with the stored preview picture after the acquired picture is changed and the shooting parameters are changed; if the updated preview picture is stored for a preset time, the matching is not carried out, and the stored preview picture and the shooting parameters are deleted;
the shooting parameter adjusting module is used for applying the adjusted shooting parameters if the acquired picture is successfully matched with the stored preview picture within the preset time after the updated preview picture is stored, wherein the adjusted shooting parameters are generated according to a shooting parameter adjusting instruction sent by a user in a manual shooting mode;
and the image shooting module is used for shooting after the shooting instruction is obtained to obtain the shot picture.
6. The apparatus according to claim 5, wherein the shooting parameter adjustment instruction obtaining module is specifically configured to, when in a shooting state and a preview screen is displayed, obtain a shooting subject selected by a user in the preview screen; automatically determining shooting parameters required to be adjusted according to the shooting subject or receiving shooting parameters required to be adjusted and indicated by a user to the shooting subject;
the preview picture and shooting parameter storage module is specifically configured to update the displayed preview picture by applying the shooting parameters to be adjusted, and store the updated preview picture and the adjusted shooting parameters.
7. The apparatus according to claim 6, wherein the preview screen and shooting parameter storage module is specifically configured to store the image feature of the shooting subject and the adjusted shooting parameter in the updated preview screen;
the image matching module is specifically used for matching the image characteristics of the acquired picture with the stored image characteristics of the shooting subject after the acquired picture is changed and the shooting parameters are changed;
the shooting parameter adjusting module is specifically configured to apply the adjusted shooting parameter if the similarity between the image feature of the acquired picture and the image feature of the shooting subject exceeds a preset threshold.
8. A terminal, comprising: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the photographing method according to any one of claims 1 to 4.
9. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the photographing method according to any one of claims 1 to 4.
CN201810457231.3A 2018-05-14 2018-05-14 Photographing method, device, terminal and storage medium Active CN108683847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810457231.3A CN108683847B (en) 2018-05-14 2018-05-14 Photographing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810457231.3A CN108683847B (en) 2018-05-14 2018-05-14 Photographing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108683847A CN108683847A (en) 2018-10-19
CN108683847B true CN108683847B (en) 2022-01-04

Family

ID=63806258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810457231.3A Active CN108683847B (en) 2018-05-14 2018-05-14 Photographing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108683847B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225151B (en) * 2020-01-20 2024-04-30 深圳传音控股股份有限公司 Intelligent terminal, shooting control method and computer readable storage medium
CN112788248A (en) * 2021-03-24 2021-05-11 三星电子(中国)研发中心 Shooting method and device
US11785335B2 (en) * 2021-03-04 2023-10-10 Samsung Electronics Co., Ltd. Automatic adjusting photographing method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188423A (en) * 2011-12-27 2013-07-03 富泰华工业(深圳)有限公司 Camera shooting device and camera shooting method
CN107509029A (en) * 2013-01-07 2017-12-22 华为技术有限公司 A kind of image processing method and device
CN103458190A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Photographing method, photographing device and terminal device
CN104717416A (en) * 2013-12-13 2015-06-17 王凯 Method and device for integrated control over camera shooting
CN106686301A (en) * 2016-12-01 2017-05-17 努比亚技术有限公司 Picture shooting method and device
CN107566717B (en) * 2017-08-08 2020-05-05 维沃移动通信有限公司 Shooting method, mobile terminal and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
049 MCIPPMS-微循环图象处理及参数测量系统;张志广;《微循环学杂志》;20040108;全文 *

Also Published As

Publication number Publication date
CN108683847A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US20170163878A1 (en) Method and electronic device for adjusting shooting parameters of camera
WO2019134502A1 (en) Photographing method and device, storage medium, and electronic apparatus
CN112954196B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN108683847B (en) Photographing method, device, terminal and storage medium
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
WO2022089284A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN112637515B (en) Shooting method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112087579B (en) Video shooting method and device and electronic equipment
CN112822412A (en) Exposure method and electronic apparatus
CN111654624B (en) Shooting prompting method and device and electronic equipment
CN103780839A (en) Shooting method and terminal
CN109218609A (en) Image composition method and device
CN113824883A (en) Information processing method and electronic equipment
CN110581950B (en) Camera, system and method for selecting camera settings
CN112333386A (en) Shooting method and device and electronic equipment
CN112367465B (en) Image output method and device and electronic equipment
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
CN112887610A (en) Shooting method, shooting device, electronic equipment and storage medium
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN112887624B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting 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