CN116701501B - Camera calibration data loading method and device and terminal equipment - Google Patents

Camera calibration data loading method and device and terminal equipment Download PDF

Info

Publication number
CN116701501B
CN116701501B CN202211455678.XA CN202211455678A CN116701501B CN 116701501 B CN116701501 B CN 116701501B CN 202211455678 A CN202211455678 A CN 202211455678A CN 116701501 B CN116701501 B CN 116701501B
Authority
CN
China
Prior art keywords
calibration data
point
camera module
calibration
value
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.)
Active
Application number
CN202211455678.XA
Other languages
Chinese (zh)
Other versions
CN116701501A (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211455678.XA priority Critical patent/CN116701501B/en
Publication of CN116701501A publication Critical patent/CN116701501A/en
Application granted granted Critical
Publication of CN116701501B publication Critical patent/CN116701501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)

Abstract

The application is applicable to the technical field of computer application, and provides a method, a device and terminal equipment for loading camera calibration data, wherein the method comprises the following steps: acquiring an opening instruction of a target camera module in terminal equipment; acquiring the value of a first calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module; according to the value of the first calibration strategy parameter, loading the calibration data of the target camera module matched with the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data. Therefore, the value of the first calibration strategy parameter is preset according to the type of the calibration data stored in the terminal equipment, so that the calibration data matched with the target camera module can be accurately obtained according to the value of the first calibration strategy parameter in the operation process of the target camera module, the accuracy and the reliability of the calibration of the camera module are improved, the picture quality of the camera module is further improved, and the user experience is improved.

Description

