Focusing method and device, mobile terminal and storage medium

By setting the focus knob on the smart terminal and generating the focus command, the problem of cumbersome, long time and difficult to adjust the focus on the device is solved, and fast and accurate focal length adjustment is achieved, improving user experience and efficiency.

CN119052647APending Publication Date: 2024-11-29HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411138814.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The camera focus operation on existing smart terminal devices is cumbersome, time is long, and it is difficult to adjust accurately, and the effect is not ideal, resulting in high complexity and low efficiency of users, making it difficult to meet the needs of different shooting scenes.

Method used

By setting a focus knob on the mobile terminal, receiving knob direction and angle information, generating focus commands, and adjusting the focal length multiple of the current shooting window, achieving fast and accurate focus.

Benefits of technology

The focus adjustment operation is simplified, the operation complexity and time is reduced, the focus convenience and shooting efficiency are improved, the user experience is optimized, and it is suitable for different shooting theme scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052647A_ABST
    Figure CN119052647A_ABST
Patent Text Reader

Abstract

The invention provides a focusing method and device, a mobile terminal and a storage medium. The method comprises the following steps: receiving a focusing request triggered by a focusing knob on the mobile terminal; generating a focusing instruction based on the direction and angle of a focusing knob carried in the focusing request; and adjusting the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction, thereby overcoming the defects of tedious focusing operation, long focusing time, high precision adjustment difficulty and non-ideal effect of a camera on a terminal device in a traditional scheme, reducing the operation complexity while ensuring the focusing fineness and accuracy, and improving the user experience. Therefore, the focusing time is shortened, the focusing convenience is improved, and the shooting experience and the shooting efficiency of the user are optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile terminals, and in particular to a focusing method, a device, a mobile terminal and a storage medium. Background Art

[0002] With the rapid development of science and technology, smart terminals have become an indispensable part of people's lives. These devices not only have powerful computing and communication capabilities, but also generally integrate high-quality camera functions, which greatly enriches the user experience. Users can use the cameras on these devices to take pictures of scenes and objects and record every bit of life.

[0003] However, on existing hardware devices, the focus of the camera mostly relies on the zoom in or out operation of the touch screen. Although this design reduces the number of physical buttons on the surface of the device, making the device look simple, it also brings a series of problems. First, the focusing action is cumbersome, and the user needs to repeatedly slide on the touch screen to achieve subtle adjustments to the focal length, which not only increases the complexity of the operation, but also prolongs the focusing time. Secondly, due to the accuracy limitations of touch screen operations, users often find it difficult to achieve the ideal effect when making precise adjustments to the focal length, and multiple attempts and adjustments are required, further reducing the efficiency of use. Summary of the invention

[0004] The present invention provides a focusing method, a device, a mobile terminal and a storage medium, which are used to solve the defects of the prior art that the camera focusing operation is complicated, the focusing time is long, the precise adjustment is difficult and the effect is not ideal, so as to realize fast and precise focusing and improve the convenience of focusing.

[0005] The present invention provides a focusing method, comprising: Receiving a focus request triggered by a focus knob on a mobile terminal; Generate a focus instruction based on the direction and angle of the focus knob carried in the focus request; Based on the focus adjustment instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted.

[0006] According to a focusing method provided by the present invention, generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request includes: Determine a preset focus knob relationship list, wherein the focus knob relationship list includes a plurality of preset direction angles, a plurality of preset focal length multiples, and a correspondence between the preset direction angles and the preset focal length multiples, wherein the preset direction angles include a preset direction and a preset angle; Based on the current direction and the current angle of the focus knob, determining a matching preset focal length multiple from the focus knob relationship list as a target focal length multiple; Based on the target focal length multiple, a focusing instruction is generated.

[0007] According to a focusing method provided by the present invention, generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request includes: Determine a preset focus change knob rotation relationship list, wherein the focus change knob rotation relationship list includes multiple rotation direction angles, multiple focal length change multiples, and a corresponding relationship between the rotation direction angles and the focal length change multiples, wherein the rotation direction angle includes a rotation direction and a rotation angle; Based on the rotation direction and rotation angle of the focus knob, determining a matching focal length change multiple from the focal length change knob rotation relationship list as a target focal length change multiple; A focus adjustment instruction is generated based on the target focal length change factor.

[0008] According to a focusing method provided by the present invention, generating a focusing instruction based on the target focal length change multiple includes: Determining a current focal length multiple of a current shooting window on the mobile terminal; Determining a target focal length multiple based on the current focal length multiple and the target focal length change multiple; Based on the target focal length multiple, a focusing instruction is generated.

[0009] According to a focusing method provided by the present invention, generating a focusing instruction based on the target focal length multiple includes: When the target focal length multiple is less than or equal to the maximum restricted focal length multiple of the current shooting window and greater than or equal to the minimum restricted focal length multiple of the current shooting window, a focusing instruction is generated based on the target focal length multiple.

[0010] According to a focusing method provided by the present invention, generating a focusing instruction based on the target focal length multiple includes: In a case where the target focal length multiple is greater than the maximum restricted focal length multiple of the current shooting window, generating a focus instruction based on the maximum restricted focal length multiple; When the target focal length multiple is less than the minimum limiting focal length multiple of the current shooting window, a focus instruction is generated based on the minimum limiting focal length multiple.

