Dual-camera focusing and focus checking system based on UVC mode
By using a focus and focus verification system based on UVC mode, adaptive focus and focus verification of dual camera modules were achieved, solving the problems of increased cycle time and focus misjudgment caused by different physical distance tests, and improving focus accuracy and yield.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 70MAI CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-05-19
AI Technical Summary
In the existing technology, the focusing and focus verification process of dual-camera modules has problems such as extended cycle time, increased operation error rate, blurred MTF peak positioning, high misjudgment of focusing and high re-inspection rate due to different physical distance tests, and the inability to identify focus drift in time after lens glue application.
The focusing and focus verification system based on UVC mode includes a central control unit, an electric sliding rail chart platform, a teleconverter module, a dispensing and curing device, and an alarm and sorting interface. It achieves adaptive focusing and focus verification by identifying the camera type, automatically adjusting the test distance and ISP parameters, and making dynamic judgments in conjunction with the MTF threshold table, and performing drift comparison after dispensing.
It achieves adaptive focusing and focus verification of dual-camera modules, improves focusing convergence accuracy, reduces re-inspection rate, ensures stable focus of lenses before delivery, and increases yield to over 99.2%.
Smart Images

Figure CN122069342A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a focusing and focus checking system for dual cameras based on UVC mode. Background Technology
[0002] In existing technologies, during the focusing and focus verification process on the production line of dual-camera modules, a testing system based on the USB VideoClass (UVC) protocol is typically used, along with a standard MTF chart, to evaluate the optical performance of the main and auxiliary cameras separately. A typical testing setup includes a fixed chart platform, a UVC host controller, image analysis software, and a manual switching mechanism. The main camera needs to be focused at a distance of 5 meters, while the auxiliary camera needs to be focused at a distance of 3 meters. Both share the same testing station but rely on different physical testing distances. During testing, the camera module connects to the UVC host via a USB 3.0 interface to acquire ISO 12233 chart images. The software calculates the MTF values of the B0a–B8a frequency bands as the basis for focusing judgment. To avoid interference from ISP image processing algorithms in the original optical performance judgment, the sharpening module is usually turned off during the focusing stage, entering a "de-sharpened IQ" mode. Currently, existing technologies still have the following technical drawbacks: Due to the difference in focal length, the main camera and auxiliary camera need to be tested at different physical distances. The production line must be equipped with multiple sets of chart fixtures or manually move chart platforms, which leads to longer cycle times and increased operational error rates. In UVC mode, focusing requires turning off the ISP sharpening function to obtain a true optical response. However, the decrease in image contrast blurs the MTF peak positioning, affecting the focusing convergence accuracy. If sharpening is retained, false sharpness will be introduced, causing misjudgment of focusing. The MTF pass threshold varies at different stages such as focusing, focus inspection, and final inspection of the whole machine. However, the existing system uses static threshold rules and cannot dynamically switch the judgment criteria according to the test context, resulting in a high re-inspection rate. Without an automatic retesting mechanism after lens adhesive is applied and cured, the focus may drift slightly due to thermal stress or mechanical vibration, which cannot be detected in time. Defective products flow into subsequent processes, affecting the final image quality. Summary of the Invention
[0003] One objective of this application is to provide a focusing and focus verification system for dual cameras based on UVC mode, which enables adaptive focusing and focus verification of dual cameras based on UVC mode, so that the cameras delivered to users can work in the best possible condition.
[0004] According to one aspect of this application, a dual-camera focusing and focus verification system based on UVC mode is provided, wherein the system includes: The system includes a central control unit, a dual-camera module DUT connected to the central control unit, an electric sliding rail chart platform, a teleconverter module, a dispensing and curing device, and an alarm and sorting interface. The dispensing and curing device is connected to the dual-camera module DUT. The dual-camera module DUT includes a main camera and an auxiliary camera, which are fixedly installed on the test fixture and operate in UVC video stream mode. The electric sliding rail chart platform is set on the extension line of the optical axis in front of the dual camera module DUT, and is equipped with a high-contrast MTF chart. The base is fixed on the linear guide rail and driven by a stepper motor. The teleconverter module is fixedly installed in the optical path between the electric sliding rail Chart platform and the dual camera module DUT, and the teleconverter module is inserted into or removed from the optical path by a miniature linear motor. The central control unit identifies whether the currently activated camera is a main camera or an auxiliary camera. Based on the identification result, it sends a movement command to the motorized sliding chart platform or an insertion / exit command to the teleconverter module. It loads the ISP parameter set corresponding to the currently activated camera type and obtains the video stream of the current test phase. It calls the MTF threshold table corresponding to the current test phase to calculate and compare the MTF values of each frequency band of the video stream of the current test phase, and stores the MTF baseline value when focusing is completed. After applying adhesive, it calculates the MTF change rate of each frequency band during focus verification. The dispensing and curing device is located downstream of the focusing station and is used to dispense and cure the lens mount of the camera that has been focused in the dual-camera module DUT. After curing, the robotic arm sends the dual-camera module DUT back to the focus inspection station for focus inspection. If an abnormality is determined in the MTF based on the MTF change rate of each frequency band calculated during focus inspection, the alarm and sorting interface triggers an audible and visual alarm and reports it for sorting and interception.
[0005] Furthermore, in the above system, the dual-camera module DUT is connected to the UVC host controller port of the central control unit via a USB 3.0 interface; The high-contrast MTF chart installed in the motorized sliding chart platform is used to provide a reference target for optical performance testing; wherein, the motorized sliding chart platform moves along the optical axis within a distance range of 0.5 meters to 5.5 meters, and communicates with the central control unit via RS485 bus to receive distance setting commands from the central control unit. The teleconverter module includes an RL19130 type optical teleconverter lens and a set of miniature linear motors. The miniature linear motors control the optical teleconverter lens to insert into or retract from the optical path in a direction perpendicular to the optical axis. The dispensing and curing device includes a UV dispensing head and a robotic arm, used to apply adhesive to the lens mounts of the cameras in the dual-camera module DUT that have been focused and then perform ultraviolet curing. The input terminal of the alarm and sorting interface is connected to the digital I / O port of the central control unit, and the output terminal of the alarm and sorting interface is connected to the audible and visual alarm and the manufacturing execution system (MES) respectively. It is used to trigger an alarm signal when an abnormality is detected in the camera and upload the abnormality judgment result to the MES.
[0006] Furthermore, in the above system, the central control unit is an embedded industrial control computer that runs focusing control software and integrates a camera pattern recognition module, a distance adaptive scheduling module, a UVC IQ parameter management module, an MTF analysis engine, a rule judgment engine, and a drift comparison module before and after dispensing. The camera pattern recognition module identifies whether the currently active camera is the main camera or the auxiliary camera by reading the descriptor of the UVC device of the dual-camera module DUT. The distance adaptive scheduling module sends a movement command to the electric slide rail in the electric slide rail Chart platform or an insertion / exit command to the teleconverter module based on the recognition result. The UVC IQ parameter management module loads the ISP parameter set corresponding to the currently activated camera type. The ISP parameter set includes: sharpening coefficient, noise reduction intensity, and color matrix, to adapt to the parameters required by the camera in different testing stages. The MTF analysis engine obtains the video stream of the current test phase from the UVC device of the dual-camera module DUT, and calculates the MTF value of each frequency band using the Fast Fourier Transform (FFT) algorithm or the edge gradient method. The rule determination engine calls the MTF threshold table corresponding to the current test stage from the preset rule base, compares the MTF values of each frequency band of the video stream in the current test stage, and determines whether the focusing of the currently activated camera is qualified. The drift comparison module before and after dispensing stores the MTF baseline value when focusing is completed and the focus is qualified. When checking the focus after dispensing, it calculates the MTF change rate of each frequency band.
[0007] Furthermore, in the above system, the system also includes: Adjust the focus of the activated camera: Step S1: The central control unit reads the descriptor of the UVC device of the dual-camera module DUT through the USB 3.0 interface, extracts the manufacturer identifier VID and product identifier PID, and the camera pattern recognition module identifies and determines that the currently activated camera is the main camera. Step S2: The distance adaptive scheduling module generates a first distance command based on the determined main camera, controls the electric sliding rail Chart platform to move to a physical position of 1.1 meters, and simultaneously controls the teleconverter module to insert into the optical path, wherein the optical equivalent is a test distance of 5 meters. Step S3: The UVC IQ parameter management module loads the desharpened IQ parameter set corresponding to the main camera. The desharpened parameter set includes turning off sharpening and noise reduction intensity so that the output of the DUT device is close to the video stream with real optical performance. In step S4, the electric sliding rail Chart platform drives the lens to move gradually along the optical axis via a stepper motor. With each step, the MTF analysis engine calculates the MTF value of each frequency band at the current position in real time and searches for the optimal focal length position corresponding to the MTF peak. Step S5: The rule determination engine loads the MTF threshold table corresponding to the focusing stage from the preset rule base, and compares the measured MTF values of each frequency band with the MTF thresholds of each frequency band in the MTF threshold table corresponding to the focusing stage one by one to determine whether the focusing of the currently activated camera is qualified. Step S6: If the focusing is qualified, the drift comparison module before and after dispensing records and stores the MTF values of each frequency band measured at the moment as the baseline value. In step S7, the dual-camera module DUT is moved to the dispensing and curing device, and the lens mount of the dual-camera module DUT is dispensed and cured at a fixed point using the UV dispensing head to lock the lens position.
[0008] Furthermore, in the above system, the system also includes: Perform a focus check on the activated camera: Step V1: After the adhesive dispensing and curing are completed, the robotic arm in the adhesive dispensing and curing device sends the dual-camera module DUT to the focus return / focus verification station. Step V2: Repeat steps S1 and S2 to identify the type of the currently activated camera and set the corresponding test distance; Step V3: The UVC IQ parameter management module loads the full-color IQ parameter set, which includes enabling sharpening, color matrix and noise reduction, to verify the final image quality. Step V4: The MTF analysis engine calculates the MTF values of each frequency band of the video stream under full-color IQ based on the acquired video stream under full-color IQ. Step V5: The rule-based judgment engine loads the MTF threshold table corresponding to the focus verification stage from the preset rule base and makes a pass / fail judgment on the MTF values of each frequency band of the video stream under the retested full-color IQ. Step V6: The drift comparison module before and after dispensing compares the MTF values of each frequency band of the video stream under full-color IQ with the MFT values of each frequency band in the baseline values stored in step S6, and calculates the MTF change rate of each frequency band to determine whether the MTF is qualified or abnormal. Step V7: If the MTF is qualified and the drift is within the allowable range, the currently active camera is determined to have passed the focus test; if the MTF is abnormal, the alarm and sorting interface triggers an audible and visual alarm and reports the abnormality determination result to the MES for sorting and interception.
[0009] Furthermore, in the above system, the system also includes: The teleconverter module also includes a variable-focus liquid lens, which achieves equivalent distance switching by adjusting the focal length through voltage.
[0010] Furthermore, in the above system, the system also includes: The electric sliding chart platform was replaced with a fixed platform, and all distance simulations were completed using only the teleconverter module.
[0011] Furthermore, in the above system, the system also includes: The dispensing curing device integrates a temperature sensor and a vibration monitoring module to provide real-time feedback on curing environment parameters, which are used to correct the MTF drift prediction model.
[0012] Furthermore, in the above system, the system also includes: The central control unit is deployed in the cloud and communicates with production line equipment via the OPC UA protocol to update the remote focusing strategy.
[0013] Compared with existing technologies, this application provides a focusing and focus verification system for dual cameras based on UVC mode. The system includes: a central control unit, a dual-camera module DUT connected to the central control unit, an electric sliding rail chart platform, a teleconverter module, a dispensing and curing device, and an alarm and sorting interface. The dispensing and curing device is connected to the dual-camera module DUT. The dual-camera module DUT includes a main camera and an auxiliary camera, fixedly mounted on a test fixture, and operates in UVC video stream mode. The electric sliding rail chart platform is located on the dual-camera module DUT. A high-contrast MTF chart is mounted on the extended line of the optical axis in front of the T-shaped platform. The base is fixed to a linear guide rail and driven by a stepper motor. The teleconverter module is fixedly installed in the optical path between the motorized sliding chart platform and the dual-camera module DUT. A miniature linear motor controls the insertion and withdrawal of the teleconverter module from the optical path. Through a collaborative control mechanism between the motorized sliding chart platform and the teleconverter module, automatic switching of the equivalent test distance between the main camera and the auxiliary camera is achieved. The central control unit identifies whether the currently active camera is the main camera or the auxiliary camera, and based on the identification result, moves the head towards the motorized sliding chart platform. The sliding chart platform sends movement commands or insertion / exit commands to the teleconverter module, loads the ISP parameter set corresponding to the currently active camera type, and acquires the video stream of the current test phase. It then calls the MTF threshold table corresponding to the current test phase to calculate and compare the MTF values of each frequency band in the video stream of the current test phase, and stores the MTF baseline value at the time of focusing completion. After adhesive application, it calculates the MTF change rate of each frequency band during focus verification. By calling the MTF threshold table corresponding to different test phases such as focusing, focus verification, and final inspection, it achieves... The MTF values at different testing stages are compared; the dispensing and curing device is located downstream of the focusing station and is used to dispense and cure the lens mounts of the cameras in the dual-camera module DUT that have completed focusing. After curing, the robotic arm sends the dual-camera module DUT back to the focusing inspection station for focusing inspection; if the MTF is found to be abnormal based on the MTF change rate of each frequency band calculated during focusing inspection, the alarm and sorting interface triggers an audible and visual alarm and reports it for sorting and interception. This realizes adaptive focusing and focusing inspection of dual cameras based on UVC mode, so that the cameras delivered to users can work in the best working condition. Attached Figure Description
[0014] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A schematic diagram of the overall structure of a dual-camera focusing and focus verification system based on UVC mode according to one aspect of this application is shown. Figure 2 This diagram shows a partial structural schematic of an electric sliding rail chart platform and teleconverter module in a UVC-mode dual-camera focusing and focusing system according to one aspect of this application. Figure 3 This diagram illustrates the functional block diagram of the central control unit in a UVC-mode dual-camera focusing and focusing system according to one aspect of this application. Detailed Implementation
[0015] The present application will now be described in further detail with reference to the accompanying drawings.
[0016] In a typical configuration of this application, the terminal, the device of the service network, and the trusted party all include one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0017] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0018] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0019] like Figure 1 As shown, Figure 1This application presents a schematic diagram of the overall structure of a dual-camera focusing and focus verification system based on UVC mode, one aspect of which includes: a central control unit 300, dual-camera module DUTs connected to the central control unit 300, an electric sliding rail chart platform 100, a teleconverter module 200, a dispensing and curing device 400, and an alarm and sorting interface 500. The dispensing and curing device 400 is connected to the dual-camera module DUT. In this system, through the coordinated control of the electric sliding rail chart platform 100 and the teleconverter module 200, combined with the multi-stage rule engine of the central control unit 300, automatic distance adaptation, IQ parameter switching, MTF dynamic determination, and closed-loop verification after dispensing are achieved between the main camera and the auxiliary camera at a single test station. In this system, the dual-camera module DUT includes a main camera and an auxiliary camera, which are fixedly mounted on the test fixture and operate in UVC video stream mode. The dual-camera module DUT is connected to the UVC host controller port of the central control unit through a USB 3.0 interface, so as to transmit image data in accordance with the standard UVC video stream protocol.
[0020] The motorized sliding chart platform 100 is positioned on the extension line of the optical axis in front of the dual-camera module DUT. A high-contrast MTF chart, conforming to the ISO12233 standard, is mounted on the motorized sliding chart platform 100 to provide a reference target for optical writing performance testing. The base of the motorized sliding chart platform 100 is fixed to a linear guide rail, which can be a precision linear guide rail driven by a closed-loop controlled stepper motor. It can move along the optical axis within a distance range of 0.5 meters to 5.5 meters, with a repeatability accuracy of ±0.1 mm. It communicates with the central control unit 300 via an RS485 bus to receive distance setting commands from the central control unit 300.
[0021] The teleconverter module 200 is fixedly installed in the optical path between the motorized sliding chart platform and the dual-camera module DUT. A miniature linear motor controls the insertion and withdrawal of the teleconverter module from the optical path. A schematic diagram of the teleconverter module 200 is shown below. Figure 2 As shown, it includes an RL19130 type optical teleconverter and a drive structure of a miniature linear motor. The miniature linear motor can control the optical teleconverter to be inserted into or removed from the optical path in a direction perpendicular to the optical axis. When the teleconverter module 200 is in the inserted state, the indicated optical effect makes a map at a physical distance of 1.1 meters equivalent to an object 5 meters or 3 meters away on the imaging plane. The specific equivalent distance depends on the focal length parameters of the camera being tested and the installation position of the teleconverter.
[0022] The central control unit 300 identifies whether the currently activated camera is a main camera or an auxiliary camera. Based on the identification result, it sends a movement command to the motorized sliding chart platform 100 or an insertion / exit command to the teleconverter module. It loads the ISP parameter set corresponding to the currently activated camera type and obtains the video stream of the current test phase. It calls the MTF threshold table corresponding to the current test phase to calculate and compare the MTF values of each frequency band of the video stream of the current test phase, and stores the MTF baseline value when focusing is completed. After applying adhesive, it calculates the MTF change rate of each frequency band during focus verification.
[0023] The dispensing and curing device 400 is located downstream of the focusing station and is used to dispense and cure adhesive onto the lens mounts of the focused cameras in the dual-camera module DUT. After curing, a robotic arm returns the dual-camera module DUT to the focus verification station for focus verification. The dispensing and curing device 400 comprises a UV dispensing head and a robotic arm assembly. After focusing, it performs targeted dispensing and UV curing on the lens mounts of the focused cameras in the dual-camera module DUT. After curing, the robotic arm returns the dual-camera module DUT to the original testing station for subsequent focus verification. The focusing station and the focus verification station are the same station. It should be noted that the purpose of dispensing and curing is to lock the lens at the optimal focal length after focusing, preventing focus shift due to vibration or handling in subsequent processes.
[0024] If an anomaly is determined in the MTF (Mean Transmission Factor) based on the MTF change rate calculated during focus inspection, the alarm and sorting interface 500 triggers an audible and visual alarm and reports it for sorting and interception. Here, the input of the alarm and sorting interface 500 is connected to the digital I / O port of the central control unit 300, and the output of the alarm and sorting interface 500 is connected to both an audible and visual alarm and the manufacturing execution system (MES), used to trigger an alarm signal and upload the anomaly determination result to the MES when an anomaly is detected in the camera.
[0025] Continuing with the above embodiments of this application, the central control unit 300 is an embedded industrial control computer that runs focusing control software. The central control unit 300 integrates multiple functional modules, such as... Figure 3As shown, the system integrates a camera pattern recognition module, a distance adaptive scheduling module, a UVC IQ parameter management module, an MTF analysis engine, a rule-based decision engine, and a drift comparison module before and after dispensing. These modules interact via an internal bus or shared memory. Specifically, the camera pattern recognition module identifies whether the currently active camera is the main camera or an auxiliary camera by reading the UVC device descriptor of the dual-camera module DUT. The UVC device descriptor includes, but is not limited to, the UVC device's manufacturer ID and product ID.
[0026] The distance adaptive scheduling module sends movement commands to the electric sliding rail in the electric sliding rail Chart platform or insertion / exit commands to the teleconverter module based on the recognition results (main camera or auxiliary camera).
[0027] The UVC IQ parameter management module loads the ISP parameter set corresponding to the currently active camera type from the local configuration file. The ISP parameter set includes, but is not limited to, sharpening coefficient, noise reduction intensity, and color matrix, to adapt to the parameters required by the camera in different testing stages. For example, desharpening IQ parameters are loaded during the focusing stage, and full-color IQ parameters are loaded during the focus verification stage.
[0028] The MTF analysis engine obtains the video stream of the current test phase from the UVC device of the dual-camera module DUT, and calculates the MTF value of each frequency band using the Fast Fourier Transform (FFT) algorithm or the edge gradient method; here, the edge gradient method is only applicable to embedded platforms with low computing power.
[0029] The rule-based judgment engine calls the MTF threshold table corresponding to the current test stage from the preset rule base, compares the MTF values of each frequency band of the video stream in the current test stage, and determines whether the focusing of the currently activated camera is qualified. Here, the test stage may include, but is not limited to, the focusing stage, the focus verification stage, and the final inspection stage.
[0030] The drift comparison module before and after dispensing stores the MTF baseline value when focusing is completed and the focus is qualified. When checking the focus after dispensing, it calculates the MTF change rate of each frequency band.
[0031] It should be noted that the video stream obtained from the UVC device of the dual-camera module DUT during the current testing phase can be either Bayer RAW or YUV, both originating from the dual-camera module DUT. The difference lies in the testing phase and IQ configuration. Specifically, during the focusing phase, when desharpening IQ parameters are used, the dual-camera module DUT is more likely to output a Bayer RAW video stream (or a RAW-like video stream); during the focus verification phase, when full-color IQ parameters are used, the dual-camera module DUT is more likely to output a YUV video stream. Furthermore, both the Bayer RAW and YUV video streams are provided by the dual-camera module DUT via the UVC device and received by the central control unit 300. The MTF analysis engine analyzes the stream based on the type of stream used in the current testing phase (RAW video stream or YUV video stream).
[0032] The rule-based judgment engine retrieves MTF threshold tables corresponding to different testing stages from a pre-set rule base. This is used to determine whether the MTF values for each frequency band (B0a–B8a) calculated by the MTF analysis engine are acceptable or unacceptable (OK or NG). Since the criteria for judging optical performance differ for the same camera at different testing stages, different MTF threshold tables need to be loaded based on the current testing stage. For example, during the focusing stage, the goal is to find the optimal focal length position corresponding to the MTF peak. At this time, the dual-camera module DUT is in desharpened IQ parameter mode, ISP sharpening is turned off, and the overall MTF value is relatively low. Therefore, the acceptable MTF thresholds for each frequency band in the MTF threshold table during the focusing stage are relatively low (reflecting the baseline requirements of pure optical performance), used to determine whether the focusing has converged to an acceptable optical focus position.
[0033] During the focus verification stage, after the focus is completed and the adhesive is cured, the dual-camera module returns to the testing station for retesting. At this time, the full-color IQ parameters are loaded (sharpening is enabled), and the overall MTF value will be higher than that in the focus verification stage. Therefore, in the MTF threshold table of the focus verification stage, the qualified MTF threshold for each frequency band is higher than that in the focus verification stage. This is used to determine whether the optical performance after adhesive curing still meets the requirements, that is, to detect whether the focus has drifted due to thermal stress or vibration during the curing process.
[0034] In the final inspection stage, after the complete machine assembly is completed, the final inspection is carried out. The MTF threshold table corresponds to the shipment quality standard, which is usually the most stringent. It is used to make the final OK or NG judgment of the finished product. NG products will trigger an alarm and be intercepted by the sorting interface 500.
[0035] In the embodiments of this application, both the focusing stage and the focus verification stage share a common preparatory action: identifying the camera type and setting the test distance. This action needs to be performed in both the focusing and focus verification stages to prepare the correct test distance. For example, when the system is running, the central control unit 300 first reads the descriptor of the UVC device of the dual-camera module through the USB 3.0 interface, extracts the vendor ID (VID) and product ID (PID) from the UVC device descriptor, and the camera pattern recognition module in the central control unit 300 determines whether the currently activated camera is the main camera or the auxiliary camera according to a preset mapping table. If the main camera is identified, the distance adaptive scheduling module in the central control unit 300 generates a first distance command. This first distance command includes two actions: first, sending a movement command to the motorized sliding chart platform 100 to move it to a physical position of 1.1 meters; second, sending an insertion command to the teleconverter module 200 to allow the teleconverter to enter the optical path, thereby optically equating the 1.1-meter physical position to a 5-meter test distance. If it is identified as an auxiliary camera, the distance adaptive scheduling module generates a second distance command, which controls the electric sliding rail Chart platform 100 to move to a physical position of 3 meters.
[0036] Continuing with the above embodiments of this application, the system further includes: performing a focusing operation on the activated camera, specifically including the following steps: Step S1 (Camera Recognition): The central control unit 300 reads the descriptor of the UVC device of the dual-camera module DUT through the USB 3.0 interface, and extracts the manufacturer identifier VID and product identifier PID so that the camera pattern recognition module can identify whether the currently activated camera is the main camera or the auxiliary camera. When the camera pattern recognition module determines that the currently activated camera is the main camera, in step S2 (test distance setting), the distance adaptive scheduling module generates a first distance command according to the determined main camera, controls the electric sliding rail Chart platform 100 to move to a physical position of 1.1 meters, and simultaneously controls the teleconverter module to insert into the optical path, wherein the optical equivalent is a test distance of 5 meters. Step S3 (IQ parameter loading): The UVC IQ parameter management module loads the desharpened IQ parameter set corresponding to the main camera. The desharpened parameter set includes turning off sharpening and noise reduction intensity, so that the output of the DUT device is close to the video stream with real optical performance. Step S4 (focusing execution): The electric sliding rail Chart platform drives the lens of the currently activated camera to move gradually along the optical axis direction through a stepper motor. With each step, the MTF analysis engine calculates the MTF value of each frequency band at the current position in real time (such as the MTF value of each frequency band from B0a to B8a), and searches for the optimal focal length position corresponding to the MTF peak. Step S5 (focusing determination): The rule determination engine loads the MTF threshold table corresponding to the focusing stage from the preset rule base, and compares the measured MTF values of each frequency band with the MTF thresholds of each frequency band in the MTF threshold table corresponding to the focusing stage one by one to determine whether the focusing of the currently activated camera is qualified (OK or NG). Step S6 (baseline storage): If the focusing is qualified, the drift comparison module before and after dispensing records and stores the MTF values of each frequency band measured at the moment as the baseline value. Step S7 (dispensing and curing): The dual-camera module DUT is moved to the dispensing and curing device 400, and the lens mount of the dual-camera module DUT is dispensed and cured at a fixed point through the UV dispensing head to lock the lens position, so that the focusing operation of the currently active camera can be realized through steps S1 to S7.
[0037] Following the above embodiments of this application, after focusing the currently activated camera, it is also necessary to perform a focus check operation on the activated camera to determine whether the optical performance of the camera still meets the requirements after adhesive curing, that is, to detect whether the focus has drifted due to thermal stress or vibration during the curing process. The focus check operation specifically includes the following steps: Step V1 (Return to Position): After the adhesive dispensing and curing are completed, the robotic arm in the adhesive dispensing and curing device 400 sends the dual-camera module DUT back to the focus / focus verification station. Step V2 (Camera Recognition and Test Distance Setting): Repeat steps S1 and S2 to identify the type of the currently active camera and set the corresponding test distance. Step V3 (IQ parameter switching): The UVC IQ parameter management module loads the full-color IQ parameter set, which includes full ISP processing such as enabling sharpening, color matrix and noise reduction, to verify the final image quality of the currently activated camera. Step V4 (retest): The MTF analysis engine calculates the MTF values of each frequency band of the video stream under full-color IQ based on the acquired video stream under full-color IQ. Step V5 (Focus Verification): The rule-based judgment engine loads the MTF threshold table corresponding to the focus verification stage from the preset rule base and performs a pass / fail determination on the MTF values of each frequency band of the video stream under the retested full-color IQ. Step V6 (drift comparison): The drift comparison module before and after dispensing compares the MTF values of each frequency band of the video stream under full-color IQ with the MFT values of each frequency band in the baseline values stored in step S6, and calculates the MTF change rate of each frequency band to determine whether the MTF is qualified or abnormal. Here, when the MTF is abnormal, it includes, but is not limited to, MTF unqualified or drift exceeding the limit. Step V7 (Result Processing): If the MTF is qualified and the drift is within the allowable range, the focus verification of the currently active camera is determined to be successful; if the MTF is abnormal, the alarm and sorting interface 500 triggers an audible and visual alarm and reports the abnormality determination result to the MES for sorting and interception, so that the focus verification operation of the currently active camera can be realized through steps V1 to V7.
[0038] Following all the embodiments described above in this application, the teleconverter module may further include: a variable-focus liquid lens, which achieves equivalent distance switching by adjusting the focal length through voltage.
[0039] Following all the embodiments described above in this application, the electric sliding rail Chart platform 100 can be replaced with a fixed platform, relying solely on the teleconverter module to complete all distance simulations.
[0040] Following all the embodiments described above in this application, the dispensing curing device may also integrate a temperature sensor and a vibration monitoring module to provide real-time feedback of curing environment parameters for correcting the MTF drift prediction model.
[0041] Following all the embodiments described above in this application, the central control unit can also be deployed in the cloud and communicate with production line equipment via the OPC UA protocol to complete the update of the remote focusing strategy.
[0042] In the above embodiments of this application, the combined use of the electric sliding rail chart platform and the teleconverter module can not only realize the automatic switching of the equivalent test distance of 5 meters for the main camera and 3 meters for the auxiliary camera, but also enable the main camera and the auxiliary camera to complete the focusing or checking of different equivalent distances at the same test station without changing the fixture or manual intervention, so that the test can be shortened by more than 40%.
[0043] The UVC IQ parameter management module loads desharpened IQ parameters during the focusing phase and full-color IQ parameters during the focus verification phase. This ensures accurate optical performance during focusing and verifies the final image quality during focus verification, preventing false focus. Here, after the system identifies the currently active camera type (main camera or auxiliary camera) and completes distance adaptation, the central control unit 300 automatically invokes the UVC IQ parameter management module to perform parameter loading operations based on the current testing phase. If the current phase is focusing, regardless of whether it's the main camera or auxiliary camera, the UVC IQ parameter management module reads the desharpened IQ parameter set from the local configuration file and writes it to the camera module's ISP register via the USB 3.0 / UVC channel, disabling image enhancement functions such as sharpening and noise reduction. This operation is completed before the camera starts its video stream, ensuring that subsequently acquired images are original optical response data used by the MTF analysis engine to calculate the intrinsic optical MTF value, avoiding misjudgments in focusing due to false sharpness introduced by ISP processing. If the current stage is focus verification (including retesting after adhesive curing), the UVC IQ parameter management module loads the full-color IQ parameter set, restoring all image processing functions such as sharpening, color matrix, and noise reduction, putting the camera in its final user-delivered state. At this time, the acquired images are used by the MTF analysis engine to calculate the overall MTF value of the imaging system to verify whether the final image quality meets the shipping standards. Of course, in this embodiment, the parameter loading action is automatically linked to the testing stage without manual intervention, ensuring that the optical evaluation objectives of the focusing and focus verification stages are clear and do not interfere with each other.
[0044] The rule-based decision engine dynamically loads MTF threshold tables corresponding to different testing phases, and supports updating standards for different suppliers or product models through XML configuration files, eliminating the need for manual re-inspection.
[0045] The drift comparison module before and after dispensing automatically records the focusing baseline and retests it after curing. It can intercept products with excessive MTF drift in real time, and the yield rate can be increased to over 99.2%.
[0046] In summary, this application provides a focusing and focus verification system for dual cameras based on UVC mode. The system includes: a central control unit, a dual-camera module DUT connected to the central control unit, an electric sliding rail chart platform, a teleconverter module, a dispensing and curing device, and an alarm and sorting interface. The dispensing and curing device is connected to the dual-camera module DUT. The dual-camera module DUT includes a main camera and an auxiliary camera, fixedly mounted on a test fixture, and operates in UVC video stream mode. The electric sliding rail chart platform is positioned in front of the dual-camera module DUT. A high-contrast MTF chart is mounted on the extension line of the optical axis of the square, with its base fixed on a linear guide rail and driven by a stepper motor. The teleconverter module is fixedly installed in the optical path between the motorized sliding chart platform and the dual-camera module DUT. A miniature linear motor controls the insertion and withdrawal of the teleconverter module from the optical path. Through the coordinated control mechanism of the motorized sliding chart platform and the teleconverter module, the equivalent test distance of the main camera and the auxiliary camera is automatically switched. The central control unit identifies whether the currently active camera is the main camera or the auxiliary camera, and based on the identification result, moves the head towards the motorized sliding chart platform. The track-based chart platform sends movement commands or insertion / exit commands to the teleconverter module, loads the ISP parameter set corresponding to the currently active camera type, and acquires the video stream of the current test phase. It then calls the MTF threshold table corresponding to the current test phase to calculate and compare the MTF values of each frequency band in the video stream of the current test phase, and stores the MTF baseline value at the time of focusing completion. After adhesive application, it calculates the MTF change rate of each frequency band during focus verification. By calling the MTF threshold table corresponding to different test phases such as focusing, focus verification, and final inspection, it achieves [the desired effect]. Comparison of MTF values at different testing stages; the dispensing and curing device is located downstream of the focusing station and is used to dispense and cure the lens mounts of the cameras in the dual-camera module DUT that have completed focusing. After curing, the robotic arm sends the dual-camera module DUT back to the focusing inspection station for focusing inspection; if the MTF is found to be abnormal based on the MTF change rate of each frequency band calculated during focusing inspection, the alarm and sorting interface triggers an audible and visual alarm and reports it for sorting and interception. This realizes adaptive focusing and focusing inspection of dual cameras based on UVC mode, so that the cameras delivered to users can work in the best working condition.
[0047] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, a magnetic or optical drive, a floppy disk, or similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.
[0048] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions invoking the methods of this application may be stored in a fixed or removable recording medium, and / or transmitted via data streams in broadcast or other signal carrying media, and / or stored in the working memory of a computer device operating according to the program instructions. Here, one embodiment of this application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the apparatus is triggered to operate the methods and / or technical solutions based on the foregoing embodiments of this application.
[0049] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.
Claims
1. A focusing and focus verification system for dual cameras based on UVC mode, wherein, The system includes: The system includes a central control unit, a dual-camera module DUT connected to the central control unit, an electric sliding rail chart platform, a teleconverter module, a dispensing and curing device, and an alarm and sorting interface. The dispensing and curing device is connected to the dual-camera module DUT. The dual-camera module DUT includes a main camera and an auxiliary camera, which are fixedly installed on the test fixture and operate in UVC video stream mode. The electric sliding rail chart platform is set on the extension line of the optical axis in front of the dual camera module DUT, and is equipped with a high-contrast MTF chart. The base is fixed on the linear guide rail and driven by a stepper motor. The teleconverter module is fixedly installed in the optical path between the electric sliding rail Chart platform and the dual camera module DUT, and the teleconverter module is inserted into or removed from the optical path by a miniature linear motor. The central control unit identifies whether the currently activated camera is a main camera or an auxiliary camera. Based on the identification result, it sends a movement command to the motorized sliding chart platform or an insertion / exit command to the teleconverter module. It loads the ISP parameter set corresponding to the currently activated camera type and obtains the video stream of the current test phase. It calls the MTF threshold table corresponding to the current test phase to calculate and compare the MTF values of each frequency band of the video stream of the current test phase, and stores the MTF baseline value when focusing is completed. After applying adhesive, it calculates the MTF change rate of each frequency band during focus verification. The dispensing and curing device is located downstream of the focusing station and is used to dispense and cure the lens mount of the camera that has been focused in the dual-camera module DUT. After curing, the robotic arm sends the dual-camera module DUT back to the focus inspection station for focus inspection. If an abnormality is determined in the MTF based on the MTF change rate of each frequency band calculated during focus inspection, the alarm and sorting interface triggers an audible and visual alarm and reports it for sorting and interception.
2. The system according to claim 1, wherein, The dual-camera module DUT is connected to the UVC host controller port of the central control unit via a USB 3.0 interface; The high-contrast MTF chart installed in the motorized sliding chart platform is used to provide a reference target for optical performance testing; wherein, the motorized sliding chart platform moves along the optical axis within a distance range of 0.5 meters to 5.5 meters, and communicates with the central control unit via RS485 bus to receive distance setting commands from the central control unit. The teleconverter module includes an RL19130 type optical teleconverter lens and a set of miniature linear motors. The miniature linear motors control the optical teleconverter lens to insert into or retract from the optical path in a direction perpendicular to the optical axis. The dispensing and curing device includes a UV dispensing head and a robotic arm, used to apply adhesive to the lens mounts of the cameras in the dual-camera module DUT that have been focused and then perform ultraviolet curing. The input terminal of the alarm and sorting interface is connected to the digital I / O port of the central control unit, and the output terminal of the alarm and sorting interface is connected to the audible and visual alarm and the manufacturing execution system (MES) respectively. It is used to trigger an alarm signal when an abnormality is detected in the camera and upload the abnormality judgment result to the MES.
3. The system according to claim 2, wherein, The central control unit is an embedded industrial control computer that runs focusing control software and integrates a camera pattern recognition module, a distance adaptive scheduling module, a UVC IQ parameter management module, an MTF analysis engine, a rule judgment engine, and a drift comparison module before and after dispensing. The camera pattern recognition module identifies whether the currently active camera is the main camera or the auxiliary camera by reading the descriptor of the UVC device of the dual-camera module DUT. The distance adaptive scheduling module sends a movement command to the electric slide rail in the electric slide rail Chart platform or an insertion / exit command to the teleconverter module based on the recognition result. The UVC IQ parameter management module loads the ISP parameter set corresponding to the currently activated camera type. The ISP parameter set includes: sharpening coefficient, noise reduction intensity, and color matrix, to adapt to the parameters required by the camera in different testing stages. The MTF analysis engine obtains the video stream of the current test phase from the UVC device of the dual-camera module DUT, and calculates the MTF value of each frequency band using the Fast Fourier Transform (FFT) algorithm or the edge gradient method. The rule determination engine calls the MTF threshold table corresponding to the current test stage from the preset rule base, compares the MTF values of each frequency band of the video stream in the current test stage, and determines whether the focusing of the currently activated camera is qualified. The drift comparison module before and after dispensing stores the MTF baseline value when focusing is completed and the focus is qualified. When checking the focus after dispensing, it calculates the MTF change rate of each frequency band.
4. The system according to claim 3, wherein, The system also includes: Adjust the focus of the activated camera: Step S1: The central control unit reads the descriptor of the UVC device of the dual-camera module DUT through the USB 3.0 interface, extracts the manufacturer identifier VID and product identifier PID, and the camera pattern recognition module identifies and determines that the currently activated camera is the main camera. Step S2: The distance adaptive scheduling module generates a first distance command based on the determined main camera, controls the electric sliding rail Chart platform to move to a physical position of 1.1 meters, and simultaneously controls the teleconverter module to insert into the optical path, wherein the optical equivalent is a test distance of 5 meters. Step S3: The UVC IQ parameter management module loads the desharpened IQ parameter set corresponding to the main camera. The desharpened parameter set includes turning off sharpening and noise reduction intensity so that the output of the DUT device is close to the video stream with real optical performance. In step S4, the electric sliding rail Chart platform drives the lens to move gradually along the optical axis via a stepper motor. With each step, the MTF analysis engine calculates the MTF value of each frequency band at the current position in real time and searches for the optimal focal length position corresponding to the MTF peak. Step S5: The rule determination engine loads the MTF threshold table corresponding to the focusing stage from the preset rule base, and compares the measured MTF values of each frequency band with the MTF thresholds of each frequency band in the MTF threshold table corresponding to the focusing stage one by one to determine whether the focusing of the currently activated camera is qualified. Step S6: If the focusing is qualified, the drift comparison module before and after dispensing records and stores the MTF values of each frequency band measured at the moment as the baseline value. In step S7, the dual-camera module DUT is moved to the dispensing and curing device, and the lens mount of the dual-camera module DUT is dispensed and cured at a fixed point using the UV dispensing head to lock the lens position.
5. The system according to claim 4, wherein, The system also includes: Perform a focus check on the activated camera: Step V1: After the adhesive dispensing and curing are completed, the robotic arm in the adhesive dispensing and curing device sends the dual-camera module DUT to the focus return / focus verification station. Step V2: Repeat steps S1 and S2 to identify the type of the currently activated camera and set the corresponding test distance; Step V3: The UVC IQ parameter management module loads the full-color IQ parameter set, which includes enabling sharpening, color matrix and noise reduction, to verify the final image quality. Step V4: The MTF analysis engine calculates the MTF values of each frequency band of the video stream under full-color IQ based on the acquired video stream under full-color IQ. Step V5: The rule-based judgment engine loads the MTF threshold table corresponding to the focus verification stage from the preset rule base and makes a pass / fail judgment on the MTF values of each frequency band of the video stream under the retested full-color IQ. Step V6: The drift comparison module before and after dispensing compares the MTF values of each frequency band of the video stream under full-color IQ with the MFT values of each frequency band in the baseline values stored in step S6, and calculates the MTF change rate of each frequency band to determine whether the MTF is qualified or abnormal. Step V7: If the MTF is qualified and the drift is within the allowable range, the currently active camera is determined to have passed the focus test; if the MTF is abnormal, the alarm and sorting interface triggers an audible and visual alarm and reports the abnormality determination result to the MES for sorting and interception.
6. The system according to claim 2, wherein, The system also includes: The teleconverter module also includes a variable-focus liquid lens, which achieves equivalent distance switching by adjusting the focal length through voltage.
7. The system according to claim 1, wherein, The system also includes: The electric sliding chart platform was replaced with a fixed platform, and all distance simulations were completed using only the teleconverter module.
8. The system according to claim 3, wherein, The system also includes: The dispensing curing device integrates a temperature sensor and a vibration monitoring module to provide real-time feedback on curing environment parameters, which are used to correct the MTF drift prediction model.
9. The system according to claim 1, wherein, The system also includes: The central control unit is deployed in the cloud and communicates with production line equipment via the OPC UA protocol to update the remote focusing strategy.