Camera calibration data loading method and device and terminal equipment
Technical Field
The application belongs to the technical field of computer application, and particularly relates to a camera calibration data loading method, a camera calibration data loading device, terminal equipment and a computer readable storage medium.
Background
Along with the popularization and rapid development of terminal equipment such as smart phones, the functions of the smart phones are more and more, and the use is more convenient. A camera module is usually mounted in a terminal device such as a smart phone, so that a user can take a picture through the smart phone. For camera modules with larger pixel numbers (50M, 100M (1 million), 200M (2 million) pixels), due to the larger size of the chips of the camera modules in the height direction, the longer the distance from the Row Driver (RDV) to the voltage supply on the pixels, the more unstable the voltage, the unstable signal reading, and thus the dark shadow problem can occur when photographing in a dark state, the color of the original image (Raw image) output by the image sensor is affected, and the color cast problem of the finally output image can occur.
In the related art, the problem of the dark shadow of the camera module can be calibrated in the production process of the terminal equipment, and the generated calibration data are stored in the terminal equipment, so that the stored calibration data are used for calibrating the camera module in the photographing process of the terminal equipment, and the quality of photographed images is improved. However, because the calibration modes adopted by the terminal devices in different batches may be different, the calibration data stored in the terminal devices are also different, if in the process of calibrating the camera module, each terminal device adopts a uniform loading strategy to directly load the uniform calibration data to calibrate the camera module, the actually loaded calibration data is easily caused to be not matched with the camera module to be calibrated, or the actually loaded calibration data cannot be loaded to the camera module, so that the calibration result of the camera module is inaccurate, the reliability is low, the picture quality of the camera module is further influenced, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a loading method, a device, terminal equipment and a storage medium for camera calibration data, which can solve the problems that because the calibration modes adopted by the terminal equipment in different batches are possibly different, the calibration data stored in the terminal equipment are also different, if the unified calibration data are directly loaded by each terminal equipment in the process of calibrating a camera module by adopting a unified loading strategy to calibrate the camera module, the actually loaded calibration data are not matched with the camera module to be calibrated or the calibration data of the camera module cannot be loaded, thus the calibration result of the camera module is inaccurate, the reliability is low, the picture quality of the camera module is further influenced, and the user experience is influenced.
In a first aspect, an embodiment of the present application provides a method for loading camera calibration data, including: acquiring an opening instruction of a target camera module in terminal equipment; acquiring a value of a first calibration strategy parameter corresponding to the target camera module according to an opening instruction of the target camera module, wherein the value of the first calibration strategy parameter is set according to a type of calibration data stored in the terminal equipment; according to the value of the first calibration strategy parameter, loading the calibration data of the target camera module matched with the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
In one possible implementation manner of the first aspect, the value of the first calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data, where the typical calibration data is calibration data used for calibrating a batch of camera modules belonging to the same model as the target camera module, and the point-to-point calibration data is calibration data dedicated for calibrating the target camera module.
Optionally, in another possible implementation manner of the first aspect, loading calibration data of the target camera module that matches the value of the first calibration policy parameter according to the value of the first calibration policy parameter includes:
and when the value of the first calibration strategy parameter is a parameter value corresponding to the unloaded calibration data, the operation of loading the calibration data is not executed.
Optionally, in still another possible implementation manner of the first aspect, loading calibration data of the target camera module that matches the value of the first calibration policy parameter according to the value of the first calibration policy parameter includes:
When the value of the first calibration strategy parameter is a parameter value corresponding to typical calibration data, judging whether typical calibration data are stored in a storage space corresponding to the target camera module;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
Optionally, in still another possible implementation manner of the first aspect, loading calibration data of the target camera module that matches the value of the first calibration policy parameter according to the value of the first calibration policy parameter includes:
when the value of the first calibration strategy parameter is a parameter value corresponding to the point-to-point calibration data, judging whether the point-to-point calibration data is stored in a storage space corresponding to the target camera module;
if yes, loading point-to-point calibration data;
if not, the operation of loading the calibration data is not executed.
Optionally, in still another possible implementation manner of the first aspect, loading calibration data of the target camera module that matches the value of the first calibration policy parameter according to the value of the first calibration policy parameter includes:
when the value of the first calibration strategy parameter is a parameter value corresponding to dynamic loading, judging whether point-to-point calibration data are stored in a storage space corresponding to the target camera module;
If yes, loading point-to-point calibration data;
if not, judging whether typical calibration data are stored in a storage space corresponding to the target camera module;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
Optionally, in another possible implementation manner of the first aspect, the start instruction of the target camera module includes a target serial number and a target register serial version corresponding to the target camera module; correspondingly, the loading point-to-point calibration data further comprises:
acquiring a camera module serial number corresponding to point-to-point calibration data stored in terminal equipment and a register serial version corresponding to the point-to-point calibration data;
judging whether the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data or not, and judging whether the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data or not;
and loading the point-to-point calibration data when the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data and the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data.
Optionally, in still another possible implementation manner of the first aspect, after determining whether the target sequence number matches the camera module sequence number corresponding to the point-to-point calibration data and whether the target register sequence version matches the register sequence version corresponding to the point-to-point calibration data, the method further includes:
judging whether typical calibration data is stored in a storage space corresponding to the target camera module when the target sequence number is not matched with the camera module sequence number corresponding to the point-to-point calibration data or the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
Optionally, in a further possible implementation manner of the first aspect, the loading the point-to-point calibration data includes:
determining a head address corresponding to the point-to-point calibration data according to the register sequence version corresponding to the point-to-point calibration data;
and loading point-to-point data from the storage space corresponding to the target camera module according to the first address.
Optionally, in still another possible implementation manner of the first aspect, the start instruction of the target camera module includes a current operation mode corresponding to the target camera module, and the target register sequence version is a register sequence version corresponding to the current operation mode.
Optionally, in another possible implementation manner of the first aspect, the obtaining, according to the start instruction of the target camera module, a value of a first calibration policy parameter corresponding to the target camera module includes:
acquiring the value of a second calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module;
and when the value of the second calibration strategy parameter is a default value, acquiring the value of the first calibration strategy parameter.
Optionally, in still another possible implementation manner of the first aspect, after obtaining the value of the second calibration policy parameter corresponding to the target camera module according to the start instruction of the target camera module, the method further includes:
and when the value of the second calibration strategy parameter is not the default value, loading the calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
Optionally, in still another possible implementation manner of the first aspect, when the value of the second calibration policy parameter is not a default value, the value of the second calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data.
In a second aspect, an embodiment of the present application provides a device for loading camera calibration data, including: the first acquisition module is used for acquiring an opening instruction of a target camera module in the terminal equipment; the second acquisition module is used for acquiring the value of the first calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module, wherein the value of the first calibration strategy parameter is set according to the type of calibration data stored in the terminal equipment; the first loading module is used for loading the calibration data of the target camera module matched with the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
In a possible implementation manner of the second aspect, the value of the first calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamic loading, where the typical calibration data is calibration data used for calibrating a batch of camera modules belonging to the same model as the target camera module, and the point-to-point calibration data is calibration data dedicated for calibrating the target camera module.
Optionally, in another possible implementation manner of the second aspect, the first loading module includes:
the first execution unit is used for not executing the operation of loading the calibration data when the value of the first calibration strategy parameter is the parameter value corresponding to the non-loading calibration data.
Optionally, in a further possible implementation manner of the second aspect, the first loading module includes:
the first judging unit is used for judging whether typical calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is a parameter value corresponding to the typical calibration data;
the second execution unit is used for loading typical calibration data if yes;
and the third execution unit is used for not executing the operation of loading the calibration data if not.
Optionally, in a further possible implementation manner of the second aspect, the first loading module includes:
the second judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the parameter value corresponding to the point-to-point calibration data;
the fourth execution unit is used for loading point-to-point calibration data if yes;
And the fifth execution unit is used for not executing the operation of loading the calibration data if not.
Optionally, in a further possible implementation manner of the second aspect, the first loading module includes:
the third judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the corresponding parameter value of dynamic loading;
the sixth execution unit is used for loading point-to-point calibration data if yes;
a fourth judging unit, configured to judge whether typical calibration data is stored in the storage space corresponding to the target camera module if not;
the seventh execution unit is used for loading typical calibration data if yes;
and the eighth execution unit is used for not executing the operation of loading the calibration data if not.
Optionally, in another possible implementation manner of the second aspect, the start instruction of the target camera module includes a target serial number and a target register serial version corresponding to the target camera module; correspondingly, the sixth execution unit is further configured to:
acquiring a camera module serial number corresponding to point-to-point calibration data stored in terminal equipment and a register serial version corresponding to the point-to-point calibration data;
Judging whether the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data or not, and judging whether the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data or not;
and loading the point-to-point calibration data when the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data and the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data.
Optionally, in a further possible implementation manner of the second aspect, the sixth execution unit is further configured to:
judging whether typical calibration data is stored in a storage space corresponding to the target camera module when the target sequence number is not matched with the camera module sequence number corresponding to the point-to-point calibration data or the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
Optionally, in a further possible implementation manner of the second aspect, the sixth execution unit is further configured to:
determining a head address corresponding to the point-to-point calibration data according to the register sequence version corresponding to the point-to-point calibration data;
And loading point-to-point data from the storage space corresponding to the target camera module according to the first address.
Optionally, in still another possible implementation manner of the second aspect, the start instruction of the target camera module includes a current operation mode corresponding to the target camera module, and the target register sequence version is a register sequence version corresponding to the current operation mode.
Optionally, in another possible implementation manner of the second aspect, the second obtaining module includes:
the first acquisition unit is used for acquiring the value of the second calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module;
the second obtaining unit is used for obtaining the value of the first calibration strategy parameter when the value of the second calibration strategy parameter is a default value.
Optionally, in a further possible implementation manner of the second aspect, the second obtaining module further includes:
and the first loading unit is used for loading the calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter when the value of the second calibration strategy parameter is not the default value so as to calibrate the target camera module by using the calibration data.
Optionally, in still another possible implementation manner of the second aspect, when the value of the second calibration policy parameter is not a default value, the value of the second calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data.
In a third aspect, an embodiment of the present application provides a terminal device, including: the camera calibration data loading device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the camera calibration data loading method when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements a method for loading camera calibration data as described above.
In a fifth aspect, embodiments of the present application provide a computer program product which, when run on a terminal device, causes the terminal device to perform a method of loading camera calibration data as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the value of the first calibration strategy parameter is preset according to the type of the calibration data stored in the terminal equipment, so that the calibration data matched with the target camera module can be accurately obtained according to the value of the first calibration strategy parameter in the operation process of the target camera module, the accuracy and the reliability of the calibration of the camera module are improved, the picture quality of the camera module is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for loading camera calibration data according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a camera calibration data loading process according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for loading camera calibration data according to another embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for loading camera calibration data according to still another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another camera calibration data loading process according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a camera calibration data loading device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method, the device, the terminal equipment, the storage medium and the computer program for loading camera calibration data provided by the application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow chart illustrating a method for loading camera calibration data according to an embodiment of the present application.
Step 101, acquiring an opening instruction of a target camera module in the terminal equipment.
It should be noted that, the method for loading camera calibration data according to the embodiment of the present application may be executed by the apparatus for loading camera calibration data according to the embodiment of the present application. The loading device of the camera calibration data in the embodiment of the application can be configured in any terminal equipment to execute the loading method of the camera calibration data in the embodiment of the application. For example, the loading device of the camera calibration data in the embodiment of the present application may be configured in a terminal device such as a mobile phone, a computer, and a wearable device, so as to achieve calibration of a camera module in the terminal device.
The target camera module may refer to a camera module currently being turned on in the terminal device. For example, when only one camera module is included in the terminal device, the camera module may be determined as a target camera module when the camera module is turned on; for another example, when the terminal device includes a plurality of camera modules, such as a front camera and a rear camera, the front camera can be determined as the target camera module when the front camera is turned on; when the rear camera is turned on, the rear camera can be determined as the target camera module.
The opening instruction of the target camera module may be generated when the target camera module is opened or when the operation mode of the target camera module is switched, which is not limited in the embodiment of the present application.
In the embodiment of the application, the loading method of the camera calibration data can be applied to terminal equipment of the camera module with larger pixel number so as to calibrate the camera module, thereby reducing the color cast of the picture caused by the problem of thick shadow and improving the picture quality. Therefore, the terminal device can monitor the opening instruction of the camera module in the terminal device in real time, and when the opening instruction of the target camera module is monitored, the process of loading the calibration data of the target camera module is started to be executed.
As a possible implementation, the target camera module may be calibrated once when the target camera module is turned on, and thus, the turn-on command of the target camera module may be generated when it is determined that the target camera module is turned on. For example, when the terminal device obtains the click operation of the icon corresponding to the camera application by the user, the terminal device determines to obtain the starting instruction of the target camera module; or when a plurality of camera modules are contained in the terminal device, when the click operation of the camera switching button in the camera preview interface by the user is obtained, the starting instruction of the target camera module can be determined to be obtained.
As a possible implementation manner, since the camera module may generally provide multiple shooting modes, such as portrait, panorama, beauty, and photography, and the resolutions may be different in different shooting modes, in order to ensure that a better calibration effect can be achieved in each shooting mode, calibration data corresponding to each shooting mode may be generated when generating the calibration data. Therefore, in the embodiment of the application, when the target camera module is started and the operation mode of the target camera module is switched, the starting instruction of the target camera module is obtained, so that the calibration process of the target camera module can be triggered when the target camera module is started and the operation mode is switched, and each operation mode is calibrated in a targeted manner, so that a more accurate calibration result is realized.
Step 102, obtaining a value of a first calibration strategy parameter corresponding to the target camera module according to an opening instruction of the target camera module, wherein the value of the first calibration strategy parameter is set according to a type of calibration data stored in the terminal equipment.
The first calibration policy parameter may be used to indicate a type of calibration data to be acquired when the target camera module is calibrated. In actual use, the value of the first calibration policy parameter may be preset according to the type of calibration data stored in the terminal device before the terminal device leaves the factory, so that a user can directly load the calibration data stored in the terminal device to calibrate the target camera module in the process of using the target camera module.
In this embodiment of the present application, after the start instruction of the target camera module is obtained, the value of the first calibration policy parameter corresponding to the target camera module may be obtained, so as to determine what kind of calibration data to load to calibrate the target camera module according to the value of the first calibration policy parameter.
It should be noted that, because the calibration data stored in the terminal device are all calibration data matched with the camera module installed in the terminal device when leaving the factory, the first calibration policy parameters are set according to the calibration data stored in the terminal device when leaving the factory, so that the calibration data matched with the camera module can be directly loaded according to the values of the first calibration policy parameters in the use process of the terminal device, the accuracy and the reliability of the calibration of the camera module are ensured, and the code of the loading policy does not need to be rewritten for each terminal device, and only the values of the first calibration policy parameters need to be modified according to the calibration data in the terminal device, thereby improving the portability of the loading policy and reducing the time cost and the labor cost of the development stage.
As a possible implementation manner, according to different calibration manners adopted by the terminal device in the production stage of the terminal device, the types of the calibration data may include typical calibration data and point-to-point calibration data, where the typical calibration data may refer to calibration data for calibrating batch camera modules belonging to the same model as the target camera module, and the point-to-point calibration data may refer to calibration data dedicated to calibrating the target camera module. In this embodiment of the present application, according to whether typical calibration data or point-to-point calibration data corresponding to the target camera module is stored in the terminal device, the value of the first calibration policy parameter corresponding to the target camera module may be set to any one of a parameter value corresponding to the non-loaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamic loading.
It should be noted that, in actual use, if the terminal device includes a plurality of camera modules, the values of the first calibration policy parameters corresponding to each camera module may be set according to the type of the calibration data corresponding to each camera module stored in the terminal device.
As an example, if any calibration data corresponding to the target camera module is not stored in the terminal device, the value of the first calibration policy parameter corresponding to the target camera module may be determined as a parameter value corresponding to the unloaded calibration data, for example, the parameter value may be NOLOAD; if TYPICAL calibration data corresponding to the target camera module is stored in the terminal device, determining the value of the first calibration policy parameter corresponding to the target camera module as a parameter value corresponding to the TYPICAL calibration data, for example, the parameter value may be TYPICA; if the point-to-point calibration data corresponding to the target camera module is stored in the terminal device, the value of the first calibration strategy parameter corresponding to the target camera module can be determined as the parameter value corresponding to the point-to-point calibration data, for example, the parameter value can be SET2SET; if the typical calibration data and the point-to-point calibration data corresponding to the target camera module are stored in the terminal device, the value of the first calibration strategy parameter corresponding to the target camera module can be determined as the parameter value corresponding to the point-to-point calibration data, or the value of the first calibration strategy parameter corresponding to the target camera module can be determined as the parameter value corresponding to the typical calibration data, or the value of the first calibration strategy parameter corresponding to the target camera module can be determined as the parameter value corresponding to dynamic loading, so that the terminal device can flexibly select any one of the point-to-point calibration data or the typical calibration data according to the actual running condition, and calibrate the target camera module to achieve the optimal calibration effect.
It should be noted that, typical calibration data may be calibration data that is generated for a certain type of camera module and is common to the type of camera module. Specifically, a certain number of camera modules can be selected from the camera modules of the model, consistency evaluation is performed on the selected camera modules, and the camera modules meeting the consistency evaluation requirement are calibrated, so that typical calibration data of the camera modules of the model are generated. The typical calibration data may be generated by the manufacturer of the terminal device by self calibration, or may be provided to the manufacturer of the terminal device by the vendor of the camera module. It can be seen that typical calibration data can save the calibration cost of the producer and has a certain versatility.
The point-to-point calibration data can refer to calibration data generated by customizing each camera module, so that the point-to-point calibration data has good data consistency, and can be customized for each camera module, so that the calibration result is more accurate and reliable, and the correction effect on the concentrated shadows is better.
And step 103, loading the calibration data of the target camera module matched with the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
In the embodiment of the application, after the value of the first calibration strategy parameter is obtained, the type of calibration data to be obtained currently can be determined according to the value of the first calibration strategy parameter, and the type of calibration data is loaded from the calibration data stored in the terminal equipment to calibrate the target camera module.
As one possible implementation, each camera module may have a corresponding memory space for storing some of the data specific to that camera module. Therefore, the calibration data corresponding to the target camera module can be stored in the storage space corresponding to the target camera module, so that after the type of the calibration data is determined, the type of the calibration data can be directly loaded from the storage space corresponding to the target camera module. For example, each camera model may have a corresponding one-time programmable (One Time Programmable, OTP) memory so that calibration data corresponding to the target camera module may be stored in its corresponding OTP so that calibration data corresponding to the target camera module may be loaded directly from the OTP of the target camera module.
Furthermore, if the camera module in the terminal device is not calibrated in the production process, calibration data of the camera module can not be loaded, so that abnormal operation of the camera module caused by forced loading can be prevented. That is, in one possible implementation manner of the embodiment of the present application, the step 103 may include:
And when the value of the first calibration strategy parameter is a parameter value corresponding to the unloaded calibration data, the operation of loading the calibration data is not executed.
In this embodiment of the present application, if the value of the first calibration policy parameter corresponding to the target camera module is a parameter value corresponding to the non-loading calibration data, for example, NOLOAD, it may be determined that the target camera module in the terminal device may not be calibrated during production in the production line, that is, the calibration data of the target camera module may not be stored in the terminal device, so that the operation of loading the calibration data may not be performed, that is, any operation may not be performed, so as to avoid writing a general forced loading code in the terminal device, which results in an abnormal operation condition of the camera module in the terminal device that is not performing calibration due to failure to acquire the calibration data. As shown in fig. 2, a schematic diagram of a loading process of camera calibration data provided in this embodiment of the present application is shown, where GosLoadXml is a first calibration policy parameter, typeical is a parameter value corresponding to TYPICAL calibration data, SET2SET is a parameter value corresponding to point-to-point calibration data, NOLOAD is a parameter value corresponding to non-loaded calibration data, and DYN is a parameter value corresponding to dynamic loading. It can be seen that the terminal device does not perform any operation at gosloadxml=noload.
Furthermore, if the camera module in the terminal device is calibrated in a typical calibration mode in the production process, typical calibration data can be loaded to calibrate the camera module in the operation process, and the calibration is performed by the thick shadow problem, so that the quality of the drawing is improved. That is, in one possible implementation manner of the embodiment of the present application, the step 103 may include:
when the value of the first calibration strategy parameter is a parameter value corresponding to typical calibration data, judging whether typical calibration data are stored in a storage space corresponding to the target camera module;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
In this embodiment of the present application, if the first calibration policy parameter corresponding to the target camera module is a parameter value corresponding to typical calibration data, it may be determined whether the storage space (e.g., OTP) corresponding to the target camera module stores typical calibration data; if the storage space corresponding to the target camera module stores typical calibration data, the target camera module can be determined to be subjected to typical calibration in the production process, so that the typical calibration data can be loaded to calibrate the target camera module; if the storage space corresponding to the target camera module does not store typical calibration data, it can be determined that the target camera module is likely not to be subjected to typical calibration in the production process, so that the operation of loading the calibration data can be omitted, not only can the loading error of the calibration data be prevented, but also the abnormal operation of the camera module caused by forced loading of the calibration data can be prevented. Specific implementations may refer to fig. 2.
Furthermore, if the camera module in the terminal device is calibrated in a point-to-point customization mode in the production process, the camera module can be enabled to load point-to-point calibration data in the operation process for calibration, so that the calibration result achieves an optimal effect, and the quality of the drawing is further improved. That is, in one possible implementation manner of the embodiment of the present application, the step 103 may include:
when the value of the first calibration strategy parameter is a parameter value corresponding to the point-to-point calibration data, judging whether the point-to-point calibration data is stored in a storage space corresponding to the target camera module;
if yes, loading point-to-point calibration data;
if not, the operation of loading the calibration data is not executed.
In this embodiment of the present application, if the first calibration policy parameter corresponding to the target camera module is a parameter value corresponding to the point-to-point calibration data, it may be determined whether the point-to-point calibration data is stored in the storage space (e.g., OTP) corresponding to the target camera module; if the point-to-point calibration data are stored in the storage space corresponding to the target camera module, the point-to-point calibration of the target camera module in the production process can be determined, so that the point-to-point calibration data can be loaded to calibrate the target camera module; if the point-to-point calibration data is not stored in the storage space corresponding to the target camera module, it can be determined that the target camera module is likely not subjected to point-to-point calibration in the production process, so that the operation of loading the calibration data can be omitted, not only can the error loading of the calibration data be prevented, but also the abnormal operation of the camera module caused by forced loading of the calibration data can be prevented. Specific implementations may refer to fig. 2.
Furthermore, in order to improve the flexibility of loading the calibration data, the type of the loaded calibration data is not limited, but the existing calibration data is flexibly selected to load according to the type of the calibration data stored in the terminal equipment in the process of loading the calibration data, so that the point-to-point calibration data with better calibration effect is preferentially loaded, and the typical calibration data can be flexibly selected to calibrate when the point-to-point calibration data does not exist, thereby further improving the flexibility and reliability of the calibration of the camera module. That is, in one possible implementation manner of the embodiment of the present application, the step 103 may include:
when the value of the first calibration strategy parameter is a parameter value corresponding to dynamic loading, judging whether point-to-point calibration data are stored in a storage space corresponding to the target camera module;
if yes, loading point-to-point calibration data;
if not, judging whether typical calibration data are stored in a storage space corresponding to the target camera module;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
In the embodiment of the application, since the point-to-point calibration data is customized according to each camera module, compared with the typical calibration data, the calibration effect of the point-to-point calibration data is more accurate, so that the point-to-point calibration data can be loaded preferentially in the actual calibration process, the typical calibration data is adopted for calibration when the point-to-point calibration data does not exist, the terminal equipment can achieve the optimal calibration effect as far as possible, and the camera module can be calibrated by adopting the general typical calibration data when the point-to-point calibration data does not exist, so that a certain concentrated shadow correction effect is achieved. Therefore, when the first calibration strategy parameter corresponding to the target camera module is a parameter value corresponding to dynamic loading, whether point-to-point calibration data are stored in the storage space of the target camera module or not can be judged first, and when point-to-point calibration data are stored in the storage space of the target camera module, the point-to-point calibration data corresponding to the target camera module are determined to exist currently, so that the point-to-point calibration data can be loaded to calibrate the target camera module; when the point-to-point calibration data is not stored in the storage space of the target camera module, the point-to-point calibration data corresponding to the target camera module can be determined to be not present at present, whether typical calibration data is stored in the storage space corresponding to the target camera module or not can be continuously judged, when the typical calibration data is stored in the storage space of the target camera module, the typical calibration data corresponding to the target camera module is determined to be present at present, and the typical calibration data can be loaded to calibrate the target camera; when the typical calibration data is not stored in the storage space of the target camera module, it can be determined that the typical calibration data corresponding to the target camera module does not exist currently, and then an operation of loading the calibration data can be performed to prevent an operation abnormality caused by forced loading. Through the dynamic loading process, the current optimal calibration data can be sequentially selected to calibrate the target camera module according to the calibration data condition stored in the terminal equipment, so that the accuracy and reliability of the calibration of the camera module are further improved, and the picture effect is further improved.
According to the camera calibration data loading method, the starting instruction of the target camera module in the terminal equipment is obtained, the value of the first calibration strategy parameter corresponding to the target camera module is obtained according to the starting instruction of the target camera module, and then the calibration data of the target camera module matched with the value of the first calibration strategy parameter is loaded according to the value of the first calibration strategy parameter, so that the target camera module is calibrated by the calibration data. Therefore, the value of the first calibration strategy parameter is preset according to the type of the calibration data stored in the terminal equipment, so that the calibration data matched with the target camera module can be accurately obtained according to the value of the first calibration strategy parameter in the operation process of the target camera module, the accuracy and the reliability of the calibration of the camera module are improved, the picture quality of the camera module is further improved, and the user experience is improved. In addition, the modification of the loading strategy can be realized only through simple parameter configuration, and the portability of the loading strategy is high, so that a proper calibration mode can be flexibly selected to calibrate the camera module according to the actual production condition in the production process of the terminal equipment, the problem of subsequent calibration data loading is not needed to be considered, and a developer does not need to rewrite codes of the loading strategy due to the change of the calibration mode, thereby reducing the time cost and labor cost of the production of the terminal equipment.
In one possible implementation form of the present application, since the point-to-point calibration data is customized for each camera module, the point-to-point calibration data is only applicable to a single camera module, and once the camera module in the terminal device is damaged and replaced, the point-to-point calibration data stored in the terminal device is no longer applicable to the replaced camera module. Therefore, before loading the point-to-point calibration data, whether the terminal equipment is replaced by the camera module can be judged first, so that the accuracy and reliability of the calibration of the camera module are further improved, and the quality of the drawing is further improved.
The method for loading camera calibration data provided in the embodiment of the present application is further described below with reference to fig. 3.
Fig. 3 is a flowchart illustrating another method for loading camera calibration data according to an embodiment of the present application.
As shown in fig. 3, the loading method of the camera calibration data includes the following steps:
step 201, acquiring an opening instruction of a target camera module in the terminal device.
Step 202, obtaining a value of a first calibration strategy parameter corresponding to the target camera module according to an opening instruction of the target camera module, wherein the value of the first calibration strategy parameter is set according to a type of calibration data stored in the terminal device.
Step 203, when the value of the first calibration policy parameter is a dynamic loading corresponding parameter value, judging whether point-to-point calibration data is stored in a storage space corresponding to the target camera module, if yes, executing step 204; otherwise, step 207 is performed.
The specific implementation and principles of the steps 201 to 203 may refer to the detailed description of the embodiments, and are not repeated here.
Step 204, a camera module serial number corresponding to the point-to-point calibration data stored in the terminal device and a register serial version corresponding to the point-to-point calibration data are obtained.
The camera module serial number may be identification information that can uniquely indicate the camera module. The camera module serial number corresponding to the point-to-point calibration data may refer to a serial number of a camera module used when generating the point-to-point calibration data.
The register sequence version may refer to data used for processing the Raw image acquired by the camera module. The register sequence versions corresponding to the camera modules are different, and the processing effects on the images are different. The register sequence version corresponding to the point-to-point calibration data may refer to a register sequence version corresponding to a camera module used in producing the point-to-point calibration data. It will be appreciated that since the register sequence version affects the way and effect of processing the image, even for the same camera module, the corresponding calibration data will be different if the register version used is different.
In the embodiment of the application, in the dynamic loading strategy, if it is determined that the point-to-point calibration data is stored in the storage space corresponding to the target camera module, the camera module serial number and the register sequence version corresponding to the point-to-point calibration data can be further obtained, and whether the serial number and the register sequence version of the target camera module are consistent with the camera module serial number and the register sequence version corresponding to the point-to-point calibration data is judged, so that calibration data loading errors caused by replacement of the target camera module or update of the register version are avoided.
As a possible implementation manner, after the calibration of the camera module in the terminal device is completed in the production process of the terminal device, the corresponding relation between the calibration data and the serial number and the register version of the camera module may be stored in a system attribute file (oemiinfo) of the terminal device, so that when it is determined that the point-to-point calibration data is stored in the storage space corresponding to the target camera module, the serial number and the register version of the camera module corresponding to the point-to-point calibration data may be obtained from oemiinfo of the terminal device.
Step 205, judging whether the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data, and whether the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data, if so, executing step 206; otherwise, step 207 is performed.
The target serial number may refer to a serial number of the target camera module; the target register sequence version may refer to a register sequence version corresponding to the target camera module. The start command of the target camera module may include a target serial number and a target register serial version.
In the embodiment of the application, the target serial number and the target register sequence version corresponding to the target camera module can also be stored in oemifo of the terminal equipment, so after the start instruction of the target camera module is acquired, the target serial number and the register sequence version corresponding to the target camera module can be acquired from oemifo of the terminal equipment according to the start instruction, whether the target serial number is matched with the camera module serial number corresponding to the point-to-point calibration data is judged, if so, whether the target register sequence version is matched with the camera module serial number corresponding to the point-to-point calibration data is continuously judged, and if so, the point-to-point calibration data can be determined to be the calibration data generated by customizing the target camera module, so that the point-to-point calibration data can be loaded to calibrate the target camera module; if the target serial number is not matched with the camera module serial number corresponding to the point-to-point calibration data, the fact that the camera module in the terminal equipment is replaced can be determined, namely the point-to-point calibration data is not applicable to the replaced target camera module any more, and therefore the point-to-point calibration data can not be loaded; correspondingly, if the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data, it can be determined that after the point-to-point calibration data is generated by calibrating the target camera module, and the register sequence version of the target camera module is updated before the terminal equipment is marketed, so that the point-to-point calibration data is still not suitable for calibrating the target camera module, and the point-to-point calibration data can be not loaded.
Furthermore, when the target camera module is in a plurality of specific operation modes, the register sequence versions of each operation mode can also be different, so that in the calibration process, the target camera module can be calibrated in each operation mode to generate point-to-point calibration data of the target camera module in various operation modes, namely, point-to-point calibration data of the target camera module in each register sequence version. In one possible implementation manner of this embodiment of the present application, the start instruction of the target camera module may include a current operation mode corresponding to the target camera module, and the target register sequence version may be a register sequence version corresponding to the current operation mode.
In this embodiment of the present application, if the target camera module has multiple operation modes, when an on instruction of the target camera module is acquired, a current operation mode corresponding to the target camera module may be determined, and a register sequence version corresponding to the current operation mode may be acquired from oeminfo of the terminal device and determined as the target register sequence version. And further, from the corresponding relation between the point-to-point data stored in the oemiinfo of the terminal equipment and the serial number and the register sequence version of the camera module, determining whether point-to-point calibration data matched with the target serial number and the register sequence version exist, if so, determining that the target camera module is calibrated in the current operation mode in the production process, loading the point-to-point calibration data corresponding to the register sequence version from the storage space corresponding to the target camera module according to the register sequence version, and calibrating the target camera module to realize the accurate calibration of various shooting modes and further improve the accuracy and reliability of the calibration of the camera module.
And step 206, loading point-to-point calibration data.
As a possible implementation manner, the step 206 may include:
determining a head address corresponding to the point-to-point calibration data according to the register sequence version corresponding to the point-to-point calibration data;
and loading point-to-point data from the storage space corresponding to the target camera module according to the first address.
In this embodiment of the present application, if the target camera module has multiple operation modes, and the storage space corresponding to the target camera module stores point-to-point calibration data in multiple operation modes, or if the target camera module performs multiple calibration in the production process, then the head address corresponding to the point-to-point calibration data corresponding to each register sequence version may be stored in oemiinfo of the terminal device, so when it is determined that the register sequence version corresponding to the point-to-point data matches the target register sequence version, the head address corresponding to the point-to-point calibration data may be determined according to the register sequence version corresponding to the point-to-point calibration data, and the point-to-point calibration data is loaded from the storage space corresponding to the target camera module according to the head address corresponding to the point-to-point calibration data, so as to load the point-to-point calibration data matching the target register sequence version, or load the point-to-point calibration data for the last calibration.
It should be noted that, when the point-to-point calibration data is loaded by adopting the dynamic loading strategy, or when the value of the first calibration strategy parameter is the parameter value corresponding to the point-to-point calibration data, the method of steps 204-206 may be adopted to determine whether the point-to-point calibration data can be loaded, so as to improve the reliability of the use of the point-to-point calibration data.
Step 207, judging whether typical calibration data is stored in a storage space corresponding to the target camera module; if yes, go to step 208; otherwise, step 209 is performed.
Step 208, loading typical calibration data.
In step 209, the operation of loading calibration data is not performed.
The specific implementation and principles of the steps 207-209 may refer to the detailed description of the embodiments, and are not repeated here.
According to the method for loading the camera calibration data, the starting instruction of the target camera module in the terminal equipment is obtained, the value of the first calibration strategy parameter corresponding to the target camera module is obtained according to the starting instruction of the target camera module, and then when the value of the first calibration strategy parameter is a parameter value corresponding to dynamic loading, point-to-point calibration data are stored in the storage space corresponding to the target camera module, and the serial number and the register sequence version of the camera module corresponding to the point-to-point calibration data are matched with the serial number and the register sequence version of the target camera module, the point-to-point calibration data are loaded; when the serial number of the camera module corresponding to the point-to-point calibration data is not matched with the serial number of the target camera module, or the register sequence version corresponding to the point-to-point calibration data is not matched with the register sequence version of the target camera module, whether typical calibration data are stored in a storage space corresponding to the target camera module or not can be loaded, and otherwise, the operation of loading the calibration data is not executed. Therefore, when the camera module is calibrated, point-to-point calibration data with better calibration effect is loaded preferentially according to the condition of the stored calibration data in the terminal equipment, whether the terminal equipment is replaced by the camera module or not and whether the register sequence version is updated or not are judged before the point-to-point calibration data is loaded, so that the applicability of the point-to-point data to the camera module is ensured, the accuracy and the reliability of the calibration of the camera module are further improved, and the quality of a picture is further improved.
In one possible implementation form of the method, because calibration data are sometimes required to be loaded in stages of production line trial production, research and development testing and the like in the production process of the terminal equipment, the terminal equipment is tested, and therefore the current use stage of the terminal equipment can be identified in a parameter configuration mode, so that the calibration data loading strategy can be applied in stages of production line trial production, research and development testing, user use and the like, and the practicability and portability of camera calibration data loading are further improved.
The method for loading camera calibration data provided in the embodiment of the present application is further described below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a method for loading camera calibration data according to an embodiment of the present application.
As shown in fig. 4, the loading method of the camera calibration data includes the following steps:
step 301, obtaining an opening instruction of a target camera module in the terminal device.
The specific implementation process and principle of the above step 301 may refer to the detailed description of the above embodiments, which is not repeated herein.
Step 302, obtaining the value of the second calibration policy parameter corresponding to the target camera module according to the start command of the target camera module.
The second calibration policy parameter may be used to distinguish a scenario in which the terminal device performs calibration data loading currently, and may be used to indicate a type of calibration data that needs to be loaded in a loading scenario before the terminal device leaves the factory. In actual use, the calibration data loading scene may include a production line trial-production scene, a research and development test scene, a user use scene, and the like, which is not limited in the embodiment of the present application.
In this embodiment of the present application, the value of the second calibration policy parameter may be preset according to the current scenario in which the calibration data is loaded, so when the start instruction of the target camera module is obtained, the value of the second calibration policy parameter corresponding to the target camera module may be obtained first, so as to determine the current calibration data loading scenario according to the value of the second calibration policy parameter, and further determine the specific loading policy of the calibration data according to the current calibration data loading scenario.
Step 303, judging whether the value of the second calibration strategy parameter is a default value, if so, executing step 304; otherwise, step 306 is performed.
In the embodiment of the application, the calibration data loading of the user usage scene and the production scene can be distinguished through the value of the second calibration strategy parameter, and the type of the calibration data to be loaded in the production scene is set through the value of the second calibration strategy parameter. In addition, in the use scene of the user, the type of the calibration data to be loaded is set through the value of the second calibration strategy parameter, so that the value of the second calibration strategy parameter can be set to be a DEFAULT value (DEFAULT) when the terminal equipment leaves the factory, so that the terminal equipment is indicated to be in the use scene of the user currently, and the value of the first calibration strategy parameter can be acquired when the value of the second calibration strategy parameter is determined to be the DEFAULT value, so that the type of the calibration data to be loaded currently is determined according to the value of the first calibration strategy parameter. As shown in fig. 5, a schematic diagram of another process for loading camera calibration data provided in this embodiment of the present application, where calibbpoliyprop is a second calibration policy parameter, it can be seen that, when calibbpoliyprop=default, calibration data of a target camera module may be loaded according to a value of the first calibration policy parameter (GosLoadXml).
Step 304, obtaining the value of the first calibration strategy parameter.
Step 305, loading calibration data of the target camera module matched with the value of the first calibration policy parameter according to the value of the first calibration policy parameter, so as to calibrate the target camera module by using the calibration data.
The specific implementation and principles of the steps 304-305 may refer to the detailed description of the embodiments, which is not repeated here.
And 306, loading calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
In this embodiment of the present application, if it is determined that the value of the second calibration policy parameter is not a default value, it may be determined that the terminal device is currently in a production scenario, and in the production scenario, the loading mode of the calibration data may be configured by setting the value of the second calibration policy parameter, so when the value of the second calibration policy parameter is not a default value, the value of the second calibration policy parameter may also include any one of a parameter value corresponding to the non-loaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamic loading.
As one possible implementation, the production scenario may include a production line trial scenario and a development test scenario. In the production line trial production scenario, since the calibration of the camera module may not be completed, the calibration data of the camera module may not be loaded at this time, so that the value of the second calibration policy parameter may be set to a parameter value (NOLOAD) corresponding to the calibration data, which is not loaded, through the equipment for production line trial production connected to the terminal device during production line trial production, so that the loading operation of the calibration data may not be performed during the production line trial production stage, as shown in fig. 5.
As a possible implementation manner, since in the research and development testing stage, research and development personnel may need to load various types of calibration data to calibrate the camera module, so as to test the calibration effect of various types of calibration data on the camera module, so as to screen out the calibration data with the best calibration effect, and store the calibration data in the terminal device. Therefore, in the research and development testing stage, the research and development personnel can set and modify the value of the second calibration strategy parameter according to the actual testing requirement. As shown in fig. 5, when the calibration effect of the TYPICAL calibration data needs to be tested, the value of the second calibration policy parameter may be set as a parameter value (typeical) corresponding to the TYPICAL calibration data; when the calibration effect of the test point to the point calibration data is required, the value of the second calibration strategy parameter can be SET as a parameter value (SET 2 SET) corresponding to the point calibration data; when the calibration effect of dynamic loading is required, the value of the second calibration strategy parameter can be set as a parameter value (DYN) corresponding to dynamic loading.
It should be noted that, when the value of the second calibration policy parameter is NOLOAD, TYPICAL, SET2SET or DYN, the manner of loading the camera calibration data according to the value of the second calibration policy parameter is the same as the manner of loading the camera calibration data according to the value of the first calibration policy parameter, and specific implementation processes and principles may refer to the detailed description of the above embodiments, which are not repeated herein.
According to the camera calibration data loading method, the starting instruction of the target camera module in the terminal equipment is obtained, the value of the second calibration strategy parameter corresponding to the target camera module is obtained according to the starting instruction of the target camera module, when the value of the second calibration strategy parameter is the default value, the value of the first calibration strategy parameter is obtained, the calibration data of the target camera module matched with the value of the first calibration strategy parameter is loaded according to the value of the first calibration strategy parameter, and when the value of the second calibration strategy parameter is not the default value, the calibration data of the target camera module matched with the value of the second calibration strategy parameter is loaded according to the value of the second calibration strategy parameter. Therefore, flexible configuration of a production scene and a user use scene is realized by adding the second calibration strategy parameters, and loading mode configuration of camera calibration data in the production scene is realized by adding the second calibration strategy parameters, so that the loading strategy of the calibration data can be applied to stages of production line trial production, research and development tests, user use and the like, and the practicability and portability of camera calibration data loading are further improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the method for loading camera calibration data described in the above embodiments, fig. 6 shows a block diagram of a device for loading camera calibration data provided in the embodiment of the present application, and for convenience of explanation, only the portions relevant to the embodiments of the present application are shown.
Referring to fig. 6, the apparatus 40 includes:
a first obtaining module 41, configured to obtain an opening instruction of a target camera module in a terminal device;
the second obtaining module 42 is configured to obtain, according to an on instruction of the target camera module, a value of a first calibration policy parameter corresponding to the target camera module, where the value of the first calibration policy parameter is set according to a type of calibration data stored in the terminal device;
the first loading module 43 is configured to load calibration data of the target camera module that matches the value of the first calibration policy parameter according to the value of the first calibration policy parameter, so as to calibrate the target camera module by using the calibration data.
In practical use, the camera calibration data loading device provided in the embodiment of the present application may be configured in any terminal device to execute the foregoing method for loading camera calibration data.
According to the camera calibration data loading device, the starting instruction of the target camera module in the terminal equipment is obtained, the value of the first calibration strategy parameter corresponding to the target camera module is obtained according to the starting instruction of the target camera module, and then the calibration data of the target camera module matched with the value of the first calibration strategy parameter is loaded according to the value of the first calibration strategy parameter, so that the target camera module is calibrated by the calibration data. Therefore, the value of the first calibration strategy parameter is preset according to the type of the calibration data stored in the terminal equipment, so that the calibration data matched with the target camera module can be accurately obtained according to the value of the first calibration strategy parameter in the operation process of the target camera module, the accuracy and the reliability of the calibration of the camera module are improved, the picture quality of the camera module is further improved, and the user experience is improved. In addition, the modification of the loading strategy can be realized only through simple parameter configuration, and the portability of the loading strategy is high, so that a proper calibration mode can be flexibly selected to calibrate the camera module according to the actual production condition in the production process of the terminal equipment, the problem of subsequent calibration data loading is not needed to be considered, and a developer does not need to rewrite codes of the loading strategy due to the change of the calibration mode, thereby reducing the time cost and labor cost of the production of the terminal equipment.
In one possible implementation form of the present application, the value of the first calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data, where the typical calibration data is calibration data used for calibrating batch camera modules belonging to the same model as the target camera module, and the point-to-point calibration data is calibration data dedicated for calibrating the target camera module.
Further, in another possible implementation manner of the present application, the first loading module 43 includes:
the first execution unit is used for not executing the operation of loading the calibration data when the value of the first calibration strategy parameter is the parameter value corresponding to the non-loading calibration data.
Further, in still another possible implementation form of the present application, the first loading module includes:
the first judging unit is used for judging whether typical calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is a parameter value corresponding to the typical calibration data;
The second execution unit is used for loading typical calibration data if yes;
and the third execution unit is used for not executing the operation of loading the calibration data if not.
Further, in yet another possible implementation manner of the present application, the first loading module 43 includes:
the second judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the parameter value corresponding to the point-to-point calibration data;
the fourth execution unit is used for loading point-to-point calibration data if yes;
and the fifth execution unit is used for not executing the operation of loading the calibration data if not.
Further, in yet another possible implementation manner of the present application, the first loading module 43 includes:
the third judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the corresponding parameter value of dynamic loading;
the sixth execution unit is used for loading point-to-point calibration data if yes;
a fourth judging unit, configured to judge whether typical calibration data is stored in the storage space corresponding to the target camera module if not;
The seventh execution unit is used for loading typical calibration data if yes;
and the eighth execution unit is used for not executing the operation of loading the calibration data if not.
Further, in another possible implementation form of the present application, the start instruction of the target camera module includes a target serial number and a target register serial version corresponding to the target camera module; correspondingly, the sixth execution unit is further configured to:
acquiring a camera module serial number corresponding to point-to-point calibration data stored in terminal equipment and a register serial version corresponding to the point-to-point calibration data;
judging whether the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data or not, and judging whether the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data or not;
and loading the point-to-point calibration data when the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data and the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data.
Further, in still another possible implementation form of the present application, the sixth execution unit is further configured to:
Judging whether typical calibration data is stored in a storage space corresponding to the target camera module when the target sequence number is not matched with the camera module sequence number corresponding to the point-to-point calibration data or the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data;
if yes, loading typical calibration data;
if not, the operation of loading the calibration data is not executed.
Further, in still another possible implementation form of the present application, the sixth execution unit is further configured to:
determining a head address corresponding to the point-to-point calibration data according to the register sequence version corresponding to the point-to-point calibration data;
and loading point-to-point data from the storage space corresponding to the target camera module according to the first address.
Further, in still another possible implementation manner of the present application, the start instruction of the target camera module includes a current operation mode corresponding to the target camera module, and the target register sequence version is a register sequence version corresponding to the current operation mode.
Further, in another possible implementation manner of the present application, the second obtaining module 42 includes:
the first acquisition unit is used for acquiring the value of the second calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module;
The second obtaining unit is used for obtaining the value of the first calibration strategy parameter when the value of the second calibration strategy parameter is a default value.
Further, in still another possible implementation form of the present application, the second obtaining module 42 further includes:
and the first loading unit is used for loading the calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter when the value of the second calibration strategy parameter is not the default value so as to calibrate the target camera module by using the calibration data.
Further, in still another possible implementation form of the present application, when the value of the second calibration policy parameter is not a default value, the value of the second calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In order to implement the above embodiment, the present application further proposes a terminal device.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
As shown in fig. 7, the terminal apparatus 200 includes:
the memory 210 and the at least one processor 220, the bus 230 connecting the different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and the processor 220 implements the method for loading camera calibration data according to the embodiments of the present application when executing the program.
Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal device 200 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by terminal device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 240 and/or cache memory 250. Terminal device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the present application.
Program/utility 280 having a set (at least one) of program modules 270 may be stored in, for example, memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 270 generally perform the functions and/or methods in the embodiments described herein.
Terminal device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), one or more devices that enable a user to interact with the terminal device 200, and/or any device (e.g., network card, modem, etc.) that enables the terminal device 200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 292. Also, terminal device 200 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via network adapter 293. As shown, network adapter 293 communicates with other modules of terminal device 200 over bus 230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with terminal device 200, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 220 executes various functional applications and data processing by running programs stored in the memory 210.
It should be noted that, the implementation process and the technical principle of the terminal device in this embodiment refer to the foregoing explanation of the method for loading camera calibration data in this embodiment, and are not repeated herein.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
The present embodiments provide a computer program product which, when run on a terminal device, causes the terminal device to perform steps that enable the respective method embodiments described above to be implemented.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow in the methods of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program may implement the steps of each method embodiment described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (26)