[0011] According to a focusing method provided by the present invention, the focusing multiple of the current shooting window on the mobile terminal is adjusted based on the focusing instruction, and then further includes: When the focal length magnification of the current shooting window on the mobile terminal reaches the maximum restricted focal length magnification after adjustment, and the focus adjustment instruction generated based on the received new focus adjustment request indicates to enlarge the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted; When the focal length magnification of the current shooting window on the mobile terminal reaches the minimum limit focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted.

[0012] The present invention also provides a focusing device, comprising: A receiving unit, configured to receive a focus request triggered by a focus knob on a mobile terminal; A processing unit, configured to generate a focus instruction based on the direction and angle of the focus knob carried in the focus request; An adjustment unit is used to adjust the focal length multiple of the current shooting window on the mobile terminal based on the focus adjustment instruction.

[0013] The present invention also provides a mobile terminal, comprising a focus knob, a processor and a display screen; The processor is used to receive a focus request triggered by the focus knob on the mobile terminal, and generate a focus instruction based on the direction and angle of the focus knob carried in the focus request, and adjust the focal length multiple of the current shooting window on the display screen of the mobile terminal based on the focus instruction.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the focusing method as described in any one of the above is implemented.

[0015] The focusing method, device, mobile terminal, electronic device and storage medium provided by the present invention receive a focusing request triggered by a focusing knob on the mobile terminal, and generate a focusing instruction according to the direction and angle of the focusing knob carried in the focusing request; based on the focusing instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted, thereby achieving fast and accurate focusing, overcoming the defects of the traditional solution that the focusing operation of the camera on the terminal device is cumbersome, the focusing time is long, the precise adjustment is difficult, and the effect is not ideal; while ensuring the precision and accuracy of the focusing, the complexity of the operation is reduced, the focusing time is shortened, and the convenience of the focusing is improved, the needs under different shooting theme scenes can be met, the shooting experience and shooting efficiency of the user are optimized, and the use efficiency of the mobile terminal is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 It is a schematic flow chart of the focusing method provided by the present invention; Figure 2 is an example diagram of a mobile terminal provided by the present invention; Figure 3 It is an overall flow chart of the focusing method provided by the present invention; Figure 4 It is a structural schematic diagram of the focusing device provided by the present invention; Figure 5 is a structural schematic diagram of a mobile terminal provided by the present invention; Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Most of the current smart terminals are integrated with camera functions, which can be used to shoot scenes, objects, and people, record daily life, and enrich the user experience. However, on existing hardware devices, the focus of the camera mostly depends on the zoom in or zoom out operation of the touch screen. Although this design reduces the number of physical buttons on the surface of the device and makes the device look simple, it also brings a series of problems. First, the focusing action is relatively cumbersome, and the user needs to repeatedly slide on the touch screen to achieve fine adjustments to the focal length, which not only increases the complexity of the operation, but also prolongs the focusing time. Secondly, due to the accuracy limitations of touch screen operations, users often find it difficult to achieve the ideal effect when making precise adjustments to the focal length. They need to try and adjust multiple times, and may even fail to achieve the desired accuracy in the end, further reducing the efficiency of use.

[0021] In addition, for different shooting scenes and themes, users often need to adjust the focal length according to the actual situation to obtain the best shooting effect. However, the existing focusing method is incapable of dealing with different scene themes. The long time, low precision, lag and inaccuracy of focusing will lead to missing the best shooting time. In short, the current focusing method is inconvenient to use in actual scenes, the effect is not good, and it is easy to bring a bad user experience.

[0022] In this regard, the present invention provides a focusing method, which aims to trigger the generation of a focusing request through a focusing knob, and generate a focusing instruction according to the direction and angle of the knob contained in the request, and adjust the focal length multiple of the current shooting window according to the instruction to achieve fast and accurate focusing, improve the shortcomings of the current focusing method of terminal devices, and improve the user's shooting experience and efficiency.

[0023] Figure 1 It is a flow chart of the focusing method provided by the present invention, such as Figure 1 As shown, the method can be applied to a processor on a mobile terminal. The mobile terminal here can be an integrated device, such as a smart phone, a tablet computer, etc., or a combined sub-device, such as a detachably connected handheld device with scanning and recording functions and a display device with a display screen. The embodiments of the present invention do not make specific limitations on this.

[0024] Step 110, receiving a focus request triggered by a focus knob on a mobile terminal; Step 120, generating a focus instruction based on the direction and angle of the focus knob carried in the focus request; Step 130: Based on the focus instruction, adjust the focal length multiple of the current shooting window on the mobile terminal.

[0025] Specifically, considering the current focusing method of the camera on the terminal device, that is, zooming by sliding the touch screen to adjust the focal length multiple, there are deficiencies in focusing time, focusing accuracy, etc., that is, the focal length cannot be adjusted quickly and accurately, causing the user to miss the best shooting time, and the shooting effect and user experience are not good. In the embodiment of the present invention, it is proposed that a focusing knob for focusing can be set on the mobile terminal, so that the focusing can be triggered by the focusing knob and accurate focal length adjustment can be achieved. The focusing knob here can be a virtual knob or a physical hardware knob, and the embodiment of the present invention does not specifically limit this.

[0026] It can be understood that in the actual shooting process, when the focal length of the camera needs to be adjusted, the focal length adjustment here is essentially the adjustment of the zoom factor of the current shooting window on the mobile terminal. For example, when the current focal length of the camera on the mobile terminal cannot meet the shooting requirements, that is, the shooting based on the current zoom factor cannot obtain the required clear image, it can be confirmed that focusing is required. At this time, the user can focus through the focus knob on the mobile terminal, and once the user turns the focus knob, it will be triggered to generate a focus request.

[0027] It should be noted that the rotation range of the focus knob on the mobile terminal can be -180°~+180°, or -90°~+90°, or -45~+45°, and the embodiment of the present invention does not specifically limit this. Every time the focus knob rotates a certain angle, or every time it is in a certain direction angle, it will correspond to a change in focal length multiple, or directly correspond to a focal length multiple. For example, +1° means that when the positive direction is 1°, it corresponds to 1.1 times the focal length, which means that when it rotates 1° in the positive direction, it corresponds to a 0.1 times focal length change multiple in the positive direction; +10° means that when the positive direction is 10°, it corresponds to 2 times the focal length, which means that when it rotates 10° in the positive direction, it corresponds to a 1 times focal length change multiple in the positive direction. Therefore, based on the direction and angle of the focus knob, the focal length multiple required by the user or the focal length multiple to be adjusted can be determined, and based on this, the current shooting window can be focused, that is, the zoom multiple of the current shooting window can be adjusted.

[0028] When the user turns the focus knob to achieve focus, the user can directly turn the focus knob to a specific angle in a specific direction according to the relationship between the direction, angle and focal length multiple of the focus knob, and the specific angle in the specific direction corresponds to the focal length multiple ultimately required by the user. After the user turns the focus knob, a focus request is triggered to enable the mobile terminal to focus the camera thereon.

[0029] Here, the focus request may be triggered and generated by the focus knob, or may be generated by other associated modules after the focus knob is triggered, and the embodiment of the present invention does not specifically limit this. The focus request must carry the direction and angle of the focus knob so that instructions can be generated based on this later, so as to directly perform the focus. The direction and angle may be the current direction and angle of the focus knob, for example, the focus knob is currently located at a position of 10° below the positive direction, or at a position of 20° below the positive direction; it may also be the direction and angle of rotation of the focus knob, for example, the focus knob is rotated 10° in the positive direction, or the knob is rotated 20° in the positive direction, and the embodiment of the present invention does not specifically limit this.

[0030] Preferably, in the embodiment of the present invention, the focus knob is configured as a physical hardware structure. Figure 2 is an example diagram of a mobile terminal provided by the present invention, such as Figure 2 As shown, in order to avoid adding external knob hardware to a small mobile terminal and make the appearance of the mobile terminal more streamlined, in an embodiment of the present invention, the focusing knob is a capacitive button with a ring or disc-shaped structure.

[0031] Furthermore, after receiving the focus request, a focus instruction may be generated according to the direction and angle of the focus knob carried in the focus request, so as to directly perform focus adjustment based on the focus instruction.

[0032] Specifically, first, the focal length multiple required by the user can be analyzed and determined based on the direction and angle in the focus request. The focal length multiple is the zoom multiple finally presented on the current shooting window of the mobile terminal, such as 1× (1x zoom), 2× (2x zoom), 3× (3x zoom), etc. The focal length multiple can be directly converted from the direction and angle in the focus request, or it can be obtained based on this and combined with the current focal length multiple of the camera on the mobile terminal. The embodiment of the present invention does not specifically limit this. Then, a focus instruction that can be understood by the processor can be generated based on this focal length multiple so as to perform focusing based on this.

[0033] The focus adjustment instruction here can be an instruction representing the content of "adjusting the current focal length multiple of the camera to this focal length multiple", or it can be an instruction representing the content of "magnifying the current focal length multiple of the camera by X times to adjust it to this focal length multiple". The specific content and form of the instruction can be set accordingly according to actual conditions, requirements, etc., and the embodiments of the present invention do not make specific limitations on this.

[0034] After that, the focus can be adjusted according to the focus instruction, that is, according to the focus instruction, the zoom multiple of the current shooting window on the mobile terminal is controlled to be adjusted. Specifically, according to the specific focal length multiple indicated by the focus instruction, the focal length multiple of the current shooting window in the shooting interface on the display screen of the mobile terminal is adjusted to the indicated focal length multiple, or according to the specific adjustment method, multiple, etc. indicated in the focus instruction, the focal length multiple of the current shooting window is adjusted in a corresponding manner and multiple to adjust it to the indicated focal length multiple, thereby realizing precise focusing of the camera and ensuring the convenience of focusing.

[0035] The focusing method provided by the present invention receives a focusing request triggered by a focusing knob on a mobile terminal, generates a focusing instruction according to the direction and angle of the focusing knob carried in the focusing request, and adjusts the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction, thereby realizing fast and accurate focusing, overcoming the defects of the traditional solution that the focusing operation of the camera on the terminal device is cumbersome, the focusing time is long, the precise adjustment is difficult, and the effect is not ideal, while ensuring the precision and accuracy of the focusing, the complexity of the operation is reduced, the focusing time is shortened, the convenience of focusing is improved, and the user's shooting experience and shooting efficiency are optimized.

