CN110136209A - A kind of camera calibration method, device and computer readable storage medium - Google Patents

A kind of camera calibration method, device and computer readable storage medium Download PDF

Info

Publication number
CN110136209A
CN110136209A CN201910421682.6A CN201910421682A CN110136209A CN 110136209 A CN110136209 A CN 110136209A CN 201910421682 A CN201910421682 A CN 201910421682A CN 110136209 A CN110136209 A CN 110136209A
Authority
CN
China
Prior art keywords
file
target
terminal
identification information
demarcating
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.)
Granted
Application number
CN201910421682.6A
Other languages
Chinese (zh)
Other versions
CN110136209B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910421682.6A priority Critical patent/CN110136209B/en
Publication of CN110136209A publication Critical patent/CN110136209A/en
Application granted granted Critical
Publication of CN110136209B publication Critical patent/CN110136209B/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/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • 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)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)

Abstract

This application provides a kind of camera calibration method, device and computer readable storage mediums, when terminal meets camera calibration condition, generate demarcating file acquisition request, and demarcating file acquisition request is sent to background server;Background server determines corresponding target designation file according to the identification information of target camera module to be calibrated in terminal included in demarcating file acquisition request;Terminal receives the target designation file for corresponding to identification information determined by background server, and target designation file is stored in the memory space on terminal mainboard, then controls target designation file and comes into force in target camera module.Pass through the implementation of application scheme, terminal corresponds to the demarcating file of the identification information of camera module to be calibrated to background server request, then demarcating file is stored and is come into force on mainboard, effectively improve the efficiency and accuracy of camera calibration, and reduce calibration cost.

Description

A kind of camera calibration method, device and computer readable storage medium
Technical field
This application involves electronic technology field more particularly to a kind of camera calibration method, device and computer-readable deposit Storage media.
Background technique
With the continuous development of terminal technology, the popularity rate of terminal is higher and higher, user's using terminal in daily life Frequency it is also higher and higher.Camera is issued as a pith in current terminal in more and more application scenarios Wave indispensable role.
In practical applications, to guarantee that the performance of camera gives full play to, wherein an indispensable ring is to camera shooting Head is demarcated, and is at present usually to demarcate in producing line to camera, is stored in after then generating corresponding demarcating file In terminal.However, no longer needing to carry out camera shooting leader not after factory after demarcating camera in producing line It is fixed, if when needing again to demarcate camera to meet terminal use demand, usually being needed at present after terminal factory It is equipped with special calibration facility, but complicated operation for the calibration facility, special technical staff is needed to operate, and causes to mark Fixed at high cost, calibration low efficiency, and manual operation can have certain subjectivity leads to the accuracy of calibration result also more It is limited.
Summary of the invention
The embodiment of the present application provides a kind of camera calibration method, device and computer readable storage medium, at least can When solving to re-scale the camera in terminal after terminal factory in the related technology, need to rely on special calibration facility, Caused calibration cost is high, calibration low efficiency and the problem of calibration limited accuracy.
The embodiment of the present application first aspect provides a kind of camera calibration method, is applied to terminal, comprising:
Judge whether terminal currently meets preset camera calibration condition;
When meeting the camera calibration condition, demarcating file acquisition request is generated, and the demarcating file is obtained Request is sent to background server;It include target camera mould to be calibrated in the terminal in the demarcating file acquisition request The identification information of group;
Receive the target designation file for corresponding to the identification information determined by the background server;
The target designation file is stored in the memory space on the terminal mainboard, and controls the target Demarcating file comes into force in the target camera module.
The embodiment of the present application second aspect provides another camera calibration method, is applied to background server, comprising:
Receive demarcating file acquisition request transmitted by terminal;It include in the terminal in the demarcating file acquisition request The identification information of target camera module to be calibrated;
Based in the demarcating file acquisition request identification information and preset identification information and demarcating file reflect Relationship is penetrated, determines the target designation file for corresponding to the identification information of the target camera module;
The target designation file is sent to the terminal;The target designation file is for the terminal storage in master In memory space on plate, and come into force in the target camera module.
The embodiment of the present application third aspect provides a kind of camera calibration device, is applied to terminal, comprising:
Judgment module, for judging whether terminal currently meets preset camera calibration condition;
Generation module, for when meeting the camera calibration condition, generating demarcating file acquisition request, and will be described Demarcating file acquisition request is sent to background server;It include to be calibrated in the terminal in the demarcating file acquisition request The identification information of target camera module;
First receiving module, for receiving the target mark for corresponding to the identification information determined by the background server Determine file;
Control module, for the target designation file to be stored in the memory space on the terminal mainboard, And it controls the target designation file and comes into force in the target camera module.
The embodiment of the present application fourth aspect provides another camera calibration device, is applied to background server, comprising:
Second receiving module, for receiving demarcating file acquisition request transmitted by terminal;The demarcating file acquisition is asked Seek the identification information including target camera module to be calibrated in the terminal;
Determining module, for based on the identification information and preset identification information in the demarcating file acquisition request With the mapping relations of demarcating file, the target designation file for corresponding to the identification information of the target camera module is determined;
Sending module, for the target designation file to be sent to the terminal;The target designation file is used for institute Terminal storage is stated in the memory space on mainboard, and come into force in the target camera module.
The aspect of the embodiment of the present application the 5th provides a kind of electronic device, and memory, processor and storage are on a memory simultaneously The first computer program or second computer program that can be run on a processor, when processor executes the first computer program, Realize each step in the camera calibration method of above-mentioned the embodiment of the present application first aspect offer, processor executes second and calculates When machine program, each step in the camera calibration method of above-mentioned the embodiment of the present application second aspect offer is realized.
The 6th aspect of the embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with the first computer journey Sequence or second computer program when the first computer program is executed by processor, realize above-mentioned the embodiment of the present application first aspect Each step in the camera calibration method of offer when second computer program is executed by processor, realizes that above-mentioned the application is real Apply each step in the camera calibration method that a second aspect provides.
Therefore camera calibration method, device according to provided by application scheme and computer-readable storage medium Matter generates demarcating file acquisition request, and demarcating file acquisition request is sent to when terminal meets camera calibration condition Background server;Background server is according to target camera mould to be calibrated in terminal included in demarcating file acquisition request The identification information of group, determines corresponding target designation file;Terminal, which receives, corresponds to identification information determined by background server Target designation file, and target designation file is stored in the memory space on terminal mainboard, then controls target Demarcating file comes into force in target camera module.By the implementation of application scheme, terminal requests to correspond to background server In the demarcating file of the identification information of camera module to be calibrated, then demarcating file is stored and come into force on mainboard, effectively The efficiency and accuracy of camera calibration are improved, and reduces calibration cost.
Detailed description of the invention
Fig. 1 is the basic procedure signal for the camera calibration method applied to terminal side that the application first embodiment provides Figure;
Fig. 2 is the basic flow for the camera calibration method applied to background server side that the application first embodiment provides Journey schematic diagram;
Fig. 3 is the refinement flow diagram for the camera calibration method that the application second embodiment provides;
Fig. 4 is the program module signal for the camera calibration device applied to terminal side that the application 3rd embodiment provides Figure;
Fig. 5 is the program mould for the camera calibration device applied to background server side that the application 3rd embodiment provides Block schematic diagram;
Fig. 6 is the structural schematic diagram for the electronic device that the application fourth embodiment provides.
Specific embodiment
To enable present invention purpose, feature, advantage more obvious and understandable, below in conjunction with the application Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality Applying example is only some embodiments of the present application, and not all embodiments.Based on the embodiment in the application, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
When in order to solve to re-scale the camera in terminal after terminal factory in the related technology, need to rely on special Calibration facility, caused calibration cost is high, calibration low efficiency and the defect for demarcating limited accuracy, the application first are real It applies example and provides a kind of camera calibration method applied to terminal, if Fig. 1 is camera calibration method provided in this embodiment Basic flow chart, which includes the following steps:
Step 101 judges whether terminal currently meets preset camera calibration condition.
Camera module is provided in terminal in the present embodiment, and according to the difference of use demand, camera module Quantity can be for individually or multiple.As a preferred embodiment, camera module can be depth camera, Such as 3D structure optical mode group etc..It should be understood that terminal ability triggering following when meeting preset condition is taken the photograph in the present embodiment As head demarcation flow.
Optionally, judge whether terminal currently meets preset camera calibration condition and include but is not limited in the present embodiment Following four mode:
Whether mode one judges terminal currently in camera module replacement completion status.
Specifically, in practical applications, user may replace and take the photograph because camera module is damaged in using terminal As head mould group, and there may be the difference such as hardware, instruction between the camera module and former camera module replaced, thus It results in the need for being re-scaled for replaced camera module.It should be understood that the present embodiment is being in camera When mould group replaces completion status, determination meets camera calibration condition.
Whether mode two judges terminal currently in mainboard replacement completion status.
Specifically, in practical applications, the demarcating file of depth camera is usually larger, and the band electrically erasable of camera module Programmable read only memory (EEPROM, Electrically Erasable Programmable read only memory) Provided memory space is not able to satisfy the storage of demarcating file, this is based on, by the calibration of camera module in the present embodiment File is stored on the mainboard of terminal, thus the camera when the damage of the mainboard of terminal needs replacing mainboard, in terminal The demarcating file of mould group is also at down state, needs again to carry out the demarcating file of the camera module on new mainboard Storage.It should be understood that the present embodiment is when in mainboard replacement completion status, determination meets camera calibration condition.
Mode three, judges whether target camera module is in performance upset condition.
Specifically, in practical applications, with the passage of terminal service life, the performance of terminal various aspects, which generates, to decline Subtract, so that the camera module of terminal may also will appear, performance is not normal, and the performance upset condition in the present embodiment refers to camera shooting Head performance is unable to satisfy the state of normal use demand, such as camera appearance effect is bad or can not be normally-open, should manage Solution, for the present embodiment when being in performance upset condition, determination meets camera calibration condition.
It should be noted that further, performance upset condition can also being in camera module and is associated with a duration Threshold value or frequency threshold value, namely judge target camera module be in performance upset condition duration or read-around ratio whether Reach preset threshold, when reaching the threshold value, determination meets camera calibration condition.
Mode four, judges whether terminal currently receives camera calibration instruction.
Specifically, in practical applications, the instruction that can also be inputted based on outside should to trigger camera calibration Understand, in the present embodiment when receiving camera calibration instruction, determination meets camera calibration condition.
Step 102, when meeting camera calibration condition, generate demarcating file acquisition request, and demarcating file obtained Request is sent to background server;It include the mark of target camera module to be calibrated in terminal in demarcating file acquisition request Information.
Specifically, it includes camera to be calibrated that terminal, which generates, when terminal needs to carry out camera calibration in the present embodiment The file acquisition of identification information is requested, wherein identification information can be sequence number (SN, the Serial of camera module Number), it is also possible to other mark letters that can be used for unique identification camera module in other embodiments certainly Breath.
Step 103 receives the target designation file for corresponding to identification information determined by background server.
Specifically, being provided with the demarcating file of camera module on the background server of the present embodiment, also will respectively image The identification information of head mould group and the corresponding relationship of demarcating file are stored on background server in the form of concordance list.It should illustrate , in a kind of preferred embodiment of the present embodiment, can be in each camera module when producing line demarcates completion, to this The identification information of camera module and corresponding demarcating file are stored in background server.Background server is receiving After demarcating file acquisition request, the identification information in request is extracted, and then determines corresponding demarcating file, and to terminal It makes a response.It should be understood that demarcating file can be three-dimensional scaling information, it may include BIN file and picture.
Optionally, it receives after the target designation file determined by background server corresponding to identification information includes: reception Platform server determines rule according to preset file, the identified target mark from the multiple demarcating files for corresponding to identification information Determine file.
Specifically, in the present embodiment, corresponding to the demarcating file of same camera module, there may be multiple.It is based on This, can determine Optimal Calibration file according to preset rules, to meet practical application request from multiple demarcating files.
It optionally, further include the performance state of target camera module to be calibrated in demarcating file acquisition request, It receives background server and determines rule according to preset file, it is identified from the multiple demarcating files for corresponding to identification information Target designation file includes: to receive background server to be based on performance state and preset performance state and calibration The mapping relations of file, the identified target designation file from the multiple demarcating files for corresponding to identification information.
Specifically, including the identification information and performance shape of camera module to be calibrated in demarcating file acquisition request State, wherein obtaining corresponding multiple demarcating files according to identification information and then determining multiple calibration based on performance state Target designation file in file, corresponding to the performance state.It should be understood that the performance shape in the present embodiment State is associated with model, the system version of terminal etc. of configuration camera module.By taking system version as an example, with the liter of terminal system Grade, also can adaptability software optimization is made with improving performance to camera module, to face different performance state, take the photograph As the demarcating file that head mould group is adapted to is also different, it is based on this, background server is stored with same camera module not With the demarcating file under performance state, so that terminal obtains the mark being best suitable under camera module current performance Optimal State Determine file.
Target designation file is stored in memory space on terminal mainboard, and controls target designation by step 104 File comes into force in target camera module.
Specifically, in the present embodiment, terminal corresponds to camera mould to be calibrated for what is requested to background server The demarcating file of the identification information of group, stores and is come into force on mainboard, effectively improve the efficiency and accuracy of camera calibration, And reduce calibration cost.It should be noted that the mode for storing demarcating file under different application scenarios can not Together, such as under the scene of replacement mainboard, the demarcating file of camera module is not present in the memory space of new mainboard, thus then Directly target designation file is stored, and the scene not normal in replacement camera module or camera module performance Under, due to being stored with former demarcating file in mainboard, so as to delete former demarcating file, and store target designation file.This Outside, it is also contemplated that, control demarcating file here, which comes into force can be, restarts terminal.It should also be noted that Demarcating file in the present embodiment, which comes into force, completes camera calibration, and by taking camera module is depth camera as an example, the calibration is then It is related to depth calibration and is aligned calibration with main camera.
Optionally, when terminal includes multiple and different camera module, by target designation file on terminal mainboard It includes: according to the identification information of target camera module and preset identification information and storage that storage is carried out in memory space The mapping relations of address determine the target storage address for corresponding to the identification information of target camera module;By target designation text Part is stored in the memory space corresponding to target storage address on terminal mainboard.
Specifically, being provided with multiple camera modules at the terminal, then the calibration text on mainboard to each camera is needed Part is stored, wherein the memory space on mainboard divided according to the identification information of camera module in the present embodiment, Then respectively by the demarcating file of each camera module, it is stored in the target storage address corresponding to its identification information.
It should be noted that in other embodiments of the present embodiment, it can also be by the mesh of single camera module It marks demarcating file and stores more parts in multiple target storage address on mainboard.
Optionally, before being stored in the memory space by target designation file on terminal mainboard, further includes: at end Calibration performance test is carried out to target designation file on end, obtains test result;Judge whether test result meets preset mark Performance requirement;Meet demarcate performance requirement when, execute target designation file in memory space on terminal mainboard into The step of row storage.
Specifically, in practical applications, the target designation file of background server response is got in this implementation in terminal Later, calibration performance test also is carried out to target designation file, to determine current acquired demarcating file in camera shooting to be calibrated Whether can be normally applicable in head mould group namely whether the performance of camera module can normally play, avoid demarcating file because hard The problem of part or software reason cannot be normally applicable for camera module, lead to camera module performance fault.
It is corresponding, a kind of camera calibration method applied to background server side, such as Fig. 2 are additionally provided in the present embodiment For the basic flow chart of the camera calibration method provided in this embodiment applied to background server side, the camera calibration side Method includes the following steps:
Step 201 receives demarcating file acquisition request transmitted by terminal;It include in terminal in demarcating file acquisition request The identification information of target camera module to be calibrated;
Step 202, based on the identification information and preset identification information and demarcating file in demarcating file acquisition request Mapping relations, determine correspond to target camera module identification information target designation file;
Target designation file is sent to terminal by step 203;Target designation file is used for terminal storage depositing on mainboard It stores up in space, and comes into force in target camera module.
Specifically, in the present embodiment, before camera module factory, can be marked in producing line to camera module It is fixed, and the identification information of camera module and its corresponding nominal data are stored in background server in the form of concordance list. It should be understood that the service engineer of background server can safeguard the concordance list, namely carry out data deletion, number According to increase, data modification etc..In addition, identification information can be the sequence number of camera module, background server is according to calibration text Sequence number in part acquisition request indexes corresponding demarcating file, the demarcating file is then sent to terminal, for terminal The demarcating file is stored and come into force on mainboard, the calibration to target camera module to be calibrated is completed, effectively mentions The efficiency and accuracy of camera calibration have been risen, and has reduced calibration cost.
Optionally, based on the identification information and preset identification information and demarcating file in demarcating file acquisition request Mapping relations, determine that corresponding to the target designation file of identification information of target camera module includes: based on demarcating file The mapping relations of identification information and preset identification information and demarcating file in acquisition request, determination are taken the photograph corresponding to target As multiple demarcating files of the identification information of head mould group;Rule is determined according to preset file, is determined from multiple demarcating files Target designation file.
Specifically, in the present embodiment, corresponding to the demarcating file of same camera module, there may be multiple.It is based on This, can determine Optimal Calibration file according to preset rules, to meet practical application request from multiple demarcating files.
It should be noted that further including in demarcating file acquisition request in a kind of optional embodiment of the present embodiment The performance state of target camera module to be calibrated then determines rule according to preset file, from multiple demarcating files Middle determining target designation file includes: the performance state and preset performance table according to the target camera module The mapping relations of present condition and demarcating file determine the target designation text for corresponding to performance state from multiple demarcating files Part.
Based on the technical solution of above-mentioned the embodiment of the present application, when terminal meets camera calibration condition, calibration text is generated Part acquisition request, and demarcating file acquisition request is sent to background server;Background server is asked according to demarcating file acquisition The identification information of target camera module to be calibrated, determines corresponding target designation file in terminal included by asking;Eventually End receives the target designation file for corresponding to identification information determined by background server, and by target designation file in terminal master It is stored in memory space on plate, then controls target designation file and come into force in target camera module.Pass through this Shen Please scheme implementation, terminal to background server request correspond to camera module to be calibrated identification information demarcating file, Then demarcating file is stored and is come into force on mainboard, effectively improve the efficiency and accuracy of camera calibration, and reduced Calibration cost.
Method in Fig. 3 is a kind of camera calibration method for refinement that the application second embodiment provides, the camera Scaling method includes:
Step 301, terminal be in camera module replacement completion status when, terminal generate include target to be calibrated takes the photograph As the demarcating file acquisition request of the identification information of head mould group.
In practical applications, user may replace camera mould because camera module is damaged in using terminal Group, and may have the difference such as hardware, instruction between the camera module and former camera module replaced, so as to cause needing It to be re-scaled for replaced camera module.It should be understood that the identification information in the present embodiment can be The sequence number (SN, Serial Number) of camera module.
Demarcating file acquisition request is sent to background server by step 302, terminal.
Step 303, background server based on identification information in received demarcating file acquisition request and preset The mapping relations of identification information and demarcating file determine the target designation text for corresponding to the identification information of target camera module Part.
Target designation file is sent to terminal by step 304, background server.
Specifically, in the present embodiment, before camera module factory, can be marked in producing line to camera module It is fixed, and the identification information of camera module and its corresponding nominal data are stored in background server in the form of concordance list, Background server indexes corresponding demarcating file according to the identification information in demarcating file acquisition request, then by calibration text Part is sent to terminal.
Step 305, terminal carry out calibration performance test to target designation file, obtain test result.
Step 306, terminal are believed when test result meets calibration performance requirement according to the mark of target camera module The mapping relations of breath and preset identification information and storage address determine the identification information for corresponding to target camera module Target storage address.
Specifically, in this implementation after the target designation file that terminal gets background server response, also to target Demarcating file carries out calibration performance test, to ensure that current acquired demarcating file can be normal in camera module to be calibrated It is applicable in namely the performance of camera module can be played normally.
In addition, being divided according to the identification information of camera module to the memory space on mainboard in the present embodiment, so Afterwards respectively by the demarcating file of each camera module, it is stored in the target storage address corresponding to its identification information.Certainly, another It, can also be by the target designation file of single camera module in multiple target storage address on mainboard in some embodiments Store more parts.
Step 307, terminal by target designation file on mainboard, corresponding to being carried out in the memory space of target storage address Storage, and control target designation file and come into force in target camera module.
Specifically, terminal is stored and come into force to demarcating file in the present embodiment, the calibration of camera module is completed, is had Effect improves the efficiency and accuracy of camera calibration, and reduces calibration cost.
The embodiment of the present application discloses a kind of camera calibration method, after the replacement of terminal camera mould group, generates calibration File acquisition request, and demarcating file acquisition request is sent to background server;Background server is obtained according to demarcating file The identification information of target camera module to be calibrated in included terminal, determines corresponding target designation file in request; Terminal receives the target designation file for corresponding to identification information determined by background server, and by target designation file in terminal It is stored in memory space on mainboard, then controls target designation file and come into force in target camera module.Pass through this The implementation of application scheme, terminal correspond to the calibration text of the identification information of camera module to be calibrated to background server request Then demarcating file is stored and is come into force on mainboard by part, effectively improve the efficiency and accuracy of camera calibration, and is reduced Calibration cost.
Fig. 4 is a kind of camera calibration device that the application 3rd embodiment provides.The camera calibration device is applied to Terminal side.As shown in figure 4, the camera calibration device specifically includes that
Judgment module 401, for judging whether terminal currently meets preset camera calibration condition;
Generation module 402, for when meeting camera calibration condition, generating demarcating file acquisition request, and will calibration File acquisition request is sent to background server;It include target camera mould to be calibrated in terminal in demarcating file acquisition request The identification information of group;
First receiving module 403, for receiving the target designation text determined by background server corresponding to identification information Part;
Control module 404 for storing target designation file in memory space on terminal mainboard, and controls Target designation file comes into force in target camera module.
The camera calibration process of terminal ability triggering following when meeting preset condition, meets item in terminal in the present embodiment Part and when needing to carry out camera calibration, terminal generate include camera to be calibrated identification information file acquisition request, In, identification information can be the sequence number of camera module.
In addition, the demarcating file of camera module is provided on the background server of the present embodiment, it also will each camera The identification information of mould group and the corresponding relationship of demarcating file are stored on background server in the form of concordance list, background server After receiving demarcating file acquisition request, the identification information in request is extracted, and then determines corresponding demarcating file, And terminal is made a response.
It should be noted that the mark corresponding to camera module to be calibrated that terminal will be requested to background server The demarcating file of information, stores and is come into force on mainboard, completes the calibration of camera, effectively improves the efficiency of camera calibration And accuracy, and reduce calibration cost.
In a kind of optional embodiment of the present embodiment, judgment module 401 is specifically used for judging whether terminal is currently located Completion status is replaced in camera module, wherein when in camera module replacement completion status, meets camera calibration item Part;Or, judging terminal currently whether in mainboard replacement completion status, wherein when in mainboard replacement completion status, meet Camera calibration condition;Or, judging whether target camera module is in performance upset condition, wherein not normal in performance When state, meet camera calibration condition;Or, judging whether terminal currently receives camera calibration instruction;It is taken the photograph receiving When instructing surely as leader, meet camera calibration condition.
In a kind of optional embodiment of the present embodiment, the first receiving module 403 is specifically used for receiving background server Rule is determined according to preset file, the identified target designation file from the multiple demarcating files for corresponding to identification information.
It further, further include wait mark in demarcating file acquisition request in a kind of optional embodiment of the present embodiment The performance state of fixed target camera module, so that the first receiving module 403 is specifically used for receiving background server base In performance state and the mapping relations of preset performance state and demarcating file, from corresponding to identification information Identified target designation file in multiple demarcating files.
In a kind of optional embodiment of the present embodiment, when terminal includes multiple and different camera module, control Module 404 in the memory space on terminal mainboard when being stored target designation file, specifically for being taken the photograph according to target As the identification information of head mould group and the mapping relations of preset identification information and storage address, determine that corresponding to target images The target storage address of the identification information of head mould group;By target designation file on terminal mainboard, correspond to target storage address Memory space in stored.
Further, in a kind of optional embodiment of the present embodiment, camera calibration device further include: test mould Block, for before being stored target designation file in memory space on terminal mainboard, at the terminal to target mark Determine file and carry out calibration performance test, obtains test result;Judge whether test result meets preset calibration performance requirement;? When meeting calibration performance requirement, the step of being stored target designation file in the memory space on terminal mainboard is executed.
Corresponding, also correspondence provides a kind of camera calibration device applied to background server side in the present embodiment. As shown in figure 5, the camera calibration device specifically includes that
Second receiving module 501, for receiving demarcating file acquisition request transmitted by terminal;Demarcating file acquisition request In include target camera module to be calibrated in terminal identification information;
Determining module 502, for based in demarcating file acquisition request identification information and preset identification information with The mapping relations of demarcating file determine the target designation file for corresponding to the identification information of target camera module;
Sending module 503, for target designation file to be sent to terminal;Target designation file is for terminal storage in master In memory space on plate, and come into force in target camera module.
Specifically, can be demarcated in producing line to camera module, and before camera module factory by camera The identification information of mould group and its corresponding nominal data are stored in background server in the form of concordance list, background server according to Sequence number in demarcating file acquisition request indexes corresponding demarcating file, and the demarcating file is then sent to terminal.
In a kind of optional embodiment of the present embodiment, determining module 502 is specifically used for asking based on demarcating file acquisition The mapping relations of identification information and preset identification information and demarcating file in asking determine and correspond to target camera mould Multiple demarcating files of the identification information of group;Rule is determined according to preset file, and target mark is determined from multiple demarcating files Determine file.
It further, further include wait mark in demarcating file acquisition request in a kind of optional embodiment of the present embodiment The performance state of fixed target camera module, determining module 502 is determining rule according to preset file, from multiple marks When determining to determine target designation file in file, specifically for the performance state according to the target camera module, and The mapping relations of preset performance state and demarcating file determine from multiple demarcating files and correspond to performance state Target designation file.
It should be noted that the camera calibration method in the first and second embodiment can be taken the photograph based on provided in this embodiment As the realization of head caliberating device, those of ordinary skill in the art can be clearly understood that, for convenience and simplicity of description, this The specific work process of camera calibration device described in embodiment, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
The camera calibration device according to provided by the present embodiment generates mark when terminal meets camera calibration condition Determine file acquisition request, and demarcating file acquisition request is sent to background server;Background server is obtained according to demarcating file The identification information for taking target camera module to be calibrated in terminal included in request determines corresponding target designation text Part;Terminal receives the target designation file for corresponding to identification information determined by background server, and target designation file is existed It is stored in memory space on terminal mainboard, then controls target designation file and come into force in target camera module.It is logical The implementation of application scheme is crossed, terminal corresponds to the calibration of the identification information of camera module to be calibrated to background server request Then demarcating file is stored and is come into force on mainboard by file, effectively improve the efficiency and accuracy of camera calibration, and is dropped Low calibration cost.
Referring to Fig. 6, Fig. 6 is a kind of electronic device that the application fourth embodiment provides.The electronic device can be used for reality Camera calibration method in existing previous embodiment.As shown in fig. 6, the electronic device specifically includes that
It memory 601, processor 602, bus 603 and is stored on memory 601 and can be run on processor 602 Computer program, memory 601 and processor 602 are connected by bus 603.It is real when processor 602 executes the computer program Camera calibration method in existing previous embodiment.Wherein, the quantity of processor can be one or more.
Memory 601 can be high random access memory body (RAM, Random Access Memory) memory, It can be non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 601 can for storing Program code is executed, processor 602 is coupled with memory 601.
Further, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages Medium can be in the electronic device being set in the various embodiments described above, which can be earlier figures 6 Memory in illustrated embodiment.
It is stored with computer program on the computer readable storage medium, which realizes aforementioned reality when being executed by processor Apply the camera calibration method in example.Further, the computer can storage medium can also be USB flash disk, mobile hard disk, read-only deposit The various media that can store program code such as reservoir (ROM, Read-Only Memory), RAM, magnetic or disk.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple module or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or module It connects, can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a readable storage medium storing program for executing, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) execute each embodiment method of the application whole or Part steps.And readable storage medium storing program for executing above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can be with Store the medium of program code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are retouching to camera calibration method provided herein, electronic device and computer readable storage medium It states, for those skilled in the art, according to the thought of the embodiment of the present application, can in specific embodiments and applications There is change place, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (11)

1. a kind of camera calibration method is applied to terminal characterized by comprising
Judge whether terminal currently meets preset camera calibration condition;
When meeting the camera calibration condition, demarcating file acquisition request is generated, and by the demarcating file acquisition request It is sent to background server;It include target camera module to be calibrated in the terminal in the demarcating file acquisition request Identification information;
Receive the target designation file for corresponding to the identification information determined by the background server;
The target designation file is stored in the memory space on the terminal mainboard, and controls the target designation File comes into force in the target camera module.
2. camera calibration method according to claim 1, which is characterized in that described to judge whether terminal currently meets pre- If camera calibration condition include:
Judge terminal currently whether in camera module replacement completion status;Shape is completed in camera module replacement When state, meet the camera calibration condition;
Or, judging terminal currently whether in mainboard replacement completion status;When in mainboard replacement completion status, meet The camera calibration condition;
Or, judging whether the target camera module is in performance upset condition;It is full when being in the performance upset condition The foot camera calibration condition;
Or, judging whether the terminal currently receives camera calibration instruction;When receiving camera calibration instruction, Meet the camera calibration condition.
3. camera calibration method according to claim 1, which is characterized in that in the terminal include multiple and different take the photograph It is described the target designation file is subjected to storage in the memory space on the terminal mainboard to include: when as head mould group
According to the mapping relations of the identification information of the target camera module and preset identification information and storage address, Determine the target storage address for corresponding to the identification information of the target camera module;
By the target designation file on the terminal mainboard, carried out in the memory space corresponding to the target storage address Storage.
4. camera calibration method according to any one of claim 1 to 3, which is characterized in that described by the target Before demarcating file is stored in the memory space on the terminal mainboard, further includes:
Calibration performance test is carried out to the target designation file on the terminal, obtains test result;
Judge whether the test result meets preset calibration performance requirement;
When meeting the calibration performance requirement, the storage by the target designation file on the terminal mainboard is executed The step of being stored in space.
5. a kind of camera calibration method is applied to background server characterized by comprising
Receive demarcating file acquisition request transmitted by terminal;It include in the terminal in the demarcating file acquisition request wait mark The identification information of fixed target camera module;
Mapping based on the identification information in the demarcating file acquisition request and preset identification information and demarcating file is closed System determines the target designation file for corresponding to the identification information of the target camera module;
The target designation file is sent to the terminal;The target designation file is for the terminal storage in mainboard Memory space in, and come into force in the target camera module.
6. camera calibration method according to claim 5, which is characterized in that described to be asked based on demarcating file acquisition The mapping relations of identification information and preset identification information and demarcating file in asking determine that corresponding to the target images The target designation file of identification information of head mould group includes:
Mapping based on the identification information in the demarcating file acquisition request and preset identification information and demarcating file is closed System determines the multiple demarcating files for corresponding to the identification information of the target camera module;
Rule is determined according to preset file, and target designation file is determined from the multiple demarcating file.
7. camera calibration method according to claim 6, which is characterized in that also wrapped in the demarcating file acquisition request Include the performance state of target camera module to be calibrated, it is described that rule is determined according to preset file, from the multiple Determine that target designation file includes: in demarcating file
Performance state and preset performance state and demarcating file based on the target camera module are reflected Relationship is penetrated, target designation file is determined from the multiple demarcating file.
8. a kind of camera calibration device is applied to terminal characterized by comprising
Judgment module, for judging whether terminal currently meets preset camera calibration condition;
Generation module generates demarcating file acquisition request for when meeting the camera calibration condition, and by the calibration File acquisition request is sent to background server;It include target to be calibrated in the terminal in the demarcating file acquisition request The identification information of camera module;
First receiving module, for receiving the target designation text determined by the background server corresponding to the identification information Part;
Control module for storing the target designation file in the memory space on the terminal mainboard, and is controlled The target designation file is made to come into force in the target camera module.
9. a kind of camera calibration device is applied to background server characterized by comprising
Second receiving module, for receiving demarcating file acquisition request transmitted by terminal;In the demarcating file acquisition request Identification information including target camera module to be calibrated in the terminal;
Determining module, for based on the identification information and preset identification information and mark in the demarcating file acquisition request Determine the mapping relations of file, determines the target designation file for corresponding to the identification information of the target camera module;
Sending module, for the target designation file to be sent to the terminal;The target designation file is used for the end It holds in the memory space being stored on mainboard, and comes into force in the target camera module.
10. a kind of electronic device, comprising: memory, processor and be stored on the memory and can be on the processor The first computer program or second computer program of operation, which is characterized in that the processor executes first computer When program, realize such as the step in any one of Claims 1-4 the method, processor execution second meter When calculation machine program, realize such as the step in any one of claim 5 to 7 the method.
11. a kind of computer readable storage medium is stored thereon with the first computer program or second computer program, feature It is, when first computer program is executed by processor, realizes such as any one the method in Claims 1-4 In step, when the second computer program is executed by processor, realize as described in any one in claim 5 to 7 Step in method.
CN201910421682.6A 2019-05-21 2019-05-21 Camera calibration method and device and computer readable storage medium Active CN110136209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910421682.6A CN110136209B (en) 2019-05-21 2019-05-21 Camera calibration method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910421682.6A CN110136209B (en) 2019-05-21 2019-05-21 Camera calibration method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110136209A true CN110136209A (en) 2019-08-16
CN110136209B CN110136209B (en) 2021-04-20

