CN111855156A - Sampling control method and testing device for lens detection and sampling tool - Google Patents

Sampling control method and testing device for lens detection and sampling tool Download PDF

Info

Publication number
CN111855156A
CN111855156A CN202010741191.2A CN202010741191A CN111855156A CN 111855156 A CN111855156 A CN 111855156A CN 202010741191 A CN202010741191 A CN 202010741191A CN 111855156 A CN111855156 A CN 111855156A
Authority
CN
China
Prior art keywords
camera
sampling channel
sampling
imaging
imaging mode
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
CN202010741191.2A
Other languages
Chinese (zh)
Other versions
CN111855156B (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.)
Hangzhou Hikmicro Sensing Technology Co Ltd
Original Assignee
Hangzhou Hikmicro Sensing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikmicro Sensing Technology Co Ltd filed Critical Hangzhou Hikmicro Sensing Technology Co Ltd
Priority to CN202010741191.2A priority Critical patent/CN111855156B/en
Publication of CN111855156A publication Critical patent/CN111855156A/en
Application granted granted Critical
Publication of CN111855156B publication Critical patent/CN111855156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties

Abstract

The invention provides a sampling control method and a testing device for lens detection and a sampling tool. Based on the invention, the sampling channel corresponding to the imaging mode of the camera to be tested is deployed in the sampling tool, so that the sample image plate can be shot and imaged by the workbench which arranges the camera to be tested in the sampling channel. The interval between the sample image plate and the workbench in the sampling channel can be automatically set according to the lens specification of the camera to be detected, so that the camera to be detected can shoot and image the sample image plate at an imaging distance matched with the lens specification without manual adjustment, and an original image capable of reflecting the real imaging effect of the lens can be efficiently and accurately obtained; moreover, the lens detection result of the imaging mode of the camera to be detected can be determined by performing definition detection on the original image output by the camera to be detected, and compared with artificial subjective judgment, the method has higher accuracy and efficiency.

Description