[0036] Based on the above embodiment, step 120 includes: Determine a preset focus knob relationship list, wherein the focus knob relationship list includes a plurality of preset direction angles, a plurality of preset focal length multiples, and a correspondence between the preset direction angles and the preset focal length multiples, wherein the preset direction angles include a preset direction and a preset angle; Based on the current direction and the current angle of the focus knob, a matching preset focal length multiple is determined from the focus knob relationship list as the target focal length multiple; Generate focus instructions based on the target focal length multiple.

[0037] Specifically, in step 120, the process of generating a focus instruction according to the direction and angle of the focus knob carried in the focus request may specifically include: In the process of generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request, the focal length multiple ultimately required by the user can be directly determined by referring to a preset list of relationships between the direction and angle of the focusing knob and the focal length multiple, thereby generating a focusing instruction.

[0038] In detail, in an embodiment of the present invention, a preset focal knob relationship list can be obtained first, wherein the focal knob relationship list includes multiple preset direction angles and multiple preset focal length multiples, as well as a correspondence between the preset direction angles and the preset focal length multiples. To ensure the accuracy and uniqueness of the control, the preset direction angles and the preset focal length multiples need to correspond one to one, and the preset direction angles here include preset directions and preset angles.

[0039] Among them, the focus knob relationship list can be expressed in the following form:

[0040] Among them, the preset focal length multiple refers to a specific focal length multiple corresponding to a specific preset direction angle. The focal length multiple is not an adjustment span, but a final result.

[0041] After obtaining the focus knob relationship list, in an embodiment of the present invention, a matching preset focal length multiple can be determined from the focus knob relationship list as the target focal length multiple based on the current direction and the current angle in the direction and angle of the focus knob carried in the focus request; here, a preset direction angle that matches both the current direction and the current angle is searched from the multiple preset direction angles in the focus knob relationship list, and the preset focal length multiple corresponding to the preset direction angle is used as the target focal length multiple.

[0042] For example, when the current direction and current angle of the focus knob are 10° (+10°) in the positive direction, the preset direction angle 10° below the positive direction, i.e., +10°, can be found from the above focal length knob relationship list, and the preset focal length multiple corresponding to +10°, i.e., 2×, can be used as the target focal length multiple.

[0043] For another example, when the current direction and the current angle are 15° (-15°) in the opposite direction, the preset direction angle of 15° in the opposite direction, i.e. -15°, can be found from the focal length knob relationship list, and the preset focal length multiple corresponding to -15°, i.e. 0.9×, can be used as the target focal length multiple.

[0044] After that, a focus instruction for adjusting the focal length multiple of the current shooting window on the mobile terminal can be generated according to the target focal length multiple. That is, a focus instruction that can be understood by the processor can be generated according to the target focal length multiple, so that based on the focus instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted to the target focal length multiple.

[0045] Based on the above embodiment, step 120 includes: Determine a preset focus change knob rotation relationship list, wherein the focus change knob rotation relationship list includes multiple rotation direction angles, multiple focus change multiples, and a corresponding relationship between the rotation direction angles and the focus change multiples, wherein the rotation direction angle includes a rotation direction and a rotation angle; Based on the rotation direction and rotation angle of the focus knob, a matching focal length change multiple is determined from the focal length change knob rotation relationship list as the target focal length change multiple; Generate focus instructions based on the target focal length change factor.

[0046] Specifically, in step 120, the process of generating a focus instruction according to the direction and angle of the focus knob carried in the focus request may specifically include: In the process of generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request, it is also possible to refer to a preset list of relationships between the direction and angle of the focusing knob and the focal length change multiples to directly determine the focal length multiple that the user needs to adjust in order to generate a focusing instruction.

[0047] In detail, in an embodiment of the present invention, a preset focal length change knob rotation relationship list can be first obtained, and the focal length change knob rotation relationship list includes multiple rotation direction angles and multiple focal length change multiples, as well as the corresponding relationship between the rotation direction angle and the focal length change multiple. To ensure the accuracy and uniqueness of the control, the rotation direction angle and the focal length change multiple here correspond one to one, and the rotation direction angle includes the rotation direction and the rotation angle.

[0048] Among them, the focus change knob rotation relationship list can be expressed in the following form:

[0049] The focal length variation factor refers to the focal length factor that needs to be adjusted corresponding to a specific rotation direction angle, and the focal length factor is an adjustment span.

[0050] After obtaining the focus change knob rotation relationship list, in an embodiment of the present invention, a matching focus change factor can be determined from the focus change knob rotation relationship list according to the rotation direction and rotation angle in the direction and angle of the focus knob carried in the focusing request, as the target focus change factor; here, a rotation direction angle that matches both the rotation direction and the rotation angle is searched from the focus change knob rotation relationship list, and the focus change factor corresponding to the rotation direction angle is used as the target focus change factor.