Family

ID=67571949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910421682.6A Active CN110136209B (en) 2019-05-21 2019-05-21 Camera calibration method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110136209B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827363A (en) * 2019-11-08 2020-02-21 深圳深岚视觉科技有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111311690A (en) * 2020-02-19 2020-06-19 深圳蚂里奥技术有限公司 Calibration method and device of depth camera, terminal and computer storage medium
CN112485571A (en) * 2020-11-24 2021-03-12 上汽通用五菱汽车股份有限公司 Calibration method, calibration system, target electrical appliance and storage medium
CN114486232A (en) * 2020-11-12 2022-05-13 珠海优特电力科技股份有限公司 Valve state calibration method and device, target detection equipment and storage medium
CN115250270A (en) * 2022-07-28 2022-10-28 中国银行股份有限公司 File application method based on 5G message and related equipment
CN115396653A (en) * 2022-08-24 2022-11-25 歌尔科技有限公司 Calibration method, system, device and medium for AR glasses

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034236A (en) * 2010-12-01 2011-04-27 北京航空航天大学 Multi-camera layered calibration method based on one-dimensional object
CN103218820A (en) * 2013-04-22 2013-07-24 苏州科技学院 Camera calibration error compensation method based on multi-dimensional characteristics
US20160104284A1 (en) * 2014-10-10 2016-04-14 Facebook, Inc. Post-manufacture camera calibration
CN108769665A (en) * 2018-04-28 2018-11-06 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and computer readable storage medium
CN108921903A (en) * 2018-06-28 2018-11-30 Oppo广东移动通信有限公司 Camera calibration method, device, computer readable storage medium and electronic equipment
CN109739574A (en) * 2018-12-29 2019-05-10 上海创功通讯技术有限公司 Data capture method and electronic equipment, scaling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034236A (en) * 2010-12-01 2011-04-27 北京航空航天大学 Multi-camera layered calibration method based on one-dimensional object
CN103218820A (en) * 2013-04-22 2013-07-24 苏州科技学院 Camera calibration error compensation method based on multi-dimensional characteristics
US20160104284A1 (en) * 2014-10-10 2016-04-14 Facebook, Inc. Post-manufacture camera calibration
CN108769665A (en) * 2018-04-28 2018-11-06 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and computer readable storage medium
CN108921903A (en) * 2018-06-28 2018-11-30 Oppo广东移动通信有限公司 Camera calibration method, device, computer readable storage medium and electronic equipment
CN109739574A (en) * 2018-12-29 2019-05-10 上海创功通讯技术有限公司 Data capture method and electronic equipment, scaling method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827363A (en) * 2019-11-08 2020-02-21 深圳深岚视觉科技有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111311690A (en) * 2020-02-19 2020-06-19 深圳蚂里奥技术有限公司 Calibration method and device of depth camera, terminal and computer storage medium
CN111311690B (en) * 2020-02-19 2024-02-06 深圳蚂里奥技术有限公司 Calibration method and device of depth camera, terminal and computer storage medium
CN114486232A (en) * 2020-11-12 2022-05-13 珠海优特电力科技股份有限公司 Valve state calibration method and device, target detection equipment and storage medium
CN114486232B (en) * 2020-11-12 2023-09-22 珠海优特电力科技股份有限公司 Valve state calibration method and device, target detection equipment and storage medium
CN112485571A (en) * 2020-11-24 2021-03-12 上汽通用五菱汽车股份有限公司 Calibration method, calibration system, target electrical appliance and storage medium
CN115250270A (en) * 2022-07-28 2022-10-28 中国银行股份有限公司 File application method based on 5G message and related equipment
CN115250270B (en) * 2022-07-28 2024-02-23 中国银行股份有限公司 File application method based on 5G message and related equipment
CN115396653A (en) * 2022-08-24 2022-11-25 歌尔科技有限公司 Calibration method, system, device and medium for AR glasses