Sampling control method and testing device for lens detection and sampling tool
Technical Field
The invention relates to a lens detection technology of a camera, in particular to a sampling control method for lens detection, a testing device for lens detection and a sampling tool for lens detection.
Background
Before the camera leaves the factory, the lens of the camera is often required to be detected. However, the conventional lens detection is implemented by means of manual detection, which results in low detection accuracy and efficiency.
Disclosure of Invention
The embodiments of the invention respectively provide a sampling control method for lens detection, a testing device for lens detection, a sampling tool for lens detection and a lens detection system, which can improve the accuracy and efficiency of lens detection by means of automation
In one embodiment, a sampling control method for shot detection is provided, including:
determining an imaging mode of the camera to be tested and a corresponding lens specification according to the equipment identification of the camera to be tested;
under the condition that the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, determining the imaging distance of the camera to be tested in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be tested;
generating a positioning instruction of the sampling channel according to the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel;
monitoring an in-place notice corresponding to the sampling channel, wherein the in-place notice is used for indicating that the interval between the sample image plate and the workbench in the sampling channel reaches the imaging distance in the corresponding imaging mode indicated by the positioning instruction;
responding to the monitored in-place notice corresponding to the sampling channel, and determining a lens detection result of the camera to be detected under the imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel.
Optionally, before determining the imaging mode of the camera to be tested and the corresponding lens specification according to the device identifier of the camera to be tested, the method further includes: recording an equipment identifier of a camera to be tested; after determining the imaging distance of the camera to be tested in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be tested, the method further comprises the following steps: storing the equipment identification of the camera to be tested and the imaging distance of the camera to be tested in the imaging mode into a waiting queue correspondingly maintained for the imaging mode; and before generating a positioning instruction of the sampling channel according to an imaging distance of the camera to be detected in the sampling channel in the imaging mode corresponding to the sampling channel, further comprising: the method comprises the steps of detecting the equipment identification of a camera to be detected of a communication connection opposite end established corresponding to a sampling channel, inquiring the detected equipment identification in a waiting queue corresponding to the sampling channel in the same imaging mode, and determining the camera to be detected of which the equipment identification is successfully inquired in the waiting queue corresponding to the sampling channel in the same imaging mode as the sampling channel as the camera to be detected in the sampling channel.
Optionally, before detecting the device identifier of the camera to be tested at the opposite end of the communication connection established corresponding to the sampling channel, the method further includes: and generating connection prompt information for the equipment identifier arranged at the head in the waiting queue, wherein the connection prompt information is used for prompting that the camera to be tested corresponding to the equipment identifier is about to establish communication connection with the sampling channel corresponding to the waiting queue in the same imaging mode.
Optionally, after determining that the camera to be tested of the device identifier is successfully queried in the waiting queue corresponding to the sampling channel in the same imaging mode as the camera to be tested to be detected in the sampling channel, the method further includes: monitoring a state announcement corresponding to the sampling channel, wherein the state announcement is used for indicating that the occupied state of a workbench in the sampling channel is an in-place state for bearing a camera to be tested or a vacancy state for off-place of the camera to be tested; and determining the occupation state of the workbench in the sampling channel according to the monitored state notice corresponding to the sampling channel, and allowing a positioning instruction corresponding to the sampling channel to be generated in the period that the occupation state of the workbench in the sampling channel is in the in-place state.
Optionally, when the imaging modes of the sampling channel and the camera to be measured are both at least two: storing the equipment identification of the camera to be tested and the imaging distance of the camera to be tested in the imaging mode into a waiting queue correspondingly maintained for the imaging mode, wherein the waiting queue comprises: selecting one of at least two imaging modes of a camera to be tested, and storing the equipment identifier of the camera to be tested and the imaging distance of the camera to be tested in the selected imaging mode into a waiting queue correspondingly maintained for the selected imaging mode; after determining a lens detection result of the camera to be detected in an imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel, the method further comprises the following steps: detecting whether lens detection results of the camera to be detected in all imaging modes are determined; if the camera to be detected has an imaging mode of which the lens detection result is not determined, storing the equipment identification of the camera to be detected and the imaging distance of the camera to be detected in the imaging mode of which the lens detection result is not determined into a waiting queue correspondingly maintained for the imaging mode of which the lens detection result is not determined; otherwise, outputting the lens detection results of all imaging modes of the camera to be detected in batch.
Optionally, after determining a lens detection result of the camera to be detected in the imaging mode corresponding to the sampling channel by performing sharpness detection on an original image output by the camera to be detected of the workbench placed in the sampling channel, the method further includes: and generating dislocation prompt information for a sampling channel corresponding to the imaging mode of the determined lens detection result of the camera to be detected.
Optionally, after determining an imaging distance of the camera to be tested in the imaging mode according to a lens specification corresponding to the imaging mode of the camera to be tested, the method further includes: detecting whether the imaging distance in the imaging mode is larger than the maximum interval between the sample image plate and the workbench in the corresponding sampling channel; and in the case that the imaging distance in the imaging mode is larger than the maximum interval between the sample image plate and the workbench in the corresponding sampling channel, converting the imaging distance in the imaging mode into a variable-magnification conversion distance by using the variable-magnification factor of the distance-increasing mirror configured in the sampling channel, so that the generated positioning instruction indicates the imaging distance by the combination of the variable-magnification conversion distance and a distance-increasing mark indicating that the distance-increasing mirror is enabled.
Optionally, before determining a lens detection result of the camera to be detected in the imaging mode corresponding to the sampling channel by performing sharpness detection on an original image output by the camera to be detected of the workbench placed in the sampling channel, the method further includes: and generating a configuration instruction of the sampling channel according to the environmental condition of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel, wherein the configuration instruction is used for indicating that the imaging environment at the sample image plate in the sampling channel meets the environmental condition indicated by the configuration instruction.
In another embodiment, there is provided a testing apparatus for lens inspection, including:
a processor for executing the sampling control method as described in the previous embodiments;
the first communication module is used for establishing communication connection between the processor and the sampling tool; and the number of the first and second groups,
and the second communication module is used for switchably establishing communication connection between the processor and the camera to be tested.
In another embodiment, a sampling tool for lens inspection is provided, including:
the sampling channel is correspondingly deployed for at least one imaging mode, wherein the sampling channel comprises a sample image plate with adjustable intervals and a workbench;
the controller is used for monitoring a positioning instruction corresponding to the sampling channel, wherein the positioning instruction is used for indicating the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel; detecting a spacing between a sample image plate and a workbench in a corresponding sampling channel in response to the monitored positioning instruction; in response to a detection result that the interval between the sample image plate and the stage in the sampling channel has reached the imaging distance in the corresponding imaging mode indicated by the positioning instruction, a presence notification indicating the detection result is generated.
Optionally, the controller is further configured to generate a state notification corresponding to the sampling channel according to an occupancy state of the workbench in the sampling channel, where the state notification is used to indicate that the occupancy state of the workbench in the sampling channel is an in-place state for bearing the camera to be tested or a vacant state for leaving the camera to be tested.
Optionally, the sampling channel further includes a distance-increasing mirror, and the controller further calls the distance-increasing mirror arranged in the sampling channel to move into an imaging optical path of a camera to be tested carried on a stage of the sampling channel in a case that the imaging distance is indicated by a combination of a variable-magnification reduced distance and a distance-increasing mark indicating that the distance-increasing mirror is enabled in a positioning instruction corresponding to the sampling channel, and determines that the interval between the sample image plate and the stage in the sampling channel has reached the imaging distance indicated by the positioning instruction in response to a detection result that the interval between the sample image plate and the stage in the sampling channel is the variable-magnification reduced distance.
Optionally, the sampling channel further includes an environment adjusting element, and the controller is further configured to monitor a configuration instruction corresponding to the sampling channel, where the configuration instruction is used to indicate that the imaging environment at the sample image plate in the sampling channel satisfies an environmental condition indicated by the configuration instruction; and determining working parameters of the environment adjusting elements in the corresponding sampling channels according to the monitored configuration instructions.
Optionally, the sampling channel further comprises a transmission mechanism for adjusting the interval between the sample image plate and the workbench, and the controller is further used for controlling the transmission mechanism to perform initial distance calibration between the sample image plate and the workbench.
In another embodiment, a lens inspection system is provided, which includes the testing device according to the foregoing embodiment and the sampling tool according to the foregoing embodiment.
Based on the embodiment, the sampling channel corresponding to the imaging mode of the camera to be tested is deployed in the sampling tool, so that the sample image plate can be shot and imaged by the workbench with the camera to be tested arranged in the sampling channel. The interval between the sample image plate and the workbench in the sampling channel can be automatically set according to the lens specification of the camera to be detected, so that the camera to be detected can shoot and image the sample image plate at an imaging distance matched with the lens specification without manual adjustment, and an original image capable of reflecting the real imaging effect of the lens can be efficiently and accurately obtained; moreover, the lens detection result of the imaging mode of the camera to be detected can be determined by performing definition detection on the original image output by the camera to be detected, and compared with artificial subjective judgment, the method has higher accuracy and efficiency.
Drawings
The following drawings are only schematic illustrations and explanations of the present invention, and do not limit the scope of the present invention:
FIG. 1 is a schematic diagram of an exemplary system architecture of a shot detection system in one embodiment;
FIG. 2 is an exemplary schematic diagram of the detection principle of the lens detection system shown in FIG. 1;
FIG. 3 is a schematic diagram illustrating an extended detection principle of the lens detection system shown in FIG. 1, which is suitable for real-time detection;
FIG. 4 is a schematic diagram illustrating the extended detection principle of the shot detection system shown in FIG. 1, which is suitable for batch detection;
FIG. 5 is a schematic diagram of an extended monitoring principle in which the lens inspection system shown in FIG. 1 supports multi-sampling channel continuous inspection;
FIG. 6 is a schematic diagram of the imaging distance conversion principle of the lens inspection system shown in FIG. 1;
FIG. 7 is a schematic diagram illustrating a tool initial distance calibration principle of the lens inspection system shown in FIG. 1;
FIG. 8 is an expanded architecture diagram of the lens inspection system of FIG. 1 supporting adjustment of the imaging environment;
FIG. 9 is a schematic flow chart of a sampling control method for shot detection in another embodiment;
FIG. 10 is a schematic diagram illustrating an optimization process of the sampling control method shown in FIG. 9, which is suitable for real-time detection;
FIG. 11 is a schematic diagram illustrating an optimization flow of the sampling control method shown in FIG. 9, which is suitable for batch inspection;
fig. 12 is a schematic diagram of an expansion flow of the sampling control method based on imaging distance conversion as shown in fig. 9.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and examples.
Fig. 1 is a schematic diagram of an exemplary system architecture of a shot detection system in one embodiment. Referring to fig. 1, in this embodiment, the lens inspection system may include a sampling tool 10 and a testing device 20.
The sampling tool 10 includes a sampling channel disposed for at least one imaging mode, for example, the imaging mode mentioned in this embodiment may include at least one spectral imaging mode such as visible light imaging, thermal imaging, and the like. The sample image plate 11 and the stage 12 may be included in the sampling channel, and the adjustable interval between the sample image plate 11 and the stage 12 may be realized by a transmission mechanism 13 such as a rail or a pulley.
The sampling tool 10 may further include a controller 19, and the controller 19 may be a control element supporting Programmable configuration, such as an MCU (micro controller unit), a CPLD (Complex Programmable Logic Device), or an FPGA (Field Programmable Gate Array).
The testing device 20 may include a first communication module 21, a second communication module 22, and a processor 29. The first communication module 21 is used for establishing a communication connection between the processor 29 and the sampling tool 10 (the controller 19), and may include a serial interface; the second communication module 22 is used for the processor 29 to switchably establish a communication connection with the camera 30 to be tested, and may include a network interface supporting wired or wireless connection, and the switchably establishing a communication connection means that different cameras 30 to be tested may all establish a communication connection with the processor 29 through the second communication module 22; the processor 29 may be a processing device such as a CPU (Central processing unit) having the capability of running application software and processing data.
Fig. 2 is an exemplary schematic diagram of the detection principle of the lens detection system shown in fig. 1. Referring to fig. 2, when the lens inspection system is used to inspect the lens of the camera 30 to be inspected:
the processor 29 may determine the imaging mode of the camera to be tested and the corresponding lens specification according to the device identifier of the camera to be tested 30; under the condition that the imaging mode of the camera 30 to be tested is not matched with the imaging mode corresponding to the sampling channel in the sampling tool 20, the processor 29 may generate an alarm prompt indicating that the test fails; under the condition that the imaging mode of the camera 30 to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool 20, the imaging distance D _ test of the camera 30 to be tested in the imaging mode can be determined according to the lens specification corresponding to the imaging mode of the camera 30 to be tested; and, according to the imaging distance D _ test of the camera 30 to be detected in the sampling channel in the imaging mode corresponding to the sampling channel, a positioning instruction of the sampling channel may be generated (S21);
the controller 19 may monitor a positioning instruction corresponding to the sampling channel, where the positioning instruction is used to indicate an imaging distance D _ test of the camera 30 to be detected in the sampling channel in the imaging mode corresponding to the sampling channel; in response to the monitored positioning instruction, the interval S _ adj between the sample image plate 11 and the stage 12 in the corresponding sampling channel may be detected; if it is detected that the distance S _ adj between the sample image plate 11 and the stage 12 is not currently equal to the imaging distance D _ test in the corresponding imaging mode indicated by the positioning instruction, the transmission mechanism 13 may be driven to adjust the distance S _ adj between the sample image plate 11 and the stage 12 to be equal to the imaging distance D _ test in the corresponding imaging mode indicated by the positioning instruction; if it is detected that the distance S _ adj between the sample image plate 11 and the stage 12 is currently equal to the imaging distance D _ test in the corresponding imaging mode indicated by the positioning instruction, the transmission mechanism 13 does not need to be driven to perform adjustment;
the controller 19, in response to the detection result that the interval between the sample image plate 11 and the stage 12 in the sampling channel has reached the imaging distance D _ test in the corresponding imaging mode indicated by the positioning instruction (S23), may generate a presence notification indicating the detection result (S25);
the processor 29 may monitor a corresponding in-place notification of the sampling channel, wherein the in-place notification is used to indicate that the interval S _ adj between the sample image plate 11 and the worktable 12 in the sampling channel has reached the imaging distance in the corresponding imaging mode indicated by the positioning instruction; and, in response to the monitored in-place notification corresponding to the sampling channel, the processor 29 determines a lens detection result of the camera under test in the imaging mode corresponding to the sampling channel by performing sharpness detection on the original image output by the camera under test 30 of the table 12 placed in the sampling channel (S27).
The raw image may be bare data output by the image sensor of the camera 30 under test without image processing. In addition, for the sharpness detection of the original image output by the camera 30 to be detected, the embodiment does not set any limit to a specific detection algorithm. The shot detection result determined by the sharpness detection may be a quantized detection value representing the sharpness level or degree, or may be a non-value indicating "pass" or "fail" obtained by comparing the quantized detection value with a threshold value.
Based on the above-described embodiment, by disposing the sampling channel corresponding to the imaging mode of the camera 30 to be tested in the sampling tool 10, the stage 12 in which the camera 30 to be tested is disposed in the sampling channel can capture and image the sample image plate 11. The interval between the sample image plate 11 and the workbench 12 in the sampling channel can be automatically set according to the lens specification of the camera 30 to be detected, so that the camera 30 to be detected can shoot and image the sample image plate 11 at an imaging distance matched with the lens specification without manual adjustment, and an original image capable of showing the real imaging effect of the lens can be efficiently and accurately obtained; moreover, the lens detection result of the imaging mode of the camera 30 to be detected can be determined by performing sharpness detection on the original image output by the camera to be detected, and compared with artificial subjective judgment, the method has higher accuracy and efficiency.
In the actual testing process, the camera 30 to be tested may adopt an instant detection mode, that is, whenever the camera 30 to be tested needs to perform lens detection, the camera 30 to be tested may establish a communication connection with the testing device 20.
Fig. 3 is a schematic diagram illustrating an extended detection principle of the lens detection system shown in fig. 1, which is suitable for real-time detection. Referring to fig. 3, in response to the communication connection established corresponding to the sampling channel by the camera 30 under test, the processor 29 may detect the device identifier of the camera 30 under test at the opposite end of the communication connection established corresponding to the sampling channel (S31).
Then, the processor 29 may determine the imaging mode of the camera to be tested and the corresponding lens specification according to the device identifier of the camera to be tested 30; in the case that the imaging mode of the camera 30 to be tested matches the imaging mode corresponding to the sampling channel in the sampling tool 20, a positioning instruction of the sampling channel may be generated in the foregoing manner (S21).
Thereafter, the controller 19 may monitor the positioning instruction corresponding to the sampling channel in the manner described above (S21), and in response to the detection result that the spacing S _ adj between the sample image plate 11 and the stage 12 in the sampling channel has reached the imaging distance D _ test in the corresponding imaging mode indicated by the positioning instruction (S23), generate a location notification (S25), so that the processor 29 may determine the lens detection result of the camera under test in the imaging mode corresponding to the sampling channel by performing sharpness detection on the original image output by the camera under test 30 of the stage 12 placed in the sampling channel in response to the monitored location notification corresponding to the sampling channel (S27).
As shown in fig. 3, processor 29 generates positioning instructions for the sampling channel (S21), which may occur after camera 30 under test is mounted to table 12 in place (S32).
For example, the controller 19 may be further configured to generate a status notification corresponding to the sampling channel according to an occupancy status of the table 12 in the sampling channel, where the status notification is used to indicate that the occupancy status of the table 12 in the sampling channel is an in-position status carrying the camera 30 to be tested, or an empty position status in which the camera 30 to be tested is out of position. Moreover, the processor 29 may monitor the status advertisement corresponding to the sampling channel, and determine the occupancy status of the table 12 in the sampling channel according to the monitored status advertisement, so as to allow the generation of the positioning instruction corresponding to the sampling channel during the period that the occupancy status of the table 12 in the sampling channel is in the occupancy status.
In the actual testing process, the cameras 30 to be tested may also adopt a batch detection mode, that is, a plurality of cameras 30 to be tested may collectively perform lens detection.
Fig. 4 is a schematic diagram illustrating the extended detection principle of the shot detection system shown in fig. 1, which is suitable for batch detection. Referring to fig. 4, the testing apparatus 20 may further include an information collecting module 23 (e.g., a code reader or a human-computer interaction component) for inputting the device identifier of the camera 30 to be tested (S41) before determining the imaging mode of the camera to be tested and the corresponding lens specification according to the device identifier of the camera to be tested, for example, the processor 29 may obtain the device identifier obtained by detecting the device identifier of the camera 30 to be tested by reading the code (in a case where the information collecting module 23 includes the code reader), or may also obtain the device identifier of the camera 30 to be tested by external manual input against the device identifier (in a case where the information collecting module 23 includes the human-computer interaction component).
That is, in the batch detection mode shown in fig. 4, the device identifier is acquired for the first time through an entry process based on the information acquisition module 23. Accordingly, the processor 29 may determine the imaging mode of the camera 30 to be tested and the corresponding lens specification according to the recorded device identifier of the camera 30 to be tested.
If the imaging mode of any camera 30 to be tested does not match the imaging mode corresponding to the sampling channel in the sampling tool 10, the processor 29 may generate an alarm prompt indicating that the test of the camera 30 to be tested fails (the alarm prompt may include the device identifier of the camera 30 to be tested). At this time, a person in charge or a supervisor of the device identifier entry node may intervene to check to determine whether the device identifier mismatch of the to-be-tested camera 30 is caused by the device identifier pasting error of the to-be-tested camera 30, so that the barcode rechecking of the to-be-tested device 30 may be implemented.
If the imaging mode of any camera 30 to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool 10, the processor 29 may determine the imaging distance D _ test of the camera 30 to be tested in the imaging mode according to the lens specification corresponding to the imaging mode of the camera 30 to be tested. After determining the imaging distance D _ test of the camera under test in the imaging mode, the processor 29 may further store the device identifier of the camera under test 30 and the imaging distance D _ test of the camera under test in the imaging mode into the waiting queue 400 maintained for the imaging mode of the camera under test 30 (S43).
Each time a camera 30 to be tested is placed in the sampling channel for sampling, the camera 30 to be tested is first connected to the testing device 20. Therefore, the processor 29 may detect the device identifier of the camera under test 30 at the opposite end of the communication connection established for the sampling channel, may query the waiting queue 400 corresponding to the same imaging mode as the sampling channel for the detected device identifier (S45), and may determine the camera under test 30 successfully queried for the device identifier in the waiting queue 400 corresponding to the same imaging mode as the sampling channel as the camera under test to be detected in the sampling channel.
That is, the communication connection peer detection for the first time of obtaining the device identifier in the instant detection mode as shown in fig. 3 may be used as the queue query check in the batch detection mode as shown in fig. 4.
In order to make the order of establishing communication connection between the camera 30 under test and the testing apparatus 20 consistent with the order of the device identifiers in the waiting queue 400, the processor 29 may generate connection prompting information for the device identifier arranged at the head in the waiting queue 400, where the connection prompting information is used to prompt the camera 30 under test corresponding to the device identifier to establish communication connection with the sampling channel corresponding to the waiting queue in the same imaging mode. It is understood that such connection prompt information is only used as a reference prompt for guiding the order of batch detection, and does not mean that the camera 30 under test to be established with the communication connection is necessarily the camera 30 under test corresponding to the prompted equipment identifier.
Thereafter, the controller 19 may monitor the positioning command corresponding to the sampling channel in the manner described above (S21), and in response to the detection result that the distance S _ adj between the sample image plate 11 and the stage 12 in the sampling channel has reached the imaging distance D _ test in the corresponding imaging mode indicated by the positioning command (S23), generate a position notification (S25), and cause the processor 29 to determine the lens detection result of the camera 30 under test corresponding to the imaging mode of the sampling channel by performing sharpness detection on the original image output by the camera 30 under test of the stage 12 placed in the sampling channel (S27).
And, whenever there is a lens detection result of the camera 30 under test in its imaging mode determined, the device identification of the camera 30 under test may be removed from the waiting queue 400 maintained for the imaging mode correspondingly.
As shown in fig. 4, the positioning instruction (S21) generated by the processor 29 may be generated immediately after the camera 30 under test to be detected in the sampling passage is mounted on the table 12 (S47).
For example, the controller 19 may be further configured to generate a status notification corresponding to the sampling channel according to an occupancy status of the table 12 in the sampling channel, where the status notification is used to indicate that the occupancy status of the table 12 in the sampling channel is an in-position status carrying the camera 30 to be tested, or an empty position status in which the camera 30 to be tested is out of position. Moreover, the processor 29 may monitor the status notification corresponding to the sampling channel, and determine, according to the monitored status notification, the occupancy state of the table 12 in the sampling channel corresponding to the same imaging mode as the wait queue 400, so as to allow the generation of the positioning instruction corresponding to the sampling channel during the period that the occupancy state of the table 12 in the sampling channel is the occupancy state.
The above is an example of the lens detection process in which the camera 30 to be tested implements one imaging mode, but in the actual deployment of the sampling tool, more than one sampling channel corresponding to different imaging modes may be set, and the camera 30 to be tested may have more than one imaging mode. At this time, through further optimization, the continuous detection of the camera 30 to be detected in multiple sampling channels can be supported.
Fig. 5 is a schematic diagram of an extended monitoring principle that the lens inspection system shown in fig. 1 supports multi-sampling channel continuous inspection. Referring to fig. 5, taking the example that the sampling tool includes two sampling channels, one of the sampling channels supports visible light imaging and includes the sample image plate 111 and the stage 121 with adjustable spacing (the adjustable spacing between the sample image plate 111 and the stage 121 can be realized by the transmission mechanism 131), and the other sampling channel supports thermal imaging and includes the sample image plate 112 and the stage 122 with adjustable spacing (the adjustable spacing between the sample image plate 112 and the stage 122 can be realized by the transmission mechanism 132).
Accordingly, the first communication module 21 of the testing apparatus 20 may provide two serial interfaces respectively corresponding to different sampling channels, so as to distinguish which sampling channel corresponds to the positioning command, the in-place notification and the status notification; moreover, the second communication module 22 of the testing apparatus 20 may provide two network interfaces respectively corresponding to different sampling channels, so as to distinguish which sampling channel corresponds to the communication connection established with the camera 30 to be tested.
Assuming that the imaging modes of the plurality of cameras 30 to be tested each include visible light imaging and thermal imaging, in the case where the imaging modes of the cameras 30 to be tested are at least two:
processor 29 may select one of the at least two imaging modes of camera under test 30 (e.g., visible light imaging) and store the device identification of camera under test 30 and the imaging distance D _ test _ vis of the camera under test in the selected imaging mode (visible light imaging) into wait queue 410 maintained for the selected imaging mode (visible light imaging).
Thereafter, the controller 19 may monitor the positioning command corresponding to the sampling channel (S21), and generate a position notification (S25) in response to the detection result (S23) that the distance S _ adj _ vis between the sample image plate 111 and the stage 121 in the sampling channel has reached the imaging distance D _ test _ vis in the corresponding imaging mode (visible light imaging) indicated by the positioning command (S23), so that the processor 29 determines the lens detection result of the camera under test 30 corresponding to the sampling channel in the imaging mode (visible light imaging) by performing sharpness detection (S27) on the original image output by the camera under test 30 of the stage 12 placed in the sampling channel.
After determining the lens detection result of the camera to be detected in the imaging mode (visible light imaging) corresponding to the sampling channel, the processor 29 may remove the device identifier of the camera to be detected 30 and the imaging distance D _ test _ vis of the camera to be detected in the selected imaging mode (visible light imaging) from the waiting queue 410 corresponding to the imaging mode (visible light imaging) in which the lens detection result is determined, and detect whether the lens detection results of the camera to be detected 30 in all imaging modes are determined; if there is an imaging mode (thermal imaging) in which the lens detection result of the camera 30 under test is not determined, the processor 29 may store (S50) the device identifier of the camera 30 under test and the imaging distance D _ test _ ther of the camera under test in the imaging mode (thermal imaging) in which the lens detection result of the camera under test is not determined to the waiting queue 420 corresponding to the imaging mode (thermal imaging) in which the lens detection result of the camera under test is not determined, preferably in a manner of being inserted at the head of the waiting queue 420, so that the camera 30 under test that has completed lens detection in one imaging mode can complete lens detection in the remaining imaging modes with the highest priority.
Thereafter, the controller 19 may monitor the positioning command corresponding to the sampling channel in the manner described above (S51), and in response to the detection result (S53) that the spacing S _ adj _ ther between the sample image plate 112 and the stage 122 in the sampling channel has reached the imaging distance D _ test _ ther in the corresponding imaging mode (thermal imaging) indicated by the positioning command (S53), generate a position notification (S55), so that the processor 29 determines the lens detection result of the camera 30 under test corresponding to the imaging mode (thermal imaging) of the sampling channel by performing sharpness detection (S57) on the original image output by the camera 30 under test of the stage 12 placed in the sampling channel.
When the lens detection results of all imaging modes of the camera 30 under test at the detection of the processor 29 have been determined, the lens detection results of all imaging modes of the camera 30 under test may be output in batch (carrying the device identifier of the camera 30 under test).
Preferably, according to the principle of the detection object balance of the two sampling channels, the recorded equipment identifiers of the multiple cameras 30 to be detected and the imaging distances corresponding to the imaging modes are allocated for the first time in the waiting queues 410 and 420, and a balanced and alternate allocation mode can be adopted.
Whether the real-time detection mode is the real-time detection mode shown in fig. 3, the batch detection mode shown in fig. 4, or the multi-sampling-channel continuous detection mode shown in fig. 5, the processor 29 may generate the off-position prompt message for the sampling channel where the camera 30 to be detected for determining the lens detection result is located. Accordingly, the sampling channel may further include an operation warning element (e.g., an acousto-optic generation module), and the controller 19 may be further configured to set the operation warning element in the corresponding sampling channel to a first state indicating that the loading and unloading operation cannot be performed (e.g., generate a visible light with warning significance such as a red light, and/or a sound prompt with warning significance) after the aforementioned in-place notification (S25 or S55) is generated; the controller 19 may further be configured to place the operation alert element in the corresponding sampling channel in a second state indicating that a loading or unloading operation may be performed (e.g., generating a green, safe-sense visible light, and/or a rhythmically crisp audible alert) in response to the monitored out-of-position alert.
Fig. 6 is a schematic diagram of the imaging distance conversion principle of the lens detection system shown in fig. 1. Referring to fig. 6, the sampling channel may further include a distance-increasing mirror 15 located between the sample image plate 11(111 or 112) and the stage 12(121 or 122), and the distance-increasing mirror 15 may provide an imaging distance between the sample image plate 11(111 or 112) and the stage 12(121 or 122) greater than a limited space, so as to facilitate reducing a maximum distance between the sample image plate 11(111 or 112) and the stage 12(121 or 122) in the sampling channel, and further reduce an occupied space of the sampling tool 10.
After determining the imaging distance D _ test in the imaging mode, the testing device 20 (processor 29) may further detect whether the imaging distance D _ test in the imaging mode is greater than the maximum interval or the maximum limit of the interval (e.g., the full stroke distance of the transmission mechanism 13) between the sample image plate 11(111 or 112) and the stage 12(121 or 122) in the corresponding sampling channel. In the case where the imaging distance D _ test in the imaging mode is greater than the maximum interval between the sample image plate 11(111 or 112) and the stage 12(121 or 122) in the corresponding sampling channel, the testing device 20 (processor 29) may convert the imaging distance D _ test in the imaging mode into the variable-magnification reduced distance D _ zoom by using the variable-magnification of the range-finding mirror 15 configured in the sampling channel, so that the generated positioning instruction (S61) indicates the imaging distance D _ test in a combination of the variable-magnification reduced distance D _ zoom and the range-finding flag T _ zoom indicating that the range-finding mirror is enabled.
Accordingly, in the case that the controller 19 of the sampling tool 10 further indicates the imaging distance D _ test in the combination of the zoom reduced distance D _ zoom and the distance increase flag T _ zoom indicating that the distance increasing mirror is enabled in the positioning command corresponding to the sampling channel, the extender 15 that invokes the sampling channel arrangement moves into the imaging optical path of the camera under test 30 carried on the stage 12 of the sampling channel, and in response to a detection result (S63) that the interval S _ adj between the sample image plate 11(111 or 112) and the stage 12(121 or 122) in the sampling channel is the variable-magnification-reduced distance D _ zoom, determining that the interval S _ adj between the sample image plate 11(111 or 112) and the stage 12(121 or 122) in the sampling channel has reached the imaging distance in the corresponding imaging mode indicated by the positioning instruction, and generating a in-place notice (S65) indicating the detection result. Thereafter, in response to the monitored in-place notification corresponding to the sampling channel (S65), the processor 29 determines a lens detection result of the camera under test in the imaging mode corresponding to the sampling channel by performing sharpness detection on the original image output by the camera under test 30 of the table 12 placed in the sampling channel (S67)
Preferably, the sampling channel further includes a displacement mechanism 16 (e.g., a solenoid valve), the controller 19 may further drive the displacement mechanism 16 to push the distance-increasing mirror 15 into the optical path of the camera 30 under test carried on the table 12(121 or 122), and drive the displacement mechanism 16 to move the distance-increasing mirror 15 back into the storage space outside the optical path, so as to avoid the distance-increasing mirror 15 from being damaged due to false collision during the non-detection idle period.
In the case where the transmission mechanism 13 shown in fig. 3 or 4, or the transmission mechanisms 131 and 132 shown in fig. 5 employ a flexible transmission member such as a pulley, the aged looseness of the flexible transmission member easily causes the positional misalignment of the distance control, and for this reason, the controller 19 may further be used to control the transmission mechanism for adjusting the interval between the sample image plate and the stage in the sampling lane to perform the initial distance calibration.
Fig. 7 is a schematic diagram illustrating a tool initial distance calibration principle of the lens detection system shown in fig. 1. Referring to fig. 7, it is assumed that the sample image plate 11 is fixedly disposed, the stage 12 is mounted on the transmission mechanism 13, and the photoelectric switch 130 is disposed at the zero point of the stage 12 closest to the sample image plate 11 in the sampling channel, and the light shielding sheet 120 is disposed on the stage 12.
After the sampling tool 10 is powered on and started, the controller 19 may detect the state of the photoelectric switch 130 in each sampling channel:
for the sampling channel in which the photoelectric switch 130 is not effectively shielded by the light shielding sheet 120 (e.g., in low level output), the transmission mechanism 13 may be driven to move the stage 12 toward the sample image plate 11, and a position where a level jump (e.g., a rising edge of a low level jump to a high level) of the photoelectric switch 130 due to the light shielding sheet 120 is detected is recorded as a zero point position, that is, an initial distance between the sample image plate 11 and the stage 12 is zero.
For the sampling channel in which the photoelectric switch 130 is in a state of being blocked by the light-shielding sheet 120 (for example, high-level output), there may still be misalignment at this time, therefore, the transmission mechanism 13 may be moved to move the stage 12 away from the sample image plate 11, when a level jump (for example, a falling edge of a high-level jump to a low-level jump) of the photoelectric switch 130 due to the disappearance of the blocking is detected, the position at this time is recorded as a temporary zero point position, then the transmission mechanism 13 is continuously driven to move the stage 12 away from the sample image plate 11 by a preset distance starting from the temporary zero point position, the transmission mechanism 13 is driven to move the stage 12 toward the sample image plate 11, and a zero point of the position at which a level jump (for example, a rising edge of a low-level jump to a high-level jump) of the photoelectric switch 130 due to the light-shielding sheet 120 is detected is, i.e. the initial distance at which the distance between the sample image plate 11 and the stage 12 is zero.
The calibration process of the initial distance can support triggering under any set conditions, such as:
the controller 19 can be automatically triggered to calibrate the initial distance after the sampling tool is powered on and started;
alternatively, the controller 19 may be triggered to perform the calibration of the initial distance in response to a switching signal generated by an externally provided reset switch;
still alternatively, the controller 19 may be triggered to perform the calibration of the initial distance after the number of times of performing the interval adjustment reaches a predetermined number of times, or when the counted time after performing the interval adjustment reaches a predetermined time;
it is also possible that the controller 19 triggers a calibration of the initial distance each time the table 12 returns to zero (e.g., detects a level jump of the opto-electronic switch 130 due to the gobo 120), which may be based on a normal homing of the control or a false homing due to a loose error of the transmission 13.
In addition to the imaging distance being controllable, the lens detection system in this embodiment may also support adjustment of the imaging environment.
Fig. 8 is an exemplary schematic diagram of the imaging environment adjustment principle of the lens inspection system shown in fig. 1. Referring to fig. 8, the sampling channel of the sampling tool 10 may further include an environmental adjustment element, for example, the sampling tool includes two sampling channels respectively supporting visible light imaging and thermal imaging:
in the sampling channel supporting the visible light imaging, the environment adjusting element may include a light supplement module 141, and an illumination range of the light supplement module 141 covers the sample image plate 111;
in a sampling channel that supports thermal imaging, the environmental conditioning elements may include a heating element 142 in thermally conductive contact with sample image plate 112.
The processor 29 may generate a configuration instruction of the sampling channel according to the environmental condition of the camera 30 to be detected in the sampling channel in the imaging mode corresponding to the sampling channel (S70), wherein the configuration instruction is used to instruct the imaging environment at the sample image plate 111 or 112 in the sampling channel to satisfy the environmental condition (for example, brightness or temperature) indicated by the configuration instruction.
In addition, the controller 19 may be further configured to monitor a configuration instruction corresponding to the sampling channel (the sampling channel corresponding to the configuration instruction may be distinguished through different serial interfaces provided by the first communication module 21), and determine a working parameter of the environment adjusting element (the light supplement module 141 or the heating element 142) in the corresponding sampling channel according to the monitored configuration instruction.
For example, the operating parameter of the fill-in module 141 may include a light intensity level or a heating level of the heating element 142).
In a case that the light supplement module 141 includes at least two light sources of a visible light source and an infrared light source, the operating parameters of the light supplement module 141 may further include enabling selection of the light sources, for example, the infrared light source may be enabled during a period when the camera 30 to be tested operates in a night shooting mode (black-and-white mode), and the visible light source may be enabled during a period when the camera 30 to be tested operates in a daytime shooting mode (color mode), so that a lens detection result in the imaging mode may be obtained by detecting sharpness of an original image in each imaging mode shot by the camera 30 to be tested in different operating modes.
In addition, other shifting mechanisms similar to the shifting mechanism 16 may be further utilized in the sampling channel to drive auxiliary elements such as a filter or a reflector (for making the light generated by the light supplement module more uniform) that are helpful for improving the imaging quality to move into the illumination path of the light supplement module 141, which is not described herein again.
Fig. 9 is an exemplary flowchart of a sampling control method for shot detection in another embodiment. Referring to fig. 9, the sampling control method for lens detection may be applied to the processor 29 in the foregoing test apparatus 20, and may include:
s910: and determining the imaging mode of the camera to be tested and the corresponding lens specification according to the equipment identification of the camera to be tested.
If the imaging mode of the camera to be tested is not matched with the imaging mode corresponding to the sampling channel in the sampling tool, an alarm prompt of test failure can be generated, and the subsequent steps are skipped to directly finish the lens detection of the camera to be tested;
if the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, the subsequent steps can be continuously executed.
S920: and under the condition that the imaging mode of the camera to be detected is matched with the imaging mode corresponding to the sampling channel in the sampling tool, determining the imaging distance of the camera to be detected in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be detected.
S930: and generating a positioning instruction of the sampling channel according to the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel.
S940: and monitoring a corresponding in-place notice of the sampling channel, wherein the in-place notice is used for indicating that the interval between the sample image plate and the workbench in the sampling channel reaches the imaging distance in the corresponding imaging mode indicated by the positioning instruction.
S950: and responding to the monitored in-place notice corresponding to the sampling channel, and determining a lens detection result of the camera to be detected under the imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel.
Based on the above flow, for the case that the sampling channel corresponding to the imaging mode of the camera to be tested is deployed in the sampling tool and the workbench capable of arranging the camera to be tested in the sampling channel is used for shooting, shooting and imaging the sample image plate: the interval between the sample image plate and the workbench in the sampling channel can be automatically set according to the lens specification of the camera to be detected, so that the camera to be detected can shoot and image the sample image plate at an imaging distance matched with the lens specification without manual adjustment, and an original image capable of reflecting the real imaging effect of the lens can be efficiently and accurately obtained; moreover, the lens detection result of the imaging mode of the camera to be detected can be determined by performing definition detection on the original image output by the camera to be detected, and compared with artificial subjective judgment, the method has higher accuracy and efficiency.
In addition, before S950 in the above flow, a configuration instruction of the sampling channel may be further generated according to an environmental condition of the camera to be detected in the sampling channel in the imaging mode corresponding to the sampling channel, where the configuration instruction is used to indicate that the imaging environment at the sample image plate in the sampling channel satisfies the environmental condition indicated by the configuration instruction. Moreover, the configuration instruction can be bound with a positioning instruction generated correspondingly to the lens detection of the imaging mode of the camera to be detected, which is about to be detected, and issued (synchronously, or successively).
Fig. 10 is a schematic diagram of an optimization process of the sampling control method shown in fig. 9, which is suitable for real-time detection. Referring to fig. 10, the sampling control method may be optimized to include the following steps:
s1000: and responding to the communication connection correspondingly established for the sampling channel by the camera to be tested, and detecting the equipment identification of the camera to be tested at the opposite end of the communication connection correspondingly established for the sampling channel.
S1010: and determining the imaging mode of the camera to be detected and the corresponding lens specification according to the detected equipment identification of the camera to be detected.
If the imaging mode of the camera to be tested is not matched with the imaging mode corresponding to the sampling channel in the sampling tool, an alarm prompt of test failure can be generated, and the subsequent steps are skipped to directly finish the lens detection of the camera to be tested;
if the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, the subsequent steps may be continuously performed, where steps S1020 to S1050 of the subsequent steps are substantially the same as steps S920 to S950 of the flow shown in fig. 8, and are not described herein again.
In addition, before S1050 in the above flow, a configuration instruction of the sampling channel may also be generated according to an environmental condition of the camera to be detected in the sampling channel in the imaging mode corresponding to the sampling channel.
Fig. 11 is a schematic diagram of an optimization flow of the sampling control method shown in fig. 9, which is suitable for batch detection. Referring to fig. 11, the sampling control method may be optimized to include the following steps:
s1110: and recording the equipment identification of the camera to be tested. For example, the device identifier obtained by reading the device identifier of the camera to be tested is acquired, or the device identifier of the camera to be tested, which is manually input by an external device comparing the device identifier, is acquired.
If the imaging mode of the camera to be tested is not matched with the imaging mode corresponding to the sampling channel in the sampling tool, an alarm prompt of test failure can be generated, and the subsequent steps are skipped to directly finish the lens detection of the camera to be tested;
if the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, the subsequent steps can be continuously executed.
S1120: and determining the imaging distance of the camera to be detected in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be detected.
S1130: and storing the equipment identification of the camera to be tested and the imaging distance of the camera to be tested in the imaging mode into a waiting queue correspondingly maintained for the imaging mode.
After this step, connection prompt information may be further generated for the equipment identifier arranged at the head in the waiting queue, where the connection prompt information is used to prompt the camera to be tested corresponding to the equipment identifier to establish communication connection with the sampling channel corresponding to the waiting queue in the same imaging mode.
S1140: and detecting the equipment identifier of the camera to be detected of the opposite end of the communication connection established corresponding to the sampling channel, and inquiring the detected equipment identifier in a waiting queue corresponding to the sampling channel and having the same imaging mode.
In this step, the camera to be tested of the communication connection opposite end may be the camera to be tested prompted by the connection prompt information, or may not be the camera to be tested prompted by the connection prompt information. That is, the indication effect generated by the connection prompt information does not restrict the subsequent steps.
S1150: and determining the camera to be detected of the equipment identifier successfully inquired in the waiting queue corresponding to the sampling channel in the same imaging mode as the camera to be detected in the sampling channel.
S1160: and generating a positioning instruction of the sampling channel according to the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel.
After the foregoing S1150, the positioning instruction may not be immediately generated, but a status notification corresponding to the sampling channel may be monitored first, where the status notification is used to indicate that the occupied state of the workbench in the sampling channel is an in-place state for bearing the camera to be tested, or a vacant state for leaving the camera to be tested; and determining the occupation state of the workbench in the sampling channel corresponding to the waiting queue in the same imaging mode according to the monitored state notice, and allowing the step to generate the positioning instruction corresponding to the sampling channel in the period that the occupation state of the workbench in the sampling channel is in the in-place state.
S1170: and monitoring a corresponding in-place notice of the sampling channel, wherein the in-place notice is used for indicating that the interval between the sample image plate and the workbench in the sampling channel reaches the imaging distance in the corresponding imaging mode indicated by the positioning instruction.
S1180: and responding to the monitored in-place notice corresponding to the sampling channel, and determining a lens detection result of the camera to be detected under the imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel.
After the step, off-position prompt information can be further generated for the sampling channel where the camera to be detected for determining the lens detection result is located.
Under the condition that the imaging modes of the sampling channel and the camera to be tested are at least two:
s1130 in the above process may select one of at least two imaging modes of the camera to be tested, and store the device identifier of the camera to be tested and the imaging distance of the camera to be tested in the selected imaging mode into the waiting queue corresponding to the selected imaging mode; after determining the lens detection result of the camera to be detected corresponding to the imaging mode of the sampling channel through the S1180, it may be further detected whether the lens detection results of the camera to be detected in all imaging modes are determined; if the camera to be detected has an imaging mode of which the lens detection result is not determined, storing the equipment identification of the camera to be detected and the imaging distance of the camera to be detected in the imaging mode of which the lens detection result is not determined into a waiting queue correspondingly maintained for the imaging mode of which the lens detection result is not determined; otherwise, outputting the lens detection results of all imaging modes of the camera to be detected in batch.
In addition, before S1180 in the above flow, a configuration instruction of the sampling channel may be further generated according to an environmental condition of the camera to be detected in the sampling channel in the imaging mode corresponding to the sampling channel, where the configuration instruction is used to indicate that the imaging environment at the sample image plate in the sampling channel satisfies the environmental condition indicated by the configuration instruction. Even if a plurality of cameras to be detected adopt a batch detection mode, a configuration instruction can be generated correspondingly for the lens detection of the imaging mode of each camera to be detected, and the configuration instruction generated correspondingly for the lens detection of each imaging mode of each camera to be detected can be bound and issued (can be issued synchronously or can be issued successively) with a positioning instruction generated correspondingly for the lens detection of the specified imaging mode of the camera to be detected.
Fig. 12 is a schematic diagram of an expansion flow of the sampling control method based on imaging distance conversion as shown in fig. 9. Referring to fig. 12, in the case that the maximum separation that the sampling channel can provide for the sample image plate and the stage is less than the maximum requirement of the imaging distance, the sampling control method in this embodiment may be extended to include:
s1210: and determining the imaging mode of the camera to be tested and the corresponding lens specification according to the equipment identification of the camera to be tested. The device identifier used in this step may be obtained as in S1000 in the flow shown in fig. 10, or may also be obtained as in S1110 in the flow shown in fig. 11.
If the imaging mode of the camera to be tested is not matched with the imaging mode corresponding to the sampling channel in the sampling tool, an alarm prompt of test failure can be generated, and the subsequent steps are skipped to directly finish the lens detection of the camera to be tested;
if the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, the subsequent steps can be continuously executed.
S1220: and under the condition that the imaging mode of the camera to be detected is matched with the imaging mode corresponding to the sampling channel in the sampling tool, determining the imaging distance of the camera to be detected in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be detected.
S1230: and detecting whether the imaging distance in the imaging mode is larger than the maximum interval between the sample image plate and the workbench in the corresponding sampling channel.
If so, jumping to S1240, otherwise, skipping S1240 and executing S1250.
S1240: in the case where the imaging distance in the imaging mode is greater than the maximum interval between the sample image plate and the stage in the corresponding sampling channel, the imaging distance in the imaging mode is converted into a variable-magnification conversion distance by the variable-magnification factor of the range-finding mirror provided in the sampling channel, and the imaging distance is replaced with a combination of the variable-magnification conversion distance and a range-finding indicating that the range-finding mirror is enabled, and then S1250 is performed.
S1250: and generating a positioning instruction of the sampling channel according to the imaging distance or the alternative representation of the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel. Wherein:
if the step is directly executed by skipping S1240 from S1230, the imaging distance determined in S1220 may be included in the positioning instruction generated in the step.
If S1240 is executed again after S1230 to reach this step, the positioning instruction generated in this step indicates the imaging distance as a combination of the zoom reduced distance and the distance increasing target indicating that the distance increasing mirror is activated, so as to move the distance increasing mirror arranged in the sampling channel into the imaging optical path of the camera to be tested carried on the stage of the sampling channel and make the interval between the sample image plate and the stage in the sampling channel reach the zoom reduced distance.
S1260: and monitoring a corresponding in-place notice of the sampling channel, wherein the in-place notice is used for indicating that the interval between the sample image plate and the workbench in the sampling channel reaches the imaging distance in the corresponding imaging mode indicated by the positioning instruction.
S1270: and responding to the monitored in-place notice corresponding to the sampling channel, and determining a lens detection result of the camera to be detected under the imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (15)

