System for testing camera dynamic shooting ambiguity
Technical Field
The embodiment of the utility model provides a relate to camera test technique, especially relate to a test system of camera dynamic shooting ambiguity.
Background
In the application fields of aerial photography, surveying and mapping and the like, when a camera is carried on a dynamic platform (such as an unmanned aircraft including a fixed wing, a rotor wing and the like) to carry out photographing operation, the fuzziness of a photo obtained by dynamic photographing has specific requirements from the requirement of quality control of a final formed image, and the quality of a finally generated image data result can be ensured to meet the application requirement and acceptance criteria only if the fuzziness is controlled within a certain range. Therefore, at the beginning of designing the aerial survey system, for the selection of the camera and the determination of the camera parameters, a tool is needed to assist in realizing the simulation test of the dynamic shooting of the camera, so as to test the motion blur degree of the shooting of the camera.
Currently, a general method for this test is to mount a camera to be tested on a flight test platform, such as a fixed-wing drone, to actually fly, analyze a shot picture, and determine whether the motion blur meets the application requirement, so as to determine whether the camera to be tested can be applied to a specific project or integrated into a specific product. The shooting motion blur of the camera to be tested is evaluated in the processing mode, so that the test result can be obtained really, but the requirements on a flight platform (such as a fixed-wing unmanned aerial vehicle), a flight field, climate and staff invested in the test are met correspondingly, and the workload required for implementation is large.
SUMMERY OF THE UTILITY MODEL
The embodiment of the utility model provides a camera dynamic shooting ambiguity's test system to realize the high-efficient test camera dynamic shooting ambiguity.
To achieve the above object, an embodiment of the present invention provides a system for testing camera dynamic shooting ambiguity, including:
the coded disc is provided with a plurality of reference icons; the motor is used for driving the coded disc to rotate; the driving circuit is used for providing a driving voltage for the rotation of the motor; and the microprocessor is connected to the driving circuit and the code disc and used for providing a motor control signal for the driving circuit, the driving circuit is used for driving the motor to rotate the code disc at a preset speed according to the motor control signal so that the camera to be tested shoots the reference icon on the code disc rotating at the preset speed to obtain a dynamic icon image, and the dynamic icon image is used for analyzing the dynamic shooting fuzziness of the camera to be tested.
Further, the test system further comprises: and the power supply is used for respectively providing working voltage for the motor and the microprocessor.
Further, the code wheel is circular in shape, and the plurality of reference icons are arranged in a radial direction.
Further, the test system further comprises: the circular magnet is coaxially arranged with the motor and is used for rotating at the same speed as the coded disc; and the magnetic angle sensor is electrically connected with the microprocessor and used for acquiring the angular speed of the circular magnet during rotation, and the microprocessor is also used for confirming the linear speeds of the reference icons which are arranged along the radial direction under different radiuses according to the angular speed so as to provide a plurality of linear speeds corresponding to the dynamic icon images for analysis.
Preferably, the distance between the magnetic angle sensor and the circular magnet is less than 2 mm.
Further, the microprocessor further comprises a camera interface used for being connected with the camera to be tested, and the camera to be tested is used for sending the shot dynamic icon image to the microprocessor through the camera interface.
Furthermore, the focal plane of the camera to be tested and the code wheel are positioned on the same plane.
Optionally, the test system further includes a display screen and a display screen driving circuit, and the microprocessor is further configured to control the display screen driving circuit to drive the display screen to display.
Further, the display screen is a touch screen, the display screen is used for displaying a test control interface, and the touch screen generates a touch instruction according to the operation of the user on the test control interface and sends the touch instruction to the microprocessor.
Optionally, the test system further comprises an upper computer connected with the microprocessor, the microprocessor is further used for controlling the upper computer to display, and the upper computer is used for sending a control instruction to the microprocessor.
The embodiment of the utility model provides a through the code wheel that is equipped with a plurality of reference icons; the motor is used for driving the coded disc to rotate; the driving circuit is used for providing a driving voltage for the rotation of the motor; and the microprocessor is connected to the driving circuit and the code disc and used for providing a motor control signal for the driving circuit, the driving circuit is used for driving the motor to rotate the code disc at a preset speed according to the motor control signal so that the camera to be tested shoots the reference icon on the code disc rotating at the preset speed to obtain a dynamic icon image, and the dynamic icon image is used for analyzing the dynamic shooting fuzziness of the camera to be tested. The problem that the dynamic shooting ambiguity of the existing test camera is time-consuming and labor-consuming is solved, and the effect of testing the dynamic shooting ambiguity of the camera with high efficiency is realized.
Drawings
Fig. 1 is a schematic block diagram of a system for testing camera motion blur according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a system for testing camera motion blur according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a dynamic icon image captured by the camera dynamic imaging ambiguity testing system according to the first embodiment and the second embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and are not to be construed as limitations of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first speed difference may be referred to as a second speed difference, and similarly, a second speed difference may be referred to as a first speed difference, without departing from the scope of the present application. The first speed difference and the second speed difference are both speed differences, but they are not the same speed difference. The terms "first", "second", etc. are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
As shown in fig. 1 and fig. 3, an embodiment of the present invention provides a test system for dynamic camera shooting ambiguity, which includes a code wheel 100, a motor 200, a driving circuit 210 and a microprocessor 400.
The code wheel 100 is provided with a plurality of reference icons 120. Preferably, the code wheel 100 is circular in shape, and the plurality of reference icons 120 are arranged in a radial direction. The motor 200 is used for driving the code disc 100 to rotate. The driving circuit 210 is used to provide a driving voltage for the rotation of the motor 200. The microprocessor 400 is connected to the drive circuit 210 and the code wheel 100. The microprocessor 400 is used to provide the motor 200 control signal to the driving circuit 210. The driving circuit 210 is configured to drive the motor 200 to rotate the code wheel 100 at a preset speed according to the control signal of the motor 200, so that the camera to be tested shoots the reference icon 120 on the code wheel 100 rotating at the preset speed to obtain the dynamic icon image 110. The dynamic icon image 110 is used for analyzing the dynamic shooting ambiguity of the camera to be tested.
In the present embodiment, the plurality of reference icons 120 on the circular code wheel 100 are a plurality of stripe patterns with high contrast. After the camera photographs the stripe pattern, the human eye or machine can easily recognize the blur degree of the photographed moving icon image 110 because the stripe pattern has a high contrast and is arranged in the radial direction on the circular code disc 100. The motor 200 is a dc motor. The microprocessor 400 adopts a 32-bit singlechip, the model of which is STM32F103R8T6, the working voltage is 3.3V, and the system dominant frequency is set to 72 MHz. The motor control signal sent by the microprocessor 400 is a pulse width adjusting signal, the driving circuit 210 drives the motor 200 to rotate at different speeds according to the pulse width duty ratio, and the larger the duty ratio of the pulse width adjusting signal is, the higher the rotating speed of the motor 200 is. Specifically, the driving circuit 210 includes an MOS transistor and a pulse width signal chip for controlling the switching of the MOS transistor, the pulse width signal chip provides pulse width adjustment signals with different duty ratios to control the on-duration and the off-duration of the MOS transistor, the pulse width adjustment signals correspond to the same motor speed, the ratio of the on-duration to the off-duration of the MOS transistor is fixed, and the ratio of the on-duration to the off-duration of the MOS transistor is different corresponding to different motor speeds, so as to implement fast switching of the MOS transistor and generate corresponding current to drive the motor 200 to rotate.
Further, the test system further includes a power supply 300, a circular magnet 600, and a magnetic angle sensor 500. The power supply 300 is used to supply operating voltages to the motor 200 and the microprocessor 400, respectively. The circular magnet 600 is coaxially disposed with the motor 200 and rotates at the same speed as the code wheel 100. The magnetic angle sensor 500 is electrically connected to the microprocessor 400, and is configured to obtain an angular velocity of the circular magnet 600 during rotation. The microprocessor 400 is further configured to identify linear velocities of the radially arranged reference icons 120 at different radii based on the angular velocity to provide a plurality of linear velocities corresponding to the dynamic icon image 110 for analysis. Preferably, the distance between the magnetic angle sensor 500 and the circular magnet 600 is less than 2 mm.
In this embodiment, the power supply 300 includes two paths of voltage-stabilized power supplies, the first path of voltage-stabilized power supply 320 outputs a second voltage of 5V and 5A to the motor 200, the second path of voltage-stabilized power supply 310 outputs a first voltage of 3.3V and 3A to the microprocessor 400, and the two paths of voltage-stabilized power supplies 300 are implemented by adopting a switching power supply chip and cooperating with peripheral components such as a capacitor, an inductor and a freewheeling diode. The power supply 300 can stabilize the wide voltage of 7V-20V input by the external power supply into the required first voltage and second voltage, and the output voltage is low in noise and low in ripple, the ac ripple of the first path of stabilized voltage supply 310 is less than or equal to 10mV, and the ac ripple of the second path of stabilized voltage supply 320 is less than or equal to 20 mV.
In addition, the magnetic angle sensor 500 is a hall angle sensor, the model is MA730, the MA730 chip has 14-bit result data output, the angle measurement resolution is 0.02 degrees, the supported working temperature range is-40 degrees celsius to 125 degrees celsius, and the supported rotation speed measurement range is 0 revolutions per minute to 60,000 revolutions per minute. The magnetic angle sensor 500 performs data interaction with the microprocessor 400 through an SPI (Serial Peripheral Interface). The circular magnet 600 is a radially chargeable circular magnet 600, the magnetic angle sensor 500 can measure the real-time angle of the circular magnet 600 coaxially and fixedly connected with the motor 200 in a magnetic line angle sensing manner, and measure the rotation speed of the circular magnet 600, that is, the angular speed of the rotation of the motor 200, according to the change of the angle. The distance between the magnetic angle sensor 500 and the circular magnet 600 is less than 2 mm to ensure the angle measurement accuracy.
Further, the microprocessor 400 further includes a camera interface 700 for connecting with the camera to be tested, and the camera to be tested is used for sending the shot dynamic icon image 110 to the microprocessor 400 through the camera interface 700. The focal plane of the camera to be measured and the code wheel 100 are in the same plane.
Optionally, the test system further includes a display screen 800 and a display screen driving circuit 810. The microprocessor 400 is further configured to control the display screen driving circuit 810 to drive the display screen 800 for displaying. Further, the display screen 800 is a touch screen, the display screen 800 is configured to display a test control interface, and the touch screen generates a touch instruction according to an operation of a user on the test control interface and sends the touch instruction to the microprocessor 400.
Specifically, when a photographing test is required, a camera to be tested needs to be installed at a position having a preset distance from the test system, and distance data of the position is recorded. Then, the camera to be tested confirms that the code disc 100 is completely positioned in the range of the view finder of the camera to be tested, confirms that the focal plane of the camera to be tested is parallel to the plane of the code disc 100, and finally sets and records the functional parameters of the camera to be tested, such as a shutter, an aperture, an ISO value, exposure compensation and the like. After recording the data, the user may input the data to the microprocessor 400 through the test control interface in the touch screen to wait for analysis, continue to input the preset speed at which the code wheel 100 needs to rotate, and start to perform the camera test. After the motor 200 drives the code wheel 100 to reach a preset rotating speed, the camera to be tested is controlled to shoot different reference pictures with high contrast to obtain the dynamic icon image 110, and after the shooting is finished, the camera to be tested is connected with the microprocessor 400 through the camera interface 700, so that the microprocessor 400 obtains the shot dynamic icon image 110. At this time, the microprocessor 400 can be controlled by the touch screen to analyze the dynamic shooting ambiguity of the camera to be tested according to the recorded parameters and data.
In an alternative embodiment, the microprocessor 400 may transmit the recorded parameters and data to a specialized image analysis tool for pixel-level detection contrast and quantitative analysis to determine motion blur of the camera under test.
In an alternative embodiment, the microprocessor 400 is electrically connected to the camera, the microprocessor 400 can directly control the camera to shoot without manual control, and the microprocessor 400 can control the camera to shoot according to the preset parameters after the rotating speed of the code wheel 100 reaches the preset speed.
Example two
As shown in fig. 2 and fig. 3, the second embodiment of the present invention is further optimized on the basis of the first embodiment of the present invention, and provides a test system for dynamically shooting ambiguity of a camera, where the test system includes a code wheel 100, a motor 200, a driving circuit 210, and a microprocessor 400.
The code wheel 100 is provided with a plurality of reference icons 120. Preferably, the code wheel 100 is circular in shape, and the plurality of reference icons 120 are arranged in a radial direction. The motor 200 is used for driving the code disc 100 to rotate. The driving circuit 210 is used to provide a driving voltage for the rotation of the motor 200. The microprocessor 400 is connected to the drive circuit 210 and the code wheel 100. The microprocessor 400 is used to provide the motor 200 control signal to the driving circuit 210. The driving circuit 210 is configured to drive the motor 200 to rotate the code wheel 100 at a preset speed according to the control signal of the motor 200, so that the camera to be tested shoots the reference icon 120 on the code wheel 100 rotating at the preset speed to obtain the dynamic icon image 110. The dynamic icon image 110 is used for analyzing the dynamic shooting ambiguity of the camera to be tested.
In the present embodiment, the plurality of reference icons 120 on the circular code wheel 100 are a plurality of stripe patterns with high contrast. After the camera photographs the stripe pattern, the human eye or machine can easily recognize the blur degree of the photographed moving icon image 110 because the stripe pattern has a high contrast and is arranged in the radial direction on the circular code disc 100. The motor 200 is a dc motor. The microprocessor 400 adopts a 32-bit singlechip, the model of which is STM32F103R8T6, the working voltage is 3.3V, and the system dominant frequency is set to 72 MHz. The motor control signal sent by the microprocessor 400 is a pulse width adjusting signal, the driving circuit 210 drives the motor 200 to rotate at different speeds according to the pulse width duty ratio, and the larger the duty ratio of the pulse width adjusting signal is, the higher the rotating speed of the motor 200 is. Specifically, the driving circuit 210 includes an MOS transistor and a pulse width signal chip for controlling the switching of the MOS transistor, the pulse width signal chip provides pulse width adjustment signals with different duty ratios to control the on-duration and the off-duration of the MOS transistor, the pulse width adjustment signals correspond to the same motor speed, the ratio of the on-duration to the off-duration of the MOS transistor is fixed, and the ratio of the on-duration to the off-duration of the MOS transistor is different corresponding to different motor speeds, so as to implement fast switching of the MOS transistor and generate corresponding current to drive the motor 200 to rotate.
Further, the test system further includes a power supply 300, a circular magnet 600, and a magnetic angle sensor 500. The power supply 300 is used to supply operating voltages to the motor 200 and the microprocessor 400, respectively. The circular magnet 600 is coaxially disposed with the motor 200 and rotates at the same speed as the code wheel 100. The magnetic angle sensor 500 is electrically connected to the microprocessor 400, and is configured to obtain an angular velocity of the circular magnet 600 during rotation. The microprocessor 400 is further configured to identify linear velocities of the radially arranged reference icons 120 at different radii based on the angular velocity to provide a plurality of linear velocities corresponding to the dynamic icon image 110 for analysis. Preferably, the distance between the magnetic angle sensor 500 and the circular magnet 600 is less than 2 mm.
In this embodiment, the power supply 300 includes two paths of voltage-stabilized power supplies, the first path of voltage-stabilized power supply 320 outputs a second voltage of 5V and 5A to the motor 200, the second path of voltage-stabilized power supply 310 outputs a first voltage of 3.3V and 3A to the microprocessor 400, and the two paths of voltage-stabilized power supplies 300 are implemented by adopting a switching power supply chip and cooperating with peripheral components such as a capacitor, an inductor and a freewheeling diode. The power supply 300 can stabilize the wide voltage of 7V-20V input by the external power supply into the required first voltage and second voltage, and the output voltage is low in noise and low in ripple, the ac ripple of the first path of stabilized voltage supply 310 is less than or equal to 10mV, and the ac ripple of the second path of stabilized voltage supply 320 is less than or equal to 20 mV.
In addition, the magnetic angle sensor 500 is a hall angle sensor, the model is MA730, the MA730 chip has 14-bit result data output, the angle measurement resolution is 0.02 degrees, the supported working temperature range is-40 degrees celsius to 125 degrees celsius, and the supported rotation speed measurement range is 0 revolutions per minute to 60,000 revolutions per minute. The magnetic angle sensor 500 performs data interaction with the microprocessor 400 through an SPI (Serial Peripheral Interface). The circular magnet 600 is a radially chargeable circular magnet 600, the magnetic angle sensor 500 can measure the real-time angle of the circular magnet 600 coaxially and fixedly connected with the motor 200 in a magnetic line angle sensing manner, and measure the rotation speed of the circular magnet 600, that is, the angular speed of the rotation of the motor 200, according to the change of the angle. The distance between the magnetic angle sensor 500 and the circular magnet 600 is less than 2 mm to ensure the angle measurement accuracy.
Further, the microprocessor 400 further includes a camera interface 700 for connecting with the camera to be tested, and the camera to be tested is used for sending the shot dynamic icon image 110 to the microprocessor 400 through the camera interface 700. The focal plane of the camera to be measured and the code wheel 100 are in the same plane.
Optionally, the test system further includes an upper computer 900 connected to the microprocessor 400, the microprocessor 400 is further configured to control the upper computer 900 to display, and the upper computer 900 is configured to send a control instruction to the microprocessor 400.
Specifically, when a photographing test is required, a camera to be tested needs to be installed at a position having a preset distance from the test system, and distance data of the position is recorded. Then, the camera to be tested confirms that the code disc 100 is completely positioned in the range of the view finder of the camera to be tested, confirms that the focal plane of the camera to be tested is parallel to the plane of the code disc 100, and finally sets and records the functional parameters of the camera to be tested, such as a shutter, an aperture, an ISO value, exposure compensation and the like. After recording the data, the user can input the data to the upper computer 900 to wait for analysis, continue to input the preset speed at which the code wheel 100 needs to rotate, and start to perform a camera test. After the motor 200 drives the code wheel 100 to reach a preset rotating speed, the camera to be tested is controlled to shoot different reference pictures with high contrast to obtain the dynamic icon image 110, and after the shooting is finished, the camera to be tested is connected with the microprocessor 400 through the camera interface 700, so that the microprocessor 400 obtains the shot dynamic icon image 110. At this time, the microprocessor 400 can be controlled by the upper computer 900 to transmit the recorded parameters and data to the upper computer 900, and the detection contrast and quantitative analysis at the pixel level are carried out by professional image analysis software in the upper computer 900 to determine the dynamic shooting ambiguity of the camera to be detected.
In an alternative embodiment, the microprocessor 400 is electrically connected to the camera, the microprocessor 400 can directly control the camera to shoot without manual control, and the microprocessor 400 can control the camera to shoot according to the preset parameters after the rotating speed of the code wheel 100 reaches the preset speed.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail with reference to the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the scope of the present invention.