Also Published As

Publication number Publication date
CN110136209B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN110136209A (en) A kind of camera calibration method, device and computer readable storage medium
AU2006282762B2 (en) Reconstruction render farm used in motion capture
CN110290189A (en) A kind of container cluster management method, apparatus and system
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
CN109543455A (en) A kind of data archiving method and device of block chain
CN110231987A (en) A kind of data processing method and relevant apparatus
CN108057249A (en) A kind of business data processing method and device
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
CN108830093A (en) Management method, server and the terminal device of terminal device operating right
CN105808374B (en) A kind of snap processing method and relevant device
CN112988535B (en) Test method, device, storage medium and program product for data push service
CN105959633A (en) Video transmission method and device
CN109739684A (en) The copy restorative procedure and device of distributed key value database based on vector clock
CN108776917A (en) A kind of synchronization processing method and device of virtual three-dimensional space
CN108764100A (en) A kind of goal behavior detection method and server
CN102724403A (en) Method for determining shooting sheet number and shooting device
CN108549592A (en) A kind of monitoring method and monitoring device, application server of database connection pool
CN107995274A (en) A kind of information cuing method and front-end server based on business scenario coding
CN108765084A (en) A kind of synchronization processing method and device of virtual three-dimensional space
CN108459910A (en) A kind of method and apparatus for deleting resource
CN109144551A (en) Equipment firmware update and system under a kind of multi-layer networking mode
WO2015120797A1 (en) Method and apparatus for testing compatibility of 3d engine
CN109669807A (en) The method of calibration and device of business event, processor, storage medium
CN110189380A (en) Optimization method, structure optical mode group and the storage medium of nominal data
CN110134607A (en) A kind of app automated testing method and device

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