CN113670201A - Calibration data generation method and device and calibration data generation system - Google Patents

Calibration data generation method and device and calibration data generation system Download PDF

Info

Publication number
CN113670201A
CN113670201A CN202110977279.9A CN202110977279A CN113670201A CN 113670201 A CN113670201 A CN 113670201A CN 202110977279 A CN202110977279 A CN 202110977279A CN 113670201 A CN113670201 A CN 113670201A
Authority
CN
China
Prior art keywords
stepping motor
abf
information
move
calibration data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110977279.9A
Other languages
Chinese (zh)
Inventor
陈�峰
徐伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Micro Image Software Co ltd
Original Assignee
Hangzhou Micro Image Software 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 Hangzhou Micro Image Software Co ltd filed Critical Hangzhou Micro Image Software Co ltd
Priority to CN202110977279.9A priority Critical patent/CN113670201A/en
Publication of CN113670201A publication Critical patent/CN113670201A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

The embodiment of the invention provides a calibration data generation method, a calibration data generation device and a calibration data generation system, relates to the technical field of calibration of ABF devices, and is applied to a control end which is respectively communicated with a position measurement device and the ABF device to be calibrated, wherein the position measurement device is used for acquiring the position information of a stepping motor in the ABF device, and the scheme comprises the following steps: controlling the stepping motor to move, and acquiring the position information of the stepping motor in real time through a position measuring device; when the stepping motor is judged to move a specified distance based on the acquired position information, determining the position of the stepping motor as a specified position, and acquiring a target coding value generated by a coding chip in the ABF device; and generating a pair of calibration data based on the calibration position and the target code value, and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position. By adopting the scheme of the embodiment of the invention, the efficiency of obtaining the calibration data can be improved.

Description

