Motor focusing calibration methods, devices, electronic equipment and media
By acquiring reference focusing parameters and preset adjustment models from electronic devices, the focusing motor can be controlled to quickly determine the focusing position in the target focusing scene, solving the problem of long focusing calibration time during the camera assembly process and improving the production efficiency and economic benefits of the complete machine factory.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2026-04-03
AI Technical Summary
In the production of electronic devices, the assembly process and power supply environment of the camera device affect the focusing accuracy of the motor, resulting in long focusing calibration time and low efficiency in the factory testing of the complete machine, making it difficult to balance accuracy and speed.
By acquiring reference focusing parameters in the target focusing scene, the focusing motor is controlled to move in the adjustment direction from a determined starting position with a preset step size, and the optimal value of the response parameters is obtained, directly determining the target focusing position and eliminating the focus coarse search stage.
It enables rapid focusing and calibration, saving time and costs, improving the average capacity and economic efficiency of the production line, while maintaining the stability and accuracy of focusing.
Smart Images

Figure CN119316708B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment, and more particularly to a motor focusing calibration method, apparatus, electronic equipment, and medium. Background Technology
[0002] Electronic devices with camera functions involve many testing and calibration processes during production. Testing of camera device hardware is mainly divided into module factory testing and complete machine factory testing.
[0003] In order to eliminate the impact of the camera assembly process and the power supply environment of the electronic equipment on the focusing accuracy of the camera motor, the focusing status and other hardware performance of the motor need to be calibrated and tested during the factory testing of the complete machine. Summary of the Invention
[0004] To overcome the problems existing in the related technologies, this disclosure provides a motor focusing calibration method, apparatus, electronic device and medium.
[0005] According to a first aspect of the present disclosure, a motor focusing calibration method is provided, the focusing test method comprising:
[0006] Obtain reference focus parameters for the target focusing scene, wherein the reference focus parameters are the focus parameters obtained when the camera device is not assembled on the electronic device, the focus parameters correspond to the motor position of the camera device, and the target focusing scene is a near-focus scene or a far-focus scene;
[0007] The focusing motor is controlled to move from the focusing start position to the adjustment direction in a preset step size, wherein the focusing start position and the adjustment direction are determined based on the reference focusing parameters, the focusing start position is the starting position of the focusing motor of the camera device, and the adjustment direction is the moving direction of the focusing motor;
[0008] The optimal value of the response parameter during the movement of the focusing motor is obtained, and the response parameter is used to characterize the sharpness of the image acquired by the camera device;
[0009] The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0010] In some exemplary embodiments of this disclosure, the method for determining the focus starting position and the adjustment direction based on the reference focus parameters includes:
[0011] Obtain preset adjustment parameters and preset adjustment models, wherein both the preset adjustment parameters and the preset adjustment models are related to the hardware parameters of the focusing motor;
[0012] Based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters, the focus starting position and the adjustment direction are determined.
[0013] In some exemplary embodiments of this disclosure, determining the focus starting position and the adjustment direction based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters includes:
[0014] The difference between the reference focus parameter and the preset adjustment parameter is used as the first parameter, the motor position corresponding to the first parameter is used as the focus starting position, the motor position corresponding to the first parameter is located on the first side of the motor position corresponding to the reference focus parameter, and the direction from the motor position corresponding to the first parameter toward the motor position corresponding to the reference focus parameter is used as the adjustment direction.
[0015] In some exemplary embodiments of this disclosure, determining the focus starting position and the adjustment direction based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters includes:
[0016] The sum of the reference focus parameter and the preset adjustment parameter is used as the second parameter, the motor position corresponding to the second parameter is used as the focus starting position, the motor position corresponding to the second parameter is located on the second side of the motor position corresponding to the reference focus parameter, and the direction of the motor position corresponding to the second parameter toward the motor position corresponding to the reference focus parameter is used as the adjustment direction.
[0017] In some exemplary embodiments of this disclosure, the method for determining the target focusing scene includes:
[0018] Obtain distance measurement information from the distance measuring device;
[0019] If the ranging information falls within the first threshold range, the target focusing scene is determined to be a near-focus scene.
[0020] If the ranging information falls within the second threshold range, the target focusing scene is determined to be a telephoto scene.
[0021] The second threshold range is greater than the first threshold range.
[0022] In some exemplary embodiments of this disclosure, the method for determining the target focusing scene includes:
[0023] Based on the received first instruction information, the target focusing scene is determined to be a near-focus scene;
[0024] Based on the received second instruction information, the target focusing scene is determined to be a telephoto scene.
[0025] In some exemplary embodiments of this disclosure, the response parameters include spatial frequency response, and obtaining the optimal value of the response parameters during the movement of the focusing motor includes:
[0026] Obtain the maximum value of the spatial frequency response during the movement of the focusing motor.
[0027] In some exemplary embodiments of this disclosure, the motor focusing calibration method includes:
[0028] Based on the received third instruction information, the focusing motor is controlled to move to a preset position;
[0029] Based on the received fourth instruction information, the focusing motor is controlled to move from the preset position to the focusing start position.
[0030] According to a second aspect of the present disclosure, a motor focusing calibration device is provided, the focusing calibration device comprising:
[0031] The acquisition module is used to acquire reference focus parameters in the target focus scene, wherein the reference focus parameters are the focus parameters obtained when the camera device is not assembled on the electronic device, the focus parameters correspond to the motor position of the camera device, and the target focus scene is a near-focus scene or a far-focus scene.
[0032] A control module is used to control the focusing motor to move from the focusing start position to the adjustment direction in a preset step size, wherein the focusing start position and the adjustment direction are determined based on the reference focusing parameters, the focusing start position is the starting position of the focusing motor of the camera device, and the adjustment direction is the moving direction of the focusing motor.
[0033] The acquisition module is also used to acquire the optimal value of the response parameter during the movement of the focusing motor, and the response parameter is used to characterize the sharpness of the image acquired by the camera device;
[0034] The determining module is used to determine the position of the focusing motor corresponding to the optimal value of the response parameter as the target focusing position of the focusing motor in the target focusing scenario.
[0035] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0036] processor;
[0037] Memory used to store processor-executable instructions;
[0038] The processor is configured to execute executable instructions in the memory to implement the motor focusing calibration method provided in the first aspect of this disclosure.
[0039] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which executable instructions are stored, which, when executed by a processor, implement the motor focusing calibration method provided in the first aspect of the present disclosure.
[0040] The method described above has the following advantages: By identifying the target focusing scene and obtaining reference focusing parameters, the focusing motor can determine the focusing start position and adjustment direction. Since the focusing start position is near the target focusing position, the coarse focusing search stage of the focusing calibration process is eliminated, achieving rapid focusing calibration, saving time and cost in the calibration process, and improving economic efficiency.
[0041] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0043] Figure 1 This is a flowchart illustrating a motor focusing calibration method according to an exemplary embodiment.
[0044] Figure 2 This is a schematic diagram illustrating the correspondence between the position of the focusing motor and the response parameters according to an exemplary embodiment.
[0045] Figure 3 This is a flowchart illustrating a motor focusing calibration method according to an exemplary embodiment.
[0046] Figure 4 This is a flowchart illustrating a motor focusing calibration method according to an exemplary embodiment.
[0047] Figure 5 This is a flowchart illustrating a motor focusing calibration method according to an exemplary embodiment.
[0048] Figure 6 This is a flowchart illustrating a motor focusing calibration method according to an exemplary embodiment.
[0049] Figure 7 This is a block diagram illustrating a motor focusing calibration device according to an exemplary embodiment.
[0050] Figure 8 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0051] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0052] This disclosure provides a motor focusing calibration method applied to the testing process of electronic devices with camera devices. By identifying the target focusing scene and obtaining reference focusing parameters, the focusing motor determines the focusing starting position and adjustment direction. Since the focusing starting position is near the target focusing position, the coarse focusing search stage of the focusing calibration process is eliminated, achieving rapid focusing calibration and saving time and cost in the calibration process. The motor focusing calibration method in this disclosure retains the advantages of contrast focusing methods, such as good focusing stability and high focusing accuracy, while also improving the focusing calibration speed, effectively increasing the speed of the testing calibration process, thereby increasing the average production capacity of the production line and improving economic efficiency.
[0053] The exemplary embodiments of this disclosure provide a motor focusing calibration method, which is applied to the testing process of electronic devices with camera devices. Specifically, the electronic devices can be smart electronic devices with camera devices such as smartphones, tablets, smart wearable devices, and cameras.
[0054] The motor focusing calibration method disclosed herein can be executed by a test host computer used during the testing process, or by an electronic device equipped with a camera. The specific test procedure can be written into the electronic device through the host computer, and the processor of the electronic device controls the motor to complete the motor focusing calibration method. The electronic device or test host computer includes a motor focusing calibration device, i.e., a control chip of the electronic device or test host computer, which has data processing functions, as well as information and command transmission and reception functions. For example, it may include an acquisition module for acquiring reference focusing parameters, response parameters, and other parameters.
[0055] When describing the method in this disclosure, the application scenario of the method is first explained. In the assembly plant, it is necessary to perform resolution testing and motor focusing calibration on the camera device. The focusing process involves moving the lens to make the image in the focus area as sharp as possible. Currently, the main methods for AF (Auto Focus) calibration in the assembly plant include contrast-detection autofocus (CAF) and phase detection autofocus (PDAF).
[0056] PDAF focuses on the principle of phase difference measurement. The principle is to reserve some regularly symmetrical masked pixels on the image sensor, which are specifically used for phase detection. When light enters the camera device through the lens, the light is split into two beams. The focus offset, i.e., the phase difference, is determined by the distance and change between the pixels, thereby determining the focus position and achieving focus.
[0057] CAF (Continuous Autofocus) works by driving the motor to its default position upon receiving the image, entering a coarse focus search phase. This phase acquires an image of the current focus location and calculates the spatial frequency response (SFR) of the preview image. The lens is then moved in one direction, and the SFR of the next preview image is calculated. After this coarse search (with large steps), the range of possible peak values in the SFR curve is identified. A fine search is then performed within this range (with small steps), ultimately confirming the location of the maximum SFR value as the focus target. The lens is then moved to the SFR peak to complete the focusing process.
[0058] While PDAF can accelerate focusing, its focusing accuracy and stability are inferior to CAF. Furthermore, PDAF requires the module to reserve PDAF pixels during design and production, placing high demands on the module itself. CAF, on the other hand, requires two processes—coarse and fine—which takes a considerable amount of time during factory testing, hindering production capacity in mass manufacturing. Therefore, this disclosure provides a motor focusing calibration method that improves focusing efficiency while achieving better focusing performance.
[0059] like Figure 1 As shown, the motor focusing calibration method disclosed in this disclosure includes:
[0060] S101. Obtain reference focus parameters for the target focusing scenario;
[0061] S102. Control the focusing motor to move in the adjustment direction from the focusing start position by a preset step size.
[0062] S103. Obtain the optimal value of the response parameter during the movement of the focusing motor. The response parameter is used to characterize the sharpness of the image acquired by the camera device.
[0063] S104. The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0064] In step S101, the target focusing scene includes close-focus scenes and telephoto scenes. The distance between the object being photographed and the electronic device determines whether it belongs to a close-focus scene or a telephoto scene. When the camera device leaves the factory, the corresponding values for close-focus and telephoto scenes are set. Different values can be set depending on the electronic device the camera device is used with. For example, if the camera device is used with a regular smartphone, the distance between the object being photographed and the electronic device can be set to within 8 meters for a close-focus scene, and beyond 10 meters for a telephoto scene. If the camera device is used with a camera, the distance between the object being photographed and the electronic device can be set to within 10 meters for a close-focus scene, and beyond 10 meters for a telephoto scene. It should be noted that the specific values mentioned above are only for illustrating the concepts of close-focus and telephoto scenes. The threshold ranges for both close-focus and telephoto scenes can be adjusted according to the specific application scenario of the camera device and electronic device.
[0065] The motor-driven focusing calibration device can receive detection information from sensors by connecting to them, thereby determining the distance between the object being photographed and the electronic device to identify the target focusing scene. These sensors can be laser focusing sensors, time-of-flight (TOF) sensors, etc. Furthermore, the motor-driven focusing calibration device can directly obtain instructions from the host computer, which directly specifies the distance between the object being photographed and the electronic device in the current test scene, allowing it to determine whether the scene is close-up or far-up.
[0066] The reference focus parameters are obtained when the camera device has been tested by the module manufacturer but has not yet been assembled into the electronic device. These focus parameters are DAC values (values obtained through analog-to-digital conversion). For each DAC value, the motor has a corresponding position. For example, when the focus parameter is A, the motor is located at position X; when the focus parameter is B, the motor is located at position Y. Since the reference focus parameters corresponding to the target focus scene are stored in EEPROM (Electrically Erasable Programmable Read-Only Memory), the motor focus calibration device can obtain the reference focus parameters for that target focus scene after the target focus scene is determined.
[0067] In step S102, the motor focusing calibration device determines the starting position and moving direction of the focusing motor of the camera device based on the acquired reference focusing parameters. For example, if the acquired reference focusing parameter is A, the starting position of the corresponding focusing motor is determined to be at X, and the moving direction is positive; if the acquired reference focusing parameter is B, the starting position of the corresponding focusing motor is determined to be at Y, and the moving direction is negative. It should be noted that the focusing starting position of the focusing motor is not the default position of the focusing motor. After determining the starting position based on the reference focusing parameters, the motor focusing calibration device will move the focusing motor from the default position to the starting position. For example, if the default position of the focusing motor is 0, and the starting position of the focusing motor is determined to be at X based on the reference focusing parameters, the motor focusing calibration device will move the focusing motor from 0 to X.
[0068] Since the focus starting position is determined based on reference focus parameters, which in turn are determined based on the target focus scene, the focus starting position is near the target focus position. The motor focus calibration device moves the focus motor from the default initial position to the focus starting position, so that the focus motor does not need to perform a large step focus search. It only needs to move in the adjustment direction with a small preset step size from the focus starting position. The specific value of the preset step size can be set according to the electronic device's requirements for image quality. For example, if the camera device is used in a regular smartphone, the preset step size can be set to 5 steps; if the camera device is used in a camera, the preset step size can be set to 2 steps.
[0069] In step S103, during the process of the motor focusing calibration device controlling the focusing motor to move from the focusing start position in the adjustment direction with a preset step size, an image of the position of the focusing motor in the imaging device is simultaneously acquired, and the response parameters corresponding to the image are calculated. The response parameters corresponding to the position of the focusing motor and the acquired image during the movement of the focusing motor are represented by a smooth curve and data markers as follows: Figure 2 The scatter plot shown contains a curve with a peak, which represents the optimal value of the response parameter. The response parameter characterizes the sharpness of the image acquired by the camera device; the larger the response parameter, the higher the image sharpness. Therefore, during the movement of the focusing motor, the optimal value of the response parameter corresponds to the highest image sharpness.
[0070] In step S104, since the image obtained at the position of the focusing motor corresponding to the optimal value of the response parameter is the clearest, it can be determined that the lens is in a state of accurate focus. Therefore, the position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scene. The motor focusing calibration device moves the focusing motor to the target focusing position to complete the focusing.
[0071] In this disclosure, by identifying the target focusing scene and obtaining reference focusing parameters, the focusing motor determines the focusing start position and adjustment direction. Since the focusing start position is near the target focusing position, the coarse focusing stage is eliminated, achieving rapid focusing. This saves focusing time and costs during the testing process, effectively increases the average production capacity of the production line, and improves economic efficiency.
[0072] According to an exemplary embodiment, such as Figure 3 As shown, the motor focusing calibration method in this embodiment includes:
[0073] S301. Obtain reference focus parameters for the target focusing scenario;
[0074] S302. Obtain preset adjustment parameters and preset adjustment model, wherein the preset adjustment parameters and preset adjustment model are both related to the hardware parameters of the focusing motor;
[0075] S303. Based on preset adjustment parameters, preset adjustment model and reference focus parameters, determine the focus starting position and adjustment direction;
[0076] S304. Control the focusing motor to move in the adjustment direction from the focusing start position by a preset step size.
[0077] S305. Obtain the optimal value of the response parameter during the movement of the focusing motor. The response parameter is used to characterize the sharpness of the image acquired by the camera device.
[0078] S306. The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0079] The implementation method of step S301 is the same as that of S101 in the above embodiments, and the implementation methods of S304-S306 are the same as those of S102-S104 in the above embodiments, and will not be repeated here. Electronic devices with shooting functions involve many testing and calibration stages during the production process. Testing of the camera device hardware is mainly divided into module factory testing and assembly factory testing. The module factory uses whiteboard testing, dark state testing, and resolution testing to confirm that the performance of module components such as the camera device meets the specifications. Simultaneously, during the module factory testing process, many module parameters of the camera device are calibrated. After completing the testing, the module factory transfers the qualified and calibrated camera device to the assembly factory for testing and assembly.
[0080] In step S302, due to changes in the power supply environment of the camera device during the assembly of various modules into the electronic device, and the occurrence of compression during assembly, some structural parts of the module may deform. This results in a difference between the performance of the camera device at the assembly plant and at the module plant. Consequently, there is a difference between the focusing parameters obtained when the camera device is assembled onto the electronic device and the reference focusing parameters obtained when the camera device is not assembled onto the electronic device. By acquiring a certain number of reference focusing parameters and focusing parameters after the camera device is assembled onto the electronic device, the difference between the two is used as preset adjustment parameters. Each position of the focusing motor has a corresponding preset adjustment parameter, thus forming a preset adjustment model. The preset adjustment parameters in the preset adjustment model can be used in the subsequent testing and calibration process of the same batch of camera devices. The hardware parameters of the focusing motor, such as its power supply voltage and installation position, affect the preset adjustment parameters and preset adjustment model. If the power supply environment of the entire unit differs significantly from that of the module manufacturer, and there is significant compression during assembly, the difference between the preset adjustment parameters at each position in the preset adjustment model of the focusing motor and the reference focusing parameters will be large, allowing the preset step size to be set to a large value. Conversely, if the hardware parameters of the focusing motor during assembly are similar to those of the focusing motor before the camera device is assembled with the electronic equipment, the difference between the preset adjustment parameters at each position in the preset adjustment model and the reference focusing parameters will be small, allowing the preset step size to be set to a small value. Therefore, in step S303, after obtaining the preset adjustment parameters and preset adjustment model, the motor focusing calibration device determines the focusing start position and adjustment direction based on the preset adjustment parameters, preset adjustment model, and reference focusing parameters, which can improve the speed and accuracy of the focusing process.
[0081] According to an exemplary embodiment, such as Figure 4 As shown, the motor focusing calibration method in this embodiment includes:
[0082] S401. Obtain reference focus parameters for the target focusing scenario;
[0083] S402. Obtain preset adjustment parameters and preset adjustment model, wherein the preset adjustment parameters and preset adjustment model are both related to the hardware parameters of the focusing motor;
[0084] S403. The difference between the reference focus parameter and the preset adjustment parameter is used as the first parameter, the motor position corresponding to the first parameter is used as the focus starting position, the motor position corresponding to the first parameter is located on the first side of the motor position corresponding to the reference focus parameter, and the direction of the motor position corresponding to the first parameter toward the motor position corresponding to the reference focus parameter is used as the adjustment direction.
[0085] S404: Control the focus motor to move in the adjustment direction from the focus start position by a preset step size;
[0086] S405. Obtain the optimal value of the response parameters during the movement of the focusing motor. The response parameters are used to characterize the sharpness of the image acquired by the camera device.
[0087] S406. The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0088] Steps S401-S402 and S404-S406 are the same as those in the above embodiments, and will not be repeated here.
[0089] In step S403, if the position of the focusing motor corresponding to the reference focusing parameter is determined to be in the opposite direction to the target focusing position based on the preset adjustment parameters and the preset adjustment model, the motor focusing calibration device uses the difference between the reference focusing parameter and the preset adjustment parameter as the first parameter. The reference focusing parameter can be represented by DAC1, the preset adjustment parameter by DAC_DIFF, and the first parameter by DAC2. Therefore, the first parameter DAC2 = DAC1 - DAC_DIFF. Considering the differences between the focusing motor during assembly and when the camera device is not assembled with the electronic equipment, the motor focusing calibration device uses the motor position corresponding to the first parameter as the focusing starting position. The motor position corresponding to the first parameter is located on the first side of the motor position corresponding to the reference focusing parameter, and the motor focusing calibration device uses the direction from the motor position corresponding to the first parameter toward the motor position corresponding to the reference focusing parameter as the adjustment direction.
[0090] like Figure 2 As shown, the reference focus parameter DAC1 is A, the preset adjustment parameter DAC_DIFF is △a, the Z position of the focus motor is the target focus position, the motor position corresponding to the reference focus parameter is at X, which is in the opposite direction of the target focus position. Therefore, the value of the first parameter DAC2 is a = A - △a. The motor position M corresponding to the first parameter is taken as the focus starting position, and the adjustment direction of the focus motor is from M to X, that is, the adjustment direction is the positive direction.
[0091] According to an exemplary embodiment, such as Figure 5 As shown, the motor focusing calibration method in this embodiment includes:
[0092] S501, Obtain reference focus parameters for the target focusing scenario;
[0093] S502. Obtain preset adjustment parameters and preset adjustment model, wherein the preset adjustment parameters and preset adjustment model are both related to the hardware parameters of the focusing motor.
[0094] S503, take the sum of the reference focus parameter and the preset adjustment parameter as the second parameter, take the motor position corresponding to the second parameter as the focus start position, the motor position corresponding to the second parameter is located on the second side of the motor position corresponding to the reference focus parameter, and take the direction of the motor position corresponding to the second parameter toward the motor position corresponding to the reference focus parameter as the adjustment direction.
[0095] S504: Control the focusing motor to move in the adjustment direction from the focusing start position by a preset step size;
[0096] S505. Obtain the optimal value of the response parameters during the movement of the focusing motor. The response parameters are used to characterize the sharpness of the image acquired by the camera device.
[0097] S506. The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0098] Steps S501-S502 and S504-S506 are the same as those in the above embodiments, and will not be repeated here.
[0099] In step S503, if the position of the focusing motor corresponding to the reference focusing parameter is determined to be in the positive direction of the target focusing position based on the preset adjustment parameters and the preset adjustment model, the motor focusing calibration device uses the sum of the reference focusing parameter and the preset adjustment parameter as the second parameter. The reference focusing parameter can be represented by DAC1, the preset adjustment parameter by DAC_DIFF, and the second parameter by DAC3. Therefore, the first parameter DAC3 = DAC1 + DAC_DIFF. Considering the differences between the focusing motor during assembly and when the camera device is not assembled with the electronic equipment, the motor focusing calibration device uses the motor position corresponding to the second parameter as the focusing starting position. The motor position corresponding to the second parameter is located on the second side of the motor position corresponding to the reference focusing parameter. The motor focusing calibration device uses the direction from the motor position corresponding to the second parameter toward the motor position corresponding to the reference focusing parameter as the adjustment direction.
[0100] like Figure 2 As shown, the reference focus parameter DAC1 is B, the preset adjustment parameter DAC_DIFF is Δb, the Z position of the focus motor is the target focus position, and the motor position corresponding to the reference focus parameter is at Y, which is in the positive direction of the target focus position. Therefore, the value of the second parameter DAC3 is b = B + Δb. The motor position N corresponding to the second parameter is taken as the focus starting position, and the adjustment direction of the focus motor is from N to Y, that is, the adjustment direction is the opposite direction.
[0101] According to an exemplary embodiment, such as Figure 6 As shown, the motor focusing calibration method in this embodiment includes:
[0102] S601. Obtain the ranging information from the ranging device;
[0103] S602. Determine whether the ranging information falls within the first threshold range. If the ranging information falls within the first threshold range, proceed to step S603. If the ranging information does not fall within the first threshold range, proceed to step S604.
[0104] S603, the ranging information falls within the first threshold range, and the target focusing scene is determined to be a near-focus scene;
[0105] S604. The ranging information falls within the second threshold range, and the target focusing scene is determined to be a telephoto scene.
[0106] S605. Obtain reference focus parameters for the target focusing scenario;
[0107] S606. Obtain preset adjustment parameters and preset adjustment model, wherein the preset adjustment parameters and preset adjustment model are both related to the hardware parameters of the focusing motor.
[0108] S607. Based on preset adjustment parameters, preset adjustment model and reference focus parameters, determine the focus starting position and adjustment direction;
[0109] S608: Control the focusing motor to move in the adjustment direction from the focusing start position by a preset step size;
[0110] S609. Obtain the optimal value of the response parameter during the movement of the focusing motor. The response parameter is used to characterize the sharpness of the image acquired by the camera device.
[0111] S610. The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
[0112] Steps S605-S610 are the same as those in the above embodiments, and will not be described again here.
[0113] In step S601, the motor focusing calibration device can maintain a communication connection with the ranging device to obtain the ranging information from the ranging device. The ranging device can be a laser focusing sensor, a time-of-flight (TOF) ranging sensor, etc. The following explanation uses a time-of-flight ranging sensor as an example. The time-of-flight ranging sensor measures the time it takes for infrared light to travel through space and calculates the distance between the object in the captured image and the electronic device.
[0114] In step S602, based on the electronic device's settings for telephoto and near-focus scenes, a first threshold range and a second threshold range can be defined. The target focusing scene corresponding to the first threshold range is a near-focus scene, and the target focusing scene corresponding to the second threshold range is a telephoto scene. Since the distance between the object being photographed and the electronic device in a telephoto scene is greater than the distance between the object being photographed and the electronic device in a near-focus scene, the second threshold range is greater than the first threshold range. The motor focusing calibration device, based on the acquired ranging information, determines whether the ranging information falls within the threshold range. If the acquired ranging information falls within the first threshold range, step S603 is executed to determine that the target focusing scene is a near-focus scene; if the acquired ranging information falls within the second threshold range, step S604 is executed to determine that the target focusing scene is a telephoto scene. For example, the first threshold range for a near-focus scene is [0, 10m], and the second threshold range for a telephoto scene is (10m, 40m]. If the distance measurement information obtained by the motor focusing calibration device is 8m, the motor focusing calibration device determines that the distance measurement information falls within the first threshold range and determines that the target focusing scene is a near-focus scene; if the distance measurement information obtained by the motor focusing calibration device is 12m, the motor focusing calibration device determines that the distance measurement information falls within the second threshold range and determines that the target focusing scene is a telephoto scene. When the target focusing scene is determined to be a near-focus scene in step S603, the reference focusing parameters obtained in the subsequent step S605 are the near-focus scene's reference focusing parameters. When the target focusing scene is a telephoto scene, the reference focusing parameters obtained in the subsequent step S605 are the telephoto scene's reference focusing parameters. It should be noted that the above specific values are only used to illustrate the concepts of telephoto and near-focus scenes. The threshold ranges for both telephoto and near-focus scenes can be adjusted according to the specific application scenarios of the camera device and electronic equipment.
[0115] In some embodiments, the method for determining the target focusing scene includes:
[0116] Based on the received first instruction information, the target focusing scene is determined to be a near-focus scene;
[0117] Based on the received second instruction information, the target focusing scene is determined to be a telephoto scene.
[0118] The motor focusing calibration device can acquire command information sent by electronic devices or a test host computer, and determine whether the scene is a near-focus or far-focus scene based on the command information. This command information can be numerical information, touch information, voice information, etc. The electronic device or test host computer uses the command information determining the target focusing scene as a near-focus scene as the first command information, and the command information determining the target focusing scene as a far-focus scene as the second command information. Therefore, when the motor focusing calibration device receives the first command information, it can determine that the target focusing scene is a near-focus scene; when the motor focusing calibration device receives the second command information, it can determine that the target focusing scene is a far-focus scene.
[0119] For example, during the testing and calibration process, when the electronic device's shooting function is activated, the host computer sends numerical information to the motor focusing calibration device. If the sent ranging information falls within a first threshold range (first command information), the motor focusing calibration device can determine a near-focus scene based on the received first command information; if the sent ranging information falls within a second threshold range (second command information), the motor focusing calibration device can determine a far-focus scene based on the received second command information. As another example, a target focusing scene option will appear on the display screen of the electronic device or the host computer. If the "near-focus scene" option is selected, a first command information is sent to the motor focusing calibration device, which can determine a near-focus scene based on the received first command information; if the "far-focus scene" option is selected, a second command information is sent to the motor focusing calibration device, which can determine a far-focus scene based on the received second command information. For example, the host computer has two fixed buttons for selecting the target focus scene. If the "near focus scene" button is selected, a first instruction is sent to the motor focus calibration device, which can determine the near focus scene based on the received first instruction. If the "far focus scene" button is selected, a second instruction is sent to the motor focus calibration device, which can determine the far focus scene based on the received second instruction.
[0120] In some embodiments, the response parameters include spatial frequency response, and obtaining the optimal values of the response parameters during the movement of the focusing motor includes:
[0121] Obtain the maximum value of the spatial frequency response during the movement of the focusing motor.
[0122] The response parameters include spatial frequency response (SFR), which is mainly used to measure the impact of increasing spatial frequency lines on a single image. A higher spatial frequency response indicates higher image sharpness. Therefore, obtaining the maximum value of the spatial frequency response during the focusing motor's movement corresponds to the optimal value of the response parameter. Since the image acquired by the camera is sharpest in the focused state, the target focus position can be determined based on the maximum value of the spatial frequency response during the focusing motor's movement; that is, the position of the focusing motor corresponding to the maximum value of the spatial frequency response is the target focus position.
[0123] In some embodiments, the motor focusing calibration method includes:
[0124] Based on the received third instruction information, control the focusing motor to move to the preset position;
[0125] Based on the received fourth instruction information, the focusing motor is controlled to move from the preset position to the focusing start position.
[0126] In close-focus scenarios, because the subject is close to the electronic device, the focusing motor can have multiple target focus positions when in focus. The focusing motor needs to move multiple times in preset steps to determine the target focus position, ensuring the lens is in focus and capturing a clear image. Therefore, the motor focusing calibration device only needs to control the focusing motor to move to the preset position and then move it in small preset steps in the adjustment direction. In contrast, in telephoto scenarios, because the subject is far from the electronic device, the focusing motor has fewer target focus positions when in focus. To save time during focusing, the motor focusing calibration device can control the focusing motor to move to the focusing start position and then move it in small preset steps in the adjustment direction to determine the target focus position.
[0127] The motor focusing calibration device can acquire command information sent by electronic devices or a test host computer, and determine whether the scene is a near-focus or far-focus scene based on the command information. This command information can be numerical, touch-sensitive, or voice-based. The electronic device or test host computer uses the command information determining the target focusing scene as a near-focus scene as the third command information, and the command information determining the target focusing scene as a far-focus scene as the fourth command information. Therefore, when the motor focusing calibration device receives the third command information, it can determine that the target focusing scene is a near-focus scene and control the focusing motor to move to a preset position; when the motor focusing calibration device receives the fourth command information, it can determine that the target focusing scene is a far-focus scene and control the focusing motor to move from the preset position to the focusing start position.
[0128] For example, during the testing and calibration process, when the electronic device's shooting function is activated, the host computer sends numerical information to the motor focusing calibration device. If the sent distance measurement information falls within the first threshold range (third command information), the motor focusing calibration device can determine a near-focus scene based on the received third command information and control the focusing motor to move to a preset position. If the sent distance measurement information falls within the second threshold range (fourth command information), the motor focusing calibration device can determine a far-focus scene based on the received second command information and control the focusing motor to move from the preset position to the focusing start position. As another example, if both the third and fourth commands are voice commands, when the motor focusing calibration device receives a voice command from the electronic device or host computer that includes the phrase "near-focus scene" (third command), it controls the focusing motor to move to the preset position; when the motor focusing calibration device receives a voice command from the electronic device or host computer that includes the phrase "far-focus scene" (fourth command), it controls the focusing motor to move from the preset position to the focusing start position.
[0129] The calibration values obtained during the testing and calibration process in the state of the whole machine can be used by users after the electronic equipment leaves the factory. When the user shoots a distant scene, the camera device is in a telephoto scene, and the motor can move directly to the focus starting position, improving the user experience.
[0130] In an exemplary embodiment of this disclosure, a motor focusing calibration method is provided. The motor focusing calibration device can determine the target focusing scene by acquiring ranging information from a ranging device. If the ranging information falls within a first threshold range, the target focusing scene is determined to be a near-focus scene; if the ranging information falls within a second threshold range, the target focusing scene is determined to be a far-focus scene. Furthermore, the motor focusing calibration device can also determine the target focusing scene based on received instruction information.
[0131] The motor-driven focusing device acquires reference focusing parameters for a defined target focusing scene. If, based on preset adjustment parameters and a preset adjustment model, the position of the focusing motor corresponding to the reference focusing parameters is located in the opposite direction to the target focusing position, the motor-driven focusing calibration device uses the difference between the reference focusing parameters and the preset adjustment parameters as the first parameter. The motor position corresponding to the first parameter is the focusing start position, and the direction from the first parameter's motor position towards the reference focusing parameter's motor position is used as the adjustment direction. If, based on the preset adjustment parameters and a preset adjustment model, the position of the focusing motor corresponding to the reference focusing parameters is located in the positive direction of the target focusing position, the motor-driven focusing calibration device uses the sum of the reference focusing parameters and the preset adjustment parameters as the second parameter. The motor position corresponding to the second parameter is the focusing start position, and the direction from the second parameter's motor position towards the reference focusing parameter's motor position is used as the adjustment direction. The motor-driven focusing device also acquires the optimal value of the response parameter characterizing the image sharpness of the camera device during the focusing motor's movement, and uses the position of the focusing motor corresponding to the optimal value of the response parameter as the target focusing position for the target focusing scene. The motor focusing device controls the focusing motor to move in the adjustment direction from the focusing start position in a preset step size. When the focusing motor moves to the target focusing position, the focusing calibration of the motor is completed.
[0132] If compression occurs during module assembly, the actual target focus position of the camera device in the target focus scene after assembly will deviate from the target focus position in the target focus scene during calibration, resulting in a decrease in the clarity of the image captured by the camera device in the target focus scene. Therefore, after completing the motor focus calibration, the corresponding focus positions for near-focus and far-focus scenes can be obtained respectively. The motor focus device can then generate the lenspos-step curve of the autofocus algorithm used by the user during subsequent shooting. This curve determines the position of the motor to be moved in each step when adjusting the motor during shooting. Using this curve to calibrate the camera device in the assembly plant determines the direction and position of motor adjustment during focus calibration, effectively reducing the focusing time of the camera device in the motor focus calibration process in the assembly plant, effectively improving the efficiency of the factory production line and increasing economic benefits.
[0133] Furthermore, during the assembly process of the camera unit, if the focusing position in telephoto and close-up scenes deviates from the actual position of the camera unit due to assembly compression, it will result in decreased image sharpness in these scenes during subsequent user use. Using the method disclosed herein for autofocus calibration of the entire unit can avoid the adverse effects of compression on the camera unit during assembly, thereby improving focus sharpness in various scenarios, reducing focusing time, and increasing factory efficiency and profits.
[0134] Exemplary embodiments of this disclosure provide a motor focusing calibration device. For example... Figure 7 The diagram shown in this disclosure is a block diagram of a motor focusing calibration device.
[0135] The shooting device includes: an acquisition module 701, a control module 702, and a determination module 703. The acquisition module 701 is used to acquire reference focusing parameters for the target focusing scene, wherein the reference focusing parameters are focusing parameters obtained when the camera device is not assembled onto the electronic device, and the focusing parameters correspond to the position of the motor of the camera device; the target focusing scene is a close-up scene or a distant-up scene. The control module 702 is used to control the focusing motor to move in a preset step size in the adjustment direction from the focusing start position, wherein the focusing start position and the adjustment direction are determined based on the reference focusing parameters; the focusing start position is the starting position of the focusing motor of the camera device, and the adjustment direction is the moving direction of the focusing motor. The acquisition module 701 is also used to acquire the optimal value of the response parameters during the movement of the focusing motor; the response parameters are used to characterize the sharpness of the image acquired by the camera device. The determination module 703 is used to take the position of the focusing motor corresponding to the optimal value of the response parameters as the target focusing position of the focusing motor in the target focusing scene.
[0136] In an exemplary embodiment of this disclosure, the determining module 703 is further configured to: obtain preset adjustment parameters and preset adjustment model, wherein the preset adjustment parameters and preset adjustment model are both related to the hardware parameters of the focusing motor; and determine the focusing start position and adjustment direction based on the preset adjustment parameters, preset adjustment model and reference focusing parameters.
[0137] In an exemplary embodiment of this disclosure, the determining module 703 is further configured to: take the difference between the reference focusing parameter and the preset adjustment parameter as a first parameter, take the motor position corresponding to the first parameter as the focusing start position, the motor position corresponding to the first parameter is located on the first side of the motor position corresponding to the reference focusing parameter, and take the direction of the motor position corresponding to the first parameter toward the motor position corresponding to the reference focusing parameter as the adjustment direction.
[0138] In an exemplary embodiment of this disclosure, the determining module 703 is further configured to: take the sum of the reference focusing parameter and the preset adjustment parameter as the second parameter, take the motor position corresponding to the second parameter as the focusing start position, the motor position corresponding to the second parameter is located on the second side of the motor position corresponding to the reference focusing parameter, and take the direction of the motor position corresponding to the second parameter toward the motor position corresponding to the reference focusing parameter as the adjustment direction.
[0139] In an exemplary embodiment of this disclosure, the determining module 703 is further configured to: acquire ranging information from the ranging device; determine that the target focusing scene is a near-focus scene if the ranging information falls within a first threshold range; determine that the target focusing scene is a far-focus scene if the ranging information falls within a second threshold range; wherein the second threshold range is greater than the first threshold range.
[0140] In an exemplary embodiment of this disclosure, the determining module 703 is further configured to: determine the target focusing scene as a near-focus scene based on the received first instruction information; and determine the target focusing scene as a far-focus scene based on the received second instruction information.
[0141] In an exemplary embodiment of this disclosure, the acquisition module 701 is further configured to: acquire the maximum value of the spatial frequency response during the movement of the focusing motor.
[0142] In an exemplary embodiment of this disclosure, the control module 702 is further configured to: control the focusing motor to move to a preset position based on the received third instruction information; and control the focusing motor to move from the preset position to the focusing start position based on the received fourth instruction information.
[0143] Regarding the motor focusing calibration device in the above embodiments, the specific way in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated here.
[0144] Figure 8This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0145] Reference Figure 8 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0146] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0147] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0148] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.
[0149] Multimedia component 808 includes a screen that provides an output interface between electronic device 800 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When electronic device 800 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0150] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0151] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0152] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0153] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0154] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to complete the motor focusing calibration method described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0156] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the processing apparatus of the electronic device to perform the motor focusing calibration method provided by an exemplary embodiment of this disclosure.
[0157] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0158] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for motor focusing calibration, characterized in that, The motor focusing calibration method includes: Obtain reference focus parameters for the target focusing scene, wherein the reference focus parameters are focus parameters obtained when the camera device is not assembled on the electronic device, and the focus parameters obtained when the camera device is not assembled on the electronic device are different from the focus parameters obtained when the camera device is assembled on the electronic device; the focus parameters correspond to the motor position of the camera device, and the target focusing scene is a near-focus scene or a far-focus scene; The focusing motor is controlled to move from the focusing start position in the adjustment direction by a preset step size, wherein the focusing start position and the adjustment direction are determined based on the reference focusing parameters, the focusing start position is the starting position of the focusing motor of the camera device, and the adjustment direction is the moving direction of the focusing motor; The optimal value of the response parameter during the movement of the focusing motor is obtained, and the response parameter is used to characterize the sharpness of the image acquired by the camera device; The position of the focusing motor corresponding to the optimal value of the response parameter is taken as the target focusing position of the focusing motor in the target focusing scenario.
2. The motor focusing calibration method according to claim 1, characterized in that, The method for determining the focus starting position and the adjustment direction based on the reference focus parameters includes: Obtain preset adjustment parameters and preset adjustment models, wherein both the preset adjustment parameters and the preset adjustment models are related to the hardware parameters of the focusing motor; Based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters, the focus starting position and the adjustment direction are determined.
3. The motor focusing calibration method according to claim 2, characterized in that, The step of determining the focus starting position and the adjustment direction based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters includes: The difference between the reference focus parameter and the preset adjustment parameter is used as the first parameter, the motor position corresponding to the first parameter is used as the focus starting position, the motor position corresponding to the first parameter is located on the first side of the motor position corresponding to the reference focus parameter, and the direction from the motor position corresponding to the first parameter toward the motor position corresponding to the reference focus parameter is used as the adjustment direction.
4. The motor focusing calibration method according to claim 2, characterized in that, The step of determining the focus starting position and the adjustment direction based on the preset adjustment parameters, the preset adjustment model, and the reference focus parameters includes: The sum of the reference focus parameter and the preset adjustment parameter is used as the second parameter, the motor position corresponding to the second parameter is used as the focus starting position, the motor position corresponding to the second parameter is located on the second side of the motor position corresponding to the reference focus parameter, and the direction of the motor position corresponding to the second parameter toward the motor position corresponding to the reference focus parameter is used as the adjustment direction.
5. The motor focusing calibration method according to any one of claims 1 to 4, characterized in that, The method for determining the target focusing scene includes: Obtain distance measurement information from the distance measuring device; If the ranging information falls within the first threshold range, the target focusing scene is determined to be a near-focus scene. If the ranging information falls within the second threshold range, the target focusing scene is determined to be a telephoto scene. The second threshold range is greater than the first threshold range.
6. The motor focusing calibration method according to any one of claims 1 to 4, characterized in that, The method for determining the target focusing scene includes: Based on the received first instruction information, the target focusing scene is determined to be a near-focus scene; Based on the received second instruction information, the target focusing scene is determined to be a telephoto scene.
7. The motor focusing calibration method according to any one of claims 1 to 4, characterized in that, The response parameters include the spatial frequency response, and obtaining the optimal value of the response parameters during the movement of the focusing motor includes: Obtain the maximum value of the spatial frequency response during the movement of the focusing motor.
8. The motor focusing calibration method according to any one of claims 1 to 4, characterized in that, The motor focusing calibration method includes: Based on the received third instruction information, the focusing motor is controlled to move to a preset position; Based on the received fourth instruction information, the focusing motor is controlled to move from the preset position to the focusing start position.
9. A motor focusing calibration device, characterized in that, The motor focusing calibration device includes: The acquisition module is used to acquire reference focus parameters in the target focusing scene, wherein the reference focus parameters are the focus parameters obtained when the camera device is not assembled on the electronic device, and the focus parameters obtained when the camera device is not assembled on the electronic device are different from the focus parameters obtained when the camera device is assembled on the electronic device; the focus parameters correspond to the motor position of the camera device, and the target focusing scene is a near-focus scene or a far-focus scene; A control module is used to control the focusing motor to move from the focusing start position to the adjustment direction in a preset step size, wherein the focusing start position and the adjustment direction are determined based on the reference focusing parameters, the focusing start position is the starting position of the focusing motor of the camera device, and the adjustment direction is the moving direction of the focusing motor. The acquisition module is also used to acquire the optimal value of the response parameter during the movement of the focusing motor, and the response parameter is used to characterize the sharpness of the image acquired by the camera device; The determining module is used to take the position of the focusing motor corresponding to the optimal value of the response parameter as the target focusing position of the focusing motor in the target focusing scenario.
10. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to execute executable instructions in the memory to implement the motor focusing calibration method as described in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium having executable instructions stored thereon, characterized in that, When executed by the processor, the executable instruction implements the motor focusing calibration method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Test method and device, electronic equipment and readable storage medium
CN115379201A
Automatic focusing device and method
JP2002072074A