1. A method for loading camera calibration data, comprising:
acquiring an opening instruction of a target camera module in terminal equipment;
acquiring a value of a first calibration strategy parameter corresponding to the target camera module according to an opening instruction of the target camera module, wherein the value of the first calibration strategy parameter is set according to a type of calibration data stored in the terminal equipment, the value of the first calibration strategy parameter comprises any one of a parameter value corresponding to unloaded calibration data, a parameter value corresponding to typical calibration data, a parameter value corresponding to point-to-point calibration data and a parameter value corresponding to dynamic loading, the typical calibration data is calibration data used for calibrating batch camera modules belonging to the same model as the target camera module, and the point-to-point calibration data is calibration data special for calibrating the target camera module;
And loading calibration data of the target camera module matched with the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
2. The method of claim 1, wherein loading calibration data of the target camera module that matches the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter comprises:
and when the value of the first calibration strategy parameter is the parameter value corresponding to the unloaded calibration data, the operation of loading the calibration data is not executed.
3. The method of claim 1, wherein loading calibration data of the target camera module that matches the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter comprises:
when the value of the first calibration strategy parameter is a parameter value corresponding to the typical calibration data, judging whether the typical calibration data is stored in a storage space corresponding to the target camera module;
if yes, loading the typical calibration data;
If not, the operation of loading the calibration data is not executed.
4. The method of claim 1, wherein loading calibration data of the target camera module that matches the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter comprises:
when the value of the first calibration strategy parameter is a parameter value corresponding to the point-to-point calibration data, judging whether the point-to-point calibration data is stored in a storage space corresponding to the target camera module;
if yes, loading the point-to-point calibration data;
if not, the operation of loading the calibration data is not executed.
5. The method of claim 1, wherein loading calibration data of the target camera module that matches the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter comprises:
when the value of the first calibration strategy parameter is the parameter value corresponding to the dynamic loading, judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module;
if yes, loading the point-to-point calibration data;
If not, judging whether the typical calibration data is stored in a storage space corresponding to the target camera module;
if yes, loading the typical calibration data;
if not, the operation of loading the calibration data is not executed.
6. The method of claim 5, wherein the start command of the target camera module includes a target serial number and a target register serial version corresponding to the target camera module, and the loading the point-to-point calibration data further comprises:
acquiring a camera module serial number corresponding to the point-to-point calibration data stored in the terminal equipment and a register serial version corresponding to the point-to-point calibration data;
judging whether the target sequence number is matched with a camera module sequence number corresponding to the point-to-point calibration data or not, and judging whether the target register sequence version is matched with a register sequence version corresponding to the point-to-point calibration data or not;
and loading the point-to-point calibration data when the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data and the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data.
7. The method of claim 6, wherein after determining whether the target sequence number matches a camera module sequence number corresponding to the point-to-point calibration data and whether the target register sequence version matches a register sequence version corresponding to the point-to-point calibration data, further comprising:
judging whether the typical calibration data is stored in a storage space corresponding to the target camera module when the target sequence number is not matched with the camera module sequence number corresponding to the point-to-point calibration data or the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data;
if yes, loading the typical calibration data;
if not, the operation of loading the calibration data is not executed.
8. The method of claim 6, wherein said loading said point-to-point calibration data comprises:
determining a head address corresponding to the point-to-point calibration data according to a register sequence version corresponding to the point-to-point calibration data;
and loading the point-to-point calibration data from a storage space corresponding to the target camera module according to the head address.
9. The method of claim 6, wherein the start command of the target camera module includes a current operation mode corresponding to the target camera module, and the target register sequence version is a register sequence version corresponding to the current operation mode.
10. The method of any one of claims 1 to 9, wherein the obtaining, according to the start instruction of the target camera module, the value of the first calibration policy parameter corresponding to the target camera module includes:
acquiring the value of a second calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module;
and when the value of the second calibration strategy parameter is a default value, acquiring the value of the first calibration strategy parameter.
11. The method of claim 10, wherein after obtaining the value of the second calibration policy parameter corresponding to the target camera module according to the start command of the target camera module, further comprising:
and when the value of the second calibration strategy parameter is not a default value, loading the calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
12. The method of claim 11, wherein when the value of the second calibration policy parameter is not a default value, the value of the second calibration policy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data.
13. A camera calibration data loading device, comprising:
the first acquisition module is used for acquiring an opening instruction of a target camera module in the terminal equipment;
the second obtaining module is configured to obtain, according to an opening instruction of the target camera module, a value of a first calibration policy parameter corresponding to the target camera module, where the value of the first calibration policy parameter is set according to a type of calibration data stored in the terminal device, and the value of the first calibration policy parameter includes any one of a parameter value corresponding to unloaded calibration data, a parameter value corresponding to typical calibration data, a parameter value corresponding to point-to-point calibration data, and a parameter value corresponding to dynamic loading, where the typical calibration data is calibration data used for calibrating batch camera modules belonging to the same model as the target camera module, and the point-to-point calibration data is calibration data dedicated to calibrating the target camera module;
And the first loading module is used for loading the calibration data of the target camera module matched with the value of the first calibration strategy parameter according to the value of the first calibration strategy parameter so as to calibrate the target camera module by using the calibration data.
14. The apparatus of claim 13, wherein the first loading module comprises:
and the first execution unit is used for not executing the operation of loading the calibration data when the value of the first calibration strategy parameter is the parameter value corresponding to the non-loaded calibration data.
15. The apparatus of claim 13, wherein the first loading module comprises:
the first judging unit is used for judging whether the typical calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the parameter value corresponding to the typical calibration data;
the second execution unit is used for loading the typical calibration data if yes;
and the third execution unit is used for not executing the operation of loading the calibration data if not.
16. The apparatus of claim 13, wherein the first loading module comprises:
The second judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the parameter value corresponding to the point-to-point calibration data;
the fourth execution unit is used for loading the point-to-point calibration data if yes;
and the fifth execution unit is used for not executing the operation of loading the calibration data if not.
17. The apparatus of claim 13, wherein the first loading module comprises:
the third judging unit is used for judging whether the point-to-point calibration data are stored in the storage space corresponding to the target camera module when the value of the first calibration strategy parameter is the parameter value corresponding to the dynamic loading;
the sixth execution unit is used for loading the point-to-point calibration data if yes;
a fourth judging unit, configured to judge whether the typical calibration data is stored in the storage space corresponding to the target camera module if not;
the seventh execution unit is used for loading the typical calibration data if yes;
and the eighth execution unit is used for not executing the operation of loading the calibration data if not.
18. The apparatus of claim 17, wherein the start command of the target camera module includes a target serial number and a target register serial version corresponding to the target camera module, and the sixth execution unit is further configured to:
acquiring a camera module serial number corresponding to the point-to-point calibration data stored in the terminal equipment and a register serial version corresponding to the point-to-point calibration data;
judging whether the target sequence number is matched with a camera module sequence number corresponding to the point-to-point calibration data or not, and judging whether the target register sequence version is matched with a register sequence version corresponding to the point-to-point calibration data or not;
and loading the point-to-point calibration data when the target sequence number is matched with the camera module sequence number corresponding to the point-to-point calibration data and the target register sequence version is matched with the register sequence version corresponding to the point-to-point calibration data.
19. The apparatus of claim 18, wherein the sixth execution unit is further to:
judging whether the typical calibration data is stored in a storage space corresponding to the target camera module when the target sequence number is not matched with the camera module sequence number corresponding to the point-to-point calibration data or the target register sequence version is not matched with the register sequence version corresponding to the point-to-point calibration data;
If yes, loading the typical calibration data;
if not, the operation of loading the calibration data is not executed.
20. The apparatus of claim 18, wherein the sixth execution unit is further to:
determining a head address corresponding to the point-to-point calibration data according to a register sequence version corresponding to the point-to-point calibration data;
and loading the point-to-point calibration data from a storage space corresponding to the target camera module according to the head address.
21. The apparatus of claim 18, wherein the on command of the target camera module includes a current operation mode corresponding to the target camera module, and the target register sequence version is a register sequence version corresponding to the current operation mode.
22. The apparatus of any of claims 13-21, wherein the second acquisition module comprises:
the first acquisition unit is used for acquiring the value of the second calibration strategy parameter corresponding to the target camera module according to the starting instruction of the target camera module;
and the second acquisition unit is used for acquiring the value of the first calibration strategy parameter when the value of the second calibration strategy parameter is a default value.
23. The apparatus of claim 22, wherein the second acquisition module further comprises:
and the first loading unit is used for loading the calibration data of the target camera module matched with the value of the second calibration strategy parameter according to the value of the second calibration strategy parameter when the value of the second calibration strategy parameter is not the default value so as to calibrate the target camera module by using the calibration data.
24. The apparatus of claim 23, wherein when the value of the second calibration strategy parameter is not a default value, the value of the second calibration strategy parameter includes any one of a parameter value corresponding to the unloaded calibration data, a parameter value corresponding to the typical calibration data, a parameter value corresponding to the point-to-point calibration data, and a parameter value corresponding to the dynamically loaded calibration data.
25. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-12 when executing the computer program.
26. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1-12.
CN202211455678.XA 2022-11-21 2022-11-21 Camera calibration data loading method and device and terminal equipment Active CN116701501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211455678.XA CN116701501B (en) 2022-11-21 2022-11-21 Camera calibration data loading method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211455678.XA CN116701501B (en) 2022-11-21 2022-11-21 Camera calibration data loading method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN116701501A CN116701501A (en) 2023-09-05
CN116701501B true CN116701501B (en) 2024-04-12

