Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a moving lens operating method according to the present invention, which includes:
s101: and acquiring and recording the motion state data of the motion lens in real time.
In the step, the motion state data of the moving lens is collected in real time according to the preset interval time through the inertia measurement unit, and then the collected motion state data is recorded through the memory. The motion state data to be measured mainly comprises: the angular attitude, the angular velocity and the movement speed of the moving lens on three directional axes of course, pitch and roll. In general, the motion states of the inertia measurement unit and the center of gravity of the moving lens need to be kept consistent as much as possible to ensure that the collected motion state data are more accurate. In other embodiments, other measurement devices may also be used to collect the motion state data of the moving lens in real time at preset intervals, which is not limited herein.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating the display of key frames in an embodiment of the moving lens operation method of the present invention. In a specific embodiment, the motion state data collected by the inertial measurement unit is displayed on the display interface in a manner of a key frame, a time interval between each frame is a preset interval time, in fig. 2, the key frame 201 is first frame motion state data collected by the inertial measurement unit, the key frame 202 is second frame motion state data collected by the inertial measurement unit, and the key frame 203 is third frame motion state data collected by the inertial measurement unit. In this embodiment, the preset interval time is 50ms, that is, the motion state data of one frame of motion lens is collected and recorded every 50 ms. In other embodiments, the preset interval time may be set according to specific requirements, and is not limited herein.
The inertial measurement unit generally comprises three single-axis accelerometers and three single-axis gyroscopes, the accelerometers are used for detecting acceleration signals of the object on three independent axes in a carrier coordinate system, the gyroscopes are used for detecting angular velocity signals relative to a navigation coordinate system, and the angular velocity and the acceleration of the object in a three-dimensional space are measured, so that the attitude of the object is obtained. It is commonly used in automobiles, robots, navigators, airplanes, spacecrafts and other devices.
S102: and optimizing the motion state data of the motion lens to obtain the optimized motion state data.
In a specific embodiment, the motion state data is adjusted and corrected according to a preset motion trajectory requirement, and the adjusted and corrected motion state data is obtained. In a more specific embodiment, the motion state data of the motion lens is displayed on a preset display interface in a manner of key frame, and the user can read the motion state data of the motion lens through the display interface. If the user feels that the motion state data do not meet the preset track requirement, an adjustment and correction instruction is input through the display interface, and after the adjustment and correction instruction is received by the display interface, the motion state data of the motion lens are adjusted and corrected through the processor according to the preset motion track requirement. Furthermore, if the user feels that the time length of the key frame is not reasonable, an adjustment and correction instruction can be input through the display interface, and the display interface adjusts the time length of the key frame after receiving the adjustment and correction instruction.
In other embodiments, the display mode of the motion state data of the motion lens may be in various forms, such as a numerical form, a graph form, and the like, which is not limited herein.
S103: and the moving lens works according to the optimized moving state data.
In a specific implementation manner, the obtained optimized motion state data is input into a steering engine, and the motion state of the motion lens is accurately regulated and controlled by the steering engine, so that the motion lens works according to the track of the optimized motion state data. In other embodiments, other driving devices may be selected according to actual situations to receive the optimized motion state data and drive the motion lens to move, which is not limited herein.
The steering engine is a position/angle servo driving device, and generally includes a precise detection element such as a photoelectric encoder or a resolver. Because the control is based on the feedback signal, the angular control and the angular speed output which can accurately respond to the high-precision requirement can be realized. The steering engine is suitable for control systems which need to change and keep the angle constantly, and is generally applied to high-grade remote control toys, remote control airplanes, remote control robots and the like at present.
The invention provides a moving lens working method which is different from the prior art, wherein the moving process of the lens is recorded in a data mode and optimized according to the actual situation, so that the posture and the movement of each lens can be accurately controlled, the instability of artificial shooting is eliminated, and the effect of accurate and stable shooting is achieved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a moving lens system according to an embodiment of the present invention, the moving lens system of the embodiment includes: an inertial measurement unit 301, a moving lens 302, a memory 303, a processor 304, and a steering engine 305 coupled to each other. The inertial measurement unit 301 is configured to acquire motion state data of the moving lens 302 in real time; the memory 303 is used for recording the motion state data of the moving lens 302, the optimized motion state data and the program data; the steering engine 305 is used for driving the moving lens 302 to work according to the optimized motion state data; the processor 304, when executing the program, causes the moving lens system to implement the moving lens operation method described above.
Specifically, the inertial measurement unit 301 collects the motion state data of the moving lens 302 at preset intervals in real time, and then records the collected motion state data through the memory 303. The motion state data to be measured mainly comprises: the angular attitude, angular velocity and movement speed of the moving lens 302 in three directional axes, namely heading, pitch and roll. It is usually necessary to keep the motion states of the centers of gravity of the inertial measurement unit 301 and the moving lens 302 consistent as much as possible to ensure that the collected motion state data is more accurate. In other embodiments, other measuring devices may be used to collect the motion state data of the moving lens 302 at preset intervals in real time, which is not limited herein.
In a specific embodiment, the motion state data collected by the inertial measurement unit 301 is displayed on the display interface in a manner of key frames, and a time interval between each frame is a preset interval time. In the present embodiment, the preset interval time is 50ms, that is, the motion state data of one frame of the motion lens 302 is collected and recorded every 50 ms. In other embodiments, the preset interval time may be set according to specific requirements, and is not limited herein.
The inertial measurement unit 301 is a device for measuring three-axis attitude angles, angular velocities and three directional axes of an object, and generally includes three single-axis accelerometers and three single-axis gyroscopes, where the accelerometers detect three independent three-axis acceleration signals of the object in a carrier coordinate system, and the gyroscopes detect angular velocity signals relative to a navigation coordinate system, measure the angular velocities and the accelerations of the object in a three-dimensional space, and obtain the attitude of the object.
And then adjusting and correcting the motion state data according to the preset motion track requirement, and obtaining the adjusted and corrected motion state data. In a more specific embodiment, the motion state data of the motion lens 302 is displayed in a manner of key frame on a preset display interface, and the user can read the motion state data of the motion lens 302 through the display interface. If the user feels that the motion state data does not meet the preset trajectory requirement, an adjustment and correction instruction is input through the display interface, and after the adjustment and correction instruction is received by the display interface, the motion state data of the motion lens 302 is adjusted and corrected through the processor 304 according to the preset motion trajectory requirement. Furthermore, if the user feels that the time length of the key frame is not reasonable, an adjustment and correction instruction can be input through the display interface, and the display interface adjusts the time length of the key frame after receiving the adjustment and correction instruction.
In other embodiments, the display manner of the motion state data of the motion lens 302 may be in various forms, such as a numerical form, a graph form, and the like, and is not limited herein.
And then inputting the obtained optimized motion state data into a steering engine 305, and accurately regulating and controlling the motion state of the motion lens 302 through the steering engine 305, so that the motion lens 302 works according to the track of the optimized motion state data. In other embodiments, other driving devices may be selected according to actual situations to receive the optimized motion state data and drive the motion lens to move, which is not limited herein.
The steering engine 305 is a position/angle servo driving device, and is generally provided with a precise detection element such as an optical encoder or a resolver. Because the control is based on the feedback signal, the angular control and the angular speed output which can accurately respond to the high-precision requirement can be realized. The steering engine is suitable for control systems which need to change the angle continuously and can be kept.
Different from the situation of the prior art, the invention provides a moving lens system, wherein the moving process of the lens is recorded in a data mode and optimized according to the actual situation, so that the posture and the movement of each lens can be accurately controlled, the instability of artificial shooting is eliminated, and the effect of accurate and stable shooting is achieved.
Further, the present invention also provides a device with a storage function, where the device with a storage function stores program data, and the program data can be executed to implement the above-mentioned moving lens working method, and the specific steps include: acquiring and recording the motion state data of the motion lens in real time; optimizing the motion state data of the motion lens to obtain optimized motion state data; and the moving lens works according to the optimized moving state data. In a specific embodiment, the device with a storage function may be a memory chip in a terminal, a hard disk, or a removable hard disk or other readable and writable storage tool such as a flash memory, an optical disk, or the like, and may also be a server, or the like.
Different from the prior art, the invention provides a device with a storage function, wherein the movement process of the lens is recorded in a data mode and optimized according to the actual situation, so that the posture and the movement of each lens can be accurately controlled, the instability of artificial shooting is eliminated, and the effect of accurate and stable shooting is achieved.
It should be noted that the above embodiments belong to the same inventive concept, and the description of each embodiment has a different emphasis, and reference may be made to the description in other embodiments where the description in individual embodiments is not detailed.
The above-mentioned embodiments only express the embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.