1. A sampling control method for shot detection is characterized by comprising the following steps:
determining an imaging mode of the camera to be tested and a corresponding lens specification according to the equipment identification of the camera to be tested;
under the condition that the imaging mode of the camera to be tested is matched with the imaging mode corresponding to the sampling channel in the sampling tool, determining the imaging distance of the camera to be tested in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be tested;
generating a positioning instruction of the sampling channel according to the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel;
monitoring an in-place notice corresponding to the sampling channel, wherein the in-place notice is used for indicating that the interval between the sample image plate and the workbench in the sampling channel reaches the imaging distance in the corresponding imaging mode indicated by the positioning instruction;
responding to the monitored in-place notice corresponding to the sampling channel, and determining a lens detection result of the camera to be detected under the imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel.
2. The sampling control method according to claim 1,
before determining the imaging mode of the camera to be tested and the corresponding lens specification according to the equipment identifier of the camera to be tested, the method further comprises the following steps: recording an equipment identifier of a camera to be tested;
after determining the imaging distance of the camera to be tested in the imaging mode according to the lens specification corresponding to the imaging mode of the camera to be tested, the method further comprises the following steps: storing the equipment identification of the camera to be tested and the imaging distance of the camera to be tested in the imaging mode into a waiting queue correspondingly maintained for the imaging mode; and the number of the first and second groups,
before generating a positioning instruction of a sampling channel according to an imaging distance of a camera to be detected in the sampling channel in an imaging mode corresponding to the sampling channel, the method further includes: the method comprises the steps of detecting the equipment identification of a camera to be detected of a communication connection opposite end established corresponding to a sampling channel, inquiring the detected equipment identification in a waiting queue corresponding to the sampling channel in the same imaging mode, and determining the camera to be detected of which the equipment identification is successfully inquired in the waiting queue corresponding to the sampling channel in the same imaging mode as the sampling channel as the camera to be detected in the sampling channel.
3. The sampling control method according to claim 2, wherein before detecting the device identifier of the camera to be tested at the opposite end of the communication connection established for the sampling channel, the method further comprises:
and generating connection prompt information for the equipment identifier arranged at the head in the waiting queue, wherein the connection prompt information is used for prompting that the camera to be tested corresponding to the equipment identifier is about to establish communication connection with the sampling channel corresponding to the waiting queue in the same imaging mode.
4. The sampling control method according to claim 2, wherein determining that the camera to be tested that is successfully queried for the device identifier in the waiting queue corresponding to the same imaging mode as the sampling channel is immediately behind the camera to be tested that is detected in the sampling channel further comprises:
monitoring a state announcement corresponding to the sampling channel, wherein the state announcement is used for indicating that the occupied state of a workbench in the sampling channel is an in-place state for bearing a camera to be tested or a vacancy state for off-place of the camera to be tested;
and determining the occupation state of the workbench in the sampling channel according to the monitored state notice corresponding to the sampling channel, and allowing a positioning instruction corresponding to the sampling channel to be generated in the period that the occupation state of the workbench in the sampling channel is in the in-place state.
5. The sampling control method according to claim 2, characterized in that, in the case where the sampling channel and the imaging mode of the camera to be tested are both at least two:
storing the equipment identification of the camera to be tested and the imaging distance of the camera to be tested in the imaging mode into a waiting queue correspondingly maintained for the imaging mode, wherein the waiting queue comprises: selecting one of at least two imaging modes of a camera to be tested, and storing the equipment identifier of the camera to be tested and the imaging distance of the camera to be tested in the selected imaging mode into a waiting queue correspondingly maintained for the selected imaging mode;
after determining a lens detection result of the camera to be detected in an imaging mode corresponding to the sampling channel by performing definition detection on an original image output by the camera to be detected of the workbench placed in the sampling channel, the method further comprises the following steps: detecting whether lens detection results of the camera to be detected in all imaging modes are determined; if the camera to be detected has an imaging mode of which the lens detection result is not determined, storing the equipment identification of the camera to be detected and the imaging distance of the camera to be detected in the imaging mode of which the lens detection result is not determined into a waiting queue correspondingly maintained for the imaging mode of which the lens detection result is not determined; otherwise, outputting the lens detection results of all imaging modes of the camera to be detected in batch.
6. The sampling control method according to claim 1, wherein after determining a lens detection result of the camera to be detected in the imaging mode corresponding to the sampling channel by performing sharpness detection on an original image output by the camera to be detected of the stage placed in the sampling channel, the method further comprises:
and generating dislocation prompt information for a sampling channel corresponding to the imaging mode of the determined lens detection result of the camera to be detected.
7. The sampling control method according to claim 1, wherein after determining an imaging distance of the camera to be tested in the imaging mode according to a lens specification corresponding to the imaging mode of the camera to be tested, the method further comprises:
detecting whether the imaging distance in the imaging mode is larger than the maximum interval between the sample image plate and the workbench in the corresponding sampling channel;
and in the case that the imaging distance in the imaging mode is larger than the maximum interval between the sample image plate and the workbench in the corresponding sampling channel, converting the imaging distance in the imaging mode into a variable-magnification conversion distance by using the variable-magnification factor of the distance-increasing mirror configured in the sampling channel, so that the generated positioning instruction indicates the imaging distance by the combination of the variable-magnification conversion distance and a distance-increasing mark indicating that the distance-increasing mirror is enabled.
8. The sampling control method according to claim 1, wherein before determining a lens detection result of a camera to be detected in an imaging mode corresponding to the sampling channel by performing sharpness detection on an original image output by the camera to be detected of a stage placed in the sampling channel, the method further comprises:
and generating a configuration instruction of the sampling channel according to the environmental condition of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel, wherein the configuration instruction is used for indicating that the imaging environment at the sample image plate in the sampling channel meets the environmental condition indicated by the configuration instruction.
9. A testing apparatus for lens inspection, comprising:
a processor for performing the sampling control method of any one of claims 1 to 8;
the first communication module is used for establishing communication connection between the processor and the sampling tool; and the number of the first and second groups,
and the second communication module is used for switchably establishing communication connection between the processor and the camera to be tested.
10. The utility model provides a sampling frock for camera lens detects which characterized in that includes:
the sampling channel is correspondingly deployed for at least one imaging mode, wherein the sampling channel comprises a sample image plate with adjustable intervals and a workbench;
the controller is used for monitoring a positioning instruction corresponding to the sampling channel, wherein the positioning instruction is used for indicating the imaging distance of the camera to be detected in the sampling channel under the imaging mode corresponding to the sampling channel; detecting a spacing between a sample image plate and a workbench in a corresponding sampling channel in response to the monitored positioning instruction; in response to a detection result that the interval between the sample image plate and the stage in the sampling channel has reached the imaging distance in the corresponding imaging mode indicated by the positioning instruction, a presence notification indicating the detection result is generated.
11. The sampling tool of claim 10, wherein the controller is further configured to generate a status notification corresponding to the sampling channel according to an occupancy status of the workbench in the sampling channel, wherein the status notification is used to indicate that the occupancy status of the workbench in the sampling channel is an in-place status for bearing the camera to be tested or an empty status for off-place of the camera to be tested.
12. The sampling tool of claim 10, wherein the sampling channel further comprises a range-finding mirror, and the controller is further configured to, in a case where the imaging distance is indicated by a combination of a variable-magnification reduced distance and a range-finding mark indicating that the range-finding mirror is enabled in a positioning command corresponding to the sampling channel, call the range-finding mirror arranged in the sampling channel to move into an imaging optical path of a camera to be tested carried on a stage of the sampling channel, and determine that the interval between the sample image plate and the stage in the sampling channel has reached the imaging distance indicated by the positioning command in response to a detection result that the interval between the sample image plate and the stage in the sampling channel is the variable-magnification reduced distance.
13. The sampling tool of claim 10, wherein the sampling channel further comprises an environmental conditioning element, and the controller is further configured to monitor a configuration command corresponding to the sampling channel, wherein the configuration command is configured to indicate that an imaging environment at the sample image plate in the sampling channel satisfies an environmental condition indicated by the configuration command; and determining working parameters of the environment adjusting elements in the corresponding sampling channels according to the monitored configuration instructions.
14. The sampling tool of claim 10, wherein the sampling channel further comprises a drive mechanism for adjusting a spacing between the sample image plate and the stage, and wherein the controller is further configured to control the drive mechanism to perform an initial distance calibration between the sample image plate and the stage.
15. A lens inspection system comprising a test apparatus according to claim 9 and a sampling tool according to any one of claims 10 to 14.
CN202010741191.2A 2020-07-29 2020-07-29 Sampling control method and testing device for lens detection and sampling tool Active CN111855156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010741191.2A CN111855156B (en) 2020-07-29 2020-07-29 Sampling control method and testing device for lens detection and sampling tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010741191.2A CN111855156B (en) 2020-07-29 2020-07-29 Sampling control method and testing device for lens detection and sampling tool

