A method and device for obtaining motor sensitivity
By acquiring the movement displacement and image displacement of the motor drive lens, the motor sensitivity is calculated, which solves the problem that the fixed value of the motor sensitivity in the prior art cannot reflect the actual situation, and improves the acquisition accuracy.
Patent Information
- Application Number
- CN202011463732.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2040-12-11
AI Technical Summary
How to quickly obtain the motor sensitivity of each module? In the prior art, the motor sensitivity is set to a fixed value, which cannot effectively reflect the motor sensitivity of the actual module.
The motor sensitivity is calculated based on these two displacements by obtaining the first displacement corresponding to the two position coordinates and the second displacement corresponding to the identification figure in the same picture obtained before and after the lens moves.
The accuracy of obtaining motor sensitivity is improved, and the actual motor sensitivity of each module can be more accurately reflected, avoiding accuracy test errors caused by fixed values.
Smart Images

Figure CN112581538B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical image processing, and in particular to a method and device for obtaining motor sensitivity. Background Art
[0002] OIS is the full name of Optical Image Stabilization. Its working principle is to compensate for hand shake by driving the lens in the X and Y directions through a motor, so as to achieve clear imaging. The biggest difference between a camera with OIS system and an ordinary camera is that the lens can move in the X and Y directions, while an ordinary lens only moves in the Z direction for focusing.
[0003] Therefore, the OIS motor sensitivity is defined in the camera with an OIS system, that is, the actual physical stroke corresponding to the movement of the OIS motor in the X direction (or Y direction). Some driver ICs, such as RomhBU63169, will set the motor sensitivity of the same driver IC to a fixed value. However, in actual production, the motor sensitivities of different modules are different.
[0004] Therefore, how to quickly obtain the motor sensitivity of each module is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a method and device for obtaining motor sensitivity that overcomes the above problems or at least partially solves the above problems.
[0006] In a first aspect, the present invention provides a method for obtaining motor sensitivity, comprising:
[0007] Acquire a first displacement corresponding to the two position coordinates, wherein the first displacement corresponding to the two position coordinates is a displacement corresponding to a movement process of the motor-driven lens;
[0008] Acquire a second displacement, where the second displacement is a displacement corresponding to the identification pattern in the same picture obtained from before the lens is moved to after the lens is moved;
[0009] A motor sensitivity is obtained based on the first displacement and the second displacement.
[0010] Further, the obtaining of the first displacement corresponding to the two position coordinates includes:
[0011] Acquire the two position coordinates, which are the coordinates of the motor-driven lens before and after the movement stored in the register, including a first position coordinate of the first position of the lens before the movement and a second position coordinate of the second position of the lens after the movement;
[0012] The first displacement is obtained based on the first position coordinate and the second position coordinate, where the first displacement is the distance between the first position coordinate and the second position coordinate.
[0013] Furthermore, the obtaining of the second displacement, wherein the second displacement is the displacement of the identification graphic in the same picture obtained from before the lens is moved to after the lens is moved, is characterized by comprising:
[0014] Acquire a first picture taken by the lens at the first position, and a second picture taken by the lens at the second position, wherein the lens takes the same table at the first position and the second position, and the table has more than one identification graphic;
[0015] Obtaining third position coordinates corresponding to each identification graphic on the first picture and fourth position coordinates corresponding to each identification graphic on the second picture;
[0016] Based on the third position coordinates and the fourth position coordinates, the second displacement is obtained, where the second displacement is the distance between the third position coordinates and the fourth position coordinates corresponding to each identification graphic.
[0017] Further, obtaining the motor sensitivity based on the first displacement and the second displacement includes:
[0018] Taking the quotient of the second displacement corresponding to each identification pattern and the first displacement respectively, to obtain a plurality of first ratios;
[0019] The plurality of first ratios are averaged to obtain the motor sensitivity.
[0020] Further, obtaining the motor sensitivity based on the first displacement and the second displacement includes:
[0021] Taking the first displacement as a quotient of the second displacement corresponding to each of the identification patterns, to obtain a plurality of second ratios;
[0022] The plurality of second ratios are averaged to obtain the motor sensitivity.
[0023] Furthermore, the multiple identification graphics are specifically circles, square frames, rectangular frames or elliptical frames.
[0024] In a second aspect, the present invention further provides a device for obtaining motor sensitivity, comprising:
[0025] An actual displacement acquisition module, used to acquire a first displacement corresponding to two position coordinates, wherein the first displacement corresponding to the two position coordinates is a displacement corresponding to a movement process of the motor-driven lens;
[0026] A graphic displacement acquisition module, used to acquire a second displacement, where the second displacement is a displacement corresponding to the identification graphic in the same picture obtained from before the lens is moved to after the lens is moved;
[0027] The motor sensitivity obtaining module obtains the motor sensitivity based on the first displacement and the second displacement.
[0028] Furthermore, the actual displacement acquisition module includes:
[0029] an actual coordinate acquisition unit, used to acquire the two position coordinates, the two position coordinates being the coordinates before and after the movement of the motor-driven lens stored in the register, including a first position coordinate of a first position of the lens before the movement and a second position coordinate of a second position of the lens after the movement;
[0030] The first displacement obtaining unit is used to obtain the first displacement based on the first position coordinate and the second position coordinate, where the first displacement is the distance between the first position coordinate and the second position coordinate.
[0031] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method steps when executing the program.
[0032] In a fourth aspect, a computer-readable storage medium stores a computer program, which implements the above method steps when executed by a processor.
[0033] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
[0034] A method for obtaining motor sensitivity provided by the present invention comprises: obtaining a first displacement corresponding to two position coordinates, the first displacement corresponding to the two position coordinates being the displacement corresponding to the movement process of a motor-driven lens, obtaining a second displacement, the second displacement being the displacement corresponding to an identification figure in the same picture obtained from before the movement to after the movement of the lens; obtaining motor sensitivity based on the first displacement and the second displacement, and then obtaining image displacement by taking pictures, displaying the physical displacement of the lens according to data recorded in a register, and obtaining the actual motor sensitivity according to the image displacement and the physical displacement, thereby improving the accuracy of obtaining the motor sensitivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, throughout the accompanying drawings, the same reference figures are used to represent the same components. In the drawings:
[0036] Figure 1 A schematic diagram showing the steps of a method for obtaining motor sensitivity in a first embodiment of the present invention is shown;
[0037] Figure 2a , Figure 2b A schematic diagram showing a first picture and a second picture obtained before and after the lens is moved in the first embodiment of the present invention;
[0038] Figure 3 A schematic diagram showing the structure of a device for obtaining motor sensitivity in a second embodiment of the present invention is shown;
[0039] Figure 4 A schematic diagram of the structure of an electronic device for implementing the method for obtaining motor sensitivity in the third embodiment of the present invention is shown. DETAILED DESCRIPTION
[0040] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0041] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0042] Embodiment 1
[0043] Embodiment 1 of the present invention provides a method for obtaining motor sensitivity, such as Figure 1 As shown, including:
[0044] S101, obtaining a first displacement corresponding to two position coordinates, where the first displacement corresponding to the two position coordinates is a displacement corresponding to a movement process of a motor-driven lens.
[0045] S102, obtaining a second displacement, where the second displacement is a displacement corresponding to the identification pattern in the same picture obtained from before the lens is moved to after the lens is moved.
[0046] S103, obtaining motor sensitivity based on the first displacement and the second displacement.
[0047] In a specific implementation, first, a certain environment is provided, with a light source and a table diagram, on which there are identification graphics, and the camera module is adjusted to adjust the image brightness appropriately. In a camera module with an optical image stabilization system, the motor drives the lens to move in the X and Y directions to compensate for hand shaking, thereby achieving the purpose of clear imaging. Therefore, in actual operation, in order to simulate the movement of the motor-driven lens in the X and Y directions, the changes in the data recorded in the register are used to simulate the changes in the movement of the motor-driven lens.
[0048] In S101, a first position corresponding to two position coordinates is obtained, and a first displacement corresponding to the two position coordinates is a displacement corresponding to a movement process of a motor-driven lens.
[0049] In an optional implementation, the movement process of the motor-driven lens is simulated by changing the data stored in the register.
[0050] Specifically, the two position coordinates are obtained, which are the coordinates before and after the movement of the motor-driven lens stored in the register, including the first position coordinate of the first position of the lens before the movement and the second position coordinate of the second position of the lens after the movement.
[0051] Then, based on the first position coordinate and the second position coordinate, a first displacement is obtained, where the first displacement is the distance between the first position coordinate and the second position coordinate.
[0052] Specifically, the position of the register at (0x8417, 0x8417) is recorded as (0x00, 0x00), ie, the first position coordinates, and then, the position is recorded as (0x00, 0x76E), ie, the second position coordinates.
[0053] Then, based on the first position coordinates and the second position coordinates, a first displacement is obtained.
[0054] According to the data recorded in the above register, the displacement corresponding to the first displacement of 0x76E is obtained, which is converted into a decimal number of 1902, so the first displacement is 1902.
[0055] Next, S102 includes: obtaining a first picture taken by the lens at a first position, and a second picture taken by the lens at a second position, wherein the lens takes pictures of the same table at both the first position and the second position, and the table has more than one identification graphic.
[0056] The logo graphic is specifically a circle, a square frame, a rectangular frame or an elliptical frame.
[0057] Take the circle as an example, Figure 2a and Figure 2b As shown, Figure 2a The first picture is obtained by taking a table with circles at a first position by the lens, Figure 2b The second picture is obtained by taking a picture of a table with circles at a second position of the lens.
[0058] Depend on Figure 2a , Figure 2b As shown, there are 5 circles. Since one circle is small, it can be ignored. Take 4 of them. Get the center position coordinates and radius size of these 4 circles (a, b, c, d) respectively, as shown in the following table:
[0059]
[0060] After obtaining the third position coordinates corresponding to each identification graphic on the first image and the fourth position coordinates corresponding to each identification graphic on the second image, a second displacement is obtained based on the third position coordinates and the fourth position coordinates, and the second displacement is the distance between the third position coordinates and the fourth position coordinates corresponding to each identification graphic.
[0061] The second displacement is the actual displacement on the image, and the first displacement is the movement displacement of the motor-driven lens.
[0062] Among them, if the pixel size corresponding to the sensor is 1.000μm, the corresponding second displacement of the same logo pattern is shown in the following table:
[0063]
[0064]
[0065] Taking circle a as an example, its corresponding third position coordinate and fourth position coordinate are both position coordinates of the number of pixels. Therefore, the actual coordinates need to be multiplied by the size corresponding to a single pixel.
[0066] Therefore, after obtaining the third position coordinate and the fourth position coordinate of the circle a, the X coordinate difference and the Y coordinate difference are obtained by subtracting the two position coordinates, and the second displacement is obtained according to the above calculation method.
[0067] Of course, in the present invention, the second displacements corresponding to circle a, circle b, circle c, and circle d are obtained respectively.
[0068] Finally, S103 is executed to obtain the motor sensitivity based on the first displacement and the second displacement.
[0069] There are two ways to get the motor sensitivity:
[0070] One method is to calculate the quotient of the second displacement corresponding to each identification pattern and the first displacement to obtain a plurality of first ratios, and then average the first ratios to obtain the motor sensitivity.
[0071] Another method is to calculate the quotient of the first displacement and the second displacement corresponding to each identification pattern to obtain a plurality of second ratios, and then average the second ratios to obtain the motor sensitivity.
[0072] In the first method, the unit of the motor sensitivity obtained is μm / code, while in the second method, the unit of the motor sensitivity obtained is code / μm.
[0073] Specifically, for the above four circles (a, b, c, d), the corresponding motor sensitivities are obtained respectively, and the average value obtained by averaging the four motor sensitivities is:
[0074]
[0075]
[0076] Thus, the high-precision motor sensitivity, that is, the average value is obtained.
[0077] The motor sensitivity obtained by the above method is 27.0 code / μm, which is 1.3 different from the fixed value 28.3 code / μm given by the manufacturer. If the motor sensitivity given by the manufacturer is used, this difference will cause the accuracy test item to misjudge good products as defective products. Of course, the difference of some modules is more than 1.3. Therefore, the motor sensitivity in the present invention is used to avoid misjudging good products as defective products in the accuracy test item.
[0078] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
[0079] A method for obtaining motor sensitivity provided by the present invention comprises: obtaining a first displacement corresponding to two position coordinates, the first displacement corresponding to the two position coordinates being the displacement corresponding to the movement process of a motor-driven lens, obtaining a second displacement, the second displacement being the displacement corresponding to an identification figure in the same picture obtained from before the movement to after the movement of the lens; obtaining motor sensitivity based on the first displacement and the second displacement, and then obtaining image displacement by taking pictures, displaying the physical displacement of the lens according to data recorded in a register, and obtaining the actual motor sensitivity according to the image displacement and the physical displacement, thereby improving the accuracy of obtaining the motor sensitivity.
[0080] Embodiment 2
[0081] Based on the same inventive concept, the embodiment of the present invention also provides a device for obtaining motor sensitivity, such as Figure 3 As shown, including:
[0082] The actual displacement acquisition module 301 is used to acquire a first displacement corresponding to two position coordinates, where the first displacement corresponding to the two position coordinates is a displacement corresponding to the movement process of the motor-driven lens.
[0083] The graphic displacement acquisition module 302 is used to acquire a second displacement, where the second displacement is the displacement corresponding to the identification graphic in the same picture obtained from before the lens is moved to after the lens is moved;
[0084] The motor sensitivity obtaining module 303 obtains the motor sensitivity based on the first displacement and the second displacement.
[0085] In an optional implementation, the actual displacement acquisition module 301 includes:
[0086] an actual coordinate acquisition unit, used to acquire the two position coordinates, the two position coordinates being the coordinates before and after the movement of the motor-driven lens stored in the register, including a first position coordinate of a first position of the lens before the movement and a second position coordinate of a second position of the lens after the movement;
[0087] The first displacement obtaining unit is used to obtain the first displacement based on the first position coordinate and the second position coordinate, where the first displacement is the distance between the first position coordinate and the second position coordinate.
[0088] In an optional implementation, the image displacement acquisition module includes:
[0089] a picture acquisition unit, configured to acquire a first picture taken by the lens at the first position, and a second picture taken by the lens at the second position, wherein the lens takes pictures of the same table at the first position and the second position, and the table has more than one identification graphic;
[0090] A graphic coordinate acquisition unit, used to obtain a third position coordinate corresponding to each identification graphic on the first picture and a fourth position coordinate corresponding to each identification graphic on the second picture;
[0091] The second displacement obtaining unit is used to obtain the second displacement based on the third position coordinate and the fourth position coordinate, where the second displacement is the distance between the third position coordinate and the fourth position coordinate corresponding to each identification pattern.
[0092] In an optional implementation, the motor sensitivity obtaining module 303 includes:
[0093] A first ratio obtaining unit, configured to obtain a plurality of first ratios by calculating the quotient of the second displacement corresponding to each identification pattern and the first displacement;
[0094] The first motor sensitivity obtaining unit is used to average the multiple first ratios to obtain the motor sensitivity.
[0095] In an optional implementation, the motor sensitivity obtaining module 303 includes:
[0096] A second ratio obtaining unit, configured to obtain a plurality of second ratios by calculating the quotient of the first displacement and the second displacement corresponding to each of the identification patterns;
[0097] The second motor sensitivity obtaining unit is used to average the second ratio to obtain the motor sensitivity.
[0098] Embodiment 3
[0099] Based on the same inventive concept, a third embodiment of the present invention provides an electronic device, such as Figure 4 As shown, it includes a memory 404, a processor 402, and a computer program stored in the memory 404 and executable on the processor 402. When the processor 402 executes the program, the steps of the above-mentioned method for obtaining motor sensitivity are implemented.
[0100] Among them, Figure 4 In the embodiment of the present invention, a bus architecture (represented by bus 400) is shown, which may include any number of interconnected buses and bridges, and bus 400 links various circuits including one or more processors represented by processor 402 and memory represented by memory 404. Bus 400 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 406 provides an interface between bus 400 and receiver 401 and transmitter 403. Receiver 401 and transmitter 403 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 404 may be used to store data used by processor 402 when performing operations.
[0101] Embodiment 4
[0102] Based on the same inventive concept, a fourth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above method for obtaining motor sensitivity are implemented.
[0103] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0104] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0105] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0106] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0107] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0108] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the device for obtaining motor sensitivity or electronic equipment according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0109] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A method for obtaining motor sensitivity, characterized in that: include: Get the first displacement corresponding to the two position coordinates, including: Acquire the two position coordinates, which are the coordinates of the motor-driven lens before and after the movement stored in the register, including a first position coordinate of the first position of the lens before the movement and a second position coordinate of the second position of the lens after the movement; Based on the first position coordinate and the second position coordinate, obtaining the first displacement, the first displacement being the distance between the first position coordinate and the second position coordinate; The first displacement corresponding to the two position coordinates is the displacement corresponding to the movement process of the motor-driven lens; Acquiring a second displacement, where the second displacement is a displacement corresponding to the identification pattern in the same picture obtained from before the lens is moved to after the lens is moved, including: Acquire a first picture taken by the lens at the first position, and a second picture taken by the lens at the second position, wherein the lens takes pictures of the same table at the first position and the second position, and the table has more than one identification graphic; Obtaining third position coordinates corresponding to each identification graphic on the first picture and fourth position coordinates corresponding to each identification graphic on the second picture; Based on the third position coordinates and the fourth position coordinates, obtaining the second displacement, where the second displacement is the distance between the third position coordinates and the fourth position coordinates corresponding to each identification graphic; The third position coordinate and the fourth position coordinate are both position coordinates of the number of pixels, and the actual coordinates of the logo pattern need to be multiplied by the size corresponding to a single pixel; A motor sensitivity is obtained based on the first displacement and the second displacement.
2. The method according to claim 1, characterized in that The obtaining of the motor sensitivity based on the first displacement and the second displacement includes: Taking the quotient of the second displacement corresponding to each identification pattern and the first displacement respectively, to obtain a plurality of first ratios; The plurality of first ratios are averaged to obtain the motor sensitivity.
3. The method according to claim 1, characterized in that The obtaining of the motor sensitivity based on the first displacement and the second displacement includes: Taking the first displacement as a quotient of the second displacement corresponding to each identification pattern, to obtain a plurality of second ratios; The plurality of second ratios are averaged to obtain the motor sensitivity.
4. The method according to claim 1, characterized in that The multiple identification graphics are specifically circles, square frames, rectangular frames or elliptical frames.
5. A device for obtaining motor sensitivity, characterized in that: include: An actual displacement acquisition module, used to acquire a first displacement corresponding to two position coordinates, wherein the first displacement corresponding to the two position coordinates is a displacement corresponding to a movement process of the motor-driven lens; A graphic displacement acquisition module, used to acquire a second displacement, where the second displacement is a displacement corresponding to the identification graphic in the same picture obtained from before the lens is moved to after the lens is moved; A motor sensitivity obtaining module, which obtains the motor sensitivity based on the first displacement and the second displacement; The actual displacement acquisition module comprises: an actual coordinate acquisition unit, used to acquire the two position coordinates, the two position coordinates being the coordinates before and after the movement of the motor-driven lens stored in the register, including a first position coordinate of a first position of the lens before the movement and a second position coordinate of a second position of the lens after the movement; a first displacement obtaining unit, configured to obtain the first displacement based on the first position coordinate and the second position coordinate, wherein the first displacement is a distance between the first position coordinate and the second position coordinate; The graphic displacement acquisition module comprises: a picture acquisition unit, configured to acquire a first picture taken by the lens at the first position, and a second picture taken by the lens at the second position, wherein the lens takes pictures of the same table at the first position and the second position, and the table has more than one identification graphic; A graphic coordinate acquisition unit, used to obtain a third position coordinate corresponding to each identification graphic on the first picture and a fourth position coordinate corresponding to each identification graphic on the second picture; a second displacement obtaining unit, configured to obtain the second displacement based on the third position coordinate and the fourth position coordinate, wherein the second displacement is a distance between the third position coordinate and the fourth position coordinate corresponding to each identification pattern; The third position coordinate and the fourth position coordinate are both position coordinates of the number of pixels, and the actual coordinates of the identification pattern need to be multiplied by the size corresponding to a single pixel.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method steps as claimed in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method steps described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Adjustment method of pixel shifting digital camera, sample for adjustment, and pixel shifting digital camera system
JP2004229222A
Scene depth calculation method, device and terminal
WO2018076529A1