[0051] For example, when the rotation direction and rotation angle indicate that the focus knob is rotated 1° (+1°) in the positive direction, the matching rotation direction angle, i.e., +1°, can be found from the above focal length change knob rotation relationship list, and the focal length change multiple corresponding to +1°, i.e., +0.1×, can be used as the target focal length change multiple.

[0052] For another example, when the rotation direction and rotation angle indicate that the focus knob is rotated 1° (-1°) in the opposite direction, the matching rotation direction angle, i.e. -1°, can be found from the above focal length change knob rotation relationship list, and the focal length change multiple corresponding to -1°, i.e. -0.1×, can be used as the target focal length change multiple.

[0053] The “+” and “-” in the target focal length change multiples, such as +0.1×, -0.1×, etc., represent zoom-in and zoom-out operations, respectively.

[0054] After that, a focus instruction for adjusting the focal length multiple of the current shooting window on the mobile terminal can be generated according to the target focal length change multiple. That is, a focus instruction that can be understood by the processor can be generated according to the target focal length change multiple, or on this basis combined with the current focal length multiple of the current shooting window on the mobile terminal, so as to adjust the focal length multiple of the current shooting window on the mobile terminal to the target focal length change multiple based on the focus instruction, or adjust the focal length multiple of the current shooting window on the mobile terminal to the specific focal length multiple indicated by the focus instruction.

[0055] Based on the above embodiment, a focusing instruction is generated based on the target focal length change multiple, including: Determine the current focal length multiple of the current shooting window on the mobile terminal; Determine the target focal length multiple based on the current focal length multiple and the target focal length change multiple; Generate focus instructions based on the target focal length multiple.

[0056] Specifically, the process of generating a focus instruction according to the target focal length change multiple may include: When adjusting the focal length of the camera on a mobile terminal, due to the hardware limitations of the terminal device, there are two limitations on the focal length adjustment: maximum and minimum. During the focal length adjustment process, this limitation must be taken into account. When the maximum or minimum limit multiple of the focal length is reached, adjustment in that direction should be stopped.

[0057] Based on this, in an embodiment of the present invention, the factor of the current focal length multiple of the current shooting window on the mobile terminal can be added during the focal length adjustment process, so as to measure whether each focal length adjustment will reach the maximum limit multiple and the minimum limit multiple of the focal length, that is, the current focal length multiple of the current shooting window on the mobile terminal can be determined.

[0058] Then, the target focal length magnification can be determined based on the current focal length magnification and the target focal length change magnification determined from the focal length change knob rotation relationship list. The target focal length magnification is the focal length magnification that the user ultimately requires. Here, specifically, the target focal length magnification can be obtained by directly calculating based on the current focal length magnification and the target focal length change magnification and adding them together to obtain the target focal length magnification.

[0059] For example, when the current focal length multiple is 1× and the target focal length change multiple is +0.1×, the target focal length multiple can be calculated to be 1.1×. For another example, when the current focal length multiple is 1× and the target focal length change multiple is +1×, the target focal length multiple can be calculated to be 2×. For another example, when the current focal length multiple is 1× and the target focal length change multiple is -0.1×, the target focal length multiple can be calculated to be 0.9×.

[0060] After that, a focus instruction for adjusting the focal length multiple of the current shooting window on the mobile terminal can be generated according to the target focal length multiple. That is, a focus instruction that can be understood by the processor can be generated according to the target focal length multiple, so that based on the focus instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted to the target focal length multiple.

[0061] Based on the above embodiment, a focusing instruction is generated based on the target focal length multiple, including: When the target focal length multiple is less than or equal to the maximum focal length multiple of the current shooting window, and greater than or equal to the minimum focal length multiple of the current shooting window, a focus instruction is generated based on the target focal length multiple; When the target focal length multiple is greater than the maximum focal length multiple of the current shooting window, a focus adjustment instruction is generated based on the maximum focal length multiple; When the target focal length magnification is less than the minimum limiting focal length magnification of the current shooting window, a focus instruction is generated based on the minimum limiting focal length magnification.

[0062] Specifically, the process of generating a focus instruction according to the target focal length multiple may include the following situations: First, when the target focal length magnification is greater than the maximum limit magnification of the camera focal length on the mobile terminal, that is, when the focal length magnification ultimately required by the user is greater than the maximum limit focal length magnification of the current shooting window, since the focusing process has reached the maximum limit focal length magnification, focusing cannot be performed directly based on this. Therefore, in an embodiment of the present invention, focusing can be performed directly based on the maximum limit focal length magnification, that is, a focusing instruction can be generated based on the maximum limit focal length magnification of the current shooting window on the mobile terminal, so that the focal length magnification of the current shooting window can be adjusted based on the instruction of the focusing instruction to adjust it to the maximum limit focal length magnification.

[0063] Secondly, when the target focal length magnification is smaller than the minimum restricted focal length magnification of the camera on the mobile terminal, that is, when the focal length magnification ultimately required by the user is smaller than the minimum restricted focal length magnification of the current shooting window, since the focusing process has already reached the minimum restricted focal length magnification, focusing cannot be performed directly based on this. Therefore, in an embodiment of the present invention, focusing can be performed directly based on the minimum restricted focal length magnification, that is, a focusing instruction can be generated based on the minimum restricted focal length magnification of the current shooting window on the mobile terminal, so as to adjust the focal length magnification of the current shooting window based on the instruction of the focusing instruction to adjust it to the minimum restricted focal length magnification.