Family

ID=87836258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211455678.XA Active CN116701501B (en) 2022-11-21 2022-11-21 Camera calibration data loading method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN116701501B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912354A (en) * 2016-03-16 2016-08-31 昆山软龙格自动化技术有限公司 CMOS chip fast I2C configuring/burning method
CN110458896A (en) * 2019-08-07 2019-11-15 成都索贝数码科技股份有限公司 A kind of camera internal reference method for solving and system based on absolute quadric
CN111479059A (en) * 2020-04-15 2020-07-31 Oppo广东移动通信有限公司 Photographing processing method and device, electronic equipment and storage medium
CN111694586A (en) * 2020-06-05 2020-09-22 平安科技(深圳)有限公司 Program initialization method, program initialization device, terminal device, and storage medium
CN112070845A (en) * 2020-08-31 2020-12-11 上海爱观视觉科技有限公司 Calibration method and device of binocular camera and terminal equipment
CN112166410A (en) * 2019-09-19 2021-01-01 深圳市大疆创新科技有限公司 System operation method, system, movable platform and storage medium
CN112598750A (en) * 2020-12-22 2021-04-02 北京百度网讯科技有限公司 Calibration method and device for road side camera, electronic equipment and storage medium
CN113902808A (en) * 2021-08-31 2022-01-07 北京影谱科技股份有限公司 Camera calibration method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102261020B1 (en) * 2016-06-28 2021-06-03 매직 립, 인코포레이티드 Improved camera calibration system, target and process

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912354A (en) * 2016-03-16 2016-08-31 昆山软龙格自动化技术有限公司 CMOS chip fast I2C configuring/burning method
CN110458896A (en) * 2019-08-07 2019-11-15 成都索贝数码科技股份有限公司 A kind of camera internal reference method for solving and system based on absolute quadric
CN112166410A (en) * 2019-09-19 2021-01-01 深圳市大疆创新科技有限公司 System operation method, system, movable platform and storage medium
CN111479059A (en) * 2020-04-15 2020-07-31 Oppo广东移动通信有限公司 Photographing processing method and device, electronic equipment and storage medium
CN111694586A (en) * 2020-06-05 2020-09-22 平安科技(深圳)有限公司 Program initialization method, program initialization device, terminal device, and storage medium
CN112070845A (en) * 2020-08-31 2020-12-11 上海爱观视觉科技有限公司 Calibration method and device of binocular camera and terminal equipment
CN112598750A (en) * 2020-12-22 2021-04-02 北京百度网讯科技有限公司 Calibration method and device for road side camera, electronic equipment and storage medium
CN113902808A (en) * 2021-08-31 2022-01-07 北京影谱科技股份有限公司 Camera calibration method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Convenient and High-Accuracy Multicamera Calibration Method Based on Imperfect Spherical Ojbects;Liming Tao et al.;《IEEE Transactions on Instrumentation and Measurement》;1-15 *
基于智能手机传感器的图像匹配技术研究;刘华洲;《中国优秀硕士学位论文全文数据库 信息科技辑》;I138-2695 *

