CN112584043B - Auxiliary focusing method and device, electronic equipment and storage medium - Google Patents

Auxiliary focusing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112584043B
CN112584043B CN202011425781.0A CN202011425781A CN112584043B CN 112584043 B CN112584043 B CN 112584043B CN 202011425781 A CN202011425781 A CN 202011425781A CN 112584043 B CN112584043 B CN 112584043B
Authority
CN
China
Prior art keywords
focusing
input
preview image
window
focal length
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
CN202011425781.0A
Other languages
Chinese (zh)
Other versions
CN112584043A (en
Inventor
周家兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011425781.0A priority Critical patent/CN112584043B/en
Publication of CN112584043A publication Critical patent/CN112584043A/en
Application granted granted Critical
Publication of CN112584043B publication Critical patent/CN112584043B/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/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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 application discloses an auxiliary focusing method and device, electronic equipment and a storage medium, and belongs to the technical field of shooting. The method comprises the following steps: displaying a main focusing window and an auxiliary focusing window in a shooting preview interface, wherein the main focusing window comprises a first preview image, the auxiliary focusing window comprises a second preview image, the second preview image is an enlarged image of the first preview image, and focusing processing is carried out on the preview image in the main focusing window in response to the input of a user. The image of the focusing area is displayed in an amplifying mode through the auxiliary focusing window, so that a user can clearly observe the focusing effect of the focusing area in the focusing process, the user can conveniently focus to obtain accurate focal length parameters, the focusing accuracy can be improved, and the image definition can be improved.

Description

Auxiliary focusing method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of photography, and particularly relates to an auxiliary focusing method and device, electronic equipment and a storage medium.
Background
With the rapid development of mobile terminal technology, the functions of mobile terminals are increasingly powerful, and the shooting function of mobile terminals is particularly powerful. Focusing is an important part in the shooting process, and the shooting effect is directly influenced. Currently, there are mainly two ways to focus: autofocus and manual focus. The automatic focusing needs to be completed automatically by controlling micro devices such as a focusing motor by an image processor, and the manual focusing needs to be realized manually by a user in a professional focusing mode.
After the inventor researches a manual focusing mode, the inventor finds that in some special scenes, focusing of an existing automatic focusing mode of a mobile terminal can be seriously deviated from requirements of a user, for example, a focused object is small and difficult to focus in close-range photographing, and even focusing can have large deviation.
Disclosure of Invention
An object of the embodiments of the present application is to provide an auxiliary focusing method, an auxiliary focusing device, an electronic device, and a storage medium, which can solve the problems of large error and low accuracy of manual focusing.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an auxiliary focusing method, where the method includes:
displaying a main focusing window and an auxiliary focusing window in a shooting preview interface, wherein the main focusing window comprises a first preview image, and the auxiliary focusing window comprises a second preview image; the second preview image is an enlarged image of the first preview image;
receiving a first input of a user;
and responding to the first input, and carrying out focusing processing on the preview image in the main focusing window.
In a second aspect, an embodiment of the present application provides an auxiliary focusing apparatus, including:
the display module is used for displaying the main focusing window and the auxiliary focusing window in the shooting preview interface; the main focusing window comprises a first preview image, and the auxiliary focusing window comprises a second preview image; the second preview image is an enlarged image of the first preview image;
the first receiving module is used for receiving a first input of a user;
and the focusing module is used for responding to the first input and carrying out focusing processing on the preview image in the main focusing window.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the electronic device displays a main focusing window and an auxiliary focusing window in a shooting preview interface, the main focusing window displays an image of a focusing area, the auxiliary focusing window displays the image of the focusing area in an enlarged manner, a user can observe the image definition of the focusing area through the auxiliary focusing window in the focusing process, and shooting is performed when the image definition of the focusing area meets the requirement. For close-range focusing, due to the manner of amplifying, displaying and focusing, the image of the focusing area is amplified and displayed through the auxiliary focusing window, so that a user can clearly observe the image effect of the focusing area in the focusing process, the user can conveniently focus to obtain accurate focal length parameters, the focusing accuracy can be improved, and the definition of the shot image can be improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an auxiliary focusing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a preview interface provided in an embodiment of the present application;
fig. 3 is a second schematic diagram of a shooting preview interface provided in the embodiment of the present application;
fig. 4 is a third schematic diagram of a shooting preview interface provided in the embodiment of the present application;
FIG. 5 is a fourth schematic diagram of a preview interface provided in the embodiment of the present application;
FIG. 6 is a fifth schematic diagram of a preview interface provided in the embodiment of the present application;
FIG. 7 is a sixth schematic view of a preview interface provided in an embodiment of the present application;
fig. 8 is a seventh schematic diagram of a shooting preview interface provided in the embodiment of the present application;
fig. 9 is an eighth schematic diagram of a shooting preview interface provided in an embodiment of the present application;
fig. 10 is a ninth schematic diagram of a shooting preview interface provided in an embodiment of the present application;
fig. 11 is a block diagram illustrating a structure of an auxiliary focusing apparatus according to an embodiment of the present disclosure;
fig. 12 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 13 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein.
The auxiliary focusing method, the apparatus, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an auxiliary focusing method according to an embodiment of the present application, where as shown in fig. 1, the method may include:
step 101, displaying a main focusing window and an auxiliary focusing window in a shooting preview interface.
The main focusing window comprises a first preview image, the auxiliary focusing window comprises a second preview image, and the second preview image is an enlarged image of the first preview image. The shooting preview interface is used for displaying a preview image acquired by the electronic equipment in the shooting process, and a user can view preview contents through the preview image. And the user adjusts the focusing parameters of the camera, and controls the camera to shoot the image after the proper focusing parameters are obtained through adjustment.
The main focusing window is used for displaying the preview image in the focusing area, and the auxiliary focusing window is used for amplifying and displaying the preview image in the main focusing window, so that a user can observe definition change of the focusing area in the focusing process through the amplified preview image in the auxiliary focusing window conveniently, and the user can adjust the focal length conveniently.
Exemplarily, as shown in fig. 2, fig. 2 is one of schematic diagrams of a shooting preview interface provided in an embodiment of the present application, and the first preview image is an image located in a focus area in a preview image acquired by an electronic device. The focusing area may be an area having a photographic subject (a human body, an animal, a building, or the like) automatically identified and determined by the electronic device, or may be an area manually selected and determined by the user from the photographic preview interface. The main focus window 201 is used for displaying a first preview image, and the auxiliary focus window 202 is used for displaying the enlarged first preview image, that is, a second preview image. The image in the focusing area is enlarged and displayed through the auxiliary focusing window 202, so that the user can more clearly check the focusing effect of the focusing area through the second preview image in the focusing process, and the user can more accurately select the focusing parameter with better focusing effect for shooting.
In practical applications, the magnification of the first preview image may be a default value, or may be manually set by the user, for example, the magnification may default to 2 times, but the user may adjust it to 3 times. The present application does not limit the magnification of the first preview image. In an alternative, the size of the secondary focusing window may be a size obtained by enlarging the size of the primary focusing window by the same magnification as that of the first preview image.
In the embodiments of the present application, the primary focusing window and the secondary focusing window may be windows of any shape, including but not limited to rectangular, circular, polygonal, or irregular shapes. In practical applications, for convenience of implementation, the main focusing window and the auxiliary focusing window may be rectangular windows as shown in fig. 2.
Alternatively, the step of displaying the secondary focus window may be implemented as follows:
receiving a seventh input of the user input; and responding to the seventh input, and displaying the auxiliary focusing window within the preset distance range of the main focusing window.
Wherein, the seventh input is used to trigger the display of the secondary focusing window, and the form of the seventh input may include but is not limited to: the method comprises the following steps of sliding towards a specified direction in a shooting preview interface, carrying out auxiliary control opening operation on the shooting preview interface, and shaking the electronic equipment according to a preset direction.
For example, the seventh input may be a sliding operation of sliding in a designated direction in the photographing preview interface, and the electronic device may determine a display position of the secondary focus window in response to the sliding operation after receiving the sliding operation, and display the secondary focus window at the display position. The display position of the auxiliary focusing window can be defaulted to a preset position of the main focusing window and is located within a preset distance range of the main focusing window, so that a user can conveniently compare the second preview image in the auxiliary focusing window with the first preview image in the main focusing window. The preset distance range may be set according to an actual application scenario, and as shown in fig. 2, the display position may be located within the preset distance range directly above the main focusing window 201. In practical applications, the display position may also be located in a preset distance range directly below the main focusing window, in a preset distance range on the left side, in a preset distance range on the right side, and the like.
In practical applications, as shown in fig. 2, it may be determined whether a distance between an upper boundary of the main focusing frame 201 and an upper boundary of the preview interface is greater than or equal to a height of the auxiliary focusing frame, and if so, the auxiliary focusing frame may be displayed on an upper side of the main focusing frame, and if not, the auxiliary focusing frame may be displayed on a lower side of the main focusing frame. It may also be determined whether the distance between the left boundary of the main focusing frame 201 and the left boundary of the preview interface is greater than or equal to the width of the auxiliary focusing frame, and if so, the auxiliary focusing frame may be displayed on the left side of the main focusing frame, and if not, the auxiliary focusing frame may be displayed on the right side of the main focusing frame. It should be noted that the auxiliary focusing frame may be displayed at a position away from the main focusing frame by a preset distance in an area where the non-main focusing frame is located in the preview interface, so as to ensure that all the auxiliary focusing frames may be displayed in the preview interface, which is not limited in the embodiment of the present application.
In the embodiment of the application, the auxiliary focusing window can be displayed in the preset distance range of the main focusing window, so that a user can compare the second preview image in the auxiliary focusing window with the first preview image in the main focusing window conveniently, and the manual focusing efficiency of the user can be improved.
Step 102, a first input of a user is received.
And 103, responding to the first input, and performing focusing processing on the preview image in the main focusing window.
Wherein the first input is used for adjusting the focal length of the camera, and the form of the first input may include but is not limited to: the method includes inputting a focal length value in a focal length input box, adjusting a focal length by dragging a slider on a sliding bar, clicking a preset position, long-time pressing, sliding along a preset direction of a display screen, and the like.
In one embodiment, the first input may be an input sliding in a preset direction in the display screen, and when the user slides in the first preset direction in the display screen, the electronic device may zoom in the focal length in response to a sliding operation of the user; conversely, when the user slides in a second preset direction in the display screen, the electronic device may decrease the focal distance in response to the sliding operation of the user, where the first preset direction and the second preset direction are opposite directions. In the process of focal length adjustment, the sizes of the main focusing window 201 and the auxiliary focusing window 202 are unchanged, when the focal length is increased, the focusing area corresponding to the main focusing window 201 is reduced, and the first preview image and the second preview image are synchronously reduced; conversely, when the focal length becomes smaller, the focusing area corresponding to the main focusing window 201 becomes larger, and the first preview image and the second preview image become larger in synchronization. Meanwhile, the definition of the second preview image changes along with the change of the focal length, if the user is satisfied with the definition of the second preview image, the electronic device can be controlled to shoot the satisfied image, if the user is not satisfied with the definition of the second preview image, the user can execute the first input again, the electronic device can adjust the focal length again, the definition of the second preview image changes along with the change of the focal length, the user can determine whether the definition of the second preview image is satisfied again, and the process is repeated until the definition of the second preview image is satisfied, the electronic device is controlled to shoot the satisfied image.
In another embodiment, the first input may be an input of clicking a key, and when the user clicks the first key in the electronic device, the electronic device may enlarge the focal distance in response to a click operation of the user; when the user clicks the second key in the electronic device, the electronic device may decrease the focal length in response to the user's clicking operation. The keys can be integrated physical keys of the electronic equipment or virtual keys displayed in the display screen.
In another embodiment, the first input may be an input to the primary focus window. For example, the user may click on the main focusing window 201, and the electronic device may zoom in on the focal distance in response to a user click input or operation on the main focusing window 201, which may be a double-click operation or a single-click operation. Conversely, when the user presses the main focusing window 201 for a long time, the electronic apparatus may decrease the focal length in response to the long-press operation by the user.
In another embodiment, the first input may be an input of a focal length value in a focal length input box, as shown in fig. 2, a user may input a focal length parameter of 12 mm in a focal length input box 203, and the electronic device may adjust the focal length of the camera according to the focal length parameter input by the user to perform focusing. In the focusing process, if a user inputs a larger focal length parameter, the electronic device can adjust the focal length of the camera according to the focal length parameter input by the user, so that a first preview image in the main focusing window 201 and a second preview image in the auxiliary focusing window 202 become smaller; conversely, if the user inputs a smaller focal length parameter, the focal length of the camera is adjusted to make the first preview image in the main focusing window 201 and the second preview image in the auxiliary focusing window 202 larger. After the focal length is adjusted, if the definition of the second preview image is satisfied by the user, the electronic equipment can be controlled to shoot to obtain a satisfactory image; if the definition of the second preview image is not satisfactory, the user can input a new focal length parameter again, the electronic device can refocus according to the new focal length parameter, the definition of the second preview image changes along with the change of the focal length, and the user can determine whether the definition of the second preview image is satisfactory again, so that the process is repeated until the definition of the second preview image is satisfactory, and the electronic device is controlled to shoot to obtain a satisfactory image.
Alternatively, step 102 may be implemented as follows:
a first input of a user to the secondary focus window is received.
In one embodiment, the first input may be an input to a secondary focus window. For example, the user may click on the secondary focusing window, and the electronic device may zoom in the focal length in response to a user click operation on the secondary focusing window, which may be a double click operation or a single click operation. Conversely, when the user long-presses the sub-focus window, the electronic apparatus may decrease the focal distance in response to the long-press operation of the user.
In practical application, because the second preview image in the auxiliary focusing window is an image in the enlarged focusing area, when a user performs focusing on the first input of the auxiliary focusing window, the focusing effect can be synchronously observed through the auxiliary focusing window, which is beneficial to the user to synchronously operate and observe the auxiliary focusing window, and the focusing efficiency and accuracy can be improved.
Optionally, the method may further include:
receiving a second input of the user to the auxiliary focusing window, wherein the second input is used for updating the auxiliary focusing window to the first position for displaying;
and responding to a second input, updating the main focusing window to a second position for displaying, wherein the second position is a position corresponding to the first position.
The second input is used for adjusting the display position of the auxiliary focusing window and adjusting the display position of the main focusing window associated with the auxiliary focusing window, so that the position of a focusing area corresponding to the main focusing window is adjusted, and the relative positions of the main focusing frame and the auxiliary focusing frame can be kept unchanged.
Wherein the form of the second input may include, but is not limited to: an input of dragging the sub focus window, an input of position information in the position input area, and the like.
Exemplarily, as shown in fig. 3, fig. 3 is a second schematic diagram of the shooting preview interface provided in the embodiment of the present application, and with reference to fig. 2, the relative positions of the primary focusing window and the secondary focusing window may be kept unchanged, the primary focusing window 201 may be always located right below the secondary focusing window 202, a user may press the secondary focusing window 202 shown in fig. 2 for a long time and drag the secondary focusing window 202, during the dragging, the secondary focusing window 202 moves along with the dragging operation, the position of the secondary focusing window 202 is continuously updated, and the position of the primary focusing window 201 is continuously updated along with the change of the position of the secondary focusing window 202. When the secondary focusing window 202 is dragged to the position shown in fig. 3 and released, the secondary focusing window 202 is updated to the position shown in fig. 3, where the secondary focusing window 202 is currently located in fig. 3, i.e. the first position. The second position corresponding to the first position is a position directly below the first position, and the main focusing window 201 is updated to the position directly below the auxiliary focusing window 202 for display.
In some cases, the relative positional relationship of the primary focus window and the secondary focus window may change. As shown in fig. 4, fig. 4 is a third schematic diagram of the shooting preview interface provided in the embodiment of the present application, and with reference to fig. 3, when a user drags the auxiliary focusing window 202 to move in the shooting preview interface, the electronic device may keep the main focusing window 201 located directly below the auxiliary focusing window 202, and when a distance between a lower edge of the auxiliary focusing window 202 and a lower edge of the shooting preview interface is smaller than a size of the main focusing window 201, a space between the auxiliary focusing window 202 and the lower edge of the shooting preview interface cannot accommodate the main focusing window 201, at this time, the electronic device may use a center point of the auxiliary focusing window 202 as a symmetry center, rotate the main focusing window 201 counterclockwise by a certain angle (e.g., 90 degrees) around the symmetry center, and rotate the main focusing window 201 to the position shown in fig. 5, where fig. 5 is a fourth schematic diagram of the shooting preview interface provided in the embodiment of the present application. At this time, the position of the secondary focusing window 202 in fig. 5 is the first position, the second position corresponding to the first position is the left side of the first position, and the primary focusing window 201 is updated to the second position for display.
In another embodiment, the electronic device may determine the position of the main focusing window in the shooting preview interface according to the position of the auxiliary focusing window in the shooting preview interface by taking the horizontal center line of the auxiliary focusing window as a symmetry line. As shown in fig. 6, fig. 6 is a fifth schematic view of the shooting preview interface provided in the embodiment of the present application, and in combination with the above example, when the space between the auxiliary focusing window 202 and the lower edge of the shooting preview interface cannot accommodate the main focusing window 201, the electronic device may symmetrically move the main focusing window 201 to a position right above the auxiliary focusing window 202 by taking a horizontal center line of the auxiliary focusing window 202 as a symmetry line. In fig. 6, the position of the auxiliary focusing window 202 is a first position, and the position of the main focusing window 201 is a second position corresponding to the first position.
It should be noted that, the above embodiment only takes the lower edge of the shooting preview interface as an example for illustration, when the auxiliary focusing window moves to the upper edge, the left edge, or the right edge of the shooting preview interface, the position change of the main focusing window is similar to that of the lower edge, and the second position may be located at a position directly below, directly above, left side, right side, upper left corner, upper right corner, lower left corner, lower right corner, and the like of the first position.
In practical applications, the position of the main focusing window may also be adjusted, so that the position of the auxiliary focusing window changes along with the change of the position of the main focusing window, and the adjustment of the position of the main focusing window is the same as the adjustment of the auxiliary focusing window in principle, which is not described in detail in this embodiment.
In the application, the user can adjust the position of the main focusing window by adjusting the position of the auxiliary focusing window, so that the focus of the camera is adjusted, the user can adjust the focus of the camera conveniently when adjusting the focal length, and the image shooting efficiency is improved. In addition, the position of the main focusing window is adjusted, and the auxiliary focusing window displays the preview image in the main focusing window in an enlarged manner, so that a user can clearly observe a shooting object in the main focusing window through the auxiliary focusing window, the position of the main focusing window can be clearly determined, and the user can conveniently move the main focusing window to a more accurate position.
Optionally, the method may further include:
determining a target focal length; determining a focusing parameter corresponding to the target focal length according to a preset function;
and adjusting the parameters of the camera according to the focusing parameters corresponding to the target focal length.
The target focal length is the current focal length of the electronic device, and the electronic device can acquire the target focal length from the internal parameters of the camera. The preset function can be constructed by the focal length and the focusing parameter in the history shooting record.
For example, the electronic device may record the focal length and the exposure (focusing parameter) corresponding to the focal length during each shooting process to obtain a large number of focal lengths and corresponding exposures, and then obtain a relationship curve between the focal length and the exposure through curve fitting (e.g., least squares curve fitting). After the target focal length is determined, the exposure degree corresponding to the target focal length can be determined according to the relation curve, and the exposure parameters of the camera are adjusted according to the exposure degree. The focusing parameters may further include parameters such as aperture size, contrast, saturation, white balance, and the like, and the focusing parameters are not specifically limited in this embodiment.
In another embodiment, the initial model may be trained through the recorded focal length and the corresponding focusing parameter to obtain a target model (a preset function), and the focusing parameter corresponding to the target focal length is determined through the target model. Specifically, for example, each focal length may be used as a sample, the exposure corresponding to the focal length is used as a sample label, the initial model is trained through the sample and the corresponding sample label, and the target model is obtained when a preset end condition is met. After the target focal length is determined, the target focal length can be input into the target model to obtain the exposure output by the target model, and the exposure parameters of the camera are adjusted according to the exposure.
Optionally, the method may further include:
receiving a third input of the user to the auxiliary focusing window;
in the case that the third input is a zoom-in operation, in response to the third input, zooming in the preview image in the auxiliary focusing window and zooming in the preview image in the main focusing window;
in a case where the third input is a zoom-out operation, in response to the third input, the preview image in the auxiliary focusing window is zoomed out, and the preview image in the main focusing window is zoomed out.
In this embodiment, the user may implement, through the third input to the auxiliary focusing window, the enlargement and reduction of the first preview image in the main focusing window and the second preview image in the auxiliary focusing window, and may implement the adjustment of the focal length at the same time. The third input may include, but is not limited to: clicking operation in the auxiliary focusing window, sliding operation towards a specified direction, clicking operation on the increase control and the decrease control, and sliding operation of a plurality of fingers in the auxiliary focusing window.
Illustratively, as shown in fig. 2, an increase control 204 and a decrease control 205 are respectively arranged above and below the focal length input box 203 in fig. 2, and the electronic device may execute an enlarging operation to enlarge the first preview image and the second preview image while reducing the focal length of the camera in response to an operation of clicking the increase control 204 by a user; alternatively, the electronic device may perform a zoom-out operation to zoom out the first and second preview images while increasing the focal length of the camera in response to the user clicking the reduce control 302. When the third input is an enlargement operation, the focal length is reduced, the shooting range of the focusing area corresponding to the main focusing window 201 is reduced, which is equivalent to that the preview content of the smaller range is enlarged and displayed in the focusing area with the same size, so that the preview image of the smaller shooting range in the main focusing window is further enlarged and displayed in the auxiliary focusing window, and the view is clearer.
When the third input is a zoom-out operation, the focal length is increased, the shooting range of the focusing area corresponding to the main focusing window 201 is increased, which corresponds to that the preview content with a larger shooting range in the focusing area with the same size is displayed in a reduced mode, and thus the preview image with a larger shooting range in the main focusing window is displayed in an enlarged mode in the auxiliary focusing window.
In another embodiment, the user may directly operate the secondary focusing window to zoom in or out on the first preview image and the second preview image. As shown in fig. 7, fig. 7 is a sixth schematic view of a shooting preview interface provided in this embodiment of the present application, a user may first press the auxiliary focusing window 202 with two fingers, then separate the two fingers, and perform an outward (direction indicated by an arrow in the figure) sliding operation, and the electronic device may respond to the operation of pressing and separating the two fingers of the user, keep the sizes of the main focusing window 201 and the auxiliary focusing window 202 unchanged, and perform an enlarging operation to reduce the focal length so as to enlarge the range of the focusing area corresponding to the main focusing window 201, thereby enlarging the second preview image in the auxiliary focusing window 202 and the first preview image in the main focusing window 201. In contrast, as shown in fig. 8, fig. 8 is a seventh schematic diagram of the shooting preview interface provided in the embodiment of the present application, a user may first press the auxiliary focusing window 202 with two fingers, then close the two fingers together, and perform a sliding operation inward (in a direction indicated by an arrow in the figure), and the electronic device may respond to the operation of pressing and merging the two fingers of the user, maintain the sizes of the main focusing window 201 and the auxiliary focusing window 202 unchanged, and perform a zoom-out operation to increase the focal length so as to reduce the range of the focusing area corresponding to the main focusing window 201, thereby zooming out the second preview image in the auxiliary focusing window 202 and the first preview image in the main focusing window 201.
In the application, a user can synchronously adjust the preview image in the main focusing window through adjusting the preview image in the auxiliary focusing window, and adjust the size of the focusing area corresponding to the main focusing window, so that the focal length of the camera can be adjusted, the user can conveniently observe the definition of the focused preview image in the auxiliary focusing window, and the focal length of the camera can be flexibly adjusted.
Optionally, the method may further include:
receiving a fourth input from the user;
in response to a fourth input, displaying a first focus adjustment control and a second focus adjustment control, the focusing precision of the first focus adjustment control being greater than the focusing precision of the second focus adjustment control;
receiving a fifth input of the user to a target focal length adjusting control, wherein the target focal length adjusting control comprises at least one of a first focal length adjusting control and a second focal length adjusting control;
determining, in response to a fifth input, a first target adjustment parameter based on the fifth input;
determining a first target focal length according to the first target adjustment parameter;
and focusing the preview image in the main focusing window according to the first target focal length.
In this embodiment, the electronic device may display the first focus adjustment control and the second focus adjustment control with different focusing accuracies, so that the user can conveniently adjust the focuses with different accuracies through the first focus adjustment control and the second focus adjustment control with different accuracies. The fourth input is for triggering the electronic device to display the first focus adjustment control and the second focus adjustment control.
Illustratively, as shown in fig. 9, fig. 9 is an eighth schematic diagram of the shooting preview interface provided in an embodiment of the present application, the fourth input may be a click operation of clicking a display button, and the electronic device may display a slider 206 (a first focus adjustment control) and a slider 207 (a second focus adjustment control) at the bottom of the shooting preview interface in response to the click operation of the user.
The user shifts a sliding button on the sliding bar to the corresponding position, namely, the parameter corresponding to the position is selected as the first target focusing parameter. For example, if a fixed distance is 1 cm, N +1 focusing parameters, i.e., N +1 focusing parameters, can be obtained at N +1 positions such as 0, 1, 2, 3, … N, and when the user dials the slide button 208 or the slide button 209, the focusing parameters can be adjusted only in units of 1 cm. In addition, when the user dials the slide button 208 or the slide button 209, the preview images in the main focusing frame and the auxiliary focusing frame are updated in synchronization. For example, when a user dials the sliding button to reduce the focal length, the shooting range is reduced due to the fact that the focal length is close, a shot object in a shot preview picture is amplified, and preview images in the main focusing frame and the auxiliary focusing frame are amplified synchronously; the user dials the sliding button to increase the focal length, the shooting range is enlarged due to the fact that the focal length is far, the shooting object in the shot preview picture is reduced, and the preview images in the main focusing frame and the auxiliary focusing frame are reduced synchronously. The slider 206 and the slider 207 have different focusing accuracies, respectively, and the focusing accuracy indicates the degree of change in the focal length when the user adjusts the focus parameter by one unit. For example, for the slider 206, the amount of change in the focal length is a first amount of change every time adjustment is performed for one unit; for the slider 207, each time adjustment is performed by one unit, the variation of the focal length is a second variation, and the first variation is larger than the second variation. The user adjusts the slide button 208 from 1 to 2 positions, the focal length may be increased from 8 mm to 12 mm, the user adjusts the slide button 209 from 1 to 2 positions, and the focal length may be increased from 8 mm to 9 mm.
The fifth input is, for example, a toggle operation of the toggle slide button 208 or the toggle slide button 209. After the electronic device determines the first target focusing parameter according to the position of the sliding button 208 and the position of the sliding button 209, it may determine a first target focal length corresponding to the first target focusing parameter, and adjust the focal length of the camera to the first target focal length, so as to implement focusing processing on the preview image in the main focusing window, and simultaneously update the preview image in the auxiliary focusing window and the preview image in the main focusing window synchronously. In the focus adjustment process, if the resolution of the second preview image is poor, the user may first dial the slide button 208 to perform a bold bar and then dial the slide button 209 to perform a fine adjustment. If there is a slight deviation in the sharpness of the second preview image, the user can directly dial the slide button 209 for fine adjustment. The first focal length adjusting control and the second focal length adjusting control may also be controls such as an input box, and the specific forms of the first focal length adjusting control and the second focal length adjusting control may be set according to requirements, which is not limited in this embodiment.
In the application, the focal length can be adjusted through the focal length adjusting controls with different accuracies, so that a user can flexibly select the focal length adjusting controls with different accuracies according to the definition of the second preview image, and under the condition that the definition of the second preview image is poor, the situation that only the focal length adjusting controls with smaller accuracies exist is avoided, the user needs to adjust focusing parameters for many times, and the focusing time consumption is favorably shortened. In addition, under the condition that the definition of the second preview image has small deviation, the situation that only a focus adjusting control with larger precision exists is avoided, and a user cannot adjust focusing parameters by a smaller adjusting amount, so that the focusing accuracy is improved.
Optionally, the method may further include:
recording the focal length of each focusing in the process of each focusing;
correspondingly, after step 103, the method may further include:
receiving a sixth input of the backspacing control by the user;
responding to a sixth input, and selecting a second target focal length of which the focusing definition at the first moment is greater than a preset threshold value from the historical focusing record;
focusing the preview image in the main focusing window according to the second target focal length;
the first time is the time with the shortest time interval with the second time, and the second time is the time for performing focusing processing on the preview image in the main focusing window in response to the first input.
In this embodiment, the electronic device may record the focusing parameters in each focusing process to obtain a historical focusing record, so that a user can conveniently select the focusing parameters in the historical focusing record to shoot. For example, the historical focusing record may record a preview image and corresponding focusing parameters after the user focuses each time, and if the user performs the first input at the second time, after focusing the preview image in the main focusing window, and finds that the first time, that is, the definition of the preview image in the focusing process before the second time is higher, the focus in the focusing process before the second time may be selected as the second target focus. As shown in fig. 10, fig. 10 is a ninth schematic view of a shooting preview interface provided in an embodiment of the present application, for example, a sixth input is an operation of clicking the rollback control 210, a user executes a first input at a second time, after performing focusing processing on a preview image in a main focusing window, the user may click the rollback control 210, and the electronic device may select, in response to the clicking operation of the user, a plurality of preview images corresponding to a first time with a shortest time interval at the second time according to a focusing time of each preview image in a historical focusing record, determine focusing resolutions of the plurality of preview images, select a focal length corresponding to a preview image with a focusing resolution greater than a preset threshold as a second target focal length, and adjust a focal length of the camera according to the second target focal length. The specific value of the preset threshold may be set according to the requirement, which is not limited in this embodiment.
In the embodiment of the application, the user can select the focusing parameters with better focusing effect from the historical focusing records to shoot, so that the repeated focusing of the user is avoided when the historical focusing effect is better, and the complexity of the user operation is further reduced.
In the embodiment of the application, the electronic device displays a main focusing window and an auxiliary focusing window in a shooting preview interface, the main focusing window displays an image of a focusing area, the auxiliary focusing window displays the image of the focusing area in an amplification mode, a user can observe the image definition of the focusing area through the auxiliary focusing window in the focusing process, and shooting is carried out when the image definition of the focusing area meets the requirement. The image of the focusing area is displayed in an amplifying mode through the auxiliary focusing window, so that a user can clearly observe the image effect of the focusing area in the focusing process, the user can conveniently focus to obtain accurate focal length parameters, the focusing accuracy can be improved, and the image definition can be improved.
According to the embodiment of the application, the electronic equipment acquires the target focal length, determines the focusing parameter corresponding to the target focal length through the preset function, and adjusts the parameter of the camera according to the focusing parameter, so that compared with manual adjustment, the operation times of a user are reduced, and the shooting efficiency is improved.
It should be noted that, in the auxiliary focusing method provided in the embodiment of the present application, the execution main body may be an auxiliary focusing device, or a control module in the auxiliary focusing device for executing the loading of the auxiliary focusing method. In the embodiment of the present application, an auxiliary focusing device is taken as an example to execute a loaded auxiliary focusing method, and the auxiliary focusing method provided in the embodiment of the present application is described.
Referring to fig. 11, fig. 11 is a block diagram of an auxiliary focusing apparatus provided in an embodiment of the present application, where the apparatus 1100 may include: a display module 1101, a first receiving module 1102 and a focusing module 1103.
The display module 1101 is configured to display a main focusing window and an auxiliary focusing window in a shooting preview interface, where the main focusing window includes a first preview image, and the auxiliary focusing window includes a second preview image; the second preview image is an enlarged image of the first preview image.
The first receiving module 1102 is configured to receive a first input from a user.
The focusing module 1103 is configured to perform focusing processing on the preview image in the main focusing window in response to the first input.
Optionally, the apparatus 1100 may further include:
the second receiving module is used for receiving a second input of the user to the auxiliary focusing window, and the second input is used for updating the auxiliary focusing window to the first position for displaying;
and the updating module is used for responding to a second input and updating the main focusing window to a second position for displaying, wherein the second position is a position corresponding to the first position.
Optionally, the apparatus 1100 may further include:
and the third receiving module is used for receiving a third input of the auxiliary focusing window by the user.
And the amplifying module is used for responding to the third input to amplify the preview image in the auxiliary focusing window and amplify the preview image in the main focusing window under the condition that the third input is amplifying operation.
And the zooming-out module is used for responding to the third input to zoom out the preview image in the auxiliary focusing window and zoom out the preview image in the main focusing window under the condition that the third input is zooming-out operation.
Optionally, the first receiving module 1102 is further configured to receive a fourth input from the user.
The display module 1101 is further configured to display, in response to a fourth input, a first focus adjustment control and a second focus adjustment control, where a focusing precision of the first focus adjustment control is greater than a focusing precision of the second focus adjustment control.
The first receiving module 1102 is further configured to receive a fifth input from the user to a target focus adjustment control, where the target focus adjustment control includes at least one of a first focus adjustment control and a second focus adjustment control.
The focusing module 1103 is further configured to determine, in response to a fifth input, a first target adjustment parameter based on the fifth input; determining a first target focal length according to the first target adjustment parameter; and focusing the preview image in the main focusing window according to the first target focal length.
Optionally, the shooting preview interface further includes a rollback control; the apparatus 1100 may further include:
and the recording module is used for recording the focal length of each focusing in the process of each focusing.
The first receiving module 1102 is further configured to receive a sixth input from the user to the rollback control.
The focusing module 103 is further configured to select, in response to a sixth input, a second target focal length of which the focusing resolution at the first time is greater than a preset threshold from the historical focusing records; focusing the preview image in the main focusing window according to the second target focal length;
the first moment is the moment with the shortest time interval with the second moment, and the second moment is the moment for responding to the first input and carrying out focusing processing on the preview image in the main focusing window.
Optionally, the first receiving module 1102 is specifically configured to receive a first input of the secondary focusing window by the user.
In the embodiment of the application, the electronic device displays a main focusing window and an auxiliary focusing window in a shooting preview interface, the main focusing window displays an image of a focusing area, the auxiliary focusing window displays the image of the focusing area in an enlarged manner, a user can observe the image definition of the focusing area through the auxiliary focusing window in the focusing process, and shooting is performed when the image definition of the focusing area meets the requirement. The image of the focusing area is displayed in an amplification mode through the auxiliary focusing window, so that a user can clearly observe the image effect of the focusing area in the focusing process, the user can conveniently focus to obtain accurate focal length parameters, the focusing accuracy can be improved, and the image definition can be improved.
The auxiliary focusing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The auxiliary focusing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The auxiliary focusing device provided in the embodiment of the present application can implement each process in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
Optionally, referring to fig. 12, fig. 12 is a block diagram of a structure of an electronic device according to an embodiment of the present application, and the block diagram includes a processor 1201, a memory 1202, and a program or an instruction stored in the memory 1202 and executable on the processor 1201, where the program or the instruction is executed by the processor 1201 to implement each process of the foregoing auxiliary focusing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 13 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1300 includes, but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, and the like.
Those skilled in the art will appreciate that the electronic device 1300 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1310 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A display unit 1306, configured to display a main focusing window and an auxiliary focusing window in a shooting preview interface, where the main focusing window includes a first preview image, and the auxiliary focusing window includes a second preview image; the second preview image is an enlarged image of the first preview image;
the input unit 1304 is configured to receive a first input of the secondary focusing window by a user;
a processor 1310 for performing focus processing on the preview image in the main focus window in response to a first input.
In the embodiment of the application, the electronic device displays a main focusing window and an auxiliary focusing window in a shooting preview interface, the main focusing window displays an image of a focusing area, the auxiliary focusing window displays the image of the focusing area in an enlarged manner, a user can observe the image definition of the focusing area through the auxiliary focusing window in the focusing process, and shooting is performed when the image definition of the focusing area meets the requirement. The image of the focusing area is amplified and displayed through the auxiliary focusing window, so that a user can clearly observe the image effect of the focusing area in the focusing process, the user can conveniently focus to obtain accurate focal length parameters, the focusing accuracy can be improved, and the image definition can be improved.
Optionally, the input unit 1304 is further configured to receive a second input of the secondary focusing window from the user, where the second input is used to update the secondary focusing window to the first position for display.
The processor 1310 is further configured to update the main focusing window to a second position for display in response to a second input, the second position being a position corresponding to the first position.
In the embodiment of the application, a user can adjust the position of the main focusing window by adjusting the position of the auxiliary focusing window, and the auxiliary focusing window displays the preview image in the main focusing window in an enlarged manner, so that the user can observe a shooting object in the main focusing window more clearly through the auxiliary focusing window, and can determine the position of the main focusing window more clearly, thereby facilitating the user to move the main focusing window to a more accurate position.
Optionally, the input unit 1304 is further configured to receive a third input of the secondary focusing window by the user;
the processor 1310 is further configured to zoom in the preview image in the auxiliary focusing window and zoom in the preview image in the main focusing window in response to a third input in a case that the third input is a zoom-in operation; in a case where the third input is a zoom-out operation, in response to the third input, the preview image in the auxiliary focusing window is zoomed out, and the preview image in the main focusing window is zoomed out.
In the embodiment of the application, a user can synchronously adjust the preview image in the main focusing window through adjusting the preview image in the auxiliary focusing window, and adjust the size of the focusing area corresponding to the main focusing window, so that the adjustment of the focal length of the camera is realized, the user can conveniently observe the definition of the focused preview image through the auxiliary focusing window, and the focal length of the camera is flexibly adjusted.
Optionally, the input unit 1304 is further configured to receive a fourth input from the user;
the display unit 1306 is further configured to display, in response to a fourth input, a first focus adjustment control and a second focus adjustment control, where a focusing accuracy of the first focus adjustment control is greater than a focusing accuracy of the second focus adjustment control;
the input unit 1304 is further configured to receive a fifth input of the target focal length adjustment control by the user, where the target focal length adjustment control includes at least one of a first focal length adjustment control and a second focal length adjustment control;
processor 1310 is further configured to, in response to a fifth input, determine a first target adjustment parameter based on the fifth input; determining a first target focal length according to the first target adjustment parameter; and focusing the preview image in the main focusing window according to the first target focal length.
The focus can be adjusted through the focus adjusting controls with different precisions, so that a user can flexibly select the focus adjusting controls with different precisions according to the definition of the second preview image, and under the condition that the definition of the second preview image is poor, the situation that only the focus adjusting controls with smaller precisions exist is avoided, the user needs to adjust the focusing parameters for many times, and the time consumed by focusing is favorably shortened. In addition, under the condition that the definition of the second preview image has small deviation, the situation that only a focus adjusting control with larger precision exists is avoided, and a user cannot adjust focusing parameters by a smaller adjusting amount, so that the focusing accuracy is improved.
Optionally, a backspacing control is also displayed in the shooting preview interface;
the processor 1310 is used for recording the focal length of each focusing in each focusing process;
the input unit 1304 is further configured to receive a sixth input of the backspacing control from the user;
the processor 1310 is further configured to select, in response to a sixth input, a second target focal length from the historical focusing records, where the focusing resolution at the first time is greater than a preset threshold; focusing the preview image in the main focusing window according to the second target focal length;
the first time is the time with the shortest time interval with the second time, and the second time is the time for performing focusing processing on the preview image in the main focusing window in response to the first input.
In the embodiment of the application, the user can select the focusing parameters with better focusing effect from the historical focusing records to shoot, so that the repeated focusing of the user is avoided when the historical focusing effect is better, and the complexity of the user operation is further reduced.
Optionally, the input unit 1304 is specifically configured to receive a first input of the secondary focusing window by the user.
In practical applications, since the second preview image in the auxiliary focusing window is an image in the enlarged focusing area, when a user performs focusing on the first input of the auxiliary focusing window, the focusing effect can be synchronously observed through the auxiliary focusing window, which is beneficial for the user to synchronously operate and observe the auxiliary focusing window, and the focusing efficiency can be improved. .
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing auxiliary focusing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing auxiliary focusing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An auxiliary focusing method, comprising:
displaying a main focusing window, an auxiliary focusing window and a backspacing control in a shooting preview interface, wherein the main focusing window comprises a first preview image, and the auxiliary focusing window comprises a second preview image; the first preview image is an image which is positioned in a focusing area in a preview image of the shooting preview interface, and the second preview image is an enlarged image of the first preview image;
receiving a first input for adjusting a focal length; in the process of focal length adjustment, the image range and the definition of the second preview image change along with the focal length;
responding to the first input, and carrying out focusing processing on the preview image in the main focusing window according to the adjusted focal length;
receiving a sixth input of the backspacing control from the user;
responding to the sixth input, and selecting a second target focal length of which the focusing definition at the first moment is greater than a preset threshold value from the historical focusing record;
focusing the preview image in the main focusing window according to the second target focal length;
the first time is the time with the shortest time interval with a second time, and the second time is the time for performing focusing processing on the preview image in the main focusing window in response to the first input.
2. The method of claim 1, further comprising:
receiving a second input of the user to the auxiliary focusing window, wherein the second input is used for updating the auxiliary focusing window to a first position for displaying;
and responding to the second input, updating the main focusing window to a second position for displaying, wherein the second position is a position corresponding to the first position.
3. The method of claim 1, further comprising:
receiving a third input of the auxiliary focusing window by a user;
under the condition that the third input is an amplifying operation, responding to the third input, amplifying the preview image in the auxiliary focusing window, and amplifying the preview image in the main focusing window;
and in the case that the third input is a zoom-out operation, in response to the third input, zooming out the preview image in the auxiliary focusing window and zooming out the preview image in the main focusing window.
4. The method of claim 1, further comprising:
receiving a fourth input of the user;
in response to the fourth input, displaying a first focus adjustment control and a second focus adjustment control, the focus precision of the first focus adjustment control being greater than the focus precision of the second focus adjustment control;
receiving a fifth input of a user to a target focus adjustment control, the target focus adjustment control comprising at least one of the first focus adjustment control and the second focus adjustment control;
determining, in response to the fifth input, a first target adjustment parameter based on the fifth input;
determining a first target focal length according to the first target adjustment parameter;
and focusing the preview image in the main focusing window according to the first target focal length.
5. The method of any of claims 1-4, wherein receiving a first input for adjusting a focal length comprises:
and receiving a first input of the auxiliary focusing window from a user.
6. An auxiliary focusing device, comprising:
the display module is used for displaying a main focusing window, an auxiliary focusing window and a backspacing control in a shooting preview interface, wherein the main focusing window comprises a first preview image, and the auxiliary focusing window comprises a second preview image; the first preview image is an image which is positioned in a focusing area in a preview image of the shooting preview interface, and the second preview image is an enlarged image of the first preview image;
the first receiving module is used for receiving a first input for adjusting the focal length; in the process of focal length adjustment, the image range and the definition of the second preview image change along with the focal length;
the focusing module is used for responding to the first input and carrying out focusing processing on the preview image in the main focusing window according to the adjusted focal length;
the first receiving module is further configured to receive a sixth input of the rollback control from the user;
the focusing module is further used for responding to the sixth input and selecting a second target focal length of which the focusing definition at the first moment is greater than a preset threshold value from the historical focusing record; focusing the preview image in the main focusing window according to the second target focal length;
the first time is the time with the shortest time interval with a second time, and the second time is the time for performing focusing processing on the preview image in the main focusing window in response to the first input.
7. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second input of the user to the auxiliary focusing window, wherein the second input is used for updating the auxiliary focusing window to a first position for displaying;
and the updating module is used for responding to the second input and updating the main focusing window to a second position for displaying, wherein the second position is a position corresponding to the first position.
8. The apparatus of claim 6, further comprising:
the third receiving module is used for receiving a third input of the user to the auxiliary focusing window;
the amplifying module is used for responding to the third input under the condition that the third input is amplifying operation, amplifying the preview image in the auxiliary focusing window and amplifying the preview image in the main focusing window;
and the zooming-out module is used for responding to the third input and zooming out the preview image in the auxiliary focusing window and zooming out the preview image in the main focusing window under the condition that the third input is zooming-out operation.
9. The apparatus of claim 6,
the first receiving module is further configured to receive a fourth input of the user;
the display module is further configured to display a first focus adjustment control and a second focus adjustment control in response to the fourth input, where a focusing accuracy of the first focus adjustment control is greater than a focusing accuracy of the second focus adjustment control;
the first receiving module is further configured to receive a fifth input of a target focus adjustment control by a user, where the target focus adjustment control includes at least one of the first focus adjustment control and the second focus adjustment control;
the focusing module is further configured to determine a first target adjustment parameter based on the fifth input in response to the fifth input; determining a first target focal length according to the first target adjustment parameter; and focusing the preview image in the main focusing window according to the first target focal length.
10. The apparatus according to any of claims 6 to 9, wherein the first receiving module is specifically configured to receive a first input of the secondary focusing window by a user.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the secondary focusing method as claimed in any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the secondary focusing method as claimed in any one of claims 1 to 5.
CN202011425781.0A 2020-12-08 2020-12-08 Auxiliary focusing method and device, electronic equipment and storage medium Active CN112584043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011425781.0A CN112584043B (en) 2020-12-08 2020-12-08 Auxiliary focusing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011425781.0A CN112584043B (en) 2020-12-08 2020-12-08 Auxiliary focusing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112584043A CN112584043A (en) 2021-03-30
CN112584043B true CN112584043B (en) 2023-03-24

Family

ID=75127762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011425781.0A Active CN112584043B (en) 2020-12-08 2020-12-08 Auxiliary focusing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112584043B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333395B (en) * 2020-12-01 2022-05-06 维沃移动通信(杭州)有限公司 Focusing control method and device and electronic equipment
CN113489900A (en) * 2021-06-30 2021-10-08 展讯通信(天津)有限公司 Image focusing method and device
CN113284195B (en) * 2021-07-08 2021-12-28 上海海栎创科技股份有限公司 On-line compensation method and system for binocular stereoscopic vision imaging
CN117119276A (en) * 2023-04-21 2023-11-24 荣耀终端有限公司 Underwater shooting method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6388684B1 (en) * 1989-07-14 2002-05-14 Hitachi, Ltd. Method and apparatus for displaying a target region and an enlarged image
CN101340522A (en) * 2007-07-03 2009-01-07 佳能株式会社 Image display control apparatus
CN103842907A (en) * 2011-09-30 2014-06-04 富士胶片株式会社 Imaging device for three-dimensional image and image display method for focus state confirmation
CN104104787A (en) * 2013-04-12 2014-10-15 上海果壳电子有限公司 Shooting method, shooting system and hand-held device
CN104641627A (en) * 2013-09-17 2015-05-20 奥林巴斯株式会社 Shooting apparatus, shooting method and shooting display program
CN105872349A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Photographing method, photographing device and mobile terminal
CN106375595A (en) * 2016-10-17 2017-02-01 努比亚技术有限公司 Auxiliary focusing apparatus and method
CN106469000A (en) * 2015-08-14 2017-03-01 青岛海信移动通信技术股份有限公司 A kind of screen content amplification method and terminal unit
CN109639971A (en) * 2018-12-17 2019-04-16 维沃移动通信有限公司 A kind of shooting focal length method of adjustment and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5361528B2 (en) * 2009-05-15 2013-12-04 キヤノン株式会社 Imaging apparatus and program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6388684B1 (en) * 1989-07-14 2002-05-14 Hitachi, Ltd. Method and apparatus for displaying a target region and an enlarged image
CN101340522A (en) * 2007-07-03 2009-01-07 佳能株式会社 Image display control apparatus
CN103842907A (en) * 2011-09-30 2014-06-04 富士胶片株式会社 Imaging device for three-dimensional image and image display method for focus state confirmation
CN104104787A (en) * 2013-04-12 2014-10-15 上海果壳电子有限公司 Shooting method, shooting system and hand-held device
CN104641627A (en) * 2013-09-17 2015-05-20 奥林巴斯株式会社 Shooting apparatus, shooting method and shooting display program
CN105872349A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Photographing method, photographing device and mobile terminal
CN106469000A (en) * 2015-08-14 2017-03-01 青岛海信移动通信技术股份有限公司 A kind of screen content amplification method and terminal unit
CN106375595A (en) * 2016-10-17 2017-02-01 努比亚技术有限公司 Auxiliary focusing apparatus and method
CN106534674A (en) * 2016-10-17 2017-03-22 努比亚技术有限公司 Method for displaying focus area and mobile terminal
CN109639971A (en) * 2018-12-17 2019-04-16 维沃移动通信有限公司 A kind of shooting focal length method of adjustment and terminal device

Also Published As

Publication number Publication date
CN112584043A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN112584043B (en) Auxiliary focusing method and device, electronic equipment and storage medium
EP2283642B1 (en) Method, apparatus, and computer program product for presenting burst images
WO2016123893A1 (en) Photographing method, device and terminal
CN112714255B (en) Shooting method and device, electronic equipment and readable storage medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
JP2016143919A (en) Image processing apparatus and control method therefor
KR20210032922A (en) Image processing method, device, device and media based on multiple camera modules
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
CN111669507A (en) Photographing method and device and electronic equipment
WO2018166069A1 (en) Photographing preview method, graphical user interface, and terminal
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN112887617B (en) Shooting method and device and electronic equipment
WO2022161340A1 (en) Image display method and apparatus, and electronic device
CN112087579B (en) Video shooting method and device and electronic equipment
CN112825543B (en) Shooting method and equipment
JP2017162371A (en) Image processing device, image processing method and program
JP2024504159A (en) Photography methods, equipment, electronic equipment and readable storage media
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
CN111201773A (en) Photographing method and device, mobile terminal and computer readable storage medium
US20230274388A1 (en) Photographing Method, and Electronic Device and Non-Transitory Readable Storage Medium
JP5911300B2 (en) Imaging apparatus and control method thereof
CN114422687B (en) Preview image switching method and device, electronic equipment and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
US11792518B2 (en) Method and apparatus for processing image

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