Calibration data generation method and device and calibration data generation system
Technical Field
The invention relates to the technical field of ABF device calibration, in particular to a calibration data generation method, a calibration data generation device and a calibration data generation system.
Background
An ABF (Auto Back Focus) device is a device for achieving focusing of a camera. Specifically, the ABF device comprises a detector, a sensor, a stepping motor, a coding chip and the like which belong to a photosensitive element, and the detector and the sensor are driven to move through the movement of the stepping motor, so that automatic focusing is realized. In the focusing process, the coding chip converts an electric signal input by the sensor into a corresponding coding value, determines the current position of the stepping motor according to the coding value, and controls the stepping motor to move based on the current position so as to enable the detector to move to the focus position, thereby realizing focusing.
In order to achieve fast and accurate focusing, the ABF device needs to acquire the current position information of the stepping motor in real time according to the encoded value output by the encoding chip, which means that the corresponding relationship between the encoded value output by the encoder and the position information of the stepping motor needs to be established in advance. Thus, calibration of the ABF device is required prior to shipment.
In the related art, calibration data for calibrating the ABF device is mainly acquired in a manual recording manner. In brief, after the stepping motor is manually adjusted to move to a preset fixed point with known position information, the encoding value output by the encoding chip is recorded, so that a set of calibration data containing the position information of the fixed point and the output encoding value is generated. The calibration data needs to be manually acquired in the related art, so that the efficiency of acquiring the calibration data is low.
When the ABF device is calibrated, the calibration data can be acquired only by manually adjusting the stepping motor to move to a preset fixed point, so that the efficiency of acquiring the calibration data for calibrating the ABF device is low.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a calibration data generating method, so as to improve efficiency of obtaining calibration data for calibrating an ABF device. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a calibration data generating method, which is applied to a control end, where the control end is respectively in communication with a position measuring device and an ABF device to be calibrated, and the position measuring device is configured to measure position information of a stepping motor in the ABF device, and the method includes:
controlling the stepping motor to move, and acquiring the position information of the stepping motor in real time through the position measuring device;
when the stepping motor is judged to move a specified distance based on the acquired position information, determining that the position of the stepping motor is a standard position, and acquiring a target coding value generated by a coding chip in the ABF device; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position;
and generating a pair of calibration data based on the calibration position and the target code value, and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position.
Optionally, in an embodiment, the specified distance is a minimum adjustable distance of a back focus of a preset shooting lens;
optionally, in an embodiment, the determining that the stepping motor moves by the designated distance based on the acquired position information includes:
calculating a distance between the position indicated by the acquired position information and the start position; wherein the starting position is a position where the stepping motor starts to move;
if the calculated distance is smaller than the designated distance, continuing to control the stepping motor to move;
if the calculated distance is larger than the designated distance, controlling the stepping motor to move reversely;
and if the calculated distance is equal to the designated distance, stopping moving the stepping motor.
Optionally, in an embodiment, before the controlling the stepping motor to move and acquiring the position information of the stepping motor in real time by the position measuring device, the method further includes:
controlling the stepping motor to move;
when a zero position signal sent by a zero position detection part in the ABF device is received, the stepping motor is judged to move to a zero position, and the position information measured by the position measuring device is controlled to return to zero.
Optionally, in an embodiment, the position measuring device is an altimeter, and a thimble of the altimeter is rigidly connected to the stepping motor.
Optionally, in an embodiment, the obtaining, in real time, the position information of the stepping motor by the position measuring device includes:
and receiving the height value fed back by the height meter in real time as the position information of the stepping motor.
Optionally, in an embodiment, the controlling the stepping motor to move includes:
and controlling the stepping motor to move by Pulse Width Modulation (PWM).
Optionally, in an embodiment, after the step motor moves to the maximum movable position, the step motor further includes:
writing the generated pairs of calibration data to memory locations within the ABF device.
In a second aspect, an embodiment of the present invention provides a calibration data generating system, including a control end and a position measuring device; the control end is communicated with the position measuring device and the ABF device to be calibrated;
the position measuring device is used for measuring the position information of the stepping motor in the ABF device and sending the measured position information to the control end in real time;
the control end is used for controlling the stepping motor to move, acquiring position information sent by the position measuring device in real time, determining the position of the stepping motor as a standard position when the stepping motor is judged to move a specified distance based on the acquired position information, acquiring a target code value generated by a code chip in the ABF device, generating a pair of calibration data based on the standard position and the target code value, and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position.
Optionally, in an embodiment, the specified distance is a minimum adjustable distance of a back focus of a preset shooting lens;
optionally, in an embodiment, the control end is specifically configured to calculate a distance between a position indicated by the obtained position information and the start position; if the calculated distance is smaller than the designated distance, continuing to control the stepping motor to move; if the calculated distance is larger than the designated distance, controlling the stepping motor to move reversely; stopping moving the stepping motor if the calculated distance is equal to the designated distance; wherein the starting position is a position where the stepping motor starts to move.
Optionally, in an embodiment, the control end is further configured to control the stepping motor to move before the control of the stepping motor to move and the position information of the stepping motor is obtained in real time by the position measurement device; when a zero position signal sent by a zero position detection part in the ABF device is received, the stepping motor is judged to move to a zero position, and the position information measured by the position measuring device is controlled to return to zero.
Optionally, in an embodiment, the position measuring device is an altimeter, and a thimble of the altimeter is rigidly connected to the stepping motor.
Optionally, in an embodiment, the control end is specifically configured to receive, in real time, an altitude value fed back by the altimeter, as the position information of the stepping motor.
Optionally, in an embodiment, the control terminal is specifically configured to control the stepping motor to move through pulse width modulation PWM.
Optionally, in an embodiment, the control terminal is specifically configured to write each pair of generated calibration data to a storage unit in the ABF device after the stepping motor moves to the maximum movable position.
Optionally, in an embodiment, the system further includes: a display unit;
the position measuring device is also used for sending the acquired position information to the display unit in real time;
and the display unit is used for displaying the received position information.
In a third aspect, an embodiment of the present invention provides a calibration data generating device, which is applied to a control end, where the control end is respectively in communication with a position measuring device and an ABF device to be calibrated, and the position measuring device is configured to measure position information of a stepping motor in the ABF device, and the method includes:
the information acquisition module is used for controlling the stepping motor to move and acquiring the position information of the stepping motor in real time through the position measurement device;
the code value acquisition module is used for determining the position of the stepping motor as a standard position and acquiring a target code value generated by a code chip in the ABF device when the stepping motor is judged to move a specified distance based on the acquired position information; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position;
and the data generation module is used for generating a pair of calibration data based on the calibration position and the target code value and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position.
Optionally, in an embodiment, the specified distance is a minimum adjustable distance of a back focus of a preset shooting lens;
optionally, in an embodiment, the code value obtaining module is specifically configured to calculate a distance between a position indicated by the obtained position information and a starting position; if the calculated distance is smaller than the designated distance, continuing to control the stepping motor to move; if the calculated distance is larger than the designated distance, controlling the stepping motor to move reversely; stopping moving the stepping motor if the calculated distance is equal to the designated distance; wherein the starting position is a position where the stepping motor starts to move.
Optionally, in an embodiment, the apparatus further includes: the zeroing module is used for controlling the stepping motor to move before the information acquisition module executes the control of the stepping motor to move and the position information of the stepping motor is acquired in real time through the position measurement device; when a zero position signal sent by a zero position detection part in the ABF device is received, the stepping motor is judged to move to a zero position, and the position information measured by the position measuring device is controlled to return to zero.
Optionally, in an embodiment, the position measuring device is an altimeter, and a thimble of the altimeter is rigidly connected to the stepping motor.
Optionally, in an embodiment, the information obtaining module is specifically configured to receive, in real time, an altitude value fed back by the altimeter, as the position information of the stepping motor.
Optionally, in an embodiment, the information obtaining module is specifically configured to control the stepping motor to move through pulse width modulation PWM.
Optionally, in an embodiment, the apparatus further includes: a data writing module for writing the generated pairs of calibration data to a memory location within the ABF device after the stepper motor is moved to a maximum movable position.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the first aspect when executing the program stored in the memory.
In a fifth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the first aspect.
The embodiment of the invention has the following beneficial effects:
the calibration data generation method provided by the embodiment of the invention is applied to a control end, wherein the control end is respectively communicated with a position measuring device and an ABF device to be calibrated, the position measuring device is used for acquiring the position information of a stepping motor in the ABF device, because the position measuring device can acquire the position information of the stepping motor in the ABF device, when the control end controls the stepping motor to move, the position measuring device can acquire the position information of the stepping motor in real time, and further determines the position where the stepping motor is located as a nominal position when it is determined that the stepping motor moves a specified distance based on the acquired position information, and acquiring a target code value generated by a code chip in the ABF device, generating a pair of calibration data based on the calibration position and the target code value, and returning to the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by referring to these drawings.
FIG. 1 is a flow chart of the results of the ABF device;
FIG. 2 is a flowchart of a method for generating annotation data according to an embodiment of the present invention;
FIG. 3 is another flowchart of a method for generating annotation data according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a system for generating annotation data according to an embodiment of the present invention;
FIG. 5 is an overall framework diagram of a method for generating annotation data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an annotation data generation apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention are within the scope of the present invention.
In order to solve the problem of low efficiency of obtaining calibration data for calibration of an ABF device, embodiments of the present invention provide a calibration data generation method, a calibration data generation device, and a calibration data generation system.
The ABF device will first be briefly described. The ABF apparatus is an apparatus for realizing focusing of a camera, and is a structural schematic diagram of an ABF apparatus, as shown in fig. 1. The ABF device includes a zero position detecting part, a coding chip, a structural linkage, a stepping motor, a flash memory, and an information generating part, wherein, in addition to the parts shown in fig. 1, the ABF device further includes a detector belonging to a photosensitive element and a sensor for detecting information generated by the information generating part and converting the detected information into an electrical signal.
Among the above-mentioned each part, information generation part and detector pass through the structure aggregate unit and are connected with step motor, and when step motor moved in the stroke scope through rotating, drive information generation part and detector and remove together. The information generating component is used for generating information which can be detected in the whole stroke, in one example, the information generating component can be a magnetic grid, and the information which is detected by the sensor is a magnetic field generated by the magnetic grid. The sensor may generate an electrical signal based on the detected information and input the generated electrical signal to the encoding chip, and the encoding chip may convert the electrical signal input by the sensor into an encoded value. Alternatively, in one implementation, the sensor and the encoding chip may be combined into one component, for example, the magnetic sensor and the magnetic encoding chip may be combined as a magnetic encoding chip. As can be seen from the above, there is a one-to-one correspondence between the position of the stepper motor, the position of the detector, the position of the information generating element, the information generated by the information generating element at the sensor, the signal detected by the sensor, the electrical signal generated by the sensor, and the code value generated by the code chip, that is, in the ABF device, when the position of the stepper motor is fixed, the position of the detector, the position of the information generating component, the signal detected by the sensor, the electric signal generated by the sensor and the code value generated by the code chip in the ABF device are all unchanged, when the position of the stepping motor is changed, the position of the detector, the position of the information generating member, the signal detected by the sensor, the electrical signal generated by the sensor, and the code value generated by the code chip in the ABF device also vary.
The position of the detector, the position of the information generating component and the position of the stepping motor are in one-to-one correspondence, and the relative positions among the position of the detector, the position of the information generating component and the position of the stepping motor are not changed, so that the position of the detector and the position of the information generating component can be identical to the position of the stepping motor, namely the position of the stepping motor is used as the positions of the detector and the information generating component.
For the ABF device, the focusing process of the ABF device is essentially a process of adjusting the position of the detector, so that the detector is located at the position of the back focus at the back end of the lens. For example, in the process of photographing/shooting, the lens on the camera often needs to be adjusted, and the adjustment of the lens often means that the focal point of the lens inside the camera, that is, the back focal point at the rear end of the lens, will be moved.
If the position of the detector is to be adjusted, the position of the detector is necessarily acquired first. Because the position of the detector is equal to the position of the stepping motor, and the position of the stepping motor corresponds to the code value output by the code chip one by one, the position of the stepping motor can be determined according to the code value output by the code chip at any time only by establishing the corresponding relation between the position of the stepping motor and the code value output by the code chip in advance, namely the position of the detector is determined. The flash memory in the ABF device in fig. 1 is used to store the pre-established correspondence between the position of the stepping motor and the output code value of the code chip.
In the ABF device, during focusing, a sensor detects information generated by an information generating component at a certain position (equivalent to the position of a detector), generates a corresponding electric signal and inputs the electric signal to an encoding chip. The coding chip converts the electric signal input by the sensor into a corresponding coding value, determines a position corresponding to the coding value generated by the coding chip as the current position of the detector according to the corresponding relation between the position of the stepping motor (the position of the equivalent detector) stored in the flash memory and the output coding value of the coding chip, and controls the stepping motor to move based on the current position of the detector so that the detector moves to a back focus position, thereby realizing focusing.
In order to establish the corresponding relationship between the position of the stepping motor and the output code value of the code chip in advance, the ABF device needs to be calibrated in advance. In the related art, calibration data for calibrating the ABF device is mainly acquired in a manual recording manner. In brief, after the stepping motor is manually adjusted to move to a preset fixed point with known position information, the encoding value output by the encoding chip is recorded, so that a pair of calibration data comprising the position information of the fixed point and the output encoding value is generated. The efficiency of acquiring calibration data is low due to the need of manually acquiring calibration data in the related art.
Further, for ABF devices, the total stroke of the stepper motor therein is typically small, e.g., typically the total stroke of the stepper motor is 5mm, and the minimum stroke of a single movement of the stepper motor is only 0.001 mm. This means that the error is required to be controlled to a small extent each time the movement of the stepping motor is manually adjusted, and in the case of a stepping motor with a minimum stroke of 0.001mm, the error in manually adjusting the movement of the stepping motor is required to be less than 0.001mm, which is obviously difficult.
In order to improve the efficiency of obtaining calibration data, an embodiment of the present invention provides a calibration data generating method, which is applied to a control end, where the control end is respectively in communication with a position measuring device and an ABF device to be calibrated, and the position measuring device is used to obtain position information of a stepping motor in the ABF device, and the method includes:
controlling the stepping motor to move, and acquiring the position information of the stepping motor in real time through a position measuring device;
when the stepping motor is judged to move a specified distance based on the acquired position information, determining the position of the stepping motor as a specified position, and acquiring a target coding value generated by a coding chip in the ABF device; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at a calibration position;
based on the calibration position and the target code value, a pair of calibration data is generated.
According to the scheme provided by the embodiment of the invention, the position measuring device can acquire the position information of the stepping motor in the ABF device, so that when the control end controls the stepping motor to move, the position information of the stepping motor can be acquired in real time through the position measuring device, further, when the stepping motor is judged to move for a specified distance based on the acquired position information, the position where the stepping motor is located is determined to be a standard position, a target code value generated by a code chip in the ABF device is acquired, a pair of calibration data is generated based on the standard position and the target code value, and the step of controlling the stepping motor to move is returned until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
It should be noted that, in the embodiment of the present invention, the control end may be any electronic device with data processing capability, such as a personal computer, a server, a mobile phone, and the like. In addition, the calibration data generation method provided by the embodiment of the invention can be realized by software, hardware or a combination of software and hardware.
The following describes a calibration data generation method, a calibration data generation device, and a calibration data generation system according to embodiments of the present invention with reference to the accompanying drawings.
As shown in fig. 2, a calibration data generating method provided for an embodiment of the present invention is applied to a control end, where the control end is respectively in communication with a position measuring device and an ABF device to be calibrated, and the position measuring device is used to measure position information of a stepping motor in the ABF device, and the method includes:
s201, controlling a stepping motor to move, and acquiring position information of the stepping motor in real time through a position measuring device;
the position information obtained by measuring the stepping motor by the position measuring device can be a distance value of the current position of the stepping motor relative to the zero position of the stepping motor. The ABF device can determine whether the stepping motor is at the zero position through a zero detection component inside the ABF device.
For example, when the stepping motor is at the zero position, the position information measured by the position measuring device is 0 mm; when the stepping motor moves forwards by 0.05mm, the position information measured by the position measuring device is 0.05 mm; when the stepping motor continues to move forwards for 0.05mm, the position information measured by the position measuring device is 0.1 mm; when the stepping motor moves in the reverse direction by 0.02mm, the position information measured by the position measuring device is 0.08 mm. Wherein, the forward moving finger increases the movement of the distance from the zero point position, and the backward moving finger decreases the movement of the distance from the zero point position.
Optionally, the control end may control the stepping motor to move through pulse width modulation PWM. Pulse width modulation is a very effective technique for controlling an analog circuit by using digital output of a microprocessor, and is widely applied to multiple fields of measurement, communication, power control, conversion and the like. In the embodiment of the invention, the control end can control the time length of single rotation of the stepping motor by controlling the width of the output pulse, so as to control the distance of single movement of the stepping motor, thereby realizing accurate control of the distance of single movement of the stepping motor.
In the moving process of the stepping motor, the position measuring device can measure the position information of the stepping motor in real time, and then the control end can obtain the position information of the stepping motor from the position measuring device in real time.
Optionally, in an implementation manner, the position measuring device is an altimeter, where the altimeter is a high-precision instrument with various measuring ranges designed for numerous industrial application fields and detection mechanisms. The method is widely applicable to various applications, including the fields of precision workpiece detection, multipoint detection, measuring equipment monitoring, position measurement and the like.
In the embodiment of the invention, the thimble of the height meter is rigidly connected with the stepping motor, so that the stepping motor can drive the thimble to move when moving, and the movement of the thimble can drive the change of the height value measured by the height meter. Therefore, each position of the stepping motor corresponds to the height value measured by the height gauge. Therefore, the height value fed back by the altimeter can be received in real time and used as the position information of the stepping motor.
S202, when the step motor is judged to move a designated distance based on the acquired position information, determining the position of the step motor as a designated position, and acquiring a target code value generated by a code chip in the ABF device; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at a calibration position;
the specified distance is the distance between the position of the stepping motor before moving and the position of the stepping motor after moving. The size of the designated distance can be determined according to the requirement and the scene. In one implementation, the specified distance may be a minimum adjustable distance that presets a back focus of the imaging lens. The preset camera lens can be a camera lens used by a camera using an ABF device subsequently, or any camera lens determined according to actual requirements. The minimum adjustable distance of the back focus of the preset camera lens is the minimum movable distance of the back focus of the preset camera lens when the preset camera lens is adjusted.
For example, if the minimum adjustable distance of the back focus of the camera lens is preset to be 0.001mm, the specified distance may be 0.001mm, that is, after it is determined that the stepping motor moves by 0.001mm based on the acquired position information, the position where the stepping motor is located is determined to be the standard position.
In an implementation manner, the calibration position may be an adjustable position of a back focus of the preset imaging lens. The adjustable position of the back focus of the preset camera lens is a position where the back focus of the preset camera lens is possibly located after the preset camera lens is adjusted. For example, in the entire adjustable stroke of the back focus of the preset photographing lens, a plurality of position points are divided in the entire stroke, wherein each position is a position point to which the back focus of the preset photographing lens can be adjusted, and each position point is an adjustable position of the back focus of the preset photographing lens.
In the case where the calibration position is an adjustable position of a back focus of the preset imaging lens, the specified distance may be a distance between adjacent adjustable positions.
In one implementation, the calibration positions may be determined one by one according to the minimum measurement range within the total stroke of the stepper motor. For example, if the total stroke of the stepping motor is 5mm and the minimum range is 0.001mm, the calibration position may be any position with a precision of 0.001mm within the range of 0mm to 5mm, such as 0.00mm, 0.001mm, 0.002mm, 0.103mm, 4.999mm, 5mm, etc.
As can be seen from the description of the above ABF device, the encoding chip in the ABF device generates the encoding value based on the electric signal input by the sensor in the ABF device, and the electric signal input by the sensor is the electric signal generated by the sensor when the sensor detects the information generated by the information generating component. Therefore, when the stepping motor moves to the calibration position (the equivalent information generating component moves to the calibration position), the sensor generates a corresponding electric signal when detecting the information generated when the information generating component is located at the calibration position, and inputs the electric signal to the coding chip, and the coding chip converts the received electric signal into a target coding value.
When the control end judges that the stepping motor moves to the calibration position based on the acquired position information, the control end can acquire a target code value generated by the code chip. Optionally, in an implementation manner, the control end may obtain the code value generated by the code chip in real time, and when the control end determines that the stepping motor moves to the calibration position, the control end takes the code value obtained from the code chip at the current moment as the target code value. In another implementation manner, the control end may acquire the code value generated by the code chip in a trigger manner, and when the control end determines that the stepping motor moves to the calibration position, the control end sends a request for acquiring the code value to the ABF device, and takes the code value fed back by the ABF device as a target code value.
Optionally, the control end may directly establish communication with the encoding chip, and at this time, the control end may establish communication with the encoding chip through a Serial Peripheral Interface (SPI) protocol. The SPI is a high-speed, full-duplex and synchronous communication bus, only four lines are occupied on the pins of the chip, the pins of the chip are saved, and meanwhile, the space is saved on the layout of a PCB (Printed Circuit Board), and convenience is brought. Alternatively, the control end may communicate with the coding chip using a module in the ABF device as a middleware, and in this case, the control end does not directly connect with the coding chip, but sends a request or the like to the middleware, and the middleware processes the request/command according to the corresponding processing logic.
S203, generating a pair of calibration data based on the calibration position and the target code value.
After the target code value is obtained, a corresponding relationship between the calibration position and the target code value may be established as a pair of calibration data, for example, an array { calibration position, target code value } is established as a pair of calibration data.
For example, if the calibration position is 0.101mm and the target code value is 100101, an array {0.101, 100101} is created as a pair of calibration data.
And S204, judging whether the stepping motor moves to the maximum movable position, if not, returning to the step S201, and if so, ending.
In order to make the calibration result of the ABF device more accurate, generally speaking, the ABF device needs to be calibrated based on multiple pairs of calibration data.
When it is determined that the stepping motor does not move to the maximum movable position, it indicates that the stepping motor can continue to move, at this time, in order to obtain multiple pairs of calibration data, the step S201 may be continuously executed to control the stepping motor to continue to move, and when the stepping motor moves a specified distance again, a pair of calibration data may be obtained again until the stepping motor moves to the maximum movable position.
Optionally, in an implementation manner, in order to obtain multiple pairs of calibration data within the entire stroke of the stepping motor, in the embodiment of the present invention, the movement may be started from the zero point position of the stepping motor until the maximum movable position of the stepping motor is reached.
According to the scheme provided by the embodiment of the invention, the position measuring device can acquire the position information of the stepping motor in the ABF device, so that when the control end controls the stepping motor to move, the position information of the stepping motor can be acquired in real time through the position measuring device, further, when the stepping motor is judged to move for a specified distance based on the acquired position information, the position where the stepping motor is located is determined to be a standard position, a target code value generated by a code chip in the ABF device is acquired, a pair of calibration data is generated based on the standard position and the target code value, and the step of controlling the stepping motor to move is returned until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
Optionally, in an embodiment, the determining that the stepping motor moves the designated distance based on the acquired position information includes:
calculating a distance between the position indicated by the acquired position information and the start position; wherein, the starting position is the position where the stepping motor starts to move;
if the calculated distance is smaller than the designated distance, the stepping motor is continuously controlled to move;
if the calculated distance is greater than the designated distance, controlling the stepping motor to move reversely;
if the calculated distance is equal to the specified distance, the movement of the stepping motor is stopped.
When the stepping motor is to be controlled to move, the position of the stepping motor is the position where the stepping motor starts to move, namely the starting position.
In one implementation, position information obtained from the position measuring device when the stepping motor is located at the start position may be recorded in advance as the start position information;
when the stepping motor starts to move, the real-time position information of the stepping motor can be acquired from the position measuring device in real time, and then the distance between the position indicated by the acquired position information and the starting position can be calculated based on the real-time acquired position information and the starting position information.
Illustratively, the starting position information is 0.1mm, and when the acquired position information is 0.12mm after the stepping motor starts to move, the distance between the position indicated by the acquired position information and the starting position is 0.02 mm.
Because the target code value generated by the code chip in the ABF device at the calibration position where the stepping motor moves the designated distance needs to be obtained, therefore:
and when the calculated distance is smaller than the designated distance, the stepping motor needs to be continuously controlled to move, namely, the distance between the current position of the stepping motor and the initial position is increased. Illustratively, the specified distance is 0.005mm, and the calculated distance is 0.001mm, it is necessary to continue to control the stepping motor to move so as to increase the distance between the current position of the stepping motor and the starting position.
And if the calculated distance is larger than the specified distance, controlling the stepping motor to move in the reverse direction, namely reducing the distance between the current position of the stepping motor and the initial position. Illustratively, the specified distance is 0.005mm, and the calculated distance is 0.006mm, the stepping motor needs to be controlled to move in the reverse direction to reduce the distance between the current position of the stepping motor and the starting position.
When the calculated distance is equal to the specified distance, at which time the requirements are met, the movement of the stepper motor may be stopped. Illustratively, the specified distance is 0.005mm and the calculated distance is 0.005mm, then the stepper motor may be stopped.
The scheme provided by the embodiment of the invention can automatically generate a plurality of pairs of calibration data, and improves the efficiency of acquiring the calibration data. Furthermore, a scheme for controlling the stepping motor to move for a specified distance is provided, and a basis is provided for automatically generating a plurality of pairs of calibration data.
Based on the embodiment shown in fig. 2, as shown in fig. 3, another calibration data generating method is further provided in the embodiment of the present invention, before step S201, the method further includes:
s205, controlling a stepping motor to move;
in this step, the control end can control the stepping motor to move in the whole stroke until receiving a zero position signal sent by a zero position detection component in the ABF device. The process of controlling the movement of the stepping motor by the control end is the same as the process of controlling the stepping motor in step S201, and is not described herein again.
S206, when a zero position signal sent by a zero position detection component in the ABF device is received, the stepping motor is judged to move to the zero position, and the position information measured by the position measuring device is controlled to return to zero.
Wherein, the zero position detection part can be an optical coupling zero point monitoring device. The principle is as follows: the method comprises the steps that a light source transmitter is installed on one side of a zero position of a stroke of a stepping motor, a light source receiver is installed on the other opposite side of the stroke of the stepping motor, the light source transmitter transmits light signals, if the light signals are not shielded by the stepping motor, the light source receiver can receive the light signals, the current position of the stepping motor is a non-zero position, when the stepping motor moves to the zero position, the stepping motor can shield the light signals transmitted by the light source transmitter, the light source receiver cannot receive the light signals, at the moment, the current position of the stepping motor is the zero position, and meanwhile, according to preset processing logic, the light source receiver generates zero position signals which are transmitted to a control end when the light signals cannot be received, such as appointed I/O (Input/Output) signals.
When the control end receives a zero position signal sent by a zero position detection component in the ABF device, the control end indicates that the stepping motor moves to the zero position, and further the position information measured by the position measuring device can be controlled to return to zero.
Optionally, in an implementation manner, the control end generates a request for manually zeroing the position information measured by the position measurement device, and a worker manually zeroes the position information measured by the position measurement device. Alternatively, the control end may also send a zeroing instruction to the position measurement device to control the position information measured by the position measurement device to be zeroed.
The scheme provided by the embodiment of the invention can automatically generate a plurality of pairs of calibration data, and improves the efficiency of acquiring the calibration data. Meanwhile, the stepping motor is moved to the zero position, and the position information measured by the position measuring device is controlled to return to zero, so that the position information output by the position measuring device can accurately reflect the position of the moving stepping motor, and a foundation is provided for automatically generating a plurality of pairs of calibration data.
Optionally, in an embodiment, another calibration data generating method is further provided, and after the upper stepping motor moves to the maximum movable position, the method further includes:
the generated pairs of calibration data are written to memory locations within the ABF device.
The storage unit may be a flash memory. After the stepping motor is moved to the maximum movable position, each pair of generated calibration data may be written to a memory location within the ABF device through the SPI protocol. In one implementation, after each generation of a pair of calibration data, the generated pair of calibration data is written to a memory location within the ABF device. Thereby reducing the memory space required for the control side. In another implementation, the generated pairs of calibration data may be written to a storage unit in the ABF device at the same time after the movement is completed, so as to reduce the number of communications between the control end and the ABF device.
The scheme provided by the embodiment of the invention can automatically generate a plurality of pairs of calibration data, and improves the efficiency of acquiring the calibration data. Meanwhile, the generated calibration data is written into a storage unit in the ABF device, so that the calibration of the ABF device can be realized.
Based on the method, the embodiment of the invention also provides a calibration data generation system. As shown in fig. 4, a calibration data generating system provided in an embodiment of the present invention may include a control end 401 and a position measuring device 402; the control end 401 is in communication with a position measurement device 402 and an ABF device to be calibrated;
a position measuring device 402, configured to measure position information of the stepping motor in the ABF device, and send the measured position information to the control end in real time;
the control end 401 is used for controlling the stepping motor to move, acquiring position information sent by the position measuring device in real time, determining the position of the stepping motor as a standard position when judging that the stepping motor moves a specified distance based on the acquired position information, acquiring a target code value generated by a code chip in the ABF device, generating a pair of calibration data based on the standard position and the target code value, and returning to the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at a calibration position.
The position measuring device 402 may be an altimeter. Optionally, the height gauge thimble is rigidly connected to the stepping motor, so that the stepping motor can drive the thimble to move when moving, and the movement of the thimble can drive the change of the height value measured by the height gauge. Therefore, each position where the stepping motor is located corresponds to the height value measured by the height gauge one-to-one, so that the position measuring device 402 can measure the position information of the stepping motor within the ABF device.
After obtaining the position information of the stepping motor in the ABF device through measurement, the position measurement device 402 may send the measured position information to the control end 401 in real time. Optionally, the position measuring device 402 and the control end 401 may communicate with each other in a wired/wireless manner, and the position measuring device 402 feeds back the measured position information to the control end 401 in a wired/wireless manner in real time.
The control terminal 401 may be any electronic device with data processing capability, such as a personal computer, a server, a mobile phone, and the like. When the calibration of the ABF device is needed, the control end 401 may control the stepping motor in the ABF device to move, and receive the position information of the stepping motor fed back by the position measuring device 402 in real time. Alternatively, the control terminal 401 may control the stepping motor to move through pulse width modulation PWM.
In the process that the control terminal 401 controls the stepping motor to move, the control terminal 401 may determine whether the stepping motor moves a designated distance in real time based on the received position information. Optionally, the control end 401 may calculate the distance between the position indicated by the acquired position information and the initial position in real time, if the calculated distance is smaller than the specified distance, the control end 401 may continue to control the stepping motor to continue moving, if the calculated distance is greater than the specified distance, the control end 401 may control the stepping motor to move in the reverse direction, and if the calculated distance is equal to the specified distance, the control end 401 may stop moving the stepping motor, so that the control end 401 may control the stepping motor to move the specified distance.
After determining that the stepping motor moves for the designated distance, the control end 401 may determine that the position where the stepping motor is located is a calibration position, acquire a target code value generated by a code chip in the ABF device, and generate a pair of calibration data based on the calibration position and the target code value. The specified distance is the minimum adjustable distance of the back focus of the preset camera lens.
After generating the pair of calibration data, the control end 401 may continue to control the stepping motor to move, and when the stepping motor moves the next designated distance, continue to generate the pair of calibration data, and so on until the control end 401 determines that the stepping motor moves to the maximum movable position.
In order to obtain more calibration data, the control terminal 401 may control the stepping motor to move from the starting position to the maximum movable position of the stepping motor. At this time, the control terminal 401 may also zero the stepping motor and the position measuring device 402 before controlling the stepping motor to move. Specifically, the control end 401 may control the stepping motor to move, and when the control end 401 receives a zero position signal sent by a zero position detection component in the ABF device, it is determined that the stepping motor has moved to a zero position, and at this time, the control end 401 controls the position information measured by the position measurement device 402 to return to zero.
After the stepping motor moves to the maximum movable position, the control end 401 may write each pair of generated calibration data to a memory location in the ABF device, so that calibration of the ABF device may be achieved. The memory unit may be a memory device such as a flash memory.
Optionally, an embodiment of the present invention further provides another calibration data generating system, where the system further includes: a display unit 403;
a position measuring device 402, configured to send the acquired position information to the display unit 403 in real time;
and a display unit 403 for displaying the received position information.
The display unit 403 may be a display device such as a digital tube or a liquid crystal panel, and the display unit 403 may display the position information obtained by the position measuring device in real time, so that the staff can conveniently observe the position information.
In the system provided by the embodiment of the invention, the position measuring device can acquire the position information of the stepping motor in the ABF device, so that when the control end controls the stepping motor to move, the position information of the stepping motor can be acquired in real time through the position measuring device, further, when the stepping motor is judged to move for a specified distance based on the acquired position information, the position where the stepping motor is located is determined to be a standard position, a target code value generated by a code chip in the ABF device is acquired, a pair of calibration data is generated based on the standard position and the target code value, and the step of controlling the stepping motor to move is returned until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
In order to more clearly explain the technical solution of the embodiment of the present invention, as shown in fig. 5, the embodiment of the present invention further provides an overall frame diagram generated by the annotation data. In the figure, the main control module is the control end mentioned in the embodiment of the present invention, the altimeter (in thousands) is the position measuring device mentioned in the embodiment of the present invention, the ABF focusing device is the ABF device mentioned in the embodiment of the present invention, and the position information digital display device is the display unit mentioned in the embodiment of the present invention. The magnetic encoding chip is a combination of the sensor and the encoding chip, the FLASH memory is a storage unit, and the zero detection (optical coupler) indicates that the zero detection component is provided.
The main control module acquires position information of the stepping motor through the USB, the main control module is in I/O signal communication with zero detection, the main control module is in SPI protocol communication with the magnetic encoding chip and the FLASH, and the main control module controls the stepping motor to move through PWM. And a thimble of the height gauge is rigidly connected with the stepping motor.
The main control module in the figure executes the steps of the calibration data generating method mentioned in the embodiments of fig. 1 to fig. 3 according to the present invention. And will not be described in detail herein.
According to the scheme provided by the embodiment of the invention, the position measuring device can acquire the position information of the stepping motor in the ABF device, so that when the control end controls the stepping motor to move, the position information of the stepping motor can be acquired in real time through the position measuring device, further, when the stepping motor is judged to move for a specified distance based on the acquired position information, the position where the stepping motor is located is determined to be a standard position, a target code value generated by a code chip in the ABF device is acquired, a pair of calibration data is generated based on the standard position and the target code value, and the step of controlling the stepping motor to move is returned until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
Corresponding to the method provided by the foregoing embodiment, as shown in fig. 6, an embodiment of the present invention further provides a calibration data generating device, which is applied to a control end, the control end is respectively communicated with a position measuring device and an ABF device to be calibrated, the position measuring device is configured to measure position information of a stepping motor in the ABF device, and the method includes:
the information acquisition module 601 is used for controlling the stepping motor to move and acquiring the position information of the stepping motor in real time through the position measurement device;
the code value acquisition module 602 is configured to determine that the position of the stepping motor is a standard position when it is determined that the stepping motor moves by a specified distance based on the acquired position information, and acquire a target code value generated by a code chip in the ABF device; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at a calibration position;
and a data generating module 603, configured to generate a pair of calibration data based on the calibration position and the target encoding value, and return to executing the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position.
Optionally, in an embodiment, the specified distance is a minimum adjustable distance of a back focus of the preset image pickup lens;
optionally, in an embodiment, the encoding value obtaining module is specifically configured to calculate a distance between a position indicated by the obtained position information and the starting position; if the calculated distance is smaller than the designated distance, the stepping motor is continuously controlled to move; if the calculated distance is greater than the designated distance, controlling the stepping motor to move reversely; if the calculated distance is equal to the designated distance, stopping moving the stepping motor; wherein, the initial position is the position where the stepping motor starts to move.
Optionally, in an embodiment, the apparatus further includes: the zeroing module is used for controlling the stepping motor to move before the information acquisition module executes the control of the stepping motor to move and the position information of the stepping motor is acquired in real time through the position measurement device; when a zero position signal sent by a zero position detection part in the ABF device is received, the stepping motor is judged to move to the zero position, and the position information measured by the position measuring device is controlled to return to zero.
Optionally, in an embodiment, the position measuring device is an altimeter, and a thimble of the altimeter is rigidly connected to the stepping motor.
Optionally, in an embodiment, the information obtaining module is specifically configured to receive, in real time, a height value fed back by the altimeter, as the position information of the stepping motor.
Optionally, in an embodiment, the information obtaining module is specifically configured to control the stepping motor to move through pulse width modulation PWM.
Optionally, in an embodiment, the apparatus further includes: and the data writing module is used for writing the generated pairs of calibration data into a storage unit in the ABF device after the stepping motor moves to the maximum movable position.
In the system provided by the embodiment of the invention, the position measuring device can acquire the position information of the stepping motor in the ABF device, so that when the control end controls the stepping motor to move, the position information of the stepping motor can be acquired in real time through the position measuring device, further, when the stepping motor is judged to move for a specified distance based on the acquired position information, the position where the stepping motor is located is determined to be a standard position, a target code value generated by a code chip in the ABF device is acquired, a pair of calibration data is generated based on the standard position and the target code value, and the step of controlling the stepping motor to move is returned until the stepping motor moves to the maximum movable position. Therefore, according to the scheme of the embodiment of the invention, after each specified distance is moved, a pair of calibration data can be automatically generated based on the calibration position and the target code value until the stepping motor moves to the maximum movable position, a plurality of pairs of calibration data can be automatically generated, and the efficiency of acquiring the calibration data is improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the steps of the calibration data generation method according to the above-mentioned embodiment when executing the program stored in the memory 703.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the calibration data generation methods described above.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the calibration data generation methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the system, the electronic device, the computer readable program, and the computer storage medium embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. A calibration data generating method applied to a control end, the control end being respectively in communication with a position measuring device and an ABF device to be calibrated, the position measuring device being configured to measure position information of a stepping motor in the ABF device, the method comprising:
controlling the stepping motor to move, and acquiring the position information of the stepping motor in real time through the position measuring device;
when the stepping motor is judged to move a specified distance based on the acquired position information, determining that the position of the stepping motor is a standard position, and acquiring a target coding value generated by a coding chip in the ABF device; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position;
and generating a pair of calibration data based on the calibration position and the target code value, and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position.
2. The method of claim 1, wherein the specified distance is a minimum adjustable distance of a back focus of a preset camera lens.
3. The method of claim 1 or 2, wherein determining that the stepper motor moves a specified distance based on the obtained position information comprises:
calculating a distance between the position indicated by the acquired position information and the start position; wherein the starting position is a position where the stepping motor starts to move;
if the calculated distance is smaller than the designated distance, continuing to control the stepping motor to move;
if the calculated distance is larger than the designated distance, controlling the stepping motor to move reversely;
and if the calculated distance is equal to the designated distance, stopping moving the stepping motor.
4. The method according to claim 1 or 2, wherein before the controlling the stepping motor to move and acquiring the position information of the stepping motor in real time by the position measuring device, the method further comprises:
controlling the stepping motor to move;
when a zero position signal sent by a zero position detection part in the ABF device is received, the stepping motor is judged to move to a zero position, and the position information measured by the position measuring device is controlled to return to zero.
5. The method of claim 1 or 2, wherein the position measuring device is an altimeter, and a needle of the altimeter is rigidly connected to the stepper motor.
6. The method of claim 5, wherein the obtaining the position information of the stepper motor in real time by the position measuring device comprises:
and receiving the height value fed back by the height meter in real time as the position information of the stepping motor.
7. The method of claim 1 or 2, wherein said controlling said stepper motor to move comprises:
and controlling the stepping motor to move by Pulse Width Modulation (PWM).
8. The method of claim 1 or 2, further comprising, after the stepper motor is moved to the maximum movable position:
writing the generated pairs of calibration data to memory locations within the ABF device.
9. A calibration data generation system is characterized by comprising a control end and a position measuring device; the control end is communicated with the position measuring device and the ABF device to be calibrated;
the position measuring device is used for measuring the position information of the stepping motor in the ABF device and sending the measured position information to the control end in real time;
the control end is used for controlling the stepping motor to move and acquiring the position information sent by the position measuring device in real time; when the stepping motor is judged to move a specified distance based on the acquired position information, determining that the position of the stepping motor is a standard position, and acquiring a target coding value generated by a coding chip in the ABF device; generating a pair of calibration data based on the calibration position and the target code value, and returning to execute the step of controlling the stepping motor to move until the step is moved to the maximum movable position of the stepping motor; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position.
10. A calibration data generating apparatus, applied to a control end, the control end being respectively in communication with a position measuring apparatus and an ABF apparatus to be calibrated, the position measuring apparatus being configured to measure position information of a stepping motor within the ABF apparatus, the method comprising:
the information acquisition module is used for controlling the stepping motor to move and acquiring the position information of the stepping motor in real time through the position measurement device;
the code value acquisition module is used for determining the position of the stepping motor as a standard position and acquiring a target code value generated by a code chip in the ABF device when the stepping motor is judged to move a specified distance based on the acquired position information; the target coding value is a coding value obtained by converting a target electric signal, the target electric signal is an electric signal generated when a sensor in the ABF device detects target information, and the target information is information generated when an information generating component in the ABF device is located at the calibration position;
and the data generation module is used for generating a pair of calibration data based on the calibration position and the target code value and returning to execute the step of controlling the stepping motor to move until the stepping motor moves to the maximum movable position.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
CN202110977279.9A 2021-08-24 2021-08-24 Calibration data generation method and device and calibration data generation system Pending CN113670201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110977279.9A CN113670201A (en) 2021-08-24 2021-08-24 Calibration data generation method and device and calibration data generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110977279.9A CN113670201A (en) 2021-08-24 2021-08-24 Calibration data generation method and device and calibration data generation system

