Data communication method based on image processing
Technical Field
The invention relates to the field of data communication, in particular to a data communication method based on image processing.
Background
Data communication is a new way of communication that results from the combination of communication technology and computer technology. A transmission channel is necessary for transmitting information between two locations, and there are a distinction between wired data communication and wireless data communication depending on a transmission medium. They all connect the data terminal with the computer through the transmission channel, so that the data terminal at different places can share the software, hardware and information resources.
Communication (Communication) as telecommunications (telecommunications) began in the 30 th 19 th century. Faraday discovered electromagnetic induction in 1831. The morse invention telegraph was invented in 1837. In 1873, maxwell's theory of electromagnetic fields. Bell invented the phone in 1876. Marconi invented radio in 1895. Opens up a new era of telecommunications (telecommunications). In 1906, a valve was invented, so that analog communication was developed. The nyquist criterion and sampling theorem in 1928. Shannon's theorem of 1948. The 20 th century and the 50 th century developed semiconductors, and digital communication was developed. The integrated circuit was invented in the 60's of the 20 th century. The 20 th century, the 40 th year, proposed the concept of geostationary satellites, but it was not possible to do so. Aerospace technology in the 50 s of the 20 th century. Geostationary satellite communication was first achieved in 1963. The 20 th century, the 60 s, invented lasers, intended for communication, were unsuccessful. Optical fiber was invented in the 70 s of the 20 th century, and optical fiber communication was developed.
Disclosure of Invention
The invention has at least the following key invention points:
(1) on the basis of high-precision image processing, when the fact that no human body exists in the toll room is accurately distinguished, the Bluetooth sending equipment in the toll room is adopted to wirelessly send the toll two-dimensional code to the mobile terminal which newly establishes a Bluetooth communication link with the Bluetooth sending equipment, and therefore the intelligent level of toll management is improved;
(2) the method comprises the steps of detecting the content of an image to be processed, taking the area proportion of an object area with the largest area occupying the image as a representative proportion, and determining a reference clock frequency which is in direct proportion to the representative proportion to be used for a subsequent color gradation adjusting device, so that the input and output data quantity of front and rear devices is adaptive.
According to an aspect of the present invention, there is provided an image processing-based data communication method including using an image processing-based data communication apparatus to wirelessly transmit a charging two-dimensional code to a mobile terminal that newly establishes a bluetooth communication link with a bluetooth transmission device using the bluetooth transmission device when it is recognized that a human body is not present in a charging room, the image processing-based data communication apparatus including:
the human body identification device is arranged in a toll room at the exit of the toll parking lot, is connected with the bicubic interpolation device, and is used for receiving the bicubic interpolation image, carrying out object identification on the bicubic interpolation image so as to divide each object pattern from the bicubic interpolation image, and taking the image characteristic of each object pattern as the input of a neural network, wherein the neural network uses each trained parameter so as to output the object type corresponding to each object pattern, and when the object type corresponding to the object pattern is a human body, a human body existence instruction is output;
the human body distinguishing device is also used for outputting a human body nonexistence instruction when the object type corresponding to the nonexistence object pattern is a human body;
the Bluetooth sending equipment is arranged in the toll booth, is connected with the human body distinguishing equipment and is used for wirelessly sending the toll two-dimensional code to the mobile terminal which establishes a Bluetooth communication link with the Bluetooth sending equipment newly when receiving a human body nonexistence instruction;
the button snapshot equipment is arranged in the toll booth and is used for carrying out snapshot operation on the interior of the toll booth so as to obtain a corresponding indoor snapshot image;
the distortion processing equipment is connected with the button snapshot equipment and used for receiving the indoor snapshot image and executing distortion correction processing on the indoor snapshot image to obtain a corresponding distortion correction image;
the object detection device is used for receiving the distortion correction image and detecting the objects in the distortion correction image so as to segment each object area corresponding to each object from the distortion correction image;
the numerical comparison device is connected with the object detection device and used for performing area comparison on each object region so as to output the area proportion of the maximum-area object region occupying the distortion correction image as a representative proportion;
and the main control device is connected with the numerical comparison device, and is used for determining the reference clock frequency in proportion to the representative proportion when the received representative proportion exceeds a preset proportion threshold value, and is also used for maintaining the current reference clock frequency when the received representative proportion does not exceed the preset proportion threshold value.
The data communication method based on image processing has clear logic and reliable operation. On the basis of high-precision image processing, when the fact that a human body does not exist in the toll room is accurately distinguished, the toll two-dimensional code is wirelessly sent to the mobile terminal which newly establishes a Bluetooth communication link with the Bluetooth sending device by the Bluetooth sending device in the toll room, and therefore the intelligent level of toll management is improved.
Drawings
Embodiments of the invention will now be described with reference to the accompanying drawings, in which:
fig. 1 is a schematic external view of a button-snap apparatus in an image-processing-based data communication device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Bluetooth (Bluetooth): the wireless technology standard can realize short-distance data exchange (using UHF radio waves of ISM wave band of 2.4-2.485 GHz) between fixed equipment, mobile equipment and a building personal area network. Bluetooth was originally created by telecommunications grand ericsson in 1994, as an alternative to RS232 data lines. Bluetooth can be connected with a plurality of devices, and the problem of data synchronization is solved.
Bluetooth is currently managed by the Bluetooth Special interest group (SIG for short). The bluetooth consortium has over 25,000 member companies worldwide, which are distributed in multiple areas of telecommunications, computers, networks, and consumer electronics. IEEE lists bluetooth as IEEE 802.15.1, but today the standard is no longer maintained. The bluetooth alliance is responsible for supervising the development of bluetooth specifications, managing authentication projects, and maintaining trademark rights and interests. The manufacturer's devices must conform to the standards of the bluetooth alliance in order to enter the market under the name of "bluetooth devices". Bluetooth technology has a proprietary network that can be delivered to devices that meet standards.
In the prior art, many parking lots are provided with an unmanned charging management mechanism, and generally, a payment two-dimensional code is displayed at a vehicle exit for a driver of a vehicle to go out to perform scanning payment of a mobile terminal, however, the above management mechanism has two main defects: firstly, multiple operations of a driver are required, which affects the payment speed; secondly, the existing human resources of the parking lot cannot be fully utilized when the staff is present in the toll booth.
In order to overcome the defects, the invention builds a data communication method based on image processing, and the method comprises the step of using a data communication device based on image processing to wirelessly transmit the charging two-dimensional code to a mobile terminal which newly establishes a Bluetooth communication link with a Bluetooth transmitting device by adopting the Bluetooth transmitting device when the fact that no human body exists in a charging room is identified. The data communication device based on image processing can effectively solve the corresponding technical problems.
Fig. 1 is a schematic external view of a button-snap apparatus in an image-processing-based data communication device according to an embodiment of the present invention.
The data communication apparatus based on image processing shown according to the embodiment of the present invention includes:
the human body identification device is arranged in a toll room at the exit of the toll parking lot, is connected with the bicubic interpolation device, and is used for receiving the bicubic interpolation image, carrying out object identification on the bicubic interpolation image so as to divide each object pattern from the bicubic interpolation image, and taking the image characteristic of each object pattern as the input of a neural network, wherein the neural network uses each trained parameter so as to output the object type corresponding to each object pattern, and when the object type corresponding to the object pattern is a human body, a human body existence instruction is output;
the human body distinguishing device is also used for outputting a human body nonexistence instruction when the object type corresponding to the nonexistence object pattern is a human body;
the Bluetooth sending equipment is arranged in the toll booth, is connected with the human body distinguishing equipment and is used for wirelessly sending the toll two-dimensional code to the mobile terminal which establishes a Bluetooth communication link with the Bluetooth sending equipment newly when receiving a human body nonexistence instruction;
the button snapshot equipment is arranged in the toll booth and is used for carrying out snapshot operation on the interior of the toll booth so as to obtain a corresponding indoor snapshot image;
the distortion processing equipment is connected with the button snapshot equipment and used for receiving the indoor snapshot image and executing distortion correction processing on the indoor snapshot image to obtain a corresponding distortion correction image;
the object detection device is used for receiving the distortion correction image and detecting the objects in the distortion correction image so as to segment each object area corresponding to each object from the distortion correction image;
the numerical comparison device is connected with the object detection device and used for performing area comparison on each object region so as to output the area proportion of the maximum-area object region occupying the distortion correction image as a representative proportion;
the main control device is connected with the numerical comparison device, and is used for determining the reference clock frequency in proportion to the representative proportion when the received representative proportion exceeds a preset proportion threshold value, and is also used for maintaining the current reference clock frequency when the received representative proportion does not exceed the preset proportion threshold value;
the color level adjusting device is respectively connected with the main control device and the distortion processing device and is used for executing color index lifting processing on the received distortion correction image based on the reference clock frequency determined by the main control device so as to obtain and output a corresponding real-time lifting image;
the bicubic interpolation device is connected with the color level adjusting device and is used for performing bicubic interpolation processing of a 4 x 4 pixel neighborhood on the received real-time promoted image to obtain and output a corresponding bicubic interpolation image;
the object detection device comprises a data receiving sub-device, a detection execution sub-device, a region division sub-device and a data output sub-device.
Next, a specific configuration of the data communication apparatus based on image processing according to the present invention will be further described.
In the image processing-based data communication apparatus:
in the object detection device, the detection execution sub-device is connected to the data reception sub-device and the region segmentation sub-device, respectively;
wherein, in the object detection device, the region segmentation sub-device is respectively connected with the data receiving sub-device and the detection execution sub-device;
the master control equipment is internally provided with a timer, an RAM memory and an ROM memory, and the timer is respectively connected with the RAM memory and the ROM memory.
The data communication device based on image processing may further include:
and the first image processing device is connected with the bicubic interpolation device and used for receiving the bicubic interpolation image, acquiring each brightness value of each pixel point in the bicubic interpolation image, and determining the sharpening grade of the bicubic interpolation image based on each brightness value of each pixel point in the bicubic interpolation image.
The data communication device based on image processing may further include:
and the second image processing device is used for receiving the bicubic interpolation image, acquiring the current resolution of the bicubic interpolation image and outputting the current resolution.
The data communication device based on image processing may further include:
and the third image processing device is connected with the first image processing device and used for receiving the sharpening level of the bicubic interpolation image and determining the reduction ratio of the corresponding segmentation parameter based on the sharpening level of the bicubic interpolation image, wherein the higher the sharpening level of the bicubic interpolation image is, the smaller the determined reduction ratio of the corresponding segmentation parameter is.
The data communication device based on image processing may further include:
and the fourth image processing device is connected with the first image processing device and is used for performing wavelet decomposition action of an S layer on the bicubic interpolation image to obtain each low-frequency parameter of the S layer and each high-frequency parameter from the 1 st layer to the S layer, wherein S is a positive integer greater than or equal to 1.
The data communication device based on image processing may further include:
a fifth image processing device, connected to the fourth image processing device and the third image processing device, respectively, for reducing the preset parameter threshold according to the reduction ratio to obtain a corresponding reduced threshold, and performing the following correction operation on each high-frequency parameter from the 1 st layer to the S-th layer: comparing the numerical value of each high-frequency parameter with the reduced threshold value, when the numerical value is greater than or equal to the reduced threshold value, not correcting the numerical value of the high-frequency parameter, and when the numerical value is smaller than the reduced threshold value, correcting the numerical value of the high-frequency parameter to be zero; the fifth image processing apparatus outputs the respective low-frequency parameters of the S-th layer and the respective corrected high-frequency parameters from the 1 st layer to the S-th layer.
The data communication device based on image processing may further include:
a sixth image processing device, connected to the human body identification device and the fifth image processing device, respectively, for receiving the low-frequency parameters of the S-th layer and the corrected high-frequency parameters from the 1 st layer to the S-th layer, framing the framed image corresponding to the bicubic interpolated image based on the low-frequency parameters of the S-th layer and the corrected high-frequency parameters from the 1 st layer to the S-th layer, and sending the framed image to the human body identification device in place of the bicubic interpolated image;
wherein the determining, by the first image processing device, the sharpening level of the bicubic interpolation image based on each brightness value of each pixel point in the bicubic interpolation image includes: determining the sharpening degree of the bicubic interpolation image based on each brightness value of each pixel point in the bicubic interpolation image;
wherein the determining, by the first image processing device, the sharpening level of the bicubic interpolation image based on each brightness value of each pixel point in the bicubic interpolation image further includes: determining the sharpening level of the bicubic interpolation image according to the numerical value region where the sharpening degree of the bicubic interpolation image falls;
wherein the fourth image processing device is further connected to the second image processing device and configured to receive the current resolution, and the performing, by the fourth image processing device, a wavelet decomposition action of an S layer on the bicubic interpolated image includes: the higher the current resolution, the smaller the S value used.
In addition, Bluetooth (Bluetooth): the wireless technology standard can realize short-distance data exchange (using UHF radio waves of ISM wave band of 2.4-2.485 GHz) between fixed equipment, mobile equipment and a building personal area network. Bluetooth was originally created by telecommunications grand ericsson in 1994, as an alternative to RS232 data lines. Bluetooth can be connected with a plurality of devices, and the problem of data synchronization is solved.
Bluetooth is currently managed by the Bluetooth Special Interest Group (SIG for short). The bluetooth consortium has over 25,000 member companies worldwide, which are distributed in multiple areas of telecommunications, computers, networks, and consumer electronics. IEEE lists bluetooth as IEEE 802.15.1, but today the standard is no longer maintained. The bluetooth alliance is responsible for supervising the development of bluetooth specifications, managing authentication projects, and maintaining trademark rights and interests. The manufacturer's devices must conform to the standards of the bluetooth alliance in order to enter the market under the name of "bluetooth devices". Bluetooth technology has a proprietary network that can be delivered to devices that meet standards.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.