[0064] Here, the maximum and minimum focal length magnifications can be determined according to the hardware configuration of the camera installed on the mobile terminal. For example, the maximum and minimum focal length magnifications can be determined according to the configuration conditions of the camera. The maximum focal length magnification can be 10×, 9×, etc., and the minimum focal length magnification can be 0.6×, 0.5×, etc.

[0065] Third, when the target focal length multiple is greater than or equal to the minimum limit multiple of the camera focal length on the mobile terminal, and is less than or equal to the maximum limit multiple of the camera focal length on the mobile terminal, that is, the focal length multiple ultimately required by the user is greater than or equal to the minimum limit focal length multiple of the current shooting window, and is less than or equal to the maximum limit focal length multiple, at this time, the focusing can be directly based on the focal length multiple ultimately required by the user, that is, the target focal length multiple, that is, a focusing instruction can be generated based on the target focal length multiple, so as to adjust the focal length multiple of the current shooting window based on the instructions of this focusing instruction to adjust it to the target focal length multiple.

[0066] Based on the above embodiment, in step 130, based on the focus instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted, and then the following is further included: When the focal length multiple of the current shooting window on the mobile terminal reaches the maximum restricted focal length multiple after the adjustment, and the focus adjustment instruction generated based on the received new focus adjustment request indicates to enlarge the focal length multiple of the current shooting window, the focal length multiple of the current shooting window is not adjusted; When the focal length magnification of the current shooting window on the mobile terminal reaches the minimum limit focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted.

[0067] Specifically, in step 130, after the focal length magnification of the current shooting window on the mobile terminal is adjusted according to the focusing instruction, if focusing requests continue to be received, the focal length magnification of the current shooting window after the last adjustment needs to be further adjusted. Before the adjustment, it is also necessary to determine whether the focal length magnification of the current shooting window after the last adjustment has reached the maximum restricted focal length magnification and the first restricted focal length magnification, so as to better process the focusing instruction generated by the currently received focusing request.

[0068] In detail, in an embodiment of the present invention, it may be that after adjustment, the focal length magnification of the current shooting window on the mobile terminal reaches the maximum restricted focal length magnification, and the focusing instruction generated based on the received new focusing request indicates to enlarge the focal length magnification of the current shooting window. It can also be understood that a new focusing request is currently received, and the focusing instruction generated based on the focusing request indicates that the focal length magnification of the current shooting window needs to be further enlarged, and the focal length magnification of the current shooting window has reached the maximum restricted focal length magnification after the last adjustment. At this time, the focal length magnification of the current shooting window cannot be further enlarged. Therefore, in this case, it is impossible to respond to the focusing instruction generated based on the new focusing request, that is, it is impossible to adjust the focal length magnification of the current shooting window according to the focusing instruction.

[0069] Correspondingly, when the focal length magnification of the current shooting window on the mobile terminal reaches the minimum limit focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, in other words, a new focusing request is currently received, and the focusing instruction generated based on the focusing request indicates that the focal length magnification of the current shooting window needs to be further reduced, and the focal length magnification of the current shooting window has reached the minimum limit focal length magnification after the last adjustment, then the focal length magnification of the current shooting window cannot be further reduced, and therefore, the focusing instruction generated based on the new focusing request cannot be responded to, that is, the focal length magnification of the current shooting window cannot be adjusted according to the focusing instruction.

[0070] Figure 3 is the overall flow chart of the focusing method provided by the present invention, such as Figure 3 As shown, the method includes: First, a focus request triggered by a focus knob on a mobile terminal is received; Then, a focus instruction is generated based on the direction and angle of the focus knob carried in the focus request; Among them, based on the direction and angle of the focus knob carried in the focus request, a focusing instruction is generated, including: determining a preset focal length knob relationship list, the focus knob relationship list contains multiple preset direction angles, multiple preset focal length multiples, and a corresponding relationship between the preset direction angles and the preset focal length multiples, the preset direction angles include preset directions and preset angles; based on the current direction and current angle of the focus knob, determining a matching preset focal length multiple from the focus knob relationship list as the target focal length multiple; based on the target focal length multiple, generating a focusing instruction.

[0071] Among them, based on the direction and angle of the focusing knob carried in the focusing request, a focusing instruction is generated, including: determining a preset focal length change knob rotation relationship list, the focal length change knob rotation relationship list includes multiple rotation direction angles, multiple focal length change multiples, and a corresponding relationship between the rotation direction angle and the focal length change multiple, the rotation direction angle includes a rotation direction and a rotation angle; based on the rotation direction and rotation angle of the focusing knob, determining a matching focal length change multiple from the focal length change knob rotation relationship list as a target focal length change multiple; determining a current focal length multiple of a current shooting window on the mobile terminal; based on the current focal length multiple and the target focal length change multiple, determining a target focal length multiple; based on the target focal length multiple, generating a focusing instruction.