Publications (2)

Publication Number Publication Date
CN111855156A true CN111855156A (en) 2020-10-30
CN111855156B CN111855156B (en) 2022-07-26

Family

ID=72948490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010741191.2A Active CN111855156B (en) 2020-07-29 2020-07-29 Sampling control method and testing device for lens detection and sampling tool

Country Status (1)

Country Link
CN (1) CN111855156B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5041859A (en) * 1988-10-04 1991-08-20 Nikon Corporation Automatic focusing detection device for cameras
JPH11211974A (en) * 1998-01-22 1999-08-06 Canon Inc Image pickup device
US6178051B1 (en) * 1998-02-10 2001-01-23 Canon Kabushiki Kaisha Lens control apparatus
US6330399B1 (en) * 1999-03-29 2001-12-11 Fuji Photo Film Co., Ltd. Photographic camera
US20040042003A1 (en) * 2002-02-21 2004-03-04 Dispenza Anthony J. Method and system for inspecting optical devices
CN201096609Y (en) * 2007-06-20 2008-08-06 中兴通讯股份有限公司 Photo-taking mobile phone image-forming quality measurement device
CN101872059A (en) * 2010-06-18 2010-10-27 南京理工大学 Automatic focusing system and method thereof of OTF (Optical Transfer Function) tester
US20110274420A1 (en) * 2010-05-10 2011-11-10 Canon Kabushiki Kaisha Imaging apparatus and method for controlling same
CN102692347A (en) * 2012-05-08 2012-09-26 浙江工业大学 Camera automatic regulating image acquisition device and method for fatigue crack propagation test
CN102707545A (en) * 2012-06-21 2012-10-03 武汉烽火众智数字技术有限责任公司 DFF-based auto-focusing method
WO2016062076A1 (en) * 2014-10-22 2016-04-28 中兴通讯股份有限公司 Camera-based positioning method, device, and positioning system
CN107764522A (en) * 2017-11-24 2018-03-06 中山依瓦塔光学有限公司 Mobile phone simulation shooting is as quality detection instrument
CN108156447A (en) * 2017-11-09 2018-06-12 吴英 Camera imaging based on luminous point detection manages system
CN108594589A (en) * 2018-05-09 2018-09-28 深圳阜时科技有限公司 A kind of camera module detecting device
CN108833770A (en) * 2018-05-23 2018-11-16 释码融和(上海)信息科技有限公司 Image definition calculation method, calculating equipment and focusing system for focusing
CN109451237A (en) * 2018-11-13 2019-03-08 信利光电股份有限公司 A kind of focusing AA method and apparatus of camera module
CN109862346A (en) * 2019-01-11 2019-06-07 歌尔股份有限公司 Test method of focusing and equipment
CN111277762A (en) * 2020-03-05 2020-06-12 昆山丘钛微电子科技有限公司 Focusing method, device, equipment and medium for camera module

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5041859A (en) * 1988-10-04 1991-08-20 Nikon Corporation Automatic focusing detection device for cameras
JPH11211974A (en) * 1998-01-22 1999-08-06 Canon Inc Image pickup device
US6178051B1 (en) * 1998-02-10 2001-01-23 Canon Kabushiki Kaisha Lens control apparatus
US6330399B1 (en) * 1999-03-29 2001-12-11 Fuji Photo Film Co., Ltd. Photographic camera
US20040042003A1 (en) * 2002-02-21 2004-03-04 Dispenza Anthony J. Method and system for inspecting optical devices
CN201096609Y (en) * 2007-06-20 2008-08-06 中兴通讯股份有限公司 Photo-taking mobile phone image-forming quality measurement device
US20110274420A1 (en) * 2010-05-10 2011-11-10 Canon Kabushiki Kaisha Imaging apparatus and method for controlling same
CN101872059A (en) * 2010-06-18 2010-10-27 南京理工大学 Automatic focusing system and method thereof of OTF (Optical Transfer Function) tester
CN102692347A (en) * 2012-05-08 2012-09-26 浙江工业大学 Camera automatic regulating image acquisition device and method for fatigue crack propagation test
CN102707545A (en) * 2012-06-21 2012-10-03 武汉烽火众智数字技术有限责任公司 DFF-based auto-focusing method
WO2016062076A1 (en) * 2014-10-22 2016-04-28 中兴通讯股份有限公司 Camera-based positioning method, device, and positioning system
CN108156447A (en) * 2017-11-09 2018-06-12 吴英 Camera imaging based on luminous point detection manages system
CN107764522A (en) * 2017-11-24 2018-03-06 中山依瓦塔光学有限公司 Mobile phone simulation shooting is as quality detection instrument
CN108594589A (en) * 2018-05-09 2018-09-28 深圳阜时科技有限公司 A kind of camera module detecting device
CN108833770A (en) * 2018-05-23 2018-11-16 释码融和(上海)信息科技有限公司 Image definition calculation method, calculating equipment and focusing system for focusing
CN109451237A (en) * 2018-11-13 2019-03-08 信利光电股份有限公司 A kind of focusing AA method and apparatus of camera module
CN109862346A (en) * 2019-01-11 2019-06-07 歌尔股份有限公司 Test method of focusing and equipment
CN111277762A (en) * 2020-03-05 2020-06-12 昆山丘钛微电子科技有限公司 Focusing method, device, equipment and medium for camera module

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ALEX HOMER,JOHN SHARP, LARRY BRADER,MASASHI NARUMOTO: "《云计算架构设计模式》", 31 October 2017, 华中科技大学出版社 *
中华人民共和国国家质量监督检验检疫总局中国国家标准化管理委员会: "《中华人民共和国国家标准 GB/T9917.2-2008》", 7 October 2008 *
孙首雷: "《高像素CMOS摄像头模组检测技术研究》", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Also Published As

