CN111277758A - Photographing method, terminal and computer-readable storage medium - Google Patents

Photographing method, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN111277758A
CN111277758A CN202010117730.5A CN202010117730A CN111277758A CN 111277758 A CN111277758 A CN 111277758A CN 202010117730 A CN202010117730 A CN 202010117730A CN 111277758 A CN111277758 A CN 111277758A
Authority
CN
China
Prior art keywords
focal length
initial
focus
information
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010117730.5A
Other languages
Chinese (zh)
Other versions
CN111277758B (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010117730.5A priority Critical patent/CN111277758B/en
Publication of CN111277758A publication Critical patent/CN111277758A/en
Application granted granted Critical
Publication of CN111277758B publication Critical patent/CN111277758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Abstract

The invention belongs to the technical field of computers, and relates to a shooting method, a terminal and a computer readable storage medium, wherein the shooting method comprises the following steps: and entering a viewing state. Initial focus information is acquired to perform a focus change operation. And receiving a confirmation instruction for the focal length change operation to perform the shooting operation. Therefore, after the camera enters a view finding state, the camera can automatically or manually focus to obtain initial focal length information, and further can automatically perform corresponding focal length change operation according to the initial focal length information so that a user can quickly preview view finding images with different focal lengths, and the aim of still conveniently performing focusing operation to obtain images which the user wants to shoot in some scenes which are difficult to focus is fulfilled.

Description

Photographing method, terminal and computer-readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a shooting method, a terminal, and a computer-readable storage medium.
Background
Currently, focusing operation is usually required to obtain an image desired by a user when taking a picture. Focusing is to adjust the focal distance when using a camera, and the english name is Focus, and a digital camera generally has a plurality of focusing modes, namely, an automatic focusing mode, a manual focusing mode and a multiple focusing mode. Focusing is also called focusing. The distance and the distance of the object are changed by the camera focusing mechanism, so that the process of imaging the shot object clearly is focusing.
However, there are some scenes that are not easy to focus, for example, a scene of a filament-shaped object, a scene of a small object, a scene with small scene contrast, a scene with too large subject background contrast, a scene with too low or too high ambient brightness, a scene with interference of a high-brightness light source, a scene that needs to be shot through a transparent barrier (e.g., glass), and the like, during shooting, however, in these scenes that are not easy to focus, the existing shooting technology usually requires a large amount of manual focusing control operations by a user (e.g., manually testing the focal lengths of various points in a viewfinder to manually select a desired focal length), and therefore, in some scenes that are not easy to focus, the focusing method in the existing shooting technology is not convenient enough.
In view of the above problems, those skilled in the art have sought solutions.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a shooting method, a terminal and a computer readable storage medium for achieving focusing operation to obtain an image that a user wants to shoot in some scenes where focusing is not easy to occur.
The invention is realized by the following steps:
the invention provides a shooting method, which comprises the following steps: and entering a viewing state. Initial focus information is acquired to perform a focus change operation. And receiving a confirmation instruction for the focal length change operation to perform the shooting operation.
Further, the step of acquiring initial focal length information to perform a focal length change operation includes: initial focal length information is acquired. And acquiring a corresponding focal length change range according to the initial focal length information. And performing a focal length change operation according to the focal length change range.
Further, the step of acquiring initial focus information includes: and identifying the shooting target to acquire an initial near point focal length value and an initial far point focal length value of the shooting target. The step of obtaining the corresponding focal length variation range according to the initial focal length information comprises the following steps: and acquiring a corresponding focal length change range according to the initial near point focal length value and the initial far point focal length value.
Further, the initial focus information includes an initial focus value. The step of obtaining the corresponding focal length variation range according to the initial focal length information comprises the following steps: and acquiring a focal length change range according to a preset focal length range rule and an initial focal length value.
Further, after the step of acquiring the initial focal length information to perform the focal length change operation, at least one of the following is included: a variation range reduction instruction for the focal length variation operation is received to reduce the focal length variation range of the focal length variation operation. And receiving action information of a user, and mapping to a corresponding focal length value in a focal length change range according to the action information.
Further, the action information includes at least one of: touch information including at least one of a click, a multi-click, a long press, and a slide; contact information including at least one of a contact area, a contact position, a contact duration, and a contact pressure; the direction of operation.
Further, after the step of receiving a variation range reduction instruction for the focal length variation operation to reduce the focal length variation range of the focal length variation operation, the method includes: and receiving a rollback instruction to rollback to the focal length change operation before the step of receiving the change range reduction instruction or to the focal length value before the current focal length value.
Further, after the step of receiving a back-off command to back off to the focal length change operation before the step of receiving the variation range reduction command or to the focal length value before the current focal length value, the method includes: and receiving a forward instruction to cancel the rollback operation corresponding to the rollback instruction.
Further, the step of acquiring initial focal length information to perform a focal length change operation includes: acquiring initial focal length information to perform focal length change operation according to a preset circulation speed.
Further, the step of receiving a confirmation instruction for the focal length change operation to perform the photographing operation includes: taking the current image as a main image according to the confirmation instruction; and acquiring at least one auxiliary image cached in the focal length change operation process. And synthesizing the main image and the auxiliary image to obtain a target image.
Further, the step of acquiring initial focus information to perform a focus change operation includes: initial focus information is acquired to perform a focus cycle change operation.
The invention also provides a terminal comprising a memory and a processor. The processor is adapted to execute a computer program stored in the memory to implement the steps of the photographing method as described above.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the photographing method as described above.
The invention provides a shooting method, a terminal and a computer readable storage medium, wherein the shooting method comprises the following steps: and entering a viewing state. Initial focus information is acquired to perform a focus change operation. And receiving a confirmation instruction for the focal length change operation to perform the shooting operation. Therefore, after the camera enters a view finding state, the camera can automatically focus or manually focus to obtain initial focal length information, and further can automatically perform corresponding focal length change operation according to the initial focal length information so that a user can quickly preview view finding images with different focal lengths, and the aim of conveniently performing focusing operation to obtain images which the user wants to shoot in some scenes which are not easy to focus is fulfilled.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a first flowchart of a photographing method according to a first embodiment of the present invention;
fig. 2 is a second flowchart of the photographing method according to the first embodiment of the present invention;
fig. 3 is a flowchart illustrating a photographing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The first embodiment:
fig. 1 is a first flowchart of a shooting method according to a first embodiment of the present invention. Fig. 2 is a second flowchart of the shooting method according to the first embodiment of the present invention. For a clear description of the shooting method provided by the first embodiment of the present invention, please refer to fig. 1 and fig. 2.
A shooting method provided in a first embodiment of the present invention includes:
s11, enter the viewfinder state.
In one embodiment, the viewfinder starts to operate and previews the viewfinder image on the display after entering the viewfinder state at step S11.
And S12, acquiring initial focal length information to perform a focal length change operation.
In one embodiment, in step S12, initial focus information is obtained to perform a focus change operation, wherein the focus change operation may be, but not limited to, a focus cyclic change operation, a focus random change operation, and the like. The random focal length changing operation can enhance the visual contrast of focal length change, avoid adverse effects caused by visual inertia and facilitate the subsequent focal length selecting operation of a user.
Referring to fig. 2, in an embodiment, in the step S12, acquiring the initial focal length information to perform the focal length change operation, the method may include, but is not limited to: and S121, acquiring initial focal length information. And S122, acquiring a corresponding focal length change range according to the initial focal length information. And S123, performing focal length change operation according to the focal length change range.
In one embodiment, in the step S121, acquiring the initial focal length information may include, but is not limited to: and acquiring initial focal length information obtained through automatic focusing operation or manual focusing operation, wherein the initial focal length information comprises at least one initial focal length value. For example, when the viewfinder is directed at an object to be photographed, the auto-focus function of the camera auto-focuses to obtain an initial focal length value of 1 (e.g., auto-focuses to an object in the middle area of the viewfinder frame to obtain an initial focal length value of 1), or the user manually focuses (e.g., manually clicks a certain point in the viewfinder frame) to obtain an initial focal length value of 1. For another example, a shot target in a viewfinder image is identified, and an auto-focus operation or a manual focus operation is performed on the shot target, so that a focal length value required by the shot target to be located at the closest point to the viewfinder is taken as a first initial focal length value (or called initial near point focal length value), and a focal length value required by the shot target to be located at the farthest point from the viewfinder is taken as a second initial focal length value (or called initial far point focal length value).
In one embodiment, the initial focus information includes an initial focus value. In step S122, acquiring a corresponding focal length variation range according to the initial focal length information, which may include, but is not limited to: and acquiring a focal length change range according to a preset focal length range rule and an initial focal length value. For example, the preset focal length range rule is 10 focal length values before and after the initial focal length value, the initial focal length value is used as the origin, 10 focal length values before and after the origin are used as the focal length variation range, when the focal length cyclic variation operation is performed, the minimum value of the focal length variation range is gradually changed to the initial focal length value, the initial focal length value is gradually changed to the maximum value of the focal length variation range, the maximum value is gradually changed to the initial focal length value, the initial focal length value is gradually changed to the minimum value, and the process is repeated.
In an embodiment, the preset focal length range rule may be default to the system or preset by the user, for example, 10 focal length values before and after the initial focal length value; again for example 20 focus values before and after the initial focus value, etc.
In other embodiments, in step S121, obtaining the initial focal length information may include, but is not limited to: and identifying the shooting target to acquire an initial near point focal length value and an initial far point focal length value of the shooting target. In step S122, acquiring a corresponding focal length variation range according to the initial focal length information, including: and acquiring a corresponding focal length change range according to the initial near point focal length value and the initial far point focal length value. Specifically, when the focal length cyclic variation operation is performed, the initial near point focal length value (or the initial far point focal length value) is gradually changed to the initial far point focal length value (or the initial near point focal length value), and then the initial far point focal length value (or the initial near point focal length value) is gradually changed to the initial near point focal length value (or the initial far point focal length value), and the operation is cyclically changed.
In one embodiment, after acquiring the initial focal length information to perform the focal length change operation at step S12, the method may include, but is not limited to: a variation range reduction instruction for the focal length variation operation is received to reduce the focal length variation range of the focal length variation operation. And/or receiving action information of a user, and mapping to a corresponding focal length value in the focal length change range according to the action information.
In an embodiment, in the step of receiving the variation range reduction instruction for the focal length variation operation to reduce the focal length variation range of the focal length variation operation, for example, the focal length value corresponding to the variation range reduction instruction is updated to the initial focal length value, and the focal length variation range is updated according to the preset second focal length range rule and the initial focal length value to reduce the focal length variation range of the focal length variation operation. The preset second focal length range rule may be default or preset by the user, and is used to set a reduction rule of the distance variation range (for example, a reduction ratio of the range or a size of a new range interval, etc.). The variation range reduction instruction may be used for a user operation such as clicking a current view screen, multi-clicking the current view screen, multi-finger clicking the current view screen, operating a corresponding control or physical key, or first clicking a display or the like. Specifically, when the shooting method provided by this embodiment performs the focal length changing operation, the user may perform the corresponding user operation to input the change range reduction instruction when seeing the desired viewfinder image, so as to reduce the focal length change range of the focal length changing operation, so that the user can more easily select the most satisfactory viewfinder image for shooting operation.
In an embodiment, in the shooting method provided in this embodiment, the step of receiving the change range reduction instruction for the focal length change operation to reduce the focal length change range of the focal length change operation may be performed, but is not limited to being performed once, and therefore, the shooting method provided in this embodiment may reduce the focal length change range of the focal length change operation multiple times, which further facilitates the user to more easily select the most satisfactory viewfinder frame for shooting operation.
In an embodiment, after the step of receiving the variation range reduction instruction for the focal length variation operation to reduce the focal length variation range of the focal length variation operation, the method may include, but is not limited to: receiving a rollback instruction to rollback to a focal length change operation before the step of receiving the variation range reduction instruction, or receiving a rollback instruction to rollback to a focal length change operation before the most recent step of receiving the variation range reduction instruction, or to a focal length value before the current focal length value (so that a user can finely adjust the focal length value).
In one embodiment, after receiving a back-off command to back off to a focus change operation before the step of receiving the variation range reduction command, or receiving a back-off command to back off to a focus change operation before the most recent step of receiving the variation range reduction command, or to a focus value before the current focus value, the method may include, but is not limited to: and receiving a forward instruction to cancel the rollback operation corresponding to the rollback instruction. Therefore, the shooting method provided by the embodiment can receive the forward instruction to cancel the rollback operation after receiving the rollback instruction to perform the rollback operation, so as to return to the state before the step of receiving the rollback instruction.
In one embodiment, in the step of receiving the motion information of the user, mapping to a corresponding focal length value within the focal length variation range according to the motion information, wherein the motion information may include, but is not limited to, at least one of the following: the touch information may include, but is not limited to, at least one of a single click, a multi-click, a long press, a swipe, and the like. The contact information may include, but is not limited to, at least one of a contact area, a contact position, a contact time, a contact pressure, and the like. The direction of operation.
In one embodiment, the action information includes touch information and contact information, such as single-finger clicking, multi-finger clicking, clicking on the left side of the screen, clicking on the right side of the screen, long-pressing for a preset time, and the like. The motion information includes touch information and operation direction conditions, such as left-sliding (or right-sliding), long-pressing and left-sliding (or right-sliding), and the like.
In one embodiment, the motion information is mapped to a corresponding focal length value within the focal length variation range, for example, a first end point focal length value of the focal length variation range when sliding left, a second end point focal length value of the focal length variation range when sliding right, and a middle focal length value of the focal length variation range when double-clicking the screen.
In an embodiment, the step of acquiring the initial focal length information to perform the focal length change operation may include, but is not limited to: acquiring initial focal length information to perform focal length change operation according to a preset circulation speed. The preset circulation speed may be a default of the system or may be preset by the user.
And S13, receiving a confirmation instruction for the focal length change operation to carry out the shooting operation.
In one embodiment, in step S13, a confirmation instruction for the focus change operation is received to perform the photographing operation, where the confirmation instruction may correspond to a user operation, such as multi-clicking on the current view screen, operating a corresponding control or physical key, or clicking again on the display, etc.
In one embodiment, the receiving of the confirmation instruction for the focal length change operation to perform the photographing operation in step S13 may include, but is not limited to: and taking the current image as the main image according to the confirmation instruction. And acquiring at least one auxiliary image cached in the focal length change operation process. And synthesizing the main image and the at least one auxiliary image to obtain the target image. Therefore, the shooting method provided by the embodiment can obtain a plurality of target images with sharp focuses or fuzzy areas outside a plurality of focus areas.
In other embodiments, in step S13, receiving a confirmation instruction for the focal length change operation to perform the photographing operation may include, but is not limited to: and receiving a confirmation instruction for the focal length change operation to acquire the shooting node. And caching a plurality of framing images or videos in a preset time period before or after the shooting node. The method and the device can facilitate the user to select favorite image photos or obtain video pictures with dynamically changed focal lengths.
In an embodiment, the shooting method provided in this embodiment may be applied to a terminal, such as a mobile phone, a camera, a tablet computer, a smart watch, and the like. In addition, the shooting method provided by the embodiment can be applied to shooting or video recording scenes.
A shooting method provided in a first embodiment of the present invention includes: s11, enter the viewfinder state. And S12, acquiring initial focal length information to perform a focal length change operation. And S13, receiving a confirmation instruction for the focal length change operation to carry out the shooting operation. Therefore, after entering the view-finding state, the shooting method provided by the first embodiment of the present invention can automatically focus or manually focus to obtain the initial focal length information, and further can automatically perform a corresponding focal length change operation according to the initial focal length information so that the user can quickly preview view-finding images with different focal lengths.
Second embodiment:
fig. 3 is a flowchart illustrating a shooting method according to a second embodiment of the present invention. For a clear description of the shooting method provided by the second embodiment of the present invention, please refer to fig. 3.
A shooting method according to a second embodiment of the present invention includes:
s21, enter the viewfinder state.
And S22, automatically identifying the shooting target to obtain an initial near point focal length value and an initial far point focal length value of the shooting target.
In one embodiment, in step S22, the automatically recognizing the photographic target to obtain the initial near point focal length value and the initial far point focal length value of the photographic target may include, but is not limited to: and automatically identifying a shooting target in a view finding picture, and carrying out automatic focusing operation on the shooting target so as to take a focal length value required by the shooting target to be closest to the viewfinder as an initial near point focal length value and take a focal length value required by the shooting target to be farthest from the viewfinder as an initial far point focal length value.
And S23, acquiring a corresponding focal length change range according to the initial near point focal length value and the initial far point focal length value.
In one manner, in step S23, the obtaining of the corresponding focal length variation range according to the initial near point focal length value and the initial far point focal length value may include, but is not limited to: and taking the initial near point focal length value and the initial far point focal length value as range endpoints to acquire a focal length change range.
And S24, performing a focal length cyclic change operation according to the focal length change range.
In one embodiment, in step S24, a focus cycle change operation is performed according to the focus change range, for example, after gradually changing from an initial near point focus value (or an initial far point focus value) to an initial far point focus value (or an initial near point focus value), and then gradually changing from an initial far point focus value (or an initial near point focus value) to an initial near point focus value (or an initial far point focus value), and so on.
In one embodiment, the performing of the focal length cyclic variation operation according to the focal length variation range at step S24 may include, but is not limited to: and performing the focal length cyclic change operation according to the focal length change range and the preset cyclic change speed.
In one embodiment, after the step S24 of performing the focus cycle changing operation according to the focus changing range, the method may include, but is not limited to: receiving a variation range reduction instruction for the focal length cyclic variation operation to reduce the focal length variation range of the focal length cyclic variation operation; and/or receiving action information of a user, and mapping to a corresponding focal length value in the focal length change range according to the action information.
In an embodiment, in the step of receiving a variation range reduction instruction for the focal length cyclic variation operation to reduce the focal length variation range of the focal length cyclic variation operation, the step may include, but is not limited to: receiving a variation range reduction instruction. The focal length value of the through image at the time of receiving the variation range reduction instruction is acquired as an expected initial focal length value. And updating the focal length change range according to a preset second focal length range rule and the expected initial focal length value so as to reduce the focal length change range of the focal length cyclic change operation. The preset second focal length range rule may be default or preset by the user, and is used to set a reduction rule of the distance variation range (for example, a reduction ratio of the range or a size of a new range interval, etc.). Therefore, when the shooting method provided by the embodiment performs the focal length cycle change operation, and the user sees a desired view image, the user can perform corresponding user operation to input the change range reduction instruction, so as to reduce the focal length change range of the focal length cycle change operation, and facilitate the user to more easily select the most satisfactory view image for shooting operation.
In an embodiment, in the shooting method provided in this embodiment, the step of receiving the change range reduction instruction for the focal length cyclic change operation to reduce the focal length change range of the focal length cyclic change operation may be performed, but is not limited to being performed once.
In one embodiment, in the step of receiving the motion information of the user, mapping to a corresponding focal length value within the focal length variation range according to the motion information, wherein the motion information may include, but is not limited to, at least one of the following: touch information, which may include but is not limited to at least one of a single click, a multiple click, a long press, a swipe, and the like; contact information, which may include, but is not limited to, at least one of a contact area, a contact position, a contact duration, a contact pressure, and the like; the direction of operation.
In one embodiment, the action information includes touch information and contact information, such as single-finger clicking, multi-finger clicking, clicking on the left side of the screen, clicking on the right side of the screen, long-pressing for a preset time, and the like. The motion information includes touch information and operation direction conditions, such as left-sliding (or right-sliding), long-pressing and left-sliding (or right-sliding), and the like.
In one embodiment, the step of receiving the motion information of the user and mapping the motion information to a corresponding focal length value within the focal length variation range, for example, mapping different focal length values by the user to the screen pressure, mapping to an initial far point focal length value (i.e. far view sharpness) when the pressure is greater, and mapping to an initial near point focal length value (i.e. near view sharpness) when the pressure is smaller. For another example, after the operation of reducing the focal length variation range of the focal length cyclic variation operation, different focal length values are mapped by the user to the screen pressure, when the pressure is larger, the focal length value is mapped to the first end point of the focal length variation range, and when the pressure is smaller, the focal length value is mapped to the second end point of the focal length variation range. For example, different focal length values are mapped by the user' S long press length, to the initial near point focal length value when the long press length is not more than 1S, and to the initial far point focal length value when the long press length is more than 1S.
And S25, receiving a confirmation instruction for the focal length cycle change operation to carry out the shooting operation.
Specifically, for ease of understanding, the photographing method provided by the present embodiment gives the following example: shooting a potted plant, wherein potted fruits are positioned closest to a viewfinder, potted flowers are positioned farthest from the viewfinder, and green leaves are positioned between the fruits and the flowers. Therefore, after entering the view finding state, the potted plant in the view finding image can be automatically identified to be taken as a shooting target (for example, an existing machine learning image identification algorithm is combined, the area where the shooting target is located in the view finding range is found according to the information such as the outline, the color and the like), the focal distance in the view finding range of the potted plant is automatically changed to find an initial near point focal distance value (namely the focal distance value of the fruit, the image shot at the focal distance value is clearer than the fruit) and an initial far point focal distance value (namely the focal distance value of the flower, the image shot at the focal distance value is clearer than the flower), so that a corresponding focal distance change range can be obtained according to the focal distance value of the fruit and the focal distance value of the flower, the focal distance cyclic change operation is carried out according to the focal distance change range, the preview image of the display screen is continuously changed according to the focal distance cyclic, and when the corresponding focal length value is the focal length value of the middle green leaf when the confirmation instruction input by the user is input, photographing or video recording is carried out to obtain a clear view finding image (namely an image desired by the user) of the green leaf.
In an embodiment, on the premise that technical features of the shooting method provided in this embodiment are not contradictory to those of the shooting method provided in the first embodiment of the present invention, the shooting method provided in this embodiment may be arbitrarily combined, so that specific embodiments and advantageous effects of the shooting method provided in this embodiment may refer to all or part of the shooting method provided in the first embodiment of the present invention, and details thereof will not be repeated herein.
A shooting method according to a second embodiment of the present invention includes: s21, enter the viewfinder state. And S22, identifying the shooting target to obtain an initial near point focal length value and an initial far point focal length value of the shooting target. And S23, acquiring a corresponding focal length change range according to the initial near point focal length value and the initial far point focal length value. And S24, performing a focal length cyclic change operation according to the focal length change range. And S25, receiving a confirmation instruction for the focal length cycle change operation to carry out the shooting operation. Therefore, the shooting method provided by the second embodiment of the present invention enables the focusing operation to completely cover some scenes which are difficult to focus in the prior art, and achieves the purpose that the focusing operation can still be performed conveniently and efficiently to obtain the image which the user wants to shoot in some scenes which are difficult to focus in the prior art. Moreover, the second embodiment of the present invention provides a fast focusing scheme in which the focal length can be adaptively changed according to the near-focus and far-focus values required by an object, so that a user can more conveniently find a better focusing effect of a portion of the object to be photographed that is desired to be clearly displayed, for a scene in which the difference between the focal lengths required by the object to be photographed and the point to be farthest from the lens is large, or when a certain portion of the object to be photographed is clear, another portion of the object to be photographed is not clear.
The third embodiment:
fig. 4 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. For a clear description of the terminal provided in the third embodiment of the present invention, please refer to fig. 4.
A terminal provided in a third embodiment of the present invention includes: a processor a101 and a memory a201, wherein the processor a101 is configured to execute the computer program a6 stored in the memory a201 to implement the steps of the photographing method as described in the first embodiment or the second embodiment.
In an embodiment, the terminal 1 provided in this embodiment may include at least one processor a101 and at least one memory a 201. Wherein, at least one processor A101 may be referred to as a processing unit A1, and at least one memory A201 may be referred to as a memory unit A2. Specifically, the storage unit a2 stores a computer program a6 that, when executed by the processing unit a1, causes the terminal 1 provided by the present embodiment to implement the steps of the photographing method as described above, for example, step S11 shown in fig. 1: enter a view state; step S12, acquiring initial focal length information to perform focal length change operation; and step S13, receiving a confirmation instruction for the focal length change operation to carry out the shooting operation.
In an embodiment, the terminal 1 provided in the present embodiment may include a plurality of memories a201 (referred to as a storage unit A2 for short), and the storage unit A2 may include, for example, a Random Access Memory (RAM) and/or a cache memory and/or a Read Only Memory (ROM), and/or the like.
In one embodiment, terminal 1 further includes a bus connecting the various components (e.g., processor A101 and memory A201, touch-sensitive display A3, viewfinder A7, etc.).
In one embodiment, the terminal 1 in this embodiment may further include a communication interface (e.g., I/O interface a4), which may be used for communication with an external device.
In an embodiment, the terminal 1 provided in this embodiment may further include a communication device a 5.
The terminal 1 provided by the third embodiment of the present invention includes a memory a101 and a processor a201, and the processor a101 is configured to execute the computer program a6 stored in the memory a201 to implement the steps of the shooting method as described in the first embodiment or the second embodiment, so that the terminal 1 provided by this embodiment can achieve the purpose of conveniently and efficiently performing focusing operation to obtain the image that the user wants to shoot.
The third embodiment of the present invention also provides a computer-readable storage medium storing a computer program a6, which when executed by the processor a101 implements the steps of the photographing method as in the first embodiment or the second embodiment, such as the steps S11 to S13 shown in fig. 1, and further such as the steps S21 to S25 shown in fig. 3.
In an embodiment, the computer readable storage medium provided by the embodiment may include any entity or device capable of carrying computer program code, a recording medium, such as ROM, RAM, magnetic disk, optical disk, flash memory, and the like.
The third embodiment of the present invention provides a computer program a6 stored in a computer-readable storage medium, which when executed by a processor a101, can achieve the purpose of conveniently and efficiently performing a focusing operation to obtain an image that a user wants to capture.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The present invention is not limited to the above preferred embodiments, and any modification, equivalent replacement or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A photographing method, characterized in that the photographing method comprises:
entering a viewing state;
acquiring initial focal length information to perform focal length change operation;
and receiving a confirmation instruction for the focal length change operation to carry out shooting operation.
2. The photographing method of claim 1, wherein the step of acquiring initial focus information to perform a focus change operation includes:
acquiring the initial focal length information;
acquiring a corresponding focal length variation range according to the initial focal length information;
and performing the focal length change operation according to the focal length change range.
3. The photographing method according to claim 2, wherein the step of acquiring the initial focus information includes:
identifying a shooting target to obtain an initial near point focal length value and an initial far point focal length value of the shooting target;
the step of obtaining the corresponding focal length variation range according to the initial focal length information includes:
and acquiring the corresponding focal length change range according to the initial near point focal length value and the initial far point focal length value.
4. The photographing method of claim 2, wherein the initial focus information includes an initial focus value;
the step of obtaining the corresponding focal length variation range according to the initial focal length information includes:
and acquiring the focal length change range according to a preset focal length range rule and the initial focal length value.
5. The photographing method of claim 1, wherein the step of acquiring initial focus information to perform a focus change operation is followed by at least one of:
receiving a variation range reduction instruction for the focal length variation operation to reduce a focal length variation range of the focal length variation operation;
and receiving action information of a user, and mapping to a corresponding focal length value in the focal length change range according to the action information.
6. The photographing method of claim 5, wherein the motion information includes at least one of:
touch information including at least one of a click, a multi-click, a long press, and a slide;
contact information including at least one of a contact area, a contact position, a contact duration, and a contact pressure;
the direction of operation.
7. The photographing method according to claim 5, wherein the step of receiving a variation range reduction instruction for the focal length variation operation to reduce a focal length variation range of the focal length variation operation is followed by:
receiving a rollback instruction to rollback to the focus change operation before the step of receiving the variation range reduction instruction, or to a focus value before a current focus value.
8. The photographing method according to claim 7, wherein the step of receiving a back-off instruction to back-off to the focus distance changing operation before the step of receiving the variation range reduction instruction or to a focus distance value before a current focus distance value is followed comprises:
and receiving a forward instruction to cancel the rollback operation corresponding to the rollback instruction.
9. The photographing method of claim 1, wherein the step of acquiring initial focus information to perform a focus change operation includes:
acquiring initial focal length information to perform the focal length change operation according to a preset circulation speed.
10. The photographing method according to claim 1, wherein the step of receiving a confirmation instruction for the focus change operation to perform a photographing operation includes:
taking the current image as a main image according to the confirmation instruction;
acquiring at least one auxiliary image cached in the focal length change operation process;
and synthesizing the main image and the auxiliary image to obtain a target image.
11. The photographing method of claim 1, wherein the step of acquiring initial focus information to perform a focus change operation includes:
and acquiring the initial focal length information to perform focal length cyclic variation operation.
12. A terminal comprising a memory and a processor;
the processor is adapted to execute a computer program stored in the memory to implement the steps of the photographing method according to any of claims 1-11.
13. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1-11.
CN202010117730.5A 2020-02-25 2020-02-25 Photographing method, terminal and computer-readable storage medium Active CN111277758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010117730.5A CN111277758B (en) 2020-02-25 2020-02-25 Photographing method, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010117730.5A CN111277758B (en) 2020-02-25 2020-02-25 Photographing method, terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111277758A true CN111277758A (en) 2020-06-12
CN111277758B CN111277758B (en) 2022-04-15

Family

ID=70999319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010117730.5A Active CN111277758B (en) 2020-02-25 2020-02-25 Photographing method, terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111277758B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760415A (en) * 2022-04-18 2022-07-15 上海千映智能科技有限公司 Lens focusing method, system, device and medium
CN115442512A (en) * 2021-06-04 2022-12-06 北京小米移动软件有限公司 Focusing control method, device, terminal and storage medium
WO2022266915A1 (en) * 2021-06-24 2022-12-29 深圳市大疆创新科技有限公司 Focusing control method and device for lens and photographing device
WO2023272485A1 (en) * 2021-06-29 2023-01-05 深圳市大疆创新科技有限公司 Control method, image capture apparatus, and image capture system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444391A (en) * 2002-03-06 2003-09-24 佳能株式会社 Image shooting device, method and photographic control computer program
CN101621619A (en) * 2008-07-04 2010-01-06 华晶科技股份有限公司 Shooting method for simultaneously focusing various faces and digital image capture device thereof
CN103685962A (en) * 2013-12-27 2014-03-26 广东欧珀移动通信有限公司 Mobile terminal picture shooting method and system
CN103813098A (en) * 2012-11-12 2014-05-21 三星电子株式会社 Method and apparatus for shooting and storing multi-focused image in electronic device
CN104767937A (en) * 2015-03-27 2015-07-08 深圳市艾优尼科技有限公司 Photographing method
EP3035285A1 (en) * 2014-12-19 2016-06-22 Thomson Licensing Method and apparatus for generating an adapted slice image from a focal stack
CN105872384A (en) * 2016-05-12 2016-08-17 深圳市金立通信设备有限公司 Photographing method and terminal
CN106385534A (en) * 2016-09-06 2017-02-08 努比亚技术有限公司 Focusing method and terminal
CN106412423A (en) * 2016-09-19 2017-02-15 珠海格力电器股份有限公司 Focusing method and device
CN106937056A (en) * 2017-03-31 2017-07-07 努比亚技术有限公司 The focusing process method of dual camera, focusing process device and mobile terminal
CN107465865A (en) * 2016-06-03 2017-12-12 北京小米移动软件有限公司 Image pickup method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444391A (en) * 2002-03-06 2003-09-24 佳能株式会社 Image shooting device, method and photographic control computer program
CN101621619A (en) * 2008-07-04 2010-01-06 华晶科技股份有限公司 Shooting method for simultaneously focusing various faces and digital image capture device thereof
CN103813098A (en) * 2012-11-12 2014-05-21 三星电子株式会社 Method and apparatus for shooting and storing multi-focused image in electronic device
CN103685962A (en) * 2013-12-27 2014-03-26 广东欧珀移动通信有限公司 Mobile terminal picture shooting method and system
EP3035285A1 (en) * 2014-12-19 2016-06-22 Thomson Licensing Method and apparatus for generating an adapted slice image from a focal stack
CN104767937A (en) * 2015-03-27 2015-07-08 深圳市艾优尼科技有限公司 Photographing method
CN105872384A (en) * 2016-05-12 2016-08-17 深圳市金立通信设备有限公司 Photographing method and terminal
CN107465865A (en) * 2016-06-03 2017-12-12 北京小米移动软件有限公司 Image pickup method and device
CN106385534A (en) * 2016-09-06 2017-02-08 努比亚技术有限公司 Focusing method and terminal
CN106412423A (en) * 2016-09-19 2017-02-15 珠海格力电器股份有限公司 Focusing method and device
CN106937056A (en) * 2017-03-31 2017-07-07 努比亚技术有限公司 The focusing process method of dual camera, focusing process device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442512A (en) * 2021-06-04 2022-12-06 北京小米移动软件有限公司 Focusing control method, device, terminal and storage medium
WO2022266915A1 (en) * 2021-06-24 2022-12-29 深圳市大疆创新科技有限公司 Focusing control method and device for lens and photographing device
WO2023272485A1 (en) * 2021-06-29 2023-01-05 深圳市大疆创新科技有限公司 Control method, image capture apparatus, and image capture system
CN114760415A (en) * 2022-04-18 2022-07-15 上海千映智能科技有限公司 Lens focusing method, system, device and medium
CN114760415B (en) * 2022-04-18 2024-02-02 上海千映智能科技有限公司 Lens focusing method, system, equipment and medium

Also Published As

Publication number Publication date
CN111277758B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN111277758B (en) Photographing method, terminal and computer-readable storage medium
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
CN110505411B (en) Image shooting method and device, storage medium and electronic equipment
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
US9699389B2 (en) Image displaying apparatus and image displaying method
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
KR101766614B1 (en) Photographing method with slow shutter speed and photographing apparatus thereof
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
CN110198417A (en) Image processing method, device, storage medium and electronic equipment
CN111491102B (en) Detection method and system for photographing scene, mobile terminal and storage medium
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
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
CN111970437B (en) Text shooting method, wearable device and storage medium
CN101442614A (en) Apparatus for processing digital image and method of controlling the apparatus
JP2022103020A (en) Photographing method and device, terminal, and storage medium
JP2024504159A (en) Photography methods, equipment, electronic equipment and readable storage media
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN102082909B (en) Digital photographing apparatus and control the method for this digital photographing apparatus
CN114071010A (en) Shooting method and equipment
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110602397A (en) Image processing method, device, terminal and storage medium
CN108495044A (en) A kind of image pickup method of multi-cam, camera terminal and readable storage medium storing program for executing
CN108900762A (en) A kind of image pickup method of multi-cam, camera terminal and readable storage medium storing program for executing
CN114286004A (en) Focusing method, shooting device, electronic equipment and 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