Publications (1)

Publication Number Publication Date
CN113670201A true CN113670201A (en) 2021-11-19

Family

ID=78545865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110977279.9A Pending CN113670201A (en) 2021-08-24 2021-08-24 Calibration data generation method and device and calibration data generation system

Country Status (1)

Country Link
CN (1) CN113670201A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4442696A (en) * 1980-03-10 1984-04-17 Erickson Lowell H Calibration fault detector and automatic calibrator
CN103888673A (en) * 2014-04-08 2014-06-25 张志强 Back-focus-automatic-adjusting camera module
CN103954316A (en) * 2014-04-30 2014-07-30 湖南大学 Calibration method and device for angle encoder
CN105793754A (en) * 2013-12-04 2016-07-20 旭化成微电子株式会社 Camera module adjustment method, lens position control device, control device and control method for linear motion device
CN106375647A (en) * 2015-07-23 2017-02-01 杭州海康威视数字技术股份有限公司 Method, device and system for adjusting camera back focus
KR20190041289A (en) * 2017-10-12 2019-04-22 주식회사 에이알컴 Method for Measuring Numerical Value by using Automatic Focussing Function of Camera
CN209072592U (en) * 2018-11-20 2019-07-05 广州市启中电子有限公司 A kind of self-correcting self-adjusting video camera
CN110440846A (en) * 2019-08-01 2019-11-12 北京航天发射技术研究所 A kind of collecting method of encoder, system, terminal and storage medium
CN111457953A (en) * 2020-04-01 2020-07-28 深圳市四方电气技术有限公司 Automatic calibration detection system and method for rotary encoder
CN111521205A (en) * 2020-04-30 2020-08-11 苏州高之仙自动化科技有限公司 Direction adjusting method, device and system for mobile machine
CN112348898A (en) * 2019-08-07 2021-02-09 杭州海康微影传感科技有限公司 Calibration method, calibration device and camera

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4442696A (en) * 1980-03-10 1984-04-17 Erickson Lowell H Calibration fault detector and automatic calibrator
CN105793754A (en) * 2013-12-04 2016-07-20 旭化成微电子株式会社 Camera module adjustment method, lens position control device, control device and control method for linear motion device
CN103888673A (en) * 2014-04-08 2014-06-25 张志强 Back-focus-automatic-adjusting camera module
CN103954316A (en) * 2014-04-30 2014-07-30 湖南大学 Calibration method and device for angle encoder
CN106375647A (en) * 2015-07-23 2017-02-01 杭州海康威视数字技术股份有限公司 Method, device and system for adjusting camera back focus
KR20190041289A (en) * 2017-10-12 2019-04-22 주식회사 에이알컴 Method for Measuring Numerical Value by using Automatic Focussing Function of Camera
CN209072592U (en) * 2018-11-20 2019-07-05 广州市启中电子有限公司 A kind of self-correcting self-adjusting video camera
CN110440846A (en) * 2019-08-01 2019-11-12 北京航天发射技术研究所 A kind of collecting method of encoder, system, terminal and storage medium
CN112348898A (en) * 2019-08-07 2021-02-09 杭州海康微影传感科技有限公司 Calibration method, calibration device and camera
CN111457953A (en) * 2020-04-01 2020-07-28 深圳市四方电气技术有限公司 Automatic calibration detection system and method for rotary encoder
CN111521205A (en) * 2020-04-30 2020-08-11 苏州高之仙自动化科技有限公司 Direction adjusting method, device and system for mobile machine