Publication number Publication date
CN111855156B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
US5912699A (en) Method and apparatus for rapid capture of focused microscopic images
EP1188086B1 (en) A device and a method for an infrared image analysing autofocus
EP2709350B1 (en) Configuration of image capturing settings
EP1997134A1 (en) Apparatus and method for detecting defects in wafer using line sensor camera
US20160252424A1 (en) Characterization and evaluation of optical elements under vibrational loading
US20160255341A1 (en) Characterization and evaluation of optical elements under vibrational loading
CN109714535A (en) A kind of auto-focusing machine vision metrology device and method based on color difference
JP2012149928A (en) Characteristic inspection device of af lens unit and characteristic inspection method for the same, control program, readable storage medium
CN111855156B (en) Sampling control method and testing device for lens detection and sampling tool
CN112730406A (en) Product testing method, system and readable storage medium
CN115578321A (en) Finished product detection system and method for industrial production
KR102077281B1 (en) SoC based steel surface defect detection system
CN111263141B (en) Camera detection method and device and production line system
CN111665249B (en) Light intensity adjusting method and system and optical detection equipment
CN102164288A (en) Camera and method for switching color mode of camera
WO2014179269A2 (en) Apparatus and method for generating in-focus images using parallel imaging in a microscopy system
KR101482733B1 (en) multiple channel camera module measuring apparatus and method thereof
CN115052337A (en) Novel intelligent head-mounted terminal inspection system based on AI-Beacon
JPWO2017179520A1 (en) Optical measuring apparatus, failure determination system, failure determination method, and failure determination program
US5793482A (en) Multiple optical lens system with auto-focus calibration
US6298152B1 (en) Image recognition system using light-section method
CN214893969U (en) Automatic detection system for optical annular assembly
US8279326B2 (en) Light quantity detecting apparatus and imaging apparatus
US5144356A (en) Temperature compensated infrared optical imaging system
US6985217B2 (en) System and method for inspecting a light source of an image reader

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