CN114168890A - Fourier coefficient calculation method, device, terminal equipment and medium - Google Patents

Fourier coefficient calculation method, device, terminal equipment and medium Download PDF

Info

Publication number
CN114168890A
CN114168890A CN202111403393.7A CN202111403393A CN114168890A CN 114168890 A CN114168890 A CN 114168890A CN 202111403393 A CN202111403393 A CN 202111403393A CN 114168890 A CN114168890 A CN 114168890A
Authority
CN
China
Prior art keywords
distance data
error
fourier coefficient
data
calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111403393.7A
Other languages
Chinese (zh)
Inventor
燕宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Original Assignee
Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunshanqiu Titanium Photoelectric Technology Co Ltd filed Critical Kunshanqiu Titanium Photoelectric Technology Co Ltd
Priority to CN202111403393.7A priority Critical patent/CN114168890A/en
Publication of CN114168890A publication Critical patent/CN114168890A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Algebra (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Measurement Of Optical Distance (AREA)

Abstract

The invention discloses a Fourier coefficient calculation method, a device, terminal equipment and a medium, wherein the method comprises the following steps: acquiring m measured distance data and original Fourier coefficients of the camera module; correcting the m measured distance data according to the original Fourier coefficient to obtain m corrected distance data; calculating m distance error data according to the m corrected distance data and pre-stored actual distance data; and calculating to obtain a new Fourier coefficient according to the m distance error data. By adopting the method and the device, the technical problem that the precision of the Fourier coefficient obtained by a table look-up mode in the prior art is not high, so that the precision of the module error calibration is not high is solved.

Description

Fourier coefficient calculation method, device, terminal equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a fourier coefficient calculation method, an apparatus, a terminal device, and a medium.
Background
A time of flight (TOF) module, as a distance measurement module, can emit a modulated light signal to a target object and receive the modulated light signal reflected by the target object, so as to measure a distance to the target object by using a round trip time of the modulated light signal.
The measured distance between the TOF module and the target object and the actual distance between the TOF module and the target object often have certain errors, so that the TOF module usually needs to be subjected to error calibration, and accordingly error compensation is performed when the TOF module is applied.
At present, most of TOF modules are periodically calibrated for errors based on fourier series (fourier coefficients) obtained by means of a lookup table, but the calibration accuracy of error calibration in this way is insufficient. Therefore, how to determine/calculate the fourier coefficients needed to be used in the calibration of the module error is an important issue that needs to be solved at present.
Disclosure of Invention
The embodiment of the application provides a Fourier coefficient calculation method, and solves the technical problem that in the prior art, the precision of the Fourier coefficient obtained by a table look-up mode is not high, and further the precision of module error calibration is not high.
In one aspect, an embodiment of the present application provides a fourier coefficient calculation method, where the method includes:
s1, acquiring m measurement distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
s2, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data;
s3, calculating m distance error data according to the m corrected distance data and pre-stored actual distance data;
and S4, calculating and obtaining a new Fourier coefficient according to the m distance error data.
Optionally, the step S2 includes:
according to the original Fourier coefficients, performing error calculation on the m measured distance data to obtain m swing error data;
and correcting the m measured distance data according to the m swing error data to obtain m corrected distance data.
Optionally, the method further comprises:
and when the next calculation is carried out, taking the new Fourier coefficient as the original Fourier coefficient, taking the m corrected distance data as the m measured distance data, and repeatedly executing the steps S1-S4 until the calculation times reach the preset times.
Optionally, the method further comprises:
and storing the new Fourier coefficient obtained by each calculation in a storage database.
Optionally, the method further comprises:
weighting the new Fourier coefficient obtained by each calculation to obtain a target Fourier coefficient;
and using the target Fourier coefficient to calibrate the error of the camera module.
Optionally, the preset number of times is determined according to a calibration error obtained by the error calibration calculation, so that the calibration error is smaller than a preset threshold.
In another aspect, the present application provides an apparatus for calculating fourier coefficients according to an embodiment of the present application, the apparatus including: the device comprises an acquisition module, a correction module and a calculation module, wherein:
the acquisition module is used for acquiring m measured distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
the correction module is used for correcting the m measured distance data according to the original Fourier coefficient to obtain m corrected distance data;
the calculation module is used for calculating and obtaining m distance error data according to the m corrected distance data and prestored theoretical distance data;
and the calculating module is also used for calculating and obtaining a new Fourier coefficient according to the m distance error data.
For the content that is not introduced or not described in the embodiment of the present application, reference may be made to the related descriptions in the foregoing method embodiments, and details are not described here again.
On the other hand, the present application provides a terminal device according to an embodiment of the present application, where the terminal device includes: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the fourier coefficient calculation method as described above.
On the other hand, the present application provides a computer-readable storage medium storing a program that executes the fourier coefficient calculation method as described above when the program is run on a terminal device, by an embodiment of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: this application is through m measured distance data and the former Fourier coefficient of acquireing the camera module, then according to former Fourier coefficient is to m measured distance data revises, obtains m corrected distance data, then according to m corrected distance data and the actual distance data of prestoring calculate and obtain m distance error data, at last according to m distance error data, calculate and obtain new Fourier coefficient. Among the above-mentioned scheme, this application revises the measured distance data of camera module based on former Fourier coefficient, then utilizes the distance error data between revised distance data and the actual distance data to calculate new Fourier coefficient, thereby carry out error calibration to the camera module based on new Fourier coefficient, be favorable to promoting the convenience and the precision that Fourier coefficient calculated, thereby it is not high to have solved the precision of the Fourier coefficient that obtains through the mode of looking up the table among the prior art, and then lead to the not high technical problem of precision of module error calibration.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a fourier coefficient calculation method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a discrete sampling point provided in an embodiment of the present application.
Fig. 3 is a schematic diagram of a fourier coefficient fitting curve provided in an embodiment of the present application.
Fig. 4 is a schematic flowchart of another fourier coefficient calculation method according to an embodiment of the present application.
FIG. 5 is a diagram illustrating several error calibration results provided by an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a fourier coefficient calculation apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a Fourier coefficient calculation method, and solves the technical problem that in the prior art, the precision of the Fourier coefficient obtained by a table look-up mode is not high, and further the precision of module error calibration is not high.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows: the method comprises the steps of obtaining m measured distance data and original Fourier coefficients of a camera module, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data, calculating to obtain m distance error data according to the m corrected distance data and prestored actual distance data, and calculating to obtain new Fourier coefficients according to the m distance error data.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Please refer to fig. 1, which is a flowchart illustrating a fourier coefficient calculation method according to an embodiment of the present application. The method as shown in fig. 1 comprises the following implementation steps:
s1, m measurement distance data and original Fourier coefficients of the camera module are obtained, and m is a positive integer.
The measurement distance data refer to the measurement distance between the camera module and a target object to be tested. The original Fourier coefficients are Fourier coefficients of Fourier expressions needed to be used in the module error calibration process, the number of the coefficients is not limited in the application, and the number of the coefficients can be one or more, and is determined according to actual conditions. The original fourier coefficients in this application may refer to initial fourier coefficients stored in a preset storage database (e.g., a lookup table), and the initial fourier coefficients may be configured by a system in a customized manner, for example, customized according to actual requirements of the system.
According to the method and the device, the respective measured distance data of the m discrete sampling points can be acquired, so that the m measured distance data can be acquired, and then the initial Fourier coefficient (namely the original Fourier coefficient) of the Fourier expression can be acquired from the preset lookup table. For example, please refer to fig. 2, which shows a sampling diagram of one possible discrete sampling point. As in fig. 2, the abscissa represents the measured distance data for each discrete sampling point (i.e., the measured distance data for each of the m discrete sampling points), and the ordinate represents the calibration error corresponding to each discrete sampling point.
Referring also to fig. 3, a schematic diagram of a possible sample-based fourier coefficient fitting curve is shown. As shown in fig. 3, the present application may perform fourier coefficient fitting on each discrete sampling point in fig. 2, so as to obtain an expression curve of a corresponding fourier expression, and thus obtain each original fourier coefficient involved in the fourier expression, which may be stored in advance in a preset lookup table for subsequent use.
In one possible embodiment, in a single fourier coefficient calculation process, the fourier expression used in the present application can be shown as the following formula (1):
y=a1 sin(2x)+a2 cos(2x)+a3 sin(4x)+a4 cos(4x) formula (1)
Wherein, a1、a2、a3And a4All are Fourier coefficients in a Fourier expression, x is measured distance data, and y is a swing error after error calibration.
And S2, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data.
In a specific embodiment, the present application may perform error calculation on m measured distance data according to the original fourier coefficients to obtain m wobble error data. Specifically, the present application may respectively calculate m pieces of measured distance data by substituting the m pieces of measured distance data into a fourier expression (as in the above formula (1)), where the fourier coefficient involved in the fourier expression is the original fourier coefficient, so as to obtain m calculation results, that is, m pieces of wobble error data.
Further, the method and the device utilize m swing error data to correct m measured distance data, and therefore m corrected distance data are obtained. Specifically, the present application may add each of the measured distance data and the corresponding wobble error data to obtain m corrected distance data.
It should be noted that, each time the measured distance data is corrected, the calibration accuracy of the wobble error data needs to be evaluated. Specifically, according to the above-mentioned correction implementation steps, the m pieces of measured distance data are corrected based on the original fourier coefficients for a plurality of times until the wobble error data in the last correction process is smaller than the preset error data (for example, 2 mm), so that the process can be ended to obtain the corrected distance data after the final correction.
And S3, calculating m distance error data according to the m corrected distance data and the pre-stored actual distance data.
This application actual distance data is when testing at every turn the true distance between camera module and the target object, this application of the quantity of actual distance data does not do the restriction. Specifically, m pieces of corrected distance data and actual distance data corresponding to the m pieces of corrected distance data may be subtracted from each other to obtain m pieces of distance error data.
And S4, calculating and obtaining a new Fourier coefficient according to the m distance error data.
In the process of calculating the Fourier coefficients each time, the method can calculate and obtain new Fourier coefficients by using m distance error data, and the new Fourier coefficients are simply called as new Fourier coefficients. Specifically, referring to the foregoing formula (1), the present application may calculate and obtain each new fourier coefficient in the fourier expression by using the following formula (2).
Figure BDA0003371547550000071
Figure BDA0003371547550000072
Wherein, a1、a2、a3And a4Are all new fourier coefficients in the calculated fourier expression, x is the distance error data, and f (x) is y in the above equation (1).
Please refer to fig. 4, which is a flowchart illustrating another fourier coefficient calculation method according to an embodiment of the present application. The method as shown in fig. 4 comprises the following implementation steps:
s1, acquiring m measurement distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
s2, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data;
s3, calculating m distance error data according to the m corrected distance data and pre-stored actual distance data;
and S4, calculating and obtaining a new Fourier coefficient according to the m distance error data.
For the above steps S1 to S4, reference may be made to the related descriptions in the method embodiment described in fig. 1, and the description is not repeated here.
And S5, taking the new Fourier coefficient as the original Fourier coefficient, taking the m corrected distance data as the m measured distance data, and repeatedly executing the steps S1-S4 until the calculation times reach the preset times.
The new Fourier coefficient of the current time can be recalculated by using the new Fourier coefficient obtained by the last calculation and the m correction distances obtained by the last correction. Specifically, the present application may repeatedly execute the above steps S1 to S4 until the repeated calculation for the preset number of times is finished, with the new fourier coefficient obtained by the previous calculation as the original fourier coefficient, and with the m corrected distance data obtained by the previous calculation as the m measured distance data.
The preset number of times may be set by a system in a self-defined manner, and may be determined specifically according to a calibration error calculated during calibration of an error of a camera module, so that the calibration error is smaller than a preset threshold (e.g., 0.1% of a preset maximum error). The calibration error is related to the new fourier coefficients obtained for each calculation, as described in detail below.
In an optional embodiment, the new fourier coefficient obtained by each calculation may be stored, for example, in a preset storage database, or in an erasable programmable read-only memory (EEPROM), and the like, which is not limited in this application.
And S6, weighting the new Fourier coefficients obtained by each calculation to obtain target Fourier coefficients.
According to the method and the device, weighting processing can be carried out on the new Fourier coefficient obtained by calculation each time in preset times, so that a corresponding target Fourier coefficient is obtained, and meanwhile, an updated (or improved) Fourier expression is also obtained, which can be specifically shown in the following formula (3).
Figure BDA0003371547550000081
Wherein the content of the first and second substances,
Figure BDA0003371547550000082
and
Figure BDA0003371547550000083
the method is characterized in that the method is a target Fourier coefficient in an updated Fourier expression, n is a preset number of times, and i is a positive integer and represents the ith time.
And S7, carrying out error calibration on the camera module by using the target Fourier coefficient.
The camera module can be subjected to error calibration by using the target Fourier coefficient (specifically, the updated Fourier expression corresponding to the target Fourier coefficient). Specifically, the present application may use the above formula (3) to perform final error calculation on the m corrected distance data obtained by the ith calculation, so as to obtain m final swing error data (which may also be referred to as calibration errors), and when the calibration error is smaller than a preset threshold, the current calculation number (i) may be output as the preset number, so as to control the final calibration error within a small range, specifically, for example, smaller than the preset threshold, so as to meet the accuracy requirement of the module on error calibration.
For example, please refer to fig. 5, which is a schematic diagram of several error calibration results provided in the embodiment of the present application. As shown in fig. 5, the calibration error of the TOF module is calibrated 6 times, the calibration error of each error calibration is shown in a curve 1-a curve 6, the abscissa in the graph represents the iterative computation times (i.e. the preset times), and the ordinate represents the calibration error.
Through implementing this application, this application can carry out iterative Fourier coefficient to discrete m measuring distance data and mark the calculation, can reduce the calibration error of module widely to be favorable to promoting convenient degree and the precision that Fourier coefficient calculated, still solved simultaneously among the prior art through looking up the precision of the Fourier coefficient that the mode obtained not high, and then lead to the not high technical problem of precision of module error demarcation.
Based on the same inventive concept, another embodiment of the present application provides a device and a terminal device for implementing the method in the embodiment of the present application.
Please refer to fig. 6, which is a schematic structural diagram of a fourier coefficient calculation apparatus according to an embodiment of the present application. The apparatus shown in fig. 6 includes: an obtaining module 601, a correcting module 602, and a calculating module 603, wherein:
the acquiring module 601 is configured to acquire m pieces of measured distance data and original fourier coefficients of the camera module, where m is a positive integer;
the correcting module 602 is configured to correct the m measured distance data according to the original fourier coefficient to obtain m corrected distance data;
the calculating module 603 is configured to calculate m distance error data according to m corrected distance data and pre-stored theoretical distance data;
the calculating module 603 is further configured to calculate and obtain a new fourier coefficient according to the m distance error data.
Optionally, the modification module 602 is specifically configured to:
according to the original Fourier coefficients, performing error calculation on the m measured distance data to obtain m swing error data;
and correcting the m measured distance data according to the m swing error data to obtain m corrected distance data.
Optionally, the apparatus further comprises a processing module 604, wherein the processing module 604 is configured to:
and in the next calculation, taking the new fourier coefficient as the original fourier coefficient, taking the m corrected distance data as the m measured distance data, and repeatedly calling the acquisition module 601, the correction module 602 and the calculation module 603 to execute corresponding functional steps until the calculation times reach the preset times.
Optionally, the apparatus further comprises a storage module 605, and the storage module 605 is configured to:
and storing the new Fourier coefficient obtained by each calculation in a storage database.
Alternatively,
the calculating module 603 is further configured to perform weighting processing on the new fourier coefficient obtained by each calculation to obtain a target fourier coefficient;
the processing module 604 is further configured to calibrate an error of the camera module by using the target fourier coefficient.
Optionally, the preset number of times is determined according to a calibration error obtained by the error calibration calculation, so that the calibration error is smaller than a preset threshold.
Please refer to fig. 7, which is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 70 shown in fig. 7 includes: at least one processor 701, a communication interface 702, a user interface 703 and a memory 704, where the processor 701, the communication interface 702, the user interface 703 and the memory 704 may be connected by a bus or by other means, and the embodiment of the present invention is exemplified by being connected by the bus 705. Wherein the content of the first and second substances,
processor 701 may be a general-purpose processor, such as a Central Processing Unit (CPU).
The communication interface 702 may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other terminals or websites. In this embodiment of the present invention, the communication interface 702 is specifically configured to obtain the track parameter.
The user interface 703 may specifically be a touch panel, including a touch screen and a touch screen, for detecting an operation instruction on the touch panel, and the user interface 703 may also be a physical button or a mouse. The user interface 703 may also be a display screen for outputting, displaying images or data.
The Memory 704 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 704 may also comprise a combination of the above types of memory. The memory 704 is used for storing a set of program codes, and the processor 701 is used for calling the program codes stored in the memory 704 to execute the following operations:
s1, acquiring m measurement distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
s2, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data;
s3, calculating m distance error data according to the m corrected distance data and pre-stored actual distance data;
and S4, calculating and obtaining a new Fourier coefficient according to the m distance error data.
Optionally, the step S2 includes:
according to the original Fourier coefficients, performing error calculation on the m measured distance data to obtain m swing error data;
and correcting the m measured distance data according to the m swing error data to obtain m corrected distance data.
Optionally, the processor 701 is further configured to:
and when the next calculation is carried out, taking the new Fourier coefficient as the original Fourier coefficient, taking the m corrected distance data as the m measured distance data, and repeatedly executing the steps S1-S4 until the calculation times reach the preset times.
Optionally, the processor 701 is further configured to:
and storing the new Fourier coefficient obtained by each calculation in a storage database.
Optionally, the processor 701 is further configured to:
weighting the new Fourier coefficient obtained by each calculation to obtain a target Fourier coefficient;
and using the target Fourier coefficient to calibrate the error of the camera module.
Optionally, the preset number of times is determined according to a calibration error obtained by the error calibration calculation, so that the calibration error is smaller than a preset threshold.
Since the terminal device described in this embodiment is a terminal device used for implementing the method in this embodiment, based on the method described in this embodiment, a person skilled in the art can understand the specific implementation manner of the terminal device in this embodiment and various variations thereof, so that a detailed description of how to implement the method in this embodiment by the terminal device is omitted here. The terminal device adopted by a person skilled in the art to implement the method in the embodiment of the present application is within the scope of the protection intended by the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
this application is through m measured distance data and the former Fourier coefficient of acquireing the camera module, then according to former Fourier coefficient is to m measured distance data revises, obtains m corrected distance data, then according to m corrected distance data and the actual distance data of prestoring calculate and obtain m distance error data, at last according to m distance error data, calculate and obtain new Fourier coefficient. Among the above-mentioned scheme, this application revises the measured distance data of camera module based on former Fourier coefficient, then utilizes the distance error data between revised distance data and the actual distance data to calculate new Fourier coefficient, thereby carry out error calibration to the camera module based on new Fourier coefficient, be favorable to promoting the convenience and the precision that Fourier coefficient calculated, thereby it is not high to have solved the precision of the Fourier coefficient that obtains through the mode of looking up the table among the prior art, and then lead to the not high technical problem of precision of module error calibration.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A fourier coefficient calculation method, characterized by comprising the steps of:
s1, acquiring m measurement distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
s2, correcting the m measured distance data according to the original Fourier coefficients to obtain m corrected distance data;
s3, calculating m distance error data according to the m corrected distance data and pre-stored actual distance data;
and S4, calculating and obtaining a new Fourier coefficient according to the m distance error data.
2. The method according to claim 1, wherein the step S2 includes:
according to the original Fourier coefficients, performing error calculation on the m measured distance data to obtain m swing error data;
and correcting the m measured distance data according to the m swing error data to obtain m corrected distance data.
3. The method of claim 1, further comprising:
and when the next calculation is carried out, taking the new Fourier coefficient as the original Fourier coefficient, taking the m corrected distance data as the m measured distance data, and repeatedly executing the steps S1-S4 until the calculation times reach the preset times.
4. The method of claim 3, further comprising:
and storing the new Fourier coefficient obtained by each calculation in a storage database.
5. The method of claim 4, further comprising:
weighting the new Fourier coefficient obtained by each calculation to obtain a target Fourier coefficient;
and using the target Fourier coefficient to calibrate the error of the camera module.
6. The method according to claim 5, wherein the preset number of times is determined based on a calibration error obtained by the error calibration calculation, such that the calibration error is less than a preset threshold.
7. An apparatus for calculating fourier coefficients, the apparatus comprising: the device comprises an acquisition module, a correction module and a calculation module, wherein:
the acquisition module is used for acquiring m measured distance data and original Fourier coefficients of the camera module, wherein m is a positive integer;
the correction module is used for correcting the m measured distance data according to the original Fourier coefficient to obtain m corrected distance data;
the calculation module is used for calculating and obtaining m distance error data according to the m corrected distance data and prestored theoretical distance data;
and the calculating module is also used for calculating and obtaining a new Fourier coefficient according to the m distance error data.
8. The apparatus of claim 7, wherein the modification module is specifically configured to:
according to the original Fourier coefficients, performing error calculation on the m measured distance data to obtain m swing error data;
and correcting the m measured distance data according to the m swing error data to obtain m corrected distance data.
9. A terminal device, characterized in that the terminal device comprises: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the fourier coefficient calculation method as set forth in any one of claims 1 to 6 above.
10. A computer-readable storage medium characterized by storing a program which, when run on a terminal device, executes the fourier coefficient calculation method according to any one of claims 1 to 6 above.
CN202111403393.7A 2021-11-24 2021-11-24 Fourier coefficient calculation method, device, terminal equipment and medium Pending CN114168890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111403393.7A CN114168890A (en) 2021-11-24 2021-11-24 Fourier coefficient calculation method, device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111403393.7A CN114168890A (en) 2021-11-24 2021-11-24 Fourier coefficient calculation method, device, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN114168890A true CN114168890A (en) 2022-03-11

Family

ID=80480278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111403393.7A Pending CN114168890A (en) 2021-11-24 2021-11-24 Fourier coefficient calculation method, device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN114168890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311372A (en) * 2022-10-12 2022-11-08 荣耀终端有限公司 Camera error correction method and related device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311372A (en) * 2022-10-12 2022-11-08 荣耀终端有限公司 Camera error correction method and related device

Similar Documents

Publication Publication Date Title
CN110617916B (en) Calibration method and device of air pressure sensor
CN107967701B (en) Calibration method, device and equipment of depth camera equipment
CN114168890A (en) Fourier coefficient calculation method, device, terminal equipment and medium
CN111256802A (en) Calibration method of weighing device and weighing device
CN114360466B (en) Display correction method and device for display, electronic equipment and storage medium
CN114459525B (en) Calibration method and device suitable for Hall sensor and storage medium
CN116645426A (en) Camera internal parameter calibration method and device, storage medium and electronic equipment
CN109341836B (en) Method and device for calibrating symmetrical platform
US10982971B2 (en) Method and apparatus for detecting background noise of sensor
CN110132416B (en) Broadband remote sensor on-orbit spectrum calibration method and device
CN108921902B (en) Method and device for correcting structured light camera deviation
CN111046626A (en) Method and device for equal length compensation of differential signal lines and server
CN115796210A (en) Sample detection method and related equipment
CN115452101A (en) Instrument verification method, device, equipment and medium
CN111982040B (en) Distance measuring and calculating method and device based on rolling distance meter, computer equipment and storage medium
CN111276092B (en) Optimization parameter determination method and device
CN112433442A (en) Mask pattern correction method and device, computer equipment and readable storage medium
CN112873209A (en) Positioning sensor time delay calibration method and device, computer equipment and storage medium
CN116933102B (en) Rubber quality inspection method, device, medium, equipment and program product
CN112082633A (en) Weight measuring method for stabilizing weight value under human body shaking condition
CN112799671A (en) Function analysis method and computer equipment thereof
CN115235531B (en) Sensor correction method and device, terminal equipment and storage medium
JP2016090405A (en) Temperature conversion table creation device, temperature conversion table creation method and temperature measuring device
CN111189471A (en) Correction method, correction device and computer storage medium
CN113968084B (en) Calibration method, system, computer device and storage medium for mark printer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination