Focusing method, focusing equipment, focusing device and computer readable storage medium
By switching between autofocus and manual focus modes in the camera and combining data control of the focusing and detection components, the problem of the single and mechanical nature of autofocus functions in existing technologies is solved, achieving flexible lens focus control and improving shooting efficiency and emotional expression.
Patent Information
- Application Number
- CN202411147939.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-22
AI Technical Summary
The autofocus function of existing cameras is rather mechanical during the shooting process, making it difficult to express rich emotions, and its functions are limited and inconvenient to use.
A focusing method is provided that, by switching between autofocus and manual focus modes, the lens focus ring is controlled to rotate using data from the focusing and detection components, enabling flexible switching between manual and autofocus. Combined with a position closed-loop mode and an autofocus algorithm, precise focusing of the lens is achieved.
It achieves shooting effects that save time while expressing rich emotions during the shooting process, improving the user's shooting efficiency and flexibility.
Smart Images

Figure CN119012008A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photographic technology, and in particular to a focusing method, equipment, device and computer-readable storage medium. Background Art
[0002] With the development of science and technology, cameras have become a common item in daily life. People can use cameras to take pictures and videos to record their daily lives. The camera lens generally has a focus function. Some cameras have an automatic focus function. The camera lens is equipped with a sensor device to detect the subject. When the subject moves, the lens can change accordingly, so that the subject can be located within the depth of field of the lens to form a clear image. Autofocus can be convenient for users to use, but autofocus makes shooting relatively mechanical. During the shooting process, the photographer usually needs some shots to look more emotional. Summary of the invention
[0003] The main purpose of the present application is to provide a focusing method, device, apparatus and computer-readable storage medium, aiming to solve the technical problem that the current data transmission box in the prior art mainly meets the data transmission function and has a relatively single function, which makes it inconvenient to use in daily life.
[0004] In order to solve the above technical problems, the technical solution provided by the present invention is:
[0005] A focusing method, the focusing method comprising:
[0006] Determining a focus mode to be switched by the photographing device based on a focus condition of the photographed object, wherein the focus mode includes automatic focus and manual focus;
[0007] When the manual focus mode signal is received, the lens is controlled according to the manual focus data to complete manual focus;
[0008] When the auto-focus mode signal is received, the lens is controlled according to the auto-focus data to complete the auto-focus.
[0009] In one aspect, determining the focus mode to be switched by the photographing device based on the focus condition of the photographed object includes:
[0010] When it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused shooting object can be switched to another object, and the lens can be controlled according to the manual focus data so as to manually focus on the other object;
[0011] When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus shooting object can be switched to other objects, and the lens can be controlled according to the auto focus data so as to be able to auto focus on other objects.
[0012] In one aspect, determining the focus mode to be switched by the photographing device based on the focus condition of the photographed object includes:
[0013] When it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused photographing object may not be switched to another object, and the lens may be controlled according to the manual focus data so as to continue to manually focus on the current photographing object;
[0014] When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus subject may not be switched to another subject, and the lens may be controlled according to the auto focus data so as to continue to auto focus on the current subject.
[0015] In one aspect, a focusing device is further included. When the manual focus mode signal is received, the lens is controlled according to the manual focus data to complete the manual focus. The focusing method further includes:
[0016] According to the focus data of the focus member, controlling the focus ring of the lens to rotate to a first position to determine the initial travel point of the lens;
[0017] According to the focus data of the focus member, the end point of the lens stroke is determined when the focus ring of the lens is controlled to rotate to the second position to obtain the lens stroke.
[0018] In one aspect, when the manual focus mode signal is received, controlling the lens according to the manual focus data to complete the manual focus includes:
[0019] receiving a rotation stroke of the focusing member;
[0020] Based on the rotation stroke of the focusing member, the focus ring of the lens is controlled to rotate to a corresponding stroke.
[0021] In one aspect, controlling the focus ring of the lens to rotate a corresponding stroke based on the rotation stroke of the focus member comprises:
[0022] The focus ring of the lens is driven to rotate a corresponding stroke through the position closed-loop mode.
[0023] In one aspect, the focusing method further comprises:
[0024] Receiving the mark point M2 of the focus member, and controlling the focus ring of the lens to rotate to the travel point θ2 based on the mark point M2 of the focus member;
[0025] Receiving the focus member rotation mark point M3, and controlling the focus ring of the lens to rotate to the travel point θ3 based on the focus member rotation mark point M3;
[0026] Within the travel of the focusing member (M2, M3), the focusing ring of the lens is controlled to rotate within the travel of (θ2, θ3).
[0027] In one aspect, the detection element is included, and before the automatic focus mode switching signal is received and the lens is controlled according to the automatic focus data to complete the automatic focus, the focusing method further includes: wherein,
[0028] According to the focus data of the focus member, the focus ring of the lens is controlled to rotate so that the scale mark point of the lens can be aligned with each lens scale value on the focus ring to obtain the angle value of the adjustment member corresponding to each lens scale value;
[0029] Communicate with the detection component, and send the adjustment component angle value corresponding to each lens scale value to the detection component, so as to complete the data set entry of multiple sets of lens scale values and corresponding adjustment component angle values; or,
[0030] Manually input multiple sets of lens scale values and corresponding adjustment member angle values into the detection member; or,
[0031] According to the movement detection of the detection member under different lens scale values, multiple groups of adjustment member angle values are sent to the detection member to complete the data set entry of multiple groups of detection values of the detection member and corresponding adjustment member angle values.
[0032] In one aspect, when the auto-focus mode switching signal is received, controlling the lens according to the auto-focus data to complete the auto-focus includes:
[0033] Receiving an auto-focus data value calculated by the detection member according to an auto-focus algorithm after distance measurement, wherein the auto-focus data value is an angle value of a target adjustment member sent by the detection member;
[0034] According to the auto-focus data value, the relative rotation stroke of the focus ring of the lens is controlled.
[0035] In one aspect, the auto-focus algorithm comprises:
[0036]
[0037] (X0-X1)×K+Y1=Y0 or Y2-(X2-X0)×K=Y0
[0038] Among them, X0 is the distance detected by the detection part, Y0 is the angle value of the adjustment part corresponding to the distance X0, X0 is less than X2, Y2 is the angle value of the adjustment part corresponding to X2 in the entered data set; among them, X1, Y1 are the previous group of data of X2, Y2 in the entered data set.
[0039] On the one hand, the detection component obtains X0 through data collection, sorting and filtering.
[0040] In one aspect, X2 and Y2 are a set of data located after X and closest to X in the input data set.
[0041] The present invention also provides a regulating device, comprising a regulating member, the regulating member comprising a processor and a memory, the memory storing computer-executable instructions;
[0042] When the processor executes the computer-executable instruction, the focusing method according to any one of claims 1 to 12 is implemented.
[0043] The present invention also provides an autofocus device, comprising a detection member and an adjustment member, wherein the detection member comprises a detection member processor, a distance measuring sensor and a detection member memory, and the adjustment member comprises an adjustment member processor and an adjustment member memory, wherein the distance measuring sensor can measure the distance of a photographed object, and the detection member memory can store a first computer-executable instruction; the detection member processor outputs autofocus data when executing the first computer-executable instruction according to the measurement data of the distance measuring sensor, the adjustment member memory can store a second computer-executable instruction, and the adjustment member processor can receive the autofocus data, and implement the focusing method when executing the second computer-executable instruction.
[0044] The present invention also provides a manual focusing device, comprising a focusing part and an adjusting part, wherein the adjusting part comprises an adjusting part processor and an adjusting part memory, and the adjusting part memory is capable of storing a second computer execution instruction; the focusing part comprises a focusing part processor and a focusing part memory, and the focusing part memory is capable of storing a third computer execution instruction, the focusing part processor is capable of executing a third computer to output manual focus data, the adjusting part processor is capable of receiving the manual focus data, and executing the second computer execution instruction to implement the focusing method.
[0045] The present invention also provides a manual-automatic focusing device, comprising an adjusting member, a detecting member and a focusing member, wherein the adjusting member can engage with a focus follower bar on a focusing ring of the lens of the photographing device, and the adjusting member, the detecting member and the focusing member are all communicatively connected with each other, and the adjusting member comprises an adjusting member processor, and the adjusting member processor completes the focusing method according to manual focusing data of the focusing member and automatic focusing data of the detecting member.
[0046] In one aspect, the detection element includes a distance measuring sensor and a detection element processor, and the distance measuring sensor is capable of measuring the distance of a photographed object in a photographed picture;
[0047] Wherein, the captured image includes multiple areas, and the detection element processor selects a central area thereof as the ranging area; or the detection element processor selects the farthest or nearest area thereof as the ranging area.
[0048] This document also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the focusing method according to any one of claims 1 to 12.
[0049] Beneficial effects:
[0050] When the user presses the switch button, he can switch between manual focus and automatic focus. The motor can control the rotation of the focus ring of the lens according to the manual focus data of the focus piece; it can also control the rotation of the focus ring of the lens according to the automatic focus data of the detection piece, thereby completing a shooting system integrating manual focus and automatic focus. During shooting, the user can generally switch to automatic focus, so that the motor controls the focus of the lens according to the automatic focus data of the detection piece. For these shooting scenes, it can greatly save the user's shooting time and facilitate shooting. However, for some focusing situations, emotional shooting requirements are required. Automatic focus will make shooting more mechanical and difficult to express emotions. The user can switch to manual focus, and then adjust the focus piece to make the motor drive the lens to focus manually, so that the shooting picture can capture the shooting picture the user wants. In summary, the focusing method in this article can not only facilitate shooting, but also capture pictures with the emotions that the user wants in some shooting pictures. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0052] Figure 1 Schematic diagram of the focusing device in this article.
[0053] Figure 2 Schematic diagram of the focusing method in this article.
[0054] Figure 3 FIG. 4 is another flowchart of the focusing method in this article.
[0055] Figure 4 FIG. 4 is another flowchart of the focusing method in this article.
[0056] Figure 5 Schematic diagram of the process of defining the lens journey for this article.
[0057] Figure 6 This is a flowchart of the manual focusing method in this article.
[0058] Figure 7 The figure is a flowchart of the auto-focus method in this paper.
[0059] Figure 8 This is a rough schematic diagram of the automatic algorithm diagram in this article.
[0060] Fig. 9 Schematic diagram of the adjustment parts in this article.
[0061] Fig.10 Schematic diagram of the focus part of this article.
[0062] Fig.11 This is a schematic diagram of the test piece in this article.
[0063] Fig.12 This is a schematic diagram of the lens used in this article.
[0065] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0067] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0068] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, "and / or" in the full text includes three solutions. Taking A and / or B as an example, it includes technical solution A, technical solution B, and technical solution that satisfies both A and B; in addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0069] See also Figure 1-11 ,This paper provides a focusing method, Figure 1 The general assembly schematic diagram of the focusing device is provided according to the implementation of the present application. The focusing member herein can generally be an adjustment hand wheel or an adjustment handle with an adjustment operation portion, etc. A focus ring is installed on the lens, and the adjustment member generally engages with the focus ring to drive the focus ring of the lens to rotate, thereby being able to drive the focus ring of the lens to rotate and adjust the focus, so as to achieve clear imaging of the photographed object. The detection member can be installed on the camera, and a position installation schematic is given herein. The detection member includes a sensor. In the scheme of this article, the sensor can perform distance measurement detection to obtain the distance data from the target object to the camera CMOS. It can be understood that when the user installs the detection member on the camera, the distance from the detection member to the CMOS is known, and the distance data can be added to the distance from the detection member to the CMOS each time to obtain the distance from the target object to the CMOS. Specifically, the adjustment member can be a motor, and the adjustment member is described as a motor in the following text; the focusing member and the motor in this article can be connected via 2.4G wireless connection, and pairing is completed in one channel. The motor and the detection member can be wired connection, for example, in one embodiment, they can be connected via a type-C interface.
[0070] See also Figure 2 , the focusing methods in this article include:
[0071] S100, determining a focus mode to be switched by a photographing device based on a focus condition of the photographed object, wherein the focus mode includes automatic focus and manual focus;
[0072] Specifically, a switch button can be provided on the focus member. When the user presses the switch button, the user can switch between manual focus and automatic focus. The motor can control the focus ring of the lens to rotate according to the manual focus data of the focus member; it can also control the focus ring of the lens to rotate according to the automatic focus data of the detection member, thereby completing a shooting system integrating manual focus and automatic focus. During use, the user can flexibly use it according to the focus situation, that is, whether the focus situation of the shooting object is suitable for manual focus or automatic focus. The user can generally switch to automatic focus during shooting, so that the motor can control the focus ring of the lens to rotate according to the manual focus data of the focus member. The autofocus data of the detection part controls the focus of the lens. For these shooting scenes, it can greatly save the user's shooting time and facilitate shooting. However, for some focusing situations, it is necessary to add emotional shooting requirements. Autofocus will make shooting more mechanical and difficult to express emotions. The user can switch to manual focus, and then adjust the focus part to make the motor drive the lens to focus, so that the shooting picture can capture the shooting picture the user wants. In summary, the focusing method of this article can not only facilitate shooting, but also capture the pictures with the emotions that the user wants in some shooting pictures. It can be understood that the switch key can transmit signals through high and low level signals to realize the switching between autofocus and manual focus.
[0073] See also Figure 3 , in manual focus and auto focus switching, our subject can be switched or not switched, for example:
[0074] S101, when it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused shooting object can be switched to another object, and the lens can be controlled according to the manual focus data so as to manually focus on the other object;
[0075] During the shooting process, the manual focus mode is switched to, and the user can rotate the hand wheel of the focus member so that the motor can drive the focus ring of the lens to rotate and switch to other objects that the user needs to shoot.
[0076] S102: When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus shooting object can be switched to another object, and the lens can be controlled according to the auto focus data so as to be able to auto focus on the other object.
[0077] During the shooting process, switch to autofocus mode, the motor can also drive the focus ring of the lens to rotate according to the data of the detection part, and can automatically focus on other objects.
[0078] See also Figure 4 In some embodiments, after the manual-automatic switch, the current subject can still be photographed.
[0079] S103: when it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused subject may not be switched to another subject, and the lens may be controlled according to the manual focus data so as to continue to manually focus on the current subject;
[0080] S104: When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus subject may not be switched to another subject, and the lens may be controlled according to the auto focus data to continue to auto focus on the current subject.
[0081] In summary, the focusing method of this article can help users shoot the intended subject, thereby facilitating shooting work.
[0082] S400, when the manual focus mode signal is received, controlling the lens according to the manual focus data to complete manual focus;
[0083] For some focusing situations that require additional emotional shooting requirements, autofocus will make the shooting more mechanical and difficult to express emotions. The user can switch to manual focus, and then adjust the focus parts to allow the motor to drive the lens to focus manually, so that the shooting picture can capture the picture the user wants.
[0084] See also Figure 5 In this paper, when the manual focus mode signal is received, the lens is controlled according to the manual focus data to complete the manual focus, and the focusing method also includes:
[0085] S200, determining the initial point of the lens stroke when controlling the focus ring of the lens to rotate to a first position according to the focus data of the focus member;
[0086] S300, according to the focus data of the focus member, controlling the focus ring of the lens to rotate to a second position to determine the end point of the lens stroke, so as to obtain the lens stroke.
[0087] During specific operation, there are usually two mechanical limits at the initial point and the end point of the rotation stroke of the focus ring of the lens, which can be the first position and the second position respectively. The user can operate the focus part so that when the motor controls the focus ring of the lens to rotate to the first position, the initial point of the lens stroke is determined. The user can operate the focus part so that when the motor controls the focus ring of the lens to rotate to the second position, the end point of the lens stroke is determined, thereby forming a lens operation stroke, and the focus part controls the rotation of the focus ring of the lens within this lens operation stroke. It is worth understanding that the processor of the focus part can divide this stroke into more parts; in order to facilitate smoother and more precise adjustment of the motor rotation, for example, the lens stroke n° can be divided into 9999 parts, that is, the value range displayed on the display screen of the focus part can be 0-9999, corresponding to the lens stroke 0-n° respectively.
[0088] See also Figure 6 Further, S400, when the manual focus mode signal is received, controlling the lens according to the manual focus data to complete the manual focus includes:
[0089] S401, receiving the rotation stroke of the focusing member;
[0090] In this step, a rotating handwheel may generally be provided on the focusing part. The rotating handwheel generally has a magnet. The processor of the focusing part includes a magnetic encoder. The processor of the focusing part obtains the angle of the handwheel rotated by the user according to the angle detected by the magnetic encoder. The processor sends the angle data to the motor (adjusting part), and the motor can receive the angle data, that is, receive the manual focus data.
[0091] S402: Control the focus ring of the lens to rotate to a corresponding stroke based on the rotation stroke of the focus member.
[0092] The processor of the motor can control the rotation of the focus ring of the lens according to the received angle data of the focus unit, thereby controlling the rotation of the focus ring of the lens to a corresponding stroke. In this process, the user can manually operate the focus unit while watching whether the focus of the camera shooting picture is as expected, and can make adjustments in real time, so as to shoot a picture with rich emotions. It is worth mentioning that the user can watch the shooting picture from the display screen of the fuselage, or from the monitor connected to the camera.
[0093] More specifically, controlling the focus ring of the lens to rotate a corresponding stroke based on the rotation stroke of the focus member includes:
[0094] S4021, driving the focus ring of the lens to rotate a corresponding stroke through a position closed-loop mode.
[0095] In the closed-loop control of the motor, the present solution is a position closed-loop mode, and the motor processor is calculated based on the PID algorithm. In some embodiments, a three-closed-loop mode may be adopted, with the position closed-loop mode as the main mode and the speed closed-loop mode and the current closed-loop mode as the auxiliary modes, so as to realize that the motor rotates to the target position at a suitable speed and force.
[0096] In some cases, the user may be able to capture images within a certain distance range. This article also provides a focusing method, including
[0097] S403, receiving the mark point M1 of the focus member, and controlling the focus ring of the lens to rotate to the travel point θ1 based on the mark point M1 of the focus member;
[0098] S404, receiving the focus member rotation mark point M2, and controlling the focus ring of the lens to rotate to the travel point θ2 based on the focus member rotation mark point M2;
[0099] S405 , within the travel of the focusing member (M1 , M2), controlling the focus ring of the lens to rotate within the travel of (θ1 , θ2).
[0100] In this solution, the user can select any two marking points within the adjustment range of 0-9999 of the focus part, and the corresponding motor has two rotation angle values. The processor of the focus part can limit the adjustment range between the first marking point and the second marking point, so that the rotation of the motor is between the first motor angle value and the second motor angle value, so that the focus stroke of the lens is limited to a certain stroke selected by the user. In summary, the method provided by this method can facilitate flexible use by users.
[0101] In the above embodiment, the adjusting part includes an adjusting part processor and an adjusting part memory, and the adjusting part memory is capable of storing a second computer execution instruction; the focusing part includes a focusing part processor and a focusing part memory, and the focusing part memory is capable of storing a third computer execution instruction, the focusing part processor is capable of executing a third computer program to output manual focus data, and the adjusting part processor is capable of receiving manual focus data and executing the second computer execution instruction to achieve manual focus.
[0102] The above-mentioned processor may be a central processing unit, or other general-purpose processors, digital signal processors, integrated circuit processors, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The method steps disclosed herein may be implemented as being executed by a hardware processor, or by a software module in the processor.
[0103] See also Figure 1 , Figure 7, S700, when the auto focus mode signal is received, controlling the lens according to the auto focus data to complete auto focus;
[0104] During shooting, the user can generally switch to autofocus, so that the motor controls the focus of the lens according to the autofocus data of the detection component. For these shooting scenes, it can greatly save the user's shooting time and facilitate shooting.
[0105] Specifically, before receiving the autofocus mode switching signal and controlling the lens according to the autofocus data to complete the autofocus, the focusing method further includes:
[0106] S500, according to the focus data of the focus member, control the focus ring of the lens to rotate so that the scale mark point of the lens can be aligned with each lens scale value on the focus ring to obtain the adjustment member angle value corresponding to each lens scale value.
[0107] Before autofocusing, you usually need to complete the data set entry. Specifically, there are usually scale marking points on the lens, such as Fig.12 As shown, the focus ring has lens scale values, and the user can operate the focus part so that the motor drives the focus ring of the lens to rotate to the lens identification point to align with the first lens scale value on the focus ring. At this time, the motor will rotate to a motor angle value accordingly, and the user can manually enter the lens scale value into the detection part, and then the detection part can receive the current motor angle value from the motor, thereby completing the entry of the first set of data, and so on. The user operates the focus part separately, so that the motor drives the focus ring to rotate, so that the lens scale identification point can be aligned with each lens scale value respectively, and each time the alignment is performed, the user enters each group of lens scale values into the detection part, and the detection part can receive the current motor angle value of the motor corresponding to each lens scale value, thereby completing the data entry of multiple sets of data sets.
[0108] In terms of operation mode, the detection part may have some operation parts, and these operation parts may be given some functions. For example, in one mode, the detection part includes button 1, button 2 and a dial. During the input process of each set of data, the user can enter the data input interface by double-clicking button 1 or double-clicking button 2, single-clicking button 1 to jump to the lens scale value input location on the display interface of the detection part, and realize the lens scale value data input through the dial, and then operate button 1 to make it jump to the motor angle value on the display interface. At this time, the motor can send the motor angle value corresponding to the lens scale value to the detection part, and then operate button 1 to make it jump to the specified position, and then click the side dial to switch to the input of the next set of data. It is worth mentioning that button 1 and button 2 can be understood as jumping to the next place or jumping to the previous place. Therefore, during the data input process, button 2 can also be used to return to the previous place to complete the corresponding data input. The operation mode can be flexible and changeable. The above provides a feasible implementation method, which does not mean that this method can only include this one operation mode. Any operation method that can realize data set entry is acceptable. For example, it can also be changed to long pressing the up key or the down key to enter the data entry interface; for example, data entry can also be modified to enter the lens scale value by touch screen.
[0109] It is worth noting that the focus ring has a lens scale value with meters as the scale unit and a lens scale value with feet as the scale unit, and the user can use either lens scale value. The above-mentioned dial can also realize the switching between meters as the scale unit and feet as the scale unit.
[0110] In one aspect, the present invention also includes a method for manually entering a dataset.
[0111] S600, manually inputting a plurality of sets of lens scale values and corresponding adjustment member angle values into the detection member.
[0112] In this manner, multiple sets of data sets including lens scale values and corresponding adjustment member angle values may be manually entered.
[0113] On the other hand, when using, the user can also input the data sets of detection values of multiple detection components and corresponding motor angle values by mobile detection.
[0114] Specifically, the user can fix a test object and move the lens for detection. The detection component can detect multiple detection distances, and the motor can send the motor angle values corresponding to the multiple detection distances to the detection component to complete the data set entry.
[0115] In summary, the above three methods can be used to complete the data entry and form a set of data sets.
[0116] Specifically, see Figure 7S700: When the auto focus mode signal is received, controlling the lens according to the auto focus data to complete the auto focus includes:
[0117] S701, receiving an auto-focus data value calculated by the detection member according to the auto-focus algorithm after distance measurement, wherein the auto-focus data value is an adjusting member angle value that the adjusting member should rotate and is sent by the detection member;
[0118] Specifically, the autofocus data is the motor angle value calculated by the detection component according to the autofocus algorithm, and the motor operates according to the motor angle value to drive the focus ring of the lens to rotate. Specifically, the autofocus algorithm includes the following:
[0119]
[0120] (X0-X1)×K+Y1=Y0 or Y2-(X2-X0)×K=Y0
[0121] Among them, X0 is the distance detected by the detection part, Y0 is the angle value of the adjustment part corresponding to the distance X0, X0 is less than X2, Y2 is the angle value of the adjustment part corresponding to X2 in the entered data set; among them, X1, Y1 are the previous group of data of X2, Y2 in the entered data set.
[0122] The detection component can calculate the autofocus data according to the above-mentioned autofocus algorithm. Specifically, the detection component includes a sensor and a detection component processor. The sensor can detect the distance of the photographed object. The detection component processor can first determine that the distance of the photographed object is within the range of the recorded data set and which value is smaller than. For example, the sensor detects that the distance of the photographed object is X0, where X2 and Y2 are the values closest to X0 in the recorded data set, and X2 is greater than X0. Then the detection component processor can calculate the slope of this small section according to X2, Y2 and the data X1 and Y1 in the group before X2 and Y2 in the data set. Then the detection component processor calculates the slope of this small section according to the X0 value and (X0-X1)×K+Y1=Y0 or Y2-
[0123] (X2-X0)×K=Y0, calculate the Y0 value, which is the corresponding motor angle value, so the detection component processor sends the Y0 value to the motor. For example, Figure 8 As shown, X2, Y2 can be (a5, b5), and X1, Y1 can be (a4, b4). It is worth noting that there is a situation where X0 may overlap with X1. In this case, the value closest to X0 among the values greater than X0 in the data set is also X2. Therefore, the detection part processor can still calculate the Y0 value according to the above algorithm process.
[0124] In more detail, after the detection component sensor collects data, the detection component processor will perform sorting and filtering to obtain X0. Specifically, in this article, after the detection component processor sorts the data, it will select the corresponding data according to the pre-settings. Specifically, the detection component sensor will collect data at set intervals to implement the polling cycle process, and the sorting and filtering processes are always ongoing, and the data is constantly changing. The sorting is always ongoing, and the corresponding data selected according to the pre-settings are also constantly changing. There can be multiple selected corresponding data. At this time, the detection component processor can filter the multiple corresponding data to obtain X0. The sorting and filtering methods can be existing sorting or filtering methods. It is worth noting that this article selects the corresponding data according to the pre-settings, and can pre-set the selection of the minimum data, or pre-set the selection of the maximum data, and so on.
[0125] S702: Control the focus ring of the lens to rotate relative to a certain stroke according to the auto-focus data value.
[0126] In the aforementioned method, the detection component includes a single-chip microcomputer, a distance measuring sensor and a detection component memory, the adjustment component includes an adjustment component processor and an adjustment component memory, the distance measuring sensor can measure the distance of the photographed object, and the detection component memory can store a first computer execution instruction; the single-chip microcomputer outputs autofocus data when executing the first computer execution instruction according to the measurement data of the distance measuring sensor, the adjustment component memory can store a second computer execution instruction, the adjustment component processor can receive the autofocus data, and implements the autofocus method when executing the second computer execution instruction.
[0127] On the one hand, see Figure 9-11 The detection component includes a distance measuring sensor and a detection component processor. The distance measuring sensor can measure the distance of the photographed object in the shooting picture; wherein the shooting picture includes multiple areas, and the detection component processor selects one of the central areas as the distance measuring area. For example, a shooting picture can be divided into a nine-square grid, and the detection component processor can select the central area as the distance measuring distance, that is, after automatic focusing, the lens can capture a clear central area; or the detection component processor selects the farthest or nearest area as the distance measuring area.
[0128] In summary, it can be understood that this article provides a manual-automatic focusing device that can switch between autofocus shooting and manual focus shooting as needed, including an adjusting part, a detecting part and a focusing part. The adjusting part can engage with the focus follower bar on the focus ring of the lens of the shooting device. The adjusting part, the detecting part and the focusing part are all communicatively connected. The adjusting part includes an adjusting part processor. The adjusting part processor completes the control process of switching between autofocus and manual focus and continues the focusing according to the manual focus data of the focusing part and the autofocus data of the detecting part.
[0129] The processors of the motor, focusing element and detection element mentioned above may be a central processing unit, or other general-purpose processors, digital signal processors, integrated circuit processors, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The method steps disclosed herein may be implemented as being executed by a hardware processor or by a software module in the processor.
[0130] This article can also provide a computer scale storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned focusing method is implemented.
[0131] All or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer program. When all or part of the functions in the above-mentioned embodiments are implemented by computer program, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, CD, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer program, the program can also be stored in a storage medium such as a server, another computer, disk, CD, flash disk or mobile hard disk, and saved in the memory of the local device by downloading or copying, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0132] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A focusing method, It is characterized in that The focusing method comprises: Determining a focus mode to be switched by the photographing device based on a focus condition of the photographed object, wherein the focus mode includes automatic focus and manual focus; When the manual focus mode signal is received, the lens is controlled according to the manual focus data to complete manual focus; When the auto-focus mode signal is received, the lens is controlled according to the auto-focus data to complete the auto-focus.
2. The focusing method according to claim 1, It is characterized in that The determining the focus mode to be switched by the photographing device based on the focus condition of the photographed object includes: When it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused shooting object can be switched to another object, and the lens can be controlled according to the manual focus data so as to manually focus on the other object; When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus shooting object can be switched to other objects, and the lens can be controlled according to the auto focus data so as to be able to auto focus on other objects.
3. The focusing method according to claim 1, It is characterized in that The determining the focus mode to be switched by the photographing device based on the focus condition of the photographed object includes: When it is determined that the automatic focus mode is switched to the manual focus mode, the manually focused photographing object may not be switched to another object, and the lens may be controlled according to the manual focus data so as to continue to manually focus on the current photographing object; When it is determined that the manual focus mode is switched to the auto focus mode, the auto focus subject may not be switched to another subject, and the lens may be controlled according to the auto focus data so as to continue to auto focus on the current subject.
4. The focusing method according to any one of claims 1 to 3, It is characterized in that The focusing method further comprises a focusing member, and before the lens is controlled according to the manual focus data to complete the manual focus when the manual focus mode signal is received, the focusing method further comprises: According to the focus data of the focus member, controlling the focus ring of the lens to rotate to a first position to determine the initial travel point of the lens; According to the focus data of the focus member, the end point of the lens stroke is determined when the focus ring of the lens is controlled to rotate to the second position to obtain the lens stroke.
5. The focusing method according to claim 4, It is characterized in that When the manual focus mode signal is received, controlling the lens according to the manual focus data to complete the manual focus includes: receiving a rotation stroke of the focusing member; Based on the rotation stroke of the focusing member, the focus ring of the lens is controlled to rotate to a corresponding stroke.
6. The focusing method according to claim 5, It is characterized in that The controlling the focus ring of the lens to rotate a corresponding stroke based on the rotation stroke of the focus member comprises: The focus ring of the lens is driven to rotate a corresponding stroke through the position closed-loop mode.
7. The focusing method according to claim 5, It is characterized in that The focusing method further comprises: Receive the mark point M of the focus part 2 , based on the marking point M of the focus piece 2 Control the focus ring of the lens to rotate to the travel point θ 2 ; Receive the focus member rotation mark point M 3 , based on the marking point M of the focus piece 3 Control the focus ring of the lens to rotate to the travel point θ 3 ; In the focusing element (M 2 , M 3 ) within the travel range, control the focus ring of the lens to (θ 2 ,θ 3 ) within the travel.
8. The focusing method according to claim 4, It is characterized in that The focusing method further comprises: comprising a detection element, when receiving the auto-focus mode switching signal, controlling the lens according to the auto-focus data to complete the auto-focusing, wherein: According to the focus data of the focus member, the focus ring of the lens is controlled to rotate so that the scale mark point of the lens can be aligned with each lens scale value on the focus ring to obtain the angle value of the adjustment member corresponding to each lens scale value; Communicate with the detection component, and send the adjustment component angle value corresponding to each lens scale value to the detection component, so as to complete the data set entry of multiple sets of lens scale values and corresponding adjustment component angle values; or, Manually input multiple sets of lens scale values and corresponding adjustment member angle values into the detection member; or, According to the movement detection of the detection member under different lens scale values, multiple groups of adjustment member angle values are sent to the detection member to complete the data set entry of multiple groups of detection values of the detection member and corresponding adjustment member angle values.
9. The focusing method according to claim 8, It is characterized in that When the auto-focus mode switching signal is received, controlling the lens according to the auto-focus data to complete the auto-focus includes: Receiving an auto-focus data value calculated by the detection member according to an auto-focus algorithm after distance measurement, wherein the auto-focus data value is an angle value of a target adjustment member sent by the detection member; According to the auto-focus data value, the relative rotation stroke of the focus ring of the lens is controlled.
10. The focusing method according to claim 9, It is characterized in that The auto-focus algorithm includes: (X 0 -X 1 ) × K + Y 1 = Y 0 or Y 2 -(X 2 -X 0 ) × K = Y 0 Among them, X 0 is the distance detected by the detection part, Y 0 For X 0 The corresponding adjustment angle value under the distance, X 0 Less than X 2 , Y 2 is the X in the input data set 2 The corresponding adjustment angle value; where X 1 , Y 1 X in the entered data set 2 , Y 2 The previous set of data.
11. The focusing method according to claim 10, It is characterized in that The detection part is subjected to data collection, sorting processing, filtering processing, and obtaining the X 0 .
12. The focusing method according to claim 10, It is characterized in that Where X 2 , Y 2 is a set of data that is located after X and closest to X in the entered data set.
13. A regulating device, It is characterized in that The device comprises a regulating member, wherein the regulating member comprises a processor and a memory, wherein the memory stores computer-executable instructions; When the processor executes the computer-executable instruction, the focusing method according to any one of claims 1 to 12 is implemented.
14. An autofocus device, It is characterized in that The invention comprises a detection part and an adjustment part, wherein the detection part comprises a detection part processor, a distance measuring sensor and a detection part memory, the adjustment part comprises an adjustment part processor and an adjustment part memory, the distance measuring sensor can measure the distance of a photographed object, and the detection part memory can store a first computer execution instruction; the detection part processor outputs autofocus data when executing the first computer execution instruction according to the measurement data of the distance measuring sensor, the adjustment part memory can store a second computer execution instruction, the adjustment part processor can receive the autofocus data, and implement the focusing method described in any one of claims 8 to 12 when executing the second computer execution instruction.
15. A manual focus device, It is characterized in that The invention comprises a focusing part and an adjusting part, wherein the adjusting part comprises an adjusting part processor and an adjusting part memory, and the adjusting part memory is capable of storing a second computer execution instruction; the focusing part comprises a focusing part processor and a focusing part memory, and the focusing part memory is capable of storing a third computer execution instruction, the focusing part processor is capable of executing a third computer to output manual focus data, the adjusting part processor is capable of receiving the manual focus data, and executing the second computer execution instruction to implement the focusing method described in any one of claims 4 to 7.
16. A manual-automatic focusing device, It is characterized in that The invention comprises an adjusting member, a detecting member and a focusing member, wherein the adjusting member can engage with a focus follower bar on a focusing ring of a lens of the photographing device, and the adjusting member, the detecting member and the focusing member are all communicatively connected with each other. The adjusting member comprises an adjusting member processor, and the adjusting member processor completes the focusing method according to any one of claims 1 to 12 according to manual focusing data of the focusing member and automatic focusing data of the detecting member.
17. The focusing device according to claim 16, It is characterized in that The detection element includes a distance measuring sensor and a detection element processor, and the distance measuring sensor can measure the distance of the photographed object in the photographed picture; Wherein, the captured image includes multiple areas, and the detection element processor selects a central area thereof as the ranging area; or the detection element processor selects the farthest or nearest area thereof as the ranging area.
18. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the focusing method according to any one of claims 1 to 12 is implemented.