[0072] Furthermore, a focusing instruction is generated based on the target focal length multiple, including: when the target focal length multiple is less than or equal to the maximum limiting focal length multiple of the current shooting window, and greater than or equal to the minimum limiting focal length multiple of the current shooting window, a focusing instruction is generated based on the target focal length multiple; when the target focal length multiple is greater than the maximum limiting focal length multiple of the current shooting window, a focusing instruction is generated based on the maximum limiting focal length multiple; when the target focal length multiple is less than the minimum limiting focal length multiple of the current shooting window, a focusing instruction is generated based on the minimum limiting focal length multiple.

[0073] Then, based on the focus instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted.

[0074] Afterwards, when the focal length magnification of the current shooting window on the mobile terminal reaches the maximum restricted focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to enlarge the focal length magnification of the current shooting window, the focal length magnification of the current shooting window will not be adjusted; when the focal length magnification of the current shooting window on the mobile terminal reaches the minimum restricted focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, the focal length magnification of the current shooting window will not be adjusted.

[0075] In the embodiment of the present invention, a focus knob is provided on the mobile terminal, and the user can directly control the focal length of the camera through the focus knob, so that in actual application, when shooting through the camera on the mobile terminal, the user can adjust the focal length while shooting, and can directly adjust with one hand, without the need for two hands to control the focus through zooming operations, which is convenient for users to take selfies or snapshots, and can greatly improve the user experience.

[0076] The method provided by the embodiment of the present invention receives a focusing request triggered by a focusing knob on a mobile terminal, generates a focusing instruction according to the direction and angle of the focusing knob carried in the focusing request, and adjusts the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction, thereby achieving fast and accurate focusing, overcoming the defects of the traditional solution that the focusing operation of the camera on the terminal device is cumbersome, the focusing time is long, the precise adjustment is difficult, and the effect is not ideal, while ensuring the precision and accuracy of the focusing, reducing the complexity of the operation, shortening the focusing time, improving the convenience of focusing, and optimizing the user's shooting experience and shooting efficiency.

[0077] The focusing device provided by the present invention is described below. The focusing device described below and the focusing method described above can be referred to each other.

[0078] Figure 4 Schematic diagram of the structure of the focusing device provided by the present invention. Figure 4 As shown, the device comprises: The receiving unit 410 is used to receive a focus request triggered by a focus knob on the mobile terminal; The processing unit 420 is used to generate a focus instruction based on the direction and angle of the focus knob carried in the focus request; The adjusting unit 430 is used to adjust the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction.

[0079] The focusing device provided by the present invention receives a focusing request triggered by a focusing knob on a mobile terminal, and generates a focusing instruction according to the direction and angle of the focusing knob carried in the focusing request; based on the focusing instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted, thereby achieving fast and accurate focusing, overcoming the defects of the traditional solution that the focusing operation of the camera on the terminal device is cumbersome, the focusing time is long, the precise adjustment is difficult, and the effect is not ideal, while ensuring the precision and accuracy of the focusing, the complexity of the operation is reduced, the focusing time is shortened, the convenience of focusing is improved, and the user's shooting experience and shooting efficiency are optimized.

[0080] Based on the above embodiment, the processing unit 420 is used for: Determine a preset focus knob relationship list, wherein the focus knob relationship list includes a plurality of preset direction angles, a plurality of preset focal length multiples, and a correspondence between the preset direction angles and the preset focal length multiples, wherein the preset direction angles include a preset direction and a preset angle; Based on the current direction and the current angle of the focus knob, determining a matching preset focal length multiple from the focus knob relationship list as a target focal length multiple; Based on the target focal length multiple, a focusing instruction is generated.

[0081] Based on the above embodiment, the processing unit 420 is used for: Determine a preset focus change knob rotation relationship list, wherein the focus change knob rotation relationship list includes multiple rotation direction angles, multiple focal length change multiples, and a corresponding relationship between the rotation direction angles and the focal length change multiples, wherein the rotation direction angle includes a rotation direction and a rotation angle; Based on the rotation direction and rotation angle of the focus knob, determining a matching focal length change multiple from the focal length change knob rotation relationship list as a target focal length change multiple; A focus adjustment instruction is generated based on the target focal length change factor.

[0082] Based on the above embodiment, the processing unit 420 is used for: Determining a current focal length multiple of a current shooting window on the mobile terminal; Determining a target focal length multiple based on the current focal length multiple and the target focal length change multiple; Based on the target focal length multiple, a focusing instruction is generated.

[0083] Based on the above embodiment, the processing unit 420 is used for: When the target focal length multiple is less than or equal to the maximum restricted focal length multiple of the current shooting window and greater than or equal to the minimum restricted focal length multiple of the current shooting window, a focusing instruction is generated based on the target focal length multiple.

[0084] Based on the above embodiment, the processing unit 420 is used for: In a case where the target focal length multiple is greater than the maximum restricted focal length multiple of the current shooting window, generating a focus instruction based on the maximum restricted focal length multiple; When the target focal length multiple is less than the minimum limiting focal length multiple of the current shooting window, a focus instruction is generated based on the minimum limiting focal length multiple.

[0085] Based on the above embodiment, the processing unit 420 is further configured to: When the focal length magnification of the current shooting window on the mobile terminal reaches the maximum restricted focal length magnification after adjustment, and the focus adjustment instruction generated based on the received new focus adjustment request indicates to enlarge the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted; When the focal length magnification of the current shooting window on the mobile terminal reaches the minimum limit focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted.

