Photographing parameter adjustment method and device, chip, chip module and storage medium
By acquiring and dynamically adjusting the OIS anti-shake angle range according to the pre-stored correspondence, the failure problem of the 8-line SMA motor when controlling autofocus and optical anti-shake is solved, and the imaging quality and equipment stability are improved.
Patent Information
- Application Number
- CN202311837579.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, when the 8-line shape memory alloy SMA motor controls autofocus and optical anti-shake at the same time, it lacks an effective photo parameter adjustment scheme, resulting in the OIS failure in extreme scenarios, resulting in the problem of over-stroke or SMA line failure.
By obtaining the first parameter (such as focus distance, application scenario or camera module mode), and determining the second parameter (immobilization angle range) according to the pre-stored correspondence, the anti-shake angle range of the OIS is dynamically adjusted to ensure the effective operation of the OIS in different scenarios and modes.
Improve imaging quality, avoid OIS failure, and ensure the stability and imaging effect of SMA motor.
Smart Images

Figure CN120282024A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent terminals, and particularly to a method, device, chip, chip module and storage medium for adjusting photographing parameters. Background Art
[0002] In an intelligent terminal, an 8-wire shape memory alloy (SMA) motor can be used to control both auto focus (AF) and optical image stabilization (OIS) simultaneously. The current software architecture has no solution on how to adjust photographing parameters such as the OIS anti-shake angle, and the OIS may fail in extreme scenarios. Summary of the Invention
[0003] This application provides a method, device, chip, chip module and storage medium for adjusting photographing parameters to accurately adjust photographing parameters.
[0004] In a first aspect, a method for adjusting photographing parameters is provided. The method includes: obtaining a first parameter; determining that the first parameter satisfies a first condition; determining a value of a second parameter corresponding to the first parameter that satisfies the first condition according to multiple corresponding relationships between multiple values of the first parameter that satisfy multiple conditions and the second parameter; and adjusting the second parameter according to the determined value of the second parameter.
[0005] In this aspect, when the first parameter and the second parameter are related to each other, by determining the second parameter based on the first parameter, the second parameter can be accurately adjusted, improving the imaging quality.
[0006] In a possible implementation, the first parameter is the focusing distance, and the second parameter is the anti-shake angle range; the corresponding relationships include: when the focusing distance is at the mid-position, the anti-shake angle range is a first angle range; when the focusing distance is at the near-focus position, the anti-shake angle range is a second angle range; when the focusing distance is at the far-focus position, the anti-shake angle range is a third angle range.
[0007] In this implementation, in a scenario where AF and OIS are controlled simultaneously, the anti-shake angle range of OIS can be accurately determined according to the focusing distance of AF, improving the imaging quality.
[0008] In another possible implementation, when the focusing distance is at the mid-position, the anti-shake angle range is ±1.2°; when the focusing distance is at the near-focus position, the anti-shake angle range is ±0.6°; when the focusing distance is at the far-focus position, the anti-shake angle range is ±0.8°.
[0009] In yet another possible implementation, the focusing distance and the anti-shake angle range are simultaneously controlled by an 8-wire shape memory alloy (SMA) motor.
[0010] In yet another possible implementation, the first parameter is the application scenario of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application scenarios of the terminal and multiple anti-shake angle ranges.
[0011] In this implementation, different application scenarios of the terminal may correspond to different anti-shake angle ranges. The anti-shake angle range of the OIS can be accurately determined according to the application scenario in which the terminal is currently located, improving the imaging quality.
[0012] In yet another possible implementation, the first parameter is the application mode of the camera module of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application modes and multiple anti-shake angle ranges.
[0013] In this implementation, different application modes of the camera module of the terminal may correspond to different anti-shake angle ranges. The anti-shake angle range of the OIS can be accurately determined according to the application mode in which the terminal's camera module is currently located, improving the imaging quality.
[0014] Exemplarily, this method can be executed by a terminal or a chip or circuit for a terminal.
[0015] In a second aspect, a photographing parameter adjustment device is provided, which can implement the photographing parameter adjustment method in the above first aspect or any implementation of the first aspect. For example, the photographing parameter adjustment device can be a terminal or a chip or circuit for a terminal. The above method can be implemented through software, hardware, or by hardware executing corresponding software.
[0016] In a possible implementation manner, the photographing parameter adjustment device includes: an acquisition unit for acquiring a first parameter; a first determination unit for determining that the first parameter satisfies a first condition; a second determination unit for determining a value of a second parameter corresponding to the first parameter that satisfies the first condition according to multiple corresponding relationships between multiple values of the first parameter that satisfy multiple conditions and the second parameter; and an adjustment unit for adjusting the second parameter according to the determined value of the second parameter.
[0017] Optionally, the first parameter is the focusing distance, and the second parameter is the anti-shake angle range; the corresponding relationship includes: when the focusing distance is in the middle position, the anti-shake angle range is a first angle range; when the focusing distance is in the near-focus position, the anti-shake angle range is a second angle range; when the focusing distance is in the far-focus position, the anti-shake angle range is a third angle range.
[0018] Optionally, when the focusing distance is in the middle position, the anti-shake angle range is ±1.2°; when the focusing distance is in the near-focus position, the anti-shake angle range is ±0.6°; when the focusing distance is in the far-focus position, the anti-shake angle range is ±0.8°.
[0019] Optionally, the focusing distance and the anti-shake angle range are simultaneously controlled by an 8-wire shape memory alloy (SMA) motor.
[0020] Optionally, the first parameter is the application scenario of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application scenarios of the terminal and multiple anti-shake angle ranges.
[0021] Optionally, the first parameter is the application mode of the camera module of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application modes and multiple anti-shake angle ranges.
[0022] In combination with the second aspect, in another possible implementation manner, the photographing parameter adjustment device in the second aspect above includes a processor coupled to a memory; the processor is configured to support the device to execute the corresponding functions in the above-mentioned photographing parameter adjustment method. The memory is used to be coupled to the processor and stores the necessary programs (instructions) and / or data of the device. Optionally, the photographing parameter adjustment device may further include an interface circuit for supporting communication between the device and other devices. Optionally, the memory may be located inside the photographing parameter adjustment device or outside the photographing parameter adjustment device. Optionally, the memory and the processor may be integrated together.
[0023] The photographing parameter adjustment device in the second aspect above may be a chip or a chip module.
[0024] In a third aspect, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When a computer executes the computer program or instruction, the method described in the first aspect or any one of the implementations in the first aspect is implemented.
[0025] In a fourth aspect, a computer program product including instructions is provided. When the instructions run on a photographing parameter adjustment device, the photographing parameter adjustment device is caused to execute the method described in the first aspect or any one of the implementations in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic flowchart of a photographing parameter adjustment method provided by an embodiment of the present application;
[0027] Figure 2Software architecture diagram of the terminal exemplified in the embodiments of the present application;
[0028] Figure 3 Flow schematic diagram of an OIS anti-shake angle adjustment method exemplified in the embodiments of the present application;
[0029] Figure 4 Software process execution schematic diagram of an OIS anti-shake angle adjustment method exemplified in the embodiments of the present application;
[0030] Figure 5 Structural schematic diagram of a photographing parameter adjustment device provided by the embodiments of the present application;
[0031] Figure 6 Structural schematic diagram of another photographing parameter adjustment device provided by the embodiments of the present application. Detailed implementation manners
[0032] The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
[0033] The solutions of the embodiments of the present application can be applied to intelligent terminals, such as mobile phones, tablets and other terminals with a photographing function.
[0034] Optical image stabilization refers to, in a camera or other similar imaging instrument, through the setting of optical components, such as lens setting, to avoid or reduce the instrument jitter phenomenon that occurs during the process of capturing optical signals, thereby improving the imaging quality.
[0035] Optical image stabilization is a kind of anti-shake technology most recognized by the public. It compensates the optical path where hand shake occurs through movable components, thereby achieving the effect of reducing photo blurring.
[0036] A common optical image stabilization technology is to utilize the 8-wire SMA motor technology. SMA is a shape memory alloy. Its material is mainly nickel-titanium alloy. Its property is that its internal crystal structure will change according to the change of temperature and / or stress. Exemplarily, in one scenario, when the current is increased, SMA heats up and shortens, presenting an austenite phase (Austenite phase), generally a cubic phase, harder and more compact, and maintained at a higher temperature; in another scenario, when the current is decreased, SMA cools down and elongates, presenting a martensite phase (Martensite phase), generally a tetragonal, orthorhombic or monoclinic structure, soft and easy to deform, and maintained at a lower temperature.
[0037] Therefore, SMA can be used as a motor and a position sensor. After SMA is electrified and heated, the microstructure changes, causing the wire to become shorter. According to the difference in wire length, the movement of the motor can be controlled.
[0038] The camera is controlled by a motor. There are two SMA wires on each of the four sides of the motor: wires0 / 1, wires2 / 3, wires4 / 5, and wires6 / 7. Among them, wires2 / 3 and wires6 / 7 are used to control the X direction; wires0 / 1 and wires4 / 5 are used to control the Y direction; when controlling the Z direction, each wire (wires0 - 7) is used.
[0039] The 8 - wire SMA motor can control AF and OIS simultaneously.
[0040] Among them, controlling the motor to move in the Z direction can control AF. Specifically, as shown in Table 1 below:
[0041] Table 1 Auto - Focus
[0042] Wire +Z -Z 0 SMA Heating SMA Cooling 1 SMA Cooling SMA Heating 2 SMA Cooling SMA Heating 3 SMA Heating SMA Cooling 4 SMA Heating SMA Cooling 5 SMA Cooling SMA Heating 6 SMA Cooling SMA Heating 7 SMA Heating SMA Cooling
[0043] As shown in Table 1, by heating or cooling different wires, the elongation or shortening of the SMA wires in the Z direction can be achieved, thereby realizing the movement in the Z direction and achieving different focusing distances.
[0044] Among them, controlling the heating or cooling of wires2 / 3 and wires6 / 7 can achieve the elongation or shortening of the SMA wires in the X direction, thereby realizing the movement in the X direction; and controlling the heating or cooling of wires0 / 1 and wires4 / 5 can achieve the elongation or shortening of the SMA wires in the Y direction, thereby realizing the movement in the Y direction. Thus, the control of OIS is jointly achieved, as shown in Table 2 below:
[0045] Table 2 Anti - Shake Angle
[0046] wire +X -X +Y -Y 0 SMA Cooling SMA Heating 1 SMA Cooling SMA Heating 2 SMA Heating SMA Cooling 3 SMA Heating SMA Cooling 4 SMA Heating SMA Cooling 5 SMA Heating SMA Cooling 6 SMA Cooling SMA Heating 7 SMA Cooling SMA Heating
[0047] Since the 8 SMA wires control AF and OIS simultaneously, there is currently no corresponding solution for how to adjust the anti - shake angle range of OIS. If the anti - shake angle range is not adjusted according to the focusing distance, the following OIS failure problems may occur in extreme scenarios:
[0048] 1. OIS over - travel, resulting in the deformation of the elastic piece and triggering a short - circuit;
[0049] 2. The extreme pulling of the SMA wires may cause the jaws to disengage and fail, etc.
[0050] Therefore, the embodiment of the present application provides a photographing parameter adjustment scheme. When there is a correlation between the first parameter and the second parameter, by determining the second parameter based on the first parameter, the second parameter can be accurately adjusted to improve the imaging quality.
[0051] Such as Figure 1As shown in the figure, it is a method for adjusting photographing parameters provided by an embodiment of the present application. Exemplarily, the method may include the following steps:
[0052] S101. Obtain a first parameter.
[0053] In this embodiment, there are various parameters related to photographing. Here, the first parameter and the second parameter are exemplified. However, in fact, there may be more than these two parameters. This is only for illustration.
[0054] The parameters related to photographing can be the parameters of the camera module of the terminal itself, the application scenario where the terminal is located during photographing, or the parameters related to the software that controls the camera module in the terminal.
[0055] Obtaining the first parameter here means obtaining the current corresponding value of the first parameter.
[0056] For example, if the first parameter is the focus distance of the camera module, obtaining the first parameter can be obtaining that the focus distance is in the middle position, near focus position, or far focus position.
[0057] For another example, if the first parameter is the application scenario of the terminal, obtaining the first parameter can be obtaining that the terminal is in a fast-moving scenario or a static scenario, etc. The terminal can be provided with sensors to sense the surrounding environment, and there can be corresponding values for the recognized environment. For example, when the terminal recognizes that it is currently in a fast-moving scenario, the value of its application scenario parameter is "1"; for another example, when the terminal recognizes that it is currently in a static scenario, the value of its application scenario parameter is "0".
[0058] For another example, if the first parameter is the application mode of the camera module of the terminal, there can be various application modes of the camera module. For example, the first application mode, the second application mode, and so on. For example, obtaining that the current application mode of the camera module of the terminal is the first application mode.
[0059] S102. Determine that the first parameter meets a first condition.
[0060] In the above steps, it can be that the terminal obtains the specific value of the first parameter. The first condition is a value range. The terminal determines that the first parameter meets the first condition, that is, determines that the first parameter is within the value range.
[0061] For example, if the first parameter is the focus distance of the camera module, the first condition can be a focus distance range. Among them, the middle position corresponds to the first value range; the near focus position corresponds to the second value range; and the far focus position corresponds to the third value range.
[0062] The terminal obtains the focus distance of the camera module and determines that the focus distance is within the first value range, then determines that the current focus distance is in the middle position;
[0063] The terminal obtains the focusing distance of the camera module. If it determines that the focusing distance is within the second value range, it determines that the current focusing distance is at the near-focus position;
[0064] The terminal obtains the focusing distance of the camera module. If it determines that the focusing distance is within the third value range, it determines that the current focusing distance is at the far-focus position.
[0065] S103. Determine the value of the second parameter corresponding to the first parameter that satisfies the first condition according to multiple corresponding relationships between multiple values of the first parameter and the second parameter that meet multiple conditions.
[0066] The second parameter in this embodiment is another type of photographing parameter. This second parameter is related to the above-mentioned first parameter.
[0067] Taking the first parameter as the focusing distance and the second parameter as the anti-shake angle range as an example, as mentioned above, since 8 SMA wires control AF and OIS simultaneously, therefore, at different AF strokes (or called focusing distances), the OIS stroke (or called anti-shake angle) is different. At the middle position, all 8 wires are used for OIS direction control, so at this time, OIS has the maximum stroke; when pushed to the near-focus position or the far-focus position, 8 wires need to be partially used for the AF direction, so the stroke in the OIS direction will be lost.
[0068] The terminal can pre-store multiple corresponding relationships between multiple values of the first parameter and the second parameter that meet multiple conditions, as shown in Table 3 below:
[0069] Table 3
[0070] First Parameter Second Parameter Meet the First Condition First Value Meet the Second Condition Second Value …… ……
[0071] Taking the first parameter as the focusing distance and the second parameter as the anti-shake angle range as an example, the terminal pre-stores the anti-shake angles at different focusing distances, as shown in Table 4 below:
[0072] Table 4
[0073] Focus Distance Anti-Shake Angle Range In the Middle Position First Angle Range (e.g., ±1.2°) In the Near-Focus Position Second Angle Range (e.g., ±0.6°) In the Far-Focus Position Third Angle Range (e.g., ±0.8°)
[0074] When the terminal obtains the focusing distance and determines that AF is in the middle position, the anti-shake angle range can be determined as the first angle range according to Table 4. For example, the minimum is -1.2° and the maximum is 1.2°. When the terminal obtains the focusing distance and determines that AF is in the near-focus position, the anti-shake angle range can be determined as the second angle range according to Table 4. For example, the minimum is -0.6° and the maximum is 0.6°. When the terminal obtains the focusing distance and determines that AF is in the far-focus position, the anti-shake angle range can be determined as the third angle range according to Table 4. For example, the minimum is -0.8° and the maximum is 0.8°. Thus, in the scenario where AF and OIS are controlled simultaneously, the anti-shake angle range of OIS can be accurately determined according to the focusing distance of AF, improving the imaging quality.
[0075] The application scenarios of the terminal are different, and the corresponding anti-shake angle ranges may also be different. The terminal can pre-store various corresponding relationships between various application scenarios of the terminal and various anti-shake angle ranges, as shown in Table 5 below:
[0076] Table 5
[0077] Application Scenario of the Terminal Anti-Shake Angle Range First Application Scenario First Anti-Shake Angle Range Second Application Scenario Second Anti-Shake Angle Range …… ……
[0078] When the terminal obtains that it is currently in the first application scenario, the anti-shake angle range can be determined as the first anti-shake angle range according to Table 5. When the terminal obtains that it is currently in the first application scenario, the anti-shake angle range can be determined as the second anti-shake angle range according to Table 5. And so on. Thus, the anti-shake angle range of OIS can be accurately determined according to the application scenario where the terminal is currently located, improving the imaging quality.
[0079] The application modes of the camera module of the terminal are different, and the corresponding anti-shake angle ranges may also be different. The terminal can pre-store various corresponding relationships between various application modes of the camera module of the terminal and various anti-shake angle ranges, as shown in Table 6 below:
[0080] Table 6
[0081] Application Mode of the Camera Module of the Terminal Anti-Shake Angle Range First Application Mode First Anti-Shake Angle Range Second Application Mode Second Anti-Shake Angle Range …… ……
[0082] When the camera module of the terminal is in the first application mode, the anti-shake angle range can be determined as the first anti-shake angle range according to Table 6. When the camera module of the terminal is in the second application mode, the anti-shake angle range can be determined as the second anti-shake angle range according to Table 6. And so on. Thus, the anti-shake angle range of OIS can be accurately determined according to the application mode where the camera module of the terminal is currently located, improving the imaging quality.
[0083] S104. Adjust the second parameter according to the obtained value of the second parameter.
[0084] After the terminal determines the value of the second parameter, it can adjust the second parameter according to the determined value of the second parameter.
[0085] For example, when the terminal determines that the anti-shake angle range is ±1.2°, the terminal adjusts its anti-shake angle range so that it does not exceed ±1.2°; for another example, when the terminal determines that the anti-shake angle range is ±0.8°, the terminal adjusts its anti-shake angle range so that it does not exceed ±0.8°; for another example, when the terminal determines that the anti-shake angle range is ±0.6°, the terminal adjusts its anti-shake angle range so that it does not exceed ±0.6°.
[0086] According to a method for adjusting photographing parameters provided by an embodiment of the present application, when the first parameter and the second parameter are related to each other, by determining the second parameter based on the first parameter, the second parameter can be accurately adjusted, improving the imaging quality.
[0087] The following takes the first parameter as the focusing distance and the second parameter as the anti-shake angle range as an example to describe the software implementation process in detail:
[0088] As Figure 2 shown, it is a software architecture diagram of the terminal exemplified by an embodiment of the present application, which is divided into five layers, namely the application (APP) layer, the framework layer, the hardware abstraction (HAL) layer, the kernel, and the hardware layer. Among them, the application layer provides an interface for interacting with the outside world, such as the camera Android application package (CameraAPK); the framework layer is used to transmit application layer instructions downward, for example, it includes a media framework (Media Framework); the HAL layer is used to execute corresponding processes after receiving control instructions from the framework layer, and runs the control logic of AF and OIS; the kernel is used to send instructions sent by the HAL layer to the OIS driver (driver) integrated circuit (IC) through the I 2 C interface to achieve the purpose of controlling OIS; and the hardware, here refers to OIS.
[0089] As Figure 3 shown, it is a schematic flowchart of a method for adjusting the anti-shake angle of OIS exemplified by an embodiment of the present application. Exemplarily, the method may include the following steps:
[0090] S301. Open the camera.
[0091] Exemplarily, opening the camera may refer to starting the camera module of the terminal. For example, when receiving the user's "take a photo" command, the camera can be opened.
[0092] S302. Obtain the focusing distance, for example, it is the current focusing distance value (AF code).
[0093] Based on the current AF code, determine whether the current focusing distance is in the near-focus position, the mid-position, or the far-focus position. At different focusing positions, there are different OIS anti-shake angle range settings:
[0094] S303A. If it is determined, based on the AF code, that it is in the near-focus position, then proceed to step S304A. Set the OIS anti-shake angle range to ±0.6°.
[0095] For example, when facing a nearby object and the AF is in the near-focus position, set the minimum OIS anti-shake angle to -0.6° and the maximum to 0.6°.
[0096] S303B. If it is determined, based on the AF code, that it is in the mid-position, then proceed to step S304B. Set the OIS anti-shake angle range to ±1.2°.
[0097] For example, when the camera is just turned on and the AF is in the mid-position, set the minimum OIS anti-shake angle to -1.2° and the maximum to 1.2°.
[0098] S303C. If it is determined, based on the AF code, that it is in the far-focus position, then proceed to step S304C. Set the OIS anti-shake angle range to ±0.8°.
[0099] For example, when facing a distant object and the AF is in the far-focus position, set the minimum OIS anti-shake angle to -0.8° and the maximum to 0.8°.
[0100] The above mid-position, near-focus, and far-focus states can be dynamically switched.
[0101] As Figure 4 shown, it is a schematic diagram of the software process execution of an OIS anti-shake angle adjustment method exemplified in an embodiment of the present application, including the following software modules: the camxsensormode module, the camxois module, the camxcsl module, and the cam_ois module. Among them, the camxsensormode module is the main logic processing function of the camera; the camxois module is the hardware abstraction layer code of OIS; the camxcsl module is the interface function for the interaction between the camera hardware abstraction layer and the kernel; and the cam_ois module is the driver code of OIS.
[0102] First, in step S401, the camxsensormode module starts to execute the operation request.
[0103] In each frame when executing the operation request, in step S402, the camxsensormode module executes the step of obtaining the current AF position and obtains the code value of the current AF.
[0104] Step S403: The camxsensormode module sends an OIS angle limit setting command to the camxois module to schedule the OIS anti-shake angle setting process.
[0105] Step S404: The camxois module submits the OIS angle limit command to the camxcsl module.
[0106] Step S405: The camxcsl module sends an OIS configuration instruction to the cam_ois module.
[0107] Step S406: The cam_ois module executes and applies the OIS angle limit command.
[0108] The above steps S403 - S406 are used to determine the position of the current AF code in the center / near focus / far focus to set different OIS anti-shake angles.
[0109] In the case of not applying the solution of this embodiment, the OIS anti-shake angle is fixed when the camera is not turned on. By applying the solution of this embodiment, it is supported to dynamically adjust the OIS stroke according to the AF stroke, so that the OIS always works within the optimal stroke, ensuring the working effect and running stability of the device.
[0110] It can be understood that, in order to implement the functions in the above embodiments, the photographing parameter adjustment device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and method steps of each example described in the embodiments disclosed in this application, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application scenario and design constraint conditions of the technical solution.
[0111] Figure 5 and Figure 6 FIG. is a schematic structural diagram of a possible photographing parameter adjustment device provided by the embodiments of this application. These photographing parameter adjustment devices can be used to implement each function in the above method embodiments, and thus can also achieve the beneficial effects possessed by the above method embodiments.
[0112] As Figure 5 shown, the photographing parameter adjustment device 500 includes: an acquisition unit 501, a first determination unit 502, a second determination unit 503, and an adjustment unit 504;
[0113] Wherein: an obtaining unit 501 is configured to obtain a first parameter; a first determining unit 502 is configured to determine that the first parameter satisfies a first condition; a second determining unit 503 is configured to determine a value of a second parameter corresponding to the first parameter that satisfies the first condition according to various corresponding relationships between various values of the first parameter and the second parameter that satisfy multiple conditions; and an adjusting unit 504 is configured to adjust the second parameter according to the determined value of the second parameter.
[0114] Optionally, the first parameter is a focusing distance, and the second parameter is an anti-shake angle range; the corresponding relationships include: when the focusing distance is at a middle position, the anti-shake angle range is a first angle range; when the focusing distance is at a near-focus position, the anti-shake angle range is a second angle range; when the focusing distance is at a far-focus position, the anti-shake angle range is a third angle range.
[0115] Optionally, when the focusing distance is at the middle position, the anti-shake angle range is ±1.2°; when the focusing distance is at the near-focus position, the anti-shake angle range is ±0.6°; when the focusing distance is at the far-focus position, the anti-shake angle range is ±0.8°.
[0116] Optionally, the focusing distance and the anti-shake angle range are simultaneously controlled by an 8-wire shape memory alloy (SMA) motor.
[0117] Optionally, the first parameter is an application scenario of the terminal, and the second parameter is an anti-shake angle range; the corresponding relationships include various corresponding relationships between various application scenarios of the terminal and various anti-shake angle ranges.
[0118] Optionally, the first parameter is an application mode of a camera module of the terminal, and the second parameter is an anti-shake angle range; the corresponding relationships include various corresponding relationships between various application modes and various anti-shake angle ranges.
[0119] For a more detailed description of the above obtaining unit 501, first determining unit 502, second determining unit 503, and adjusting unit 504, reference can be directly made to Figures 1 to 4 the relevant descriptions in the method embodiment shown, which will not be elaborated here.
[0120] Such as Figure 6As shown, the photographing parameter adjustment device 600 includes a processor 601. The device 600 may further include an interface circuit 602 (shown and connected by a dashed line in the figure). The processor 601 and the interface circuit 602 are coupled to each other. It can be understood that the interface circuit 602 may be a transceiver or an input / output interface. Optionally, the photographing parameter adjustment device 600 may further include a memory 603 (shown and connected by a dashed line in the figure), which is used to store instructions executed by the processor 601 or input data required for the processor 601 to run instructions or data generated after the processor 601 runs instructions.
[0121] The device 600 can be used to execute Figure 1 the steps S101 - S104 of the embodiment shown.
[0122] Among them, the processor 601 is used to obtain a first parameter; the processor 601 is further used to determine that the first parameter meets a first condition; the processor 601 is further used to determine the value of a second parameter corresponding to the first parameter that meets the first condition according to various corresponding relationships between various values of the first parameter that meet multiple conditions and the second parameter; and the processor 601 is further used to adjust the second parameter according to the determined value of the second parameter.
[0123] In a possible implementation, the first parameter is the focusing distance, and the second parameter is the anti - shake angle range; the corresponding relationships include: when the focusing distance is at the middle position, the anti - shake angle range is a first angle range; when the focusing distance is at the near - focus position, the anti - shake angle range is a second angle range; when the focusing distance is at the far - focus position, the anti - shake angle range is a third angle range.
[0124] In another possible implementation, when the focusing distance is at the middle position, the anti - shake angle range is ±1.2°; when the focusing distance is at the near - focus position, the anti - shake angle range is ±0.6°; when the focusing distance is at the far - focus position, the anti - shake angle range is ±0.8°.
[0125] In yet another possible implementation, the focusing distance and the anti - shake angle range are simultaneously controlled by an 8 - wire shape memory alloy SMA motor.
[0126] In yet another possible implementation, the first parameter is the application scenario of the terminal, and the second parameter is the anti - shake angle range; the corresponding relationships include various corresponding relationships between various application scenarios of the terminal and various anti - shake angle ranges.
[0127] In yet another possible implementation, the first parameter is the application mode of the camera module of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application modes and multiple anti-shake angle ranges.
[0128] For the specific implementation and beneficial effects of the device, reference may be made to Figure 1 the method embodiments shown, which will not be elaborated here.
[0129] It can be understood that in this application, the processor can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or all or part of the circuits used to implement the processing function in the foregoing devices, and can implement or execute the various methods, steps, and logic block diagrams disclosed in this application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with this application can be directly implemented by the execution of the hardware processor, or can be implemented by the combination of the hardware and software modules in the processor.
[0130] For example, the processor in the embodiments of this application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.
[0131] The embodiments of this application also provide a computer-readable storage medium, in which a computer program or instruction is stored. When the computer executes the computer program or instruction, the method described in the foregoing embodiments is implemented.
[0132] The embodiments of this application also provide a computer program product containing instructions. When the instructions run on the photographing parameter adjustment device, the photographing parameter adjustment device is enabled to execute the method described in the foregoing embodiments.
[0133] It should be noted that one or more of the above units can be implemented by software, hardware, or a combination of both. When any of the above units is implemented by software, the software exists in the form of computer program instructions and is stored in the memory. The processor can be used to execute the program instructions and implement the above method flow.
[0134] When any of the above units is implemented by hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, an SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or execute the above method flow without relying on software.
[0135] Optionally, an embodiment of the present application further provides a chip system, including: at least one processor and an interface. The at least one processor is coupled to the memory through the interface. When the at least one processor runs the computer program or instruction in the memory, the chip system executes the method in any of the above method embodiments. Optionally, the chip system can be composed of chips or can include chips and other discrete devices. The embodiments of the present application do not make specific limitations in this regard.
[0136] The memory in the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data. The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. For example, the memory can be a non-volatile memory, such as a digital versatile disc (DVD), a hard disk drive (HDD), or a solid-state drive (SSD), etc., or can also be a volatile memory, such as a random-access memory (RAM).
[0137] As used in the following description of the present application, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include other steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices. It should be noted that in the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any method or design described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other methods or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0138] It should be understood that in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B may represent A or B; where A and B may be singular or plural. Also, in the description of the present application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or a similar expression thereof refers to any combination of these items, including any combination of single items or plural items. For example, at least one (item) of a, b, or c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c may be single or multiple. Additionally, for the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and roles. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily mean different. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner for easy understanding.
[0139] In the above embodiments, they can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
[0140] Although the present application has been described in conjunction with various embodiments herein, however, in the process of implementing the claimed present application, those skilled in the art can understand and implement other variations of the disclosed embodiments by viewing the accompanying drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude a plurality. A single processor or other unit can implement several functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0141] It can be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The magnitude of the serial numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic.
[0142] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0143] The components in the device of the embodiments of the present application can be combined, divided, and deleted according to actual needs. Those skilled in the art can combine or combine the different embodiments and the features of different embodiments described in this specification.
[0144] In this application, on the premise of no logical contradiction, examples can be cited from each other. For example, the methods and / or terms between method embodiments can be cited from each other, for example, the functions and / or terms between device embodiments can be cited from each other, for example, the functions and / or terms between device examples and method examples can be cited from each other.
Claims
1. A method for adjusting photographing parameters, characterized in that, The method includes: Obtaining a first parameter; Determining that the first parameter satisfies a first condition; According to various corresponding relationships between various values of the first parameter and the second parameter that satisfy various conditions, determining the value of the second parameter corresponding to the first parameter that satisfies the first condition; Adjusting the second parameter according to the determined value of the second parameter.
2. The method according to claim 1, characterized in that, The first parameter is the focusing distance, and the second parameter is the anti-shake angle range; The corresponding relationships include: When the focusing distance is in the middle position, the anti-shake angle range is the first angle range; When the focusing distance is in the near-focus position, the anti-shake angle range is the second angle range; When the focusing distance is in the far-focus position, the anti-shake angle range is the third angle range.
3. The method according to claim 2, wherein: When the focusing distance is in the middle position, the anti-shake angle range is ±1.2°; When the focusing distance is in the near-focus position, the anti-shake angle range is ±0.6°; When the focusing distance is in the far-focus position, the anti-shake angle range is ±0.8°.
4. The method according to claim 2 or 3, characterized in that, The focusing distance and the anti-shake angle range are simultaneously controlled by an 8-wire shape memory alloy SMA motor.
5. The method according to any one of claims 1 to 4, characterized in that The first parameter is the application scenario of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationships include various corresponding relationships between various application scenarios of the terminal and various anti-shake angle ranges.
6. The method according to any one of claims 1-5, characterized in that, The first parameter is the application mode of the camera module of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationships include various corresponding relationships between various application modes and various anti-shake angle ranges.
7. A photographing parameter adjustment device, characterized in that, The device includes: An obtaining unit, configured to obtain a first parameter; A first determining unit, configured to determine that the first parameter satisfies a first condition; A second determining unit, configured to determine the value of the second parameter corresponding to the first parameter that satisfies the first condition according to various corresponding relationships between various values of the first parameter and the second parameter that satisfy various conditions; An adjusting unit, configured to adjust the second parameter according to the determined value of the second parameter.
8. The device according to claim 7, characterized in that, The first parameter is the focusing distance, and the second parameter is the anti-shake angle range; The corresponding relationships include: When the focusing distance is in the middle position, the anti-shake angle range is the first angle range; When the focusing distance is in the near-focus position, the anti-shake angle range is the second angle range; When the focusing distance is in the far-focus position, the anti-shake angle range is the third angle range.
9. The device according to claim 8, wherein: When the focusing distance is in the middle position, the anti-shake angle range is ±1.2°; When the focusing distance is in the near-focus position, the anti-shake angle range is ±0.6°; When the focusing distance is in the far-focus position, the anti-shake angle range is ±0.8°.
10. The device according to claim 8 or 9, characterized in that, The focusing distance and the anti-shake angle range are simultaneously controlled by an 8-wire shape memory alloy SMA motor.
11. The device according to any one of claims 7 to 10, characterized in that, The first parameter is the application scenario of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationships include various corresponding relationships between various application scenarios of the terminal and various anti-shake angle ranges.
12. The device according to any one of claims 7 to 11, characterized in that, The first parameter is the application mode of the camera module of the terminal, and the second parameter is the anti-shake angle range; the corresponding relationship includes multiple corresponding relationships between multiple application modes and multiple anti-shake angle ranges.
13. A photographing parameter adjustment device, characterized in that, It includes a processor and an interface circuit. The interface circuit is used to receive signals from other devices outside the photographing parameter adjustment device and transmit them to the processor, or send signals from the processor to other devices outside the photographing parameter adjustment device. The processor is used to implement the method according to any one of claims 1-6 through a logic circuit or by executing code instructions.
14. A chip, characterized in that, The chip is used to execute the method according to any one of claims 1-6.
15. A chip module, characterized in that, It includes a transceiver component and a chip. The chip is used to execute the method according to any one of claims 1-6.
16. A computer-readable storage medium, characterized in that, A computer program or instruction is stored in the storage medium. When the computer program or instruction is executed by the photographing parameter adjustment device, the method according to any one of claims 1-6 is implemented.
Citation Information
Patent Citations
Video recording method and device and electronic equipment
CN112565604A
Optical anti-shake control method and device of camera module and electronic equipment
CN112911110A
Method for performing automatic focusing through SMA line, shooting module and electronic equipment
CN116546323A
Method and device for adjusting anti-shake angle and electronic equipment
CN116847183A
Camera Module and Electronic Device
US20230007176A1