System, method and device for automatically testing driving function of camera
The square wave electrical signal of the camera lens driving circuit is collected through the simulation test device and the signal acquisition device, which solves the problems of inefficiency and misjudgment in the prior art, and realizes automatic testing and accurate judgment of the camera lens driving circuit function.
Patent Information
- Application Number
- CN202411559947.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-07
AI Technical Summary
The function test of the lens driver circuit interface of the existing camera motherboard is inefficient, and there are problems of manual misjudgment and misjudgment, resulting in functional abnormalities not being discovered in time.
Using analog testing devices and signal acquisition devices, the analog focus and aperture adjustment devices generate square wave electrical signals through mechanical actions, collect and process electrical signals to judge the function of the lens driving circuit to avoid manual operation and misjudgment.
It improves testing efficiency, reduces manual misjudgment and misjudgment, and ensures the accuracy and reliability of the interface function of the lens driving circuit.
Smart Images

Figure CN119277051A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera testing, and more specifically to a camera driving function automatic testing system, method and device. Background Art
[0002] At present, it is becoming more and more popular for security surveillance cameras to support automatic aperture and automatic focus functions. During the production process of surveillance cameras, it is necessary to test the automatic focus and automatic aperture lens drive functions of their mainboards to ensure that the lens drive circuit interface of the surveillance camera mainboard functions normally.
[0003] The current traditional testing method is to connect a physical lens to the mainboard of the surveillance camera being tested, and then manually operate the surveillance camera to focus and adjust the aperture size, and then manually view the image or listen to the sound of the lens turning to judge whether the lens drive circuit interface function is normal. This method is inefficient and relies on manual subjective judgment, which has problems such as subjectivity and misjudgment. At the same time, the labor cost is high, and problems such as employee leakage or failure to test cannot be effectively controlled, which will lead to problems such as abnormal functions of the mainboard lens drive interface not being intercepted. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a camera drive function automatic test system, method and device, aiming to solve the problems of low efficiency, misdetection and missed detection of the existing lens drive circuit interface function test method.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present invention provides an automatic test system for a camera driving function, comprising a simulation test device and a signal acquisition device, wherein the simulation test device is connected to a camera lens driving circuit interface, and the signal acquisition device is connected to the simulation test device, wherein the simulation test device comprises a simulation focusing device and a simulation aperture adjustment device, wherein the simulation focusing device and the simulation aperture adjustment device perform mechanical actions according to driving electrical signals of the camera lens driving circuit interface, and the signal acquisition device acquires square wave electrical signals generated when the simulation focusing device and the simulation aperture adjustment device mechanically act.
[0007] Furthermore, the simulated focusing device and the simulated aperture adjustment device both include a motor, a transmission mechanism, a light-shielding plate and a photoelectric sensor. The transmission mechanism is connected to the motor in a transmission manner, and the light-shielding plate is connected to the transmission mechanism and rotates under the transmission action of the transmission mechanism to periodically shield the photoelectric sensor.
[0008] In a second aspect, the present invention further provides a camera driving function automatic test method, which is applied to the above-mentioned camera driving function automatic test system, and the method comprises:
[0009] Collect the square wave electrical signal generated by the photoelectric sensor being periodically blocked by the light shielding sheet;
[0010] Process the square wave electrical signal to obtain the rotation data of the motor;
[0011] Check whether the camera lens drive circuit functions normally based on the motor rotation data.
[0012] Furthermore, the processing of the square wave electrical signal to obtain the rotation data of the motor includes:
[0013] Calculate the time difference between two adjacent square wave edges in a square wave electrical signal;
[0014] The time taken by the motor to rotate one circle is calculated based on the time difference between two adjacent square wave edges;
[0015] The rotation speed of the motor is calculated based on the time it takes for the motor to rotate one circle.
[0016] Furthermore, determining whether the camera lens driving circuit function is normal according to the rotation data of the motor includes:
[0017] Compare the motor's rotation data with the benchmark data;
[0018] If the comparison results are consistent or within the set threshold range, it is determined that the camera lens drive circuit functions normally.
[0019] In a third aspect, the present invention further provides a camera driving function automatic test device, which is applied to the above-mentioned camera driving function automatic test system, and the device comprises:
[0020] A collection unit, used for collecting square wave electrical signals generated when the photoelectric sensor is periodically blocked by the light shielding sheet;
[0021] A square wave electrical signal processing unit, used for processing the square wave electrical signal to obtain rotation data of the motor;
[0022] The judging unit is used to determine whether the camera lens driving circuit functions normally according to the rotation data of the motor.
[0023] Furthermore, the square wave electrical signal processing unit comprises:
[0024] A first calculation module is used to calculate the time difference between two adjacent square wave edges in the square wave electrical signal;
[0025] The second calculation module is used to calculate the time taken by the motor to rotate one circle according to the time difference between two adjacent square wave edges;
[0026] The third calculation module is used to calculate the rotation speed of the motor according to the time taken for the motor to rotate one circle.
[0027] Furthermore, the judging unit includes:
[0028] A comparison module, used to compare the rotation data of the motor with the reference data;
[0029] The determination module is used to determine that the camera lens drive circuit functions normally if the comparison results are consistent or within a set threshold range.
[0030] In a fourth aspect, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned automatic camera driving function testing method when executing the computer program.
[0031] In a fifth aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the automatic camera driving function testing method as described above.
[0032] The beneficial effects of the present invention compared with the prior art are as follows: the camera driving function automatic test system provided by the present invention comprises a simulation test device and a signal acquisition device, the simulation test device is connected to the camera lens driving circuit interface, the signal acquisition device is connected to the simulation test device, the simulation test device comprises a simulation focusing device and a simulation aperture adjustment device, the simulation focusing device and the simulation aperture adjustment device perform mechanical actions according to the driving electrical signal of the camera lens driving circuit interface, and the signal acquisition device collects the square wave electrical signal generated when the simulation focusing device and the simulation aperture adjustment device perform mechanical actions. The present invention utilizes the simulation focusing device and the simulation aperture adjustment device to simulate the focusing and aperture adjustment of the physical lens, thereby determining whether the camera lens driving circuit function is normal according to the simulated situation, without the need to use the physical lens and without manual operation, thus greatly improving the test efficiency and avoiding the problem of easy misdetection and missed detection in manual testing.
[0033] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0035] Figure 1 A block diagram of a camera driving function automatic testing system provided by a specific embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the structure of a simulation test device in a camera driving function automatic test system provided by a specific embodiment of the present invention;
[0037] Figure 3 A schematic diagram of a portion of the structure of a simulation test device in a camera driving function automatic test system provided in a specific embodiment of the present invention;
[0038] Figure 4 A flowchart of a method for automatically testing a camera driving function provided by a specific embodiment of the present invention;
[0039] Figure 5 A schematic diagram and block diagram of a camera driving function automatic testing device provided by a specific embodiment of the present invention;
[0040] Figure 6 A schematic block diagram of a computer device provided for a specific embodiment of the present invention.
[0041] Reference numerals
[0042] 1. Simulation test device; 11. Simulation focusing device; 111. Motor; 112. Transmission mechanism; 113. Shading plate; 114. Photoelectric sensor; 12. Simulation aperture adjustment device; 2. Signal acquisition device; 3. Camera lens drive circuit interface. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0045] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0046] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] See also Figure 1 The embodiment of the present invention provides a camera driving function automatic test system, including a simulation test device 1 and a signal acquisition device 2. The simulation test device 1 is connected to a camera lens driving circuit interface 3, and the signal acquisition device 2 is connected to the simulation test device 1. The simulation test device 1 includes a simulation focusing device 11 and a simulation aperture adjustment device 12. The simulation focusing device 11 and the simulation aperture adjustment device 12 perform mechanical actions according to the driving electrical signal of the camera lens driving circuit interface 3. The signal acquisition device 2 acquires the square wave electrical signal generated by the mechanical actions of the simulation focusing device 11 and the simulation aperture adjustment device 12, so as to determine whether the camera lens driving circuit function is normal.
[0048] Specifically, the simulated focusing device 11 and the simulated aperture adjustment device 12 respectively simulate the focusing and aperture adjustment functions of the camera lens. When initiating the camera lens drive circuit function test, the main board of the camera can send a driving electrical signal to the simulated focusing device 11 and the simulated aperture adjustment device 12 through the camera lens drive circuit interface 3 according to the set rules (which can be pre-set) to drive the simulated focusing device 11 and the simulated aperture adjustment device 12 to perform corresponding mechanical actions, thereby generating corresponding square wave electrical signals, and the signal acquisition device 2 acquires the square wave electrical signals for processing and determines whether the camera lens drive circuit function is normal.
[0049] It should be noted that the signal acquisition device 2, such as a data acquisition card (DAQ) or a microcontroller (MCU), etc., can be integrated on the camera under test or exist independently of the camera under test.
[0050] The present invention utilizes the simulated focusing device 11 and the simulated aperture adjustment device 12 to simulate the focusing and aperture adjustment of a physical lens, thereby determining whether the camera lens driving circuit functions normally according to the simulated situation. No physical lens is required, and no manual operation is required, which greatly improves the test efficiency and avoids the problem of misdetection and missed detection in manual testing.
[0051] See also Figures 2 to 3 The simulated focusing device 11 and the simulated aperture adjustment device 12 both include a motor 111, a transmission mechanism 112, a light shielding plate 113 and a photoelectric sensor 114. The transmission mechanism 112 is connected to the motor 111, and the light shielding plate 113 is connected to the transmission mechanism 112. Under the transmission action of the transmission mechanism 112, the light shielding plate 113 rotates to periodically shield the photoelectric sensor 114.
[0052] The motor 111 may be a stepper motor for precise control. The transmission mechanism 112 may be a gear transmission, a belt transmission, a screw transmission, or a rack and pinion transmission, etc. In this embodiment, a gear transmission is adopted, and a gear set composed of a plurality of gears is used for precise control. The photoelectric sensor 114 may be a beam type photoelectric sensor 114, a diffuse reflection type photoelectric sensor 114, or a laser displacement sensor, etc.
[0053] After the motor 111 in the analog focusing device 11 receives the focusing signal from the camera lens driving circuit interface 3, it drives the light shielding plate 113 to rotate through the transmission mechanism 112, thereby periodically shielding the photoelectric sensor 114 and generating a series of square wave electrical signals. Similarly, after the motor 111 in the analog aperture adjustment device 12 receives the aperture adjustment signal, it also drives the light shielding plate 113 to rotate through the transmission mechanism 112 and generates square wave electrical signals. The signal acquisition device 2 collects these square wave electrical signals and transmits them to the processing unit for further analysis and processing.
[0054] In one embodiment, the light shielding plate 113 is a plate-like structure, including a connecting plate portion, a shielding plate portion, and a connecting transition plate portion. The connecting plate portion is in a circular ring shape and is connected to the transmission mechanism 112. The shielding plate portion is in a semicircular ring shape. One side of the connecting transition plate portion is connected to the edge of one side of the connecting plate portion, and the other side of the connecting transition plate portion is connected to the center of the inner ring of the shielding plate portion. The photoelectric sensor 114 is arranged below the shielding plate portion. When the shielding plate portion rotates to the position where the photoelectric sensor 114 is located, a part of the shielding plate portion can be located between the transmitter and the receiver of the photoelectric sensor 114, thereby shielding the photoelectric sensor 114. When working, the light shielding plate 113 rotates along the Z axis of the spatial rectangular coordinate system under the action of the transmission mechanism 112 to periodically shield the photoelectric sensor 114, thereby generating a standard square wave electrical signal.
[0055] See also Figure 4 The embodiment of the present invention further provides a camera driving function automatic testing method, which is applied to the above-mentioned camera driving function automatic testing system, and the method includes the following steps: S10-S30.
[0056] S10 , collecting square wave electrical signals generated when the photoelectric sensor 114 is periodically blocked by the light shielding sheet 113 .
[0057] By controlling the motor 111 to rotate, the motor 111 drives the light shielding plate 113 to periodically block or not block the light of the photoelectric sensor 114, so that a periodic square wave can appear in the photoelectric sensor 114. Through the detection of the photoelectric sensor 114, the movement state of the light shielding plate 113 can be obtained in real time, ensuring that the obtained square wave electrical signal has clear periodicity and accuracy.
[0058] In order to save testing time, the two motors 111 of the simulated focusing device 11 and the simulated aperture adjustment device 12 can be controlled to rotate synchronously, so that the square wave electrical signals during focusing and aperture adjustment can be obtained synchronously.
[0059] S20 , processing the square wave electrical signal to obtain rotation data of the motor 111 .
[0060] In one embodiment, step S20 specifically includes the following steps: S201 - S203 .
[0061] S201, calculating the time difference between two adjacent square wave edges in the square wave electrical signal.
[0062] Receive the square wave electrical signal, identify the time points of the adjacent rising or falling edges, and calculate the time difference between these time points. By accurately calculating the time difference between the adjacent square wave edges, the time information of the motor 111 passing a certain angle can be obtained, laying the foundation for further calculating the rotation time and speed of the motor 111.
[0063] S202, calculating the time taken by the motor 111 to rotate one circle according to the time difference between two adjacent square wave edges.
[0064] The time required for the motor 111 to rotate one circle is calculated by accumulating the angle of rotation of the motor 111 corresponding to the known square wave edge. Specifically, each square wave period corresponds to a specific rotation angle θ of the motor 111. According to the size of θ, the number of square wave periods n required for one circle (360 degrees) is calculated, and then the total time T for the motor 111 to rotate one circle is obtained by accumulating the corresponding time difference ΔT. By calculating the total time for the motor 111 to rotate one circle, the rotation period of the motor 111 can be accurately obtained, which provides an accurate basis for the subsequent calculation of the rotation speed.
[0065] S203 , calculating the rotation speed of the motor 111 according to the time taken for the motor 111 to rotate one circle.
[0066] By accurately calculating the rotation speed of the motor 111 , the operating state of the motor 111 can be obtained in real time.
[0067] S30 , driving the camera lens driving circuit according to the rotation data of the motor 111 to determine whether the function is normal.
[0068] In one embodiment, step S30 specifically includes the following steps: S301 - S303 .
[0069] S301 , comparing the rotation data of the motor 111 with the reference data.
[0070] The reference data may be a rotation speed range or rotation time range of the motor 111 under normal working conditions obtained through experiments. For example, the preset reference range of the motor 111 speed is 1000RPM±50RPM. The actual rotation data is numerically compared with the reference data, and the difference Δ between the actual rotation data and the reference data is calculated, Δ=|actual rotation data-reference data|.
[0071] By comparing the actual rotation data of the motor 111 with the reference data, it is possible to quickly identify whether the motor 111 is running in the expected working state, providing a reliable basis for judging the functional state of the camera lens driving circuit interface 3 .
[0072] S302: If the comparison results are consistent or within the set threshold range, it is determined that the camera lens driving circuit functions normally; otherwise, it is determined that the function is abnormal.
[0073] Set an allowable error range according to actual needs, for example, set the threshold range to ±5RPM.
[0074] Decision logic: If the difference Δ≤threshold, the drive circuit is considered to be functioning normally; otherwise, it is considered that the drive circuit may be faulty and an alarm or further detection is triggered.
[0075] By setting a reasonable threshold range, small errors and noise can be effectively filtered out to ensure the accuracy and reliability of the judgment results. At the same time, abnormal circuits can be alarmed and processed in time to improve the stability and safety of the system.
[0076] The embodiment of the present invention also provides a camera driving function automatic test device, which is used to perform the steps in any embodiment of the camera driving function automatic test method described above. Figure 5 , Figure 5 The schematic block diagram of the automatic camera driving function test device 100 provided in the embodiment of the present application is shown. The automatic camera driving function test device 100 specifically includes:
[0077] The acquisition unit 110 is used to acquire the square wave electrical signal generated by the photoelectric sensor 114 being periodically blocked by the light shielding plate 113. The square wave electrical signal processing unit 120 is used to process the square wave electrical signal to obtain the rotation data of the motor 111. The judgment unit 130 is used to drive the camera lens driving circuit to determine whether the function is normal according to the rotation data of the motor 111.
[0078] In one embodiment, the square wave electrical signal processing unit 120 includes:
[0079] The first calculation module is used to calculate the time difference between two adjacent square wave edges in the square wave electrical signal; the second calculation module is used to calculate the time taken by the motor 111 to rotate one circle according to the time difference between the two adjacent square wave edges; the third calculation module is used to calculate the rotation speed of the motor 111 according to the time taken by the motor 111 to rotate one circle
[0080] In one embodiment, the determination unit 130 includes:
[0081] The comparison module is used to compare the rotation data of the motor 111 with the reference data; the determination module is used to determine that the camera lens driving circuit functions normally if the comparison result is consistent or within a set threshold range.
[0082] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned camera driving function automatic testing device 100 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0083] The above-mentioned camera driving function automatic test device can be implemented in the form of a computer program, which can be used in Figure 6 Runs on the computer device shown.
[0084] See also Figure 6 , Figure 6 700 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 700 may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.
[0085] like Figure 6 As shown, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the automatic camera driving function test method as described above are implemented.
[0086] The computer device 700 may be a terminal or a server. The computer device 700 includes a processor 720 , a memory, and a network interface 750 connected via a system bus 710 , wherein the memory may include a non-volatile storage medium 730 and an internal memory 740 .
[0087] The non-volatile storage medium 730 can store an operating system 731 and a computer program 732. When the computer program 732 is executed, the processor 720 can execute the camera driving function automatic test method.
[0088] The processor 720 is used to provide computing and control capabilities and support the operation of the entire computer device 700.
[0089] The internal memory 740 provides an environment for the operation of the computer program 732 in the non-volatile storage medium 730. When the computer program 732 is executed by the processor 720, the processor 720 can execute the automatic test method of the camera driving function.
[0090] The network interface 750 is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device 700 to which the present application scheme is applied. The specific computer device 700 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. The processor 720 is used to run the program code stored in the memory to implement the automatic test method of the camera driving function.
[0091] Those skilled in the art will understand that Figure 6 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 6 The embodiments shown are consistent and will not be described again here.
[0092] It should be understood that in the embodiment of the present application, the processor 720 may be a central processing unit (CPU), and the processor 720 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0093] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the camera driving function automatic testing method disclosed in the embodiment of the present invention is implemented.
[0094] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0095] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.
[0099] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. The camera driving function automatic test system is characterized by: The invention comprises a simulation test device and a signal acquisition device, wherein the simulation test device is connected to a camera lens driving circuit interface, and the signal acquisition device is connected to the simulation test device, wherein the simulation test device comprises a simulation focusing device and a simulation aperture adjustment device, wherein the simulation focusing device and the simulation aperture adjustment device perform mechanical actions according to driving electrical signals of the camera lens driving circuit interface, and the signal acquisition device acquires square wave electrical signals generated when the simulation focusing device and the simulation aperture adjustment device perform mechanical actions.
2. The camera driving function automatic test system according to claim 1, characterized in that: The simulated focusing device and the simulated aperture adjustment device both include a motor, a transmission mechanism, a light-shielding plate and a photoelectric sensor. The transmission mechanism is connected to the motor in a transmission manner, and the light-shielding plate is connected to the transmission mechanism and rotates under the transmission action of the transmission mechanism to periodically shield the photoelectric sensor.
3. The camera driving function automatic testing method is characterized by: Applied in the camera driving function automatic test system according to any one of claims 1 to 2, the method comprises: Collect the square wave electrical signal generated by the photoelectric sensor being periodically blocked by the light shielding sheet; Process the square wave electrical signal to obtain the rotation data of the motor; Check whether the camera lens drive circuit functions normally based on the motor rotation data.
4. The camera driving function automatic testing method according to claim 3, characterized in that: The processing of the square wave electric signal to obtain the rotation data of the motor includes: Calculate the time difference between two adjacent square wave edges in a square wave electrical signal; The time taken by the motor to rotate one circle is calculated based on the time difference between two adjacent square wave edges; The rotation speed of the motor is calculated based on the time it takes for the motor to rotate one circle.
5. The camera driving function automatic testing method according to claim 3, characterized in that: The determining whether the camera lens driving circuit function is normal according to the rotation data of the motor includes: Compare the motor's rotation data with the benchmark data; If the comparison results are consistent or within the set threshold range, it is determined that the camera lens drive circuit functions normally.
6. The camera driving function automatic test device is characterized by: Applicable to the camera driving function automatic test system according to any one of claims 1 to 2, the device comprising: A collection unit, used for collecting square wave electrical signals generated when the photoelectric sensor is periodically blocked by the light shielding sheet; A square wave electrical signal processing unit, used for processing the square wave electrical signal to obtain rotation data of the motor; The judging unit is used to determine whether the camera lens driving circuit functions normally according to the rotation data of the motor.
7. The camera driving function automatic testing device according to claim 6, characterized in that: The square wave electrical signal processing unit comprises: A first calculation module is used to calculate the time difference between two adjacent square wave edges in the square wave electrical signal; The second calculation module is used to calculate the time taken by the motor to rotate one circle according to the time difference between two adjacent square wave edges; The third calculation module is used to calculate the rotation speed of the motor according to the time taken for the motor to rotate one circle.
8. The camera driving function automatic testing device according to claim 6, characterized in that: The judging unit comprises: A comparison module, used to compare the rotation data of the motor with the reference data; The determination module is used to determine that the camera lens drive circuit functions normally if the comparison results are consistent or within a set threshold range.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for automatically testing the camera driving function as claimed in any one of claims 3 to 5 is implemented.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by the processor, the processor executes the camera driving function automatic testing method according to any one of claims 3 to 5.