[0086] Figure 5 is a schematic diagram of the structure of the mobile terminal provided by the present invention, such as Figure 5 As shown, the mobile terminal includes a focus knob 510, a processor 520 and a display screen 530; The processor 520 is used to receive a focusing request triggered by the focusing knob 510 on the mobile terminal, and generate a focusing instruction based on the direction and angle of the focusing knob 510 carried in the focusing request, and adjust the focal length multiple of the current shooting window on the display screen 530 of the mobile terminal based on the focusing instruction.

[0087] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the focusing method, which includes: receiving a focusing request triggered by a focusing knob on a mobile terminal; generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request; and adjusting the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction.

[0088] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0089] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the focusing method provided by the above-mentioned methods, and the method includes: receiving a focusing request triggered by a focusing knob on a mobile terminal; generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request; and adjusting the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction.

[0090] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the focusing method provided by the above-mentioned methods, the method comprising: receiving a focusing request triggered by a focusing knob on a mobile terminal; generating a focusing instruction based on the direction and angle of the focusing knob carried in the focusing request; and adjusting the focal length multiple of the current shooting window on the mobile terminal based on the focusing instruction.

[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A focusing method, It is characterized in that include: Receiving a focus request triggered by a focus knob on a mobile terminal; Generate a focus instruction based on the direction and angle of the focus knob carried in the focus request; Based on the focus adjustment instruction, the focal length multiple of the current shooting window on the mobile terminal is adjusted.

2. The focusing method according to claim 1, It is characterized in that The generating a focus instruction based on the direction and angle of the focus knob carried in the focus request includes: Determine a preset focus knob relationship list, wherein the focus knob relationship list includes a plurality of preset direction angles, a plurality of preset focal length multiples, and a correspondence between the preset direction angles and the preset focal length multiples, wherein the preset direction angles include a preset direction and a preset angle; Based on the current direction and the current angle of the focus knob, determining a matching preset focal length multiple from the focus knob relationship list as a target focal length multiple; Based on the target focal length multiple, a focusing instruction is generated.

3. The focusing method according to claim 1, It is characterized in that The generating a focus instruction based on the direction and angle of the focus knob carried in the focus request includes: Determine a preset focus change knob rotation relationship list, wherein the focus change knob rotation relationship list includes multiple rotation direction angles, multiple focal length change multiples, and a corresponding relationship between the rotation direction angles and the focal length change multiples, wherein the rotation direction angle includes a rotation direction and a rotation angle; Based on the rotation direction and rotation angle of the focus knob, determining a matching focal length change multiple from the focal length change knob rotation relationship list as a target focal length change multiple; A focus adjustment instruction is generated based on the target focal length change factor.

4. The focusing method according to claim 3, It is characterized in that The step of generating a focus instruction based on the target focal length change multiple includes: Determining a current focal length multiple of a current shooting window on the mobile terminal; Determining a target focal length multiple based on the current focal length multiple and the target focal length change multiple; Based on the target focal length multiple, a focusing instruction is generated.

5. The focusing method according to claim 2 or 4, It is characterized in that The generating a focusing instruction based on the target focal length multiple includes: When the target focal length multiple is less than or equal to the maximum restricted focal length multiple of the current shooting window and greater than or equal to the minimum restricted focal length multiple of the current shooting window, a focusing instruction is generated based on the target focal length multiple.

6. The focusing method according to claim 2 or 4, It is characterized in that The generating a focusing instruction based on the target focal length multiple includes: In a case where the target focal length multiple is greater than the maximum restricted focal length multiple of the current shooting window, generating a focus instruction based on the maximum restricted focal length multiple; When the target focal length multiple is less than the minimum limiting focal length multiple of the current shooting window, a focus instruction is generated based on the minimum limiting focal length multiple.

7. The focusing method according to any one of claims 1 to 4, It is characterized in that The method further comprises: adjusting the focal length multiple of the current shooting window on the mobile terminal based on the focus instruction, and then: When the focal length magnification of the current shooting window on the mobile terminal reaches the maximum restricted focal length magnification after adjustment, and the focus adjustment instruction generated based on the received new focus adjustment request indicates to enlarge the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted; When the focal length magnification of the current shooting window on the mobile terminal reaches the minimum limit focal length magnification after adjustment, and the focusing instruction generated based on the received new focusing request indicates to reduce the focal length magnification of the current shooting window, the focal length magnification of the current shooting window is not adjusted.

8. A focusing device, It is characterized in that include: A receiving unit, configured to receive a focus request triggered by a focus knob on a mobile terminal; A processing unit, configured to generate a focus instruction based on the direction and angle of the focus knob carried in the focus request; An adjustment unit is used to adjust the focal length multiple of the current shooting window on the mobile terminal based on the focus adjustment instruction.

9. A mobile terminal, It is characterized in that Includes focus knob, processor and display; The processor is used to receive a focus request triggered by the focus knob on the mobile terminal, and generate a focus instruction based on the direction and angle of the focus knob carried in the focus request, and adjust the focal length multiple of the current shooting window on the display screen of the mobile terminal based on the focus instruction.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the focusing method according to any one of claims 1 to 7 is implemented.