Similar Documents

Publication Publication Date Title
CN103399015B (en) Pathological section scanner and slide glass platform positioning precision measuring method thereof and device
CN104730802A (en) Optical axis included angle calibrating and focusing method and system and double-camera equipment
CN104049437A (en) Lens apparatus and a camera system
CN113068019B (en) Dual-optical camera calibration apparatus, method, electronic apparatus, and storage medium
CN105227835A (en) A kind of assisted focused method and apparatus
CN102937701A (en) Camera shooting module motor tester
CN103464694A (en) Liquid level detecting device for casting of magnesium alloy and detecting method of liquid level detecting device for casting of magnesium alloy
CN113670201A (en) Calibration data generation method and device and calibration data generation system
TWI553395B (en) Camera module testing system and method
CN116819907B (en) Method and system for calibrating position of photomask of exposure machine
WO2024082699A1 (en) Focusing apparatus and method, and electronic device
CN113487678A (en) Camera calibration method, system and processing circuit
CN116182786B (en) Monocular vision ranging method, camera and medium
CN111246094B (en) Holder, holder offset compensation correction method, computer storage medium and equipment
CN105092883A (en) Method for measuring rotating speed of a holder and apparatus thereof
CN113030987B (en) Laser emergent angle measuring method and system for multi-line laser radar and electronic equipment
CN102494640B (en) Mounting precision detector of infrared product
WO2024119672A1 (en) Mover position calibration method for direct-drive transmission system, and related apparatus
CN112153271B (en) Control method and control device for optical lens of electronic equipment and storage medium
CN113028997B (en) Method, device and equipment for measuring travel allowance of lens group and storage medium
CN104764399A (en) Measuring instrument capable of quickly focusing and measuring method thereof
CN113310673B (en) Method and device for detecting repetition precision, computer equipment and storage medium thereof
CN113269836B (en) 3D camera calibration method and device, computer equipment and storage medium thereof
CN114719746B (en) Measuring method, device and medium of laser triangulation system
EP4174687A1 (en) Calibration method, apparatus and device for coherent optical module, and computer readable storage medium

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