Also Published As

Publication number Publication date
CN116701501A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110888521B (en) Mobile terminal and application program running method thereof
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
US20080072029A1 (en) Method for executing power on self test on a computer system and updating SMBIOS information partially
EP3127323A1 (en) Method and apparatus for controlling image capture
US20080129313A1 (en) Recording medium, test apparatus and diagnostic method
US11074157B2 (en) Splicing screen debugging method, splicing screen and splicing wall
TWI725523B (en) Display device, electronic system and control method
US10878772B2 (en) Apparatus and method for testing for abnormal control by a display control apparatus
CN105120259A (en) Detection method and apparatus for digital television
CN111475218A (en) Server starting method, server and computer readable storage medium
CN116701501B (en) Camera calibration data loading method and device and terminal equipment
US20070002405A1 (en) Display apparatus, color calibration system and method thereof
CN109117299B (en) Error detecting device and method for server
US11430201B2 (en) Image processing apparatus for character recognition, control method of the same, storage medium and image processing system
US8743132B2 (en) Setting control apparatus and method for operating setting control apparatus
CN113377592A (en) Chip detection method and device, computer readable storage medium and electronic equipment
CN105095072A (en) Application testing method and device and terminal
JP4313860B2 (en) Defective pixel correction apparatus and defective pixel correction method
CN102455963B (en) Computer system, and control system for accessing display identification data
CN113126946A (en) Display system and panel parameter automatic adjusting method
US20040049511A1 (en) Method for acquiring and monitoring hardware data of computer system
US7694186B2 (en) Method for actuating a system on chip (SOC) and computer system medium thereof
CN111831284B (en) Rendering debugging method, device and equipment
CN112291556B (en) Color temperature debugging method and device, terminal equipment and readable storage medium
CN111881073B (en) Method and device for making FPGA compatible with various hardware and electronic equipment

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
GR01 Patent grant
GR01 Patent grant