Disclosure of Invention
The present invention needs to have at least the following important points:
(1) on the basis of high-precision image processing, extracting a rockfall pattern in a processed image based on rockfall imaging features, determining the number of pixel points from the centroid of the rockfall pattern to the centroid of the processed image, determining a corresponding centroid deviation grade based on the proportion of the number occupying the number of all the pixel points of the processed image, and taking the centroid deviation grade as reference data for vehicle speed increase to realize automatic speed increase operation so as to escape from a rockfall area in time;
(2) and detecting the pixel line number in the image in real time, and determining whether to perform adaptive image processing based on respective matrix contents on a C color matrix, an M color matrix, a Y color matrix and a K color matrix in a CMYK color space of the image by using the detection result as a control factor.
According to an aspect of the invention, there is provided an automatic data correction method, the method including providing an automatic data correction mechanism for acquiring a centroid deviation grade and serving as reference data for vehicle speed increase to realize automatic speed increase operation so as to escape from a rockfall area in time, the automatic data correction mechanism including: a data correction device for receiving the centroid deviation grade and determining a speed increase percentage based on the centroid deviation grade; and the vehicle speed control equipment is connected with the vehicle driving equipment and the data correction equipment and is used for adjusting the current vehicle speed of the vehicle based on the received speed increase percentage.
More specifically, in the data automated correction mechanism: in the vehicle speed control device, adjusting the current vehicle speed of the vehicle based on the received speed increase percentage includes: the current speed of the vehicle is increased by a value that is the product of the unadjusted vehicle speed and the percent acceleration.
More specifically, in the data automated correction mechanism, the mechanism further includes:
the wireless camera is wirelessly controlled by a remote control terminal held by a vehicle driver, is arranged on the roof of the vehicle to perform upward shooting, and outputs image data obtained by upward shooting as a real-time upward shooting image;
the line number detection equipment is connected with the wireless camera and used for receiving the real-time upward shot image, carrying out real-time detection on the line number of pixels in the real-time upward shot image so as to obtain a corresponding real-time line number and outputting the real-time line number;
the parameter judgment device is connected with the line number detection device and used for receiving the instant line number, determining a line number grade in direct proportion to the instant line number and outputting the line number grade;
the parallel communication interface is connected with the parameter judgment device, arranged between the line number detection device and the data stripping device and used for establishing a data link between the line number detection device and the data stripping device to receive the real-time upward shot image when the received line number grade exceeds the limit, or else, interrupting the data link between the line number detection device and the data stripping device to interrupt the reception of the real-time upward shot image;
the data stripping device is used for receiving the real-time upward shot image and performing color space conversion on the real-time upward shot image to obtain a C color matrix, an M color matrix, a Y color matrix and a K color matrix in a CMYK color space of the real-time upward shot image;
the number extraction device is connected with the data stripping device and used for determining the number of times of smoothing processing on the C color matrix based on the mean square error of the C color matrix, determining the number of times of smoothing processing on the M color matrix based on the mean square error of the M color matrix, determining the number of times of smoothing processing on the Y color matrix based on the mean square error of the Y color matrix, and determining the number of times of smoothing processing on the K color matrix based on the mean square error of the K color matrix;
the distribution processing equipment is connected with the frequency extraction equipment and is used for respectively executing smoothing processing on the C color matrix, the M color matrix, the Y color matrix and the K color matrix for corresponding frequencies to obtain four corresponding processed matrixes;
a signal combining device connected to the distribution processing device, for combining the four processed matrices to obtain a combined processed image;
the centroid analysis device is respectively connected with the signal combination device and the data correction device and is used for extracting a rockfall pattern in the combined processing image based on rockfall imaging characteristics, determining the number of pixel points from the centroid of the rockfall pattern to the centroid of the combined processing image, and determining the corresponding centroid deviation grade based on the proportion of the number occupying all the pixel points of the combined processing image;
wherein determining the corresponding centroid deviation grade based on the proportion of the number occupying the number of all the pixel points of the combined processed image comprises: the larger the proportion of the number occupying the number of all the pixel points of the combined processing image is, the higher the determined corresponding centroid deviation grade is;
wherein determining a speed-up percentage based on the centroid deviation rating comprises: the lower the centroid deviation grade is, the smaller the determined acceleration percentage is;
wherein, in the number-of-times extraction device, determining the number of times of performing the smoothing processing on the C color matrix based on the mean square error of the C color matrix includes: the smaller the mean square error of the C color matrix, the fewer the number of times the smoothing process is performed on the C color matrix.
The automatic data correction mechanism is reliable in design, convenient and safe. The centroid deviation grade can be judged based on the number of the pixels from the centroid of the rockfall pattern to the centroid of the image where the rockfall pattern is located, and the centroid deviation grade is used as reference data for vehicle speed increasing to achieve automatic speed increasing operation, so that a rockfall area can be escaped in time.
Detailed Description
Embodiments of the present invention will be described in detail below.
In order to overcome the defects, the invention provides a data automatic correction method, which comprises the step of providing a data automatic correction mechanism for acquiring the centroid deviation grade and using the centroid deviation grade as reference data for vehicle speed increase so as to realize automatic speed increase operation and escape from a rockfall area in time. The automatic data correction mechanism can effectively solve the corresponding technical problems.
The data automatic correction mechanism shown according to the embodiment of the invention comprises:
a data correction device for receiving the centroid deviation grade and determining a speed increase percentage based on the centroid deviation grade;
and the vehicle speed control equipment is connected with the vehicle driving equipment and the data correction equipment and is used for adjusting the current vehicle speed of the vehicle based on the received speed increase percentage.
Next, a specific configuration of the data automatic correction mechanism of the present invention will be further described.
In the data automatic correction mechanism:
in the vehicle speed control device, adjusting the current vehicle speed of the vehicle based on the received speed increase percentage includes: the current speed of the vehicle is increased by a value that is the product of the unadjusted vehicle speed and the percent acceleration.
The data automatic correction mechanism can further comprise:
the wireless camera is wirelessly controlled by a remote control terminal held by a vehicle driver, is arranged on the roof of the vehicle to perform upward shooting, and outputs image data obtained by upward shooting as a real-time upward shooting image;
the line number detection equipment is connected with the wireless camera and used for receiving the real-time upward shot image, carrying out real-time detection on the line number of pixels in the real-time upward shot image so as to obtain a corresponding real-time line number and outputting the real-time line number;
the parameter judgment device is connected with the line number detection device and used for receiving the instant line number, determining a line number grade in direct proportion to the instant line number and outputting the line number grade;
the parallel communication interface is connected with the parameter judgment device, arranged between the line number detection device and the data stripping device and used for establishing a data link between the line number detection device and the data stripping device to receive the real-time upward shot image when the received line number grade exceeds the limit, or else, interrupting the data link between the line number detection device and the data stripping device to interrupt the reception of the real-time upward shot image;
the data stripping device is used for receiving the real-time upward shot image and performing color space conversion on the real-time upward shot image to obtain a C color matrix, an M color matrix, a Y color matrix and a K color matrix in a CMYK color space of the real-time upward shot image;
the number extraction device is connected with the data stripping device and used for determining the number of times of smoothing processing on the C color matrix based on the mean square error of the C color matrix, determining the number of times of smoothing processing on the M color matrix based on the mean square error of the M color matrix, determining the number of times of smoothing processing on the Y color matrix based on the mean square error of the Y color matrix, and determining the number of times of smoothing processing on the K color matrix based on the mean square error of the K color matrix;
the distribution processing equipment is connected with the frequency extraction equipment and is used for respectively executing smoothing processing on the C color matrix, the M color matrix, the Y color matrix and the K color matrix for corresponding frequencies to obtain four corresponding processed matrixes;
a signal combining device connected to the distribution processing device, for combining the four processed matrices to obtain a combined processed image;
the centroid analysis device is respectively connected with the signal combination device and the data correction device and is used for extracting a rockfall pattern in the combined processing image based on rockfall imaging characteristics, determining the number of pixel points from the centroid of the rockfall pattern to the centroid of the combined processing image, and determining the corresponding centroid deviation grade based on the proportion of the number occupying all the pixel points of the combined processing image;
wherein determining the corresponding centroid deviation grade based on the proportion of the number occupying the number of all the pixel points of the combined processed image comprises: the larger the proportion of the number occupying the number of all the pixel points of the combined processing image is, the higher the determined corresponding centroid deviation grade is;
wherein determining a speed-up percentage based on the centroid deviation rating comprises: the lower the centroid deviation grade is, the smaller the determined acceleration percentage is;
wherein, in the number-of-times extraction device, determining the number of times of performing the smoothing processing on the C color matrix based on the mean square error of the C color matrix includes: the smaller the mean square error of the C color matrix, the fewer the number of times the smoothing process is performed on the C color matrix.
In the data automatic correction mechanism:
in the number-of-times extraction device, determining the number of times of performing the smoothing processing on the M-color matrix based on the mean square error of the M-color matrix includes: the smaller the mean square error of the M color matrix, the fewer the number of times the smoothing process is performed on the M color matrix.
In the data automatic correction mechanism:
in the number-of-times extraction device, determining the number of times of performing the smoothing processing on the Y color matrix based on the mean square error of the Y color matrix includes: the smaller the mean square error of the Y color matrix, the fewer the number of times the smoothing process is performed on the Y color matrix.
In the data automatic correction mechanism:
in the number-of-times extraction device, determining the number of times of performing the smoothing process on the K color matrix based on the mean square error of the K color matrix includes: the smaller the mean square error of the K color matrix, the fewer the number of times the smoothing process is performed on the K color matrix.
The data automatic correction mechanism can further comprise:
the electric quantity detection equipment is connected with the lithium battery and used for detecting the residual electric quantity of the lithium battery to output as real-time residual electric quantity;
the first power consumption statistics device is connected with the data correction device and used for counting the power consumption of the data correction device in unit time based on the historical power consumption data of the data correction device to be output as the power consumption in the first unit time;
and the second power consumption counting device is connected with the line number detection device and used for counting the power consumption of the line number detection device in unit time based on the historical power consumption data of the line number detection device so as to output the power consumption as the power consumption of the second unit time.
The data automatic correction mechanism can further comprise:
and the electric quantity distribution equipment is respectively connected with the electric quantity detection equipment, the first power consumption statistic equipment and the second power consumption statistic equipment and is used for determining the electric quantity distributed to the data correction equipment and the electric quantity distributed to the line number detection equipment based on the real-time residual electric quantity, the first unit time power consumption and the second unit time power consumption.
In the data automatic correction mechanism:
in the power distribution device, determining the amount of power distributed to the data modification device and the amount of power distributed to the line number detection device based on the real-time residual power amount, the first unit time power consumption amount, and the second unit time power consumption amount includes: the higher the power consumption amount per unit time is, the more the power amount allocated to the data correction apparatus is;
wherein, in the electric power distribution device, determining the electric power distributed to the data modification device and the electric power distributed to the line number detection device based on the real-time residual electric power amount, the first unit time electric power consumption amount, and the second unit time electric power consumption amount includes: the higher the power consumption amount per unit time, the more the power amount allocated to the line number detection device.
In addition, the centroid analyzing device is a non-bus type single chip microcomputer. The single chip computer is an integrated circuit chip, which is a small and perfect microcomputer system formed by integrating the functions of a central processing unit CPU with data processing capacity, a random access memory RAM, a read only memory ROM, various I/O ports, an interrupt system, a timer/counter and the like (possibly comprising a display driving circuit, a pulse width modulation circuit, an analog multiplexer, an A/D converter and other circuits) on a silicon chip by adopting a super-large scale integrated circuit technology, and is widely applied to the field of industrial control.
The bus type single chip microcomputer is generally provided with a parallel address bus, a data bus and a control bus, pins for expanding parallel peripheral devices can be connected with the single chip microcomputer through serial ports, in addition, a plurality of single chip microcomputers integrate the required peripheral devices and peripheral interfaces into one chip, so that the parallel expansion bus can be omitted under many conditions, the packaging cost and the chip volume are greatly reduced, and the single chip microcomputer is called as a non-bus type single chip microcomputer.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Although the present invention has been described with reference to the above embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims of the present application.