CN113691757A - Data transmission method, device, equipment and medium - Google Patents

Data transmission method, device, equipment and medium Download PDF

Info

Publication number
CN113691757A
CN113691757A CN202110915611.9A CN202110915611A CN113691757A CN 113691757 A CN113691757 A CN 113691757A CN 202110915611 A CN202110915611 A CN 202110915611A CN 113691757 A CN113691757 A CN 113691757A
Authority
CN
China
Prior art keywords
pixel point
signal line
invalid signal
digital information
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110915611.9A
Other languages
Chinese (zh)
Other versions
CN113691757B (en
Inventor
朱飞月
孙亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110915611.9A priority Critical patent/CN113691757B/en
Publication of CN113691757A publication Critical patent/CN113691757A/en
Application granted granted Critical
Publication of CN113691757B publication Critical patent/CN113691757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a data transmission method, a data transmission device, data transmission equipment and a data transmission medium, which are used for solving the problem that the transmitted data volume is small when data transmission is carried out in the prior art. In the embodiment of the invention, for each frame of image, the digital information of the data corresponding to the frame of image is converted into the analog information, and the analog information after conversion is transmitted by adopting the invalid signal line in the frame of image. Since data transmission is performed using an invalid signal line in an image when data is transmitted, more data can be transmitted.

Description

Data transmission method, device, equipment and medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a data transmission method, apparatus, device, and medium.
Background
As the artificial intelligence algorithm falls on the ground more and more frequently in the actual application scene, higher requirements are put on the analog camera in the data interaction process. The function that the analog camera can realize intelligence mainly is through transmitting the image of shooing the front end for the rear end and handle, and the rear end is with the data transmission who handles good again for the front end camera in order to be used for showing intelligent recognition effect.
According to the industrial video signal standard, the current analog camera mainly adopts the 5 th to 9 th lines and the 10 th to 24 th lines in each frame blanking line to respectively send forward data and reverse data, however, when the analog camera transmits data to the back end, the amount of data which can be transmitted and used for communication is too small, each line can only transmit 3 bytes of data, and the amount of data required by back-end artificial intelligence processing cannot be met.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, data transmission equipment and a data transmission medium, which are used for solving the problem that the transmitted data volume is small when data transmission is carried out in the prior art.
In a first aspect, an embodiment of the present invention provides a data transmission method, where the method includes:
for each frame of image, acquiring digital information of data corresponding to the frame of image;
converting the digital information into analog information;
and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
Further, the converting the digital information into analog information includes:
for each byte of digital information, the byte is converted to analog information.
Further, the transmitting the analog information by using the invalid signal line corresponding to the frame image includes:
aiming at each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in an invalid signal line;
aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information;
and transmitting the invalid signal line data after the gray value of the pixel point is set.
Further, after the gray value of the pixel point corresponding to each bit in the byte is set to the corresponding numerical value after the bit is converted into analog information in the data information, and before the invalid signal line after the gray value is set is transmitted, the method further includes:
acquiring a first pixel point and a second pixel point which are adjacent to a pixel point corresponding to the first bit in the byte and are not provided with a gray value in the invalid signal line;
setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
In a second aspect, an embodiment of the present invention provides a data transmission method, where the method includes:
receiving each invalid signal line data sent by the image acquisition equipment;
aiming at each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
Further, the acquiring of the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal row, and acquiring a first pixel point with the gray value set as a preset high-order numerical value and a second pixel point with the gray value set as a preset low-order numerical value;
acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
Further, the converting the analog information into digital information includes:
and converting the gray value of each pixel point into digital information according to the obtained gray value of each pixel point.
In a third aspect, an embodiment of the present invention further provides a data transmission apparatus, where the apparatus includes:
the acquisition module is used for acquiring digital information of data corresponding to each frame of image;
the conversion module is used for converting the digital information into analog information;
and the first processing module is used for transmitting the analog information by adopting the invalid signal line corresponding to the frame of image.
Further, the first processing module is specifically configured to, for each byte in the digital information, convert the byte into analog information.
Further, the first processing module is specifically configured to, for each byte in the digital information, obtain a pixel point corresponding to each bit in the byte in the invalid signal line; aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information; and transmitting the invalid signal line data after the gray value of the pixel point is set.
Further, the first processing module is further configured to obtain a first pixel point and a second pixel point, which are adjacent to a pixel point corresponding to a first bit in the byte and are not provided with a gray value, in the invalid signal line; setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
In a fourth aspect, an embodiment of the present invention further provides a data transmission apparatus, where the apparatus includes:
the receiving module is used for receiving data of each invalid signal line sent by the image acquisition equipment;
the second processing module is used for acquiring the analog information transmitted by the invalid signal line data aiming at each invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
Further, the second processing module is specifically configured to sequentially identify a gray value of each pixel point in the invalid signal line, and acquire a first pixel point whose gray value is set to a preset high-order numerical value and a second pixel point whose gray value is set to a preset low-order numerical value; acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
Further, the second processing module is specifically configured to convert the obtained gray value of each pixel point into digital information.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes at least a processor and a memory, and the processor is configured to execute the computer program stored in the memory to perform the steps of the data transmission method according to any one of the preceding claims.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program is used for executing the steps of the data transmission method according to any one of the claims when being executed by a processor.
In the embodiment of the invention, for each frame of image, the digital information of the data corresponding to the frame of image is converted into the analog information, and the analog information after conversion is transmitted by adopting the invalid signal line in the frame of image. Since data transmission is performed using an invalid signal line in an image when data is transmitted, more data can be transmitted.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of a data transmission process according to an embodiment of the present invention;
fig. 2 is a schematic diagram of setting a gray value of a pixel point corresponding to each byte according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a data transmission process according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a transmission process of a pixel point corresponding to analog information after conversion of one byte in digital information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a data transmission process provided in an embodiment of the present invention, where the process includes the following steps:
s101: and acquiring digital information of data corresponding to each frame of image.
The data transmission method provided by the embodiment of the invention is applied to image acquisition equipment.
In the embodiment of the invention, for each frame of acquired image, the image acquisition equipment transmits the data corresponding to the frame of image to the server. The image acquisition device may acquire data corresponding to the frame of image first, and acquire digital information of the data corresponding to the frame of image when data transmission is performed, and specifically, how to acquire corresponding digital information according to the data corresponding to the frame of image is prior art and is not described herein again.
S102: the digital information is converted to analog information.
Since the transmission efficiency is low due to the long transmission time of the digital information during data transmission, the digital information is converted into the analog information in the embodiment of the present invention, and the efficiency of data transmission is improved by transmitting the analog information. How to convert digital information into analog information is the prior art, and is not described herein again.
S103: and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
In order to increase the data transmission amount, in the embodiment of the present invention, the converted analog information is transmitted by using the invalid signal line corresponding to the frame image, so that the transmitted data amount is increased.
In the embodiment of the invention, for each frame of image, the digital information of the data corresponding to the frame of image is converted into the analog information, and the analog information after conversion is transmitted by adopting the invalid signal line in the frame of image. Since data transmission is performed using an invalid signal line in an image when data is transmitted, more data can be transmitted.
Example 2:
in order to improve the efficiency of data transmission, on the basis of the above embodiments, in an embodiment of the present invention, the converting the digital information into analog information includes:
for each byte of digital information, the byte is converted to analog information.
In the embodiment of the invention, the transmission time of the digital information is longer, in order to improve the efficiency of data transmission, each byte in the digital information is converted into analog information, and the converted analog information is transmitted when the data transmission is carried out.
Specifically, for a certain data Date to be transmitted, where B is a byte in the digital information, the determination formula of the analog information corresponding to each bit in the digital information is as follows:
Figure BDA0003205487010000061
wherein Bi is each bit contained in one byte, and i takes a value of 0-7. That is, if a value of a certain bit in the digital information is 1, the analog information corresponding to the bit is 255, and if a value of a certain bit in the digital information is 0, the analog information corresponding to the bit is 0.
In order to implement data transmission, on the basis of the foregoing embodiments, in an embodiment of the present invention, the transmitting the analog information by using the invalid signal line corresponding to the frame image includes:
aiming at each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in an invalid signal line;
aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information;
and transmitting the invalid signal line data after the gray value of the pixel point is set.
In the prior art, an invalid signal line includes a plurality of pixel points, each pixel point has a corresponding gray value, and the gray value corresponding to the pixel point is used for recording related information of an image. In the embodiment of the invention, the gray value of each pixel point in the invalid signal line is set as the numerical value after each bit in the digital information is correspondingly converted into the analog information, so that the invalid signal line transmits the analog information, and the transmitted data volume is increased.
Each byte of the digital information includes a predetermined number of bits, the predetermined number is usually 8, that is, each byte of the digital information includes 8 bits. Specifically, the process of setting the gray value of the pixel point is as follows: when analog information is transmitted, a pixel point representing each bit in each byte in an invalid signal line corresponding to each byte in digital information can be obtained first, and after the pixel point corresponding to each bit in the byte is obtained, the gray value of the pixel point corresponding to each bit is set as a numerical value obtained after the bit is converted into the analog information. In order to improve the accuracy of data transmission, on the basis of the foregoing embodiments, in an embodiment of the present invention, for each bit in the byte, after setting the gray value of the pixel point corresponding to the bit as the corresponding numerical value after the bit is converted into the analog information in the data information, and before transmitting the invalid signal line after the gray value is set, the method further includes:
acquiring a first pixel point and a second pixel point which are adjacent to a pixel point corresponding to the first bit in the byte and are not provided with a gray value in the invalid signal line;
setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
Because analog information is easy to have a larger error rate in the transmission process, if the error rate is larger, the accuracy of data transmission is lower, so in the embodiment of the invention, the generation of the larger error rate in the transmission process of the analog information is avoided by setting the preset high-order numerical value and the preset low-order numerical value, and specifically, a preset high-order numerical value and a preset low-order numerical value are set for each byte in the analog information.
And when setting up the predetermined high order figure value and predetermine the low order figure value of every byte, can acquire the pixel that sets up to the predetermined high order figure value of this byte and predetermine the low order figure value that corresponds earlier, and is concrete, and the acquisition process that sets up to the pixel of predetermineeing the high order figure value and set up to the pixel of predetermineeing the low order figure value is: and acquiring a pixel point corresponding to the first bit in the byte in the invalid signal row, and acquiring a first pixel point and a second pixel point which are adjacent to the pixel point corresponding to the first bit and are not provided with gray values. That is to say, for each byte, the pixel points corresponding to the byte in the invalid signal line may be, from left to right: the byte is corresponding to a first pixel point with a preset high numerical value, the byte is corresponding to a second pixel point with a preset low numerical value, and each bit in the byte is converted into analog information and then is corresponding to the pixel point. Of course, for each byte, the arrangement mode of the pixel points corresponding to the byte in the invalid signal line from left to right may be other modes.
Aiming at each byte in the analog information, after a first pixel point and a second pixel point corresponding to the byte are determined, the gray value of the first pixel point is set as a preset high-order numerical value, and the gray value of the second pixel point is set as a preset low-order numerical value, so that the byte is transmitted through an invalid signal line and is converted into a numerical value after the analog information, the preset high-order numerical value corresponding to the byte and the preset low-order numerical value corresponding to the byte.
Fig. 2 is a schematic diagram for setting the gray-level value of the pixel point corresponding to each byte according to the embodiment of the present invention.
Fig. 2 illustrates an example in which the gray values of two pixel points before the pixel point corresponding to each byte are respectively set as the preset high-order value and the preset low-order value, as can be seen from fig. 2, the gray values of adjacent pixel points may be sequentially set as the preset low-order value 0, the preset high-order value 255, and then the value of each bit in the byte converted into analog information is set. Therefore, the transmitted gray value of the pixel point which is set to be the preset low-order numerical value and the preset high-order numerical value corresponding to the byte is used for correcting the numerical value of each byte after being converted into the analog information, and the numerical value of each byte after being converted into the analog information is prevented from generating deviation in the transmission process.
Example 3:
fig. 3 is a schematic diagram of a data transmission process provided in an embodiment of the present invention, where the process includes the following steps:
s301: and receiving each invalid signal line data sent by the image acquisition equipment.
The data transmission method provided by the embodiment of the invention is applied to the server.
In the embodiment of the invention, data transmission is carried out through each invalid signal line data sent by an image acquisition device, and a server receives each invalid signal line data sent by the image acquisition device, wherein the signal line data received by the server and sent by the image acquisition device are marked to indicate whether the corresponding signal line is an invalid signal line or an effective signal line.
S302: aiming at each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
After receiving each invalid signal line data sent by the image acquisition device, acquiring data included in the invalid signal line data for each invalid signal line data, specifically, acquiring data included in the invalid signal line data by the following steps: and acquiring analog information transmitted by the invalid signal line, converting the acquired analog information into digital information after acquiring the analog information, and acquiring data corresponding to the digital information in the invalid signal line data through the digital information. Specifically, how to obtain data in the invalid signal line data corresponding to the digital information through the digital information is the prior art, and details are not described herein.
Example 4:
in order to accurately determine digital information corresponding to analog information, on the basis of the foregoing embodiments, in an embodiment of the present invention, the acquiring analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal row, and acquiring a first pixel point with the gray value set as a preset high-order numerical value and a second pixel point with the gray value set as a preset low-order numerical value;
acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
In the embodiment of the invention, each bit of each byte in the digital information is easy to generate errors when being transmitted after being converted into the analog information, so that the server can firstly sequentially identify the gray value of each pixel point in the invalid signal line, obtain a first pixel point which is adjacent to the invalid signal line and is set as a preset high-order numerical value and a second pixel point which is adjacent to the invalid signal line and is set as a preset low-order numerical value according to each pixel point, obtain a preset number of pixel points behind the adjacent first pixel point and the adjacent second pixel point after obtaining the first pixel point and the second pixel point, and determine the analog information corresponding to each pixel point according to the obtained gray value of each pixel point.
Specifically, in the embodiment of the present invention, the process of determining the pixel point corresponding to each byte in the simulation information is as follows: and sequentially determining a preset number of adjacent pixels with gray values, wherein the gray values of the preset number of pixels sequentially correspond to a preset high-order numerical value corresponding to a certain byte in the digital information, the corresponding preset low-order numerical value digital information and a numerical value obtained by converting each bit in the byte in the digital information into analog information. And because each byte contains 8 units, the pixel points with the preset number are 10 pixel points generally, wherein the 10 pixel points contain the pixel points corresponding to the 8 units in the byte, the gray value corresponding to the byte is set as a preset high-order numerical value, and the gray value corresponding to the byte is set as a pixel point corresponding to a preset low-order numerical value.
For example, M/T bytes of analog information may be stored and transmitted for each invalid signal line in an M × N image, where M refers to the number of pixels in each line in the M × N image, N refers to the number of lines in the M × N image, and the minimum value of T is 10, that is, at most M/10 bytes of digital information after being converted into analog information may be stored and transmitted for each invalid signal line. Wherein M × N may be 1280 × 720, 1920 × 1080, 2592 × 1944, 3840 × 2160, or the like.
For each byte in the analog information, if the gray value corresponding to the byte in the analog information is set, the adjacent pixels are sequentially the pixel corresponding to the byte from left to right, wherein the pixel is used for setting the gray value to be a preset high-order numerical value, the pixel corresponding to the byte is used for setting the gray value to be a preset low-order numerical value, and the pixel is used for setting the gray value to be a numerical value after each bit in the byte is converted into the analog information, then when a first pixel and a second pixel are determined, a preset number of pixels can be sequentially obtained, wherein the two pixels of the preset number of pixels are the first pixel and the second pixel respectively.
In order to accurately determine digital information corresponding to analog information, in the embodiments of the present invention, on the basis of the foregoing embodiments, the converting the analog information into the digital information includes:
and converting the gray value of each pixel point into digital information according to the obtained gray value of each pixel point.
In the embodiment of the present invention, for each byte in the digital information, after the pixel point corresponding to the analog information converted from each bit in the byte is obtained, the gray value of the pixel point corresponding to each bit in the byte is obtained, and the analog information corresponding to the gray value of the obtained pixel point is converted into the digital information.
Because the transmitted analog information has loss in the data transmission process, the value of the analog information transmitted by the invalid signal line acquired by the server is not fixed, such a conversion of analog information transmitted in an image into digital information by a server may have a problem of a conversion error, and the number of pixel points on the invalid signal line is large, it cannot be predicted which pixel points have large gray value distortion degree, therefore, in the embodiment of the present invention, for each bit in the byte, and converting the analog information of the gray value of the pixel point corresponding to the bit into digital information according to the gray value of the first pixel point corresponding to the byte and set as a preset high-order numerical value, the gray value of the second pixel point corresponding to the byte and set as a preset low-order numerical value, and the gray value of the pixel point set as a numerical value after the bit is converted into the analog information. Specifically, the digital information T determined by the server is:
Figure BDA0003205487010000101
the method comprises the steps that ImageDate is a gray value of a certain pixel point after transmission, L is a gray value obtained after transmission of the pixel point with the gray value set as a preset low-order numerical value, and H is a gray value obtained after transmission of the pixel point with the gray value set as a preset high-order numerical value; Δ 0 and Δ 1 are preset values; while H- Δ 1> L + Δ 0.
That is, the server knows that the gray values of the pixel points at the preset positions in the adjacent preset number of pixel points sequentially set with the gray values represent the preset low-order numerical value and the preset high-order numerical value respectively, wherein the preset low-order numerical value can be a value obtained by converting low-order 0 in the digital information into the analog information, and the preset high-order numerical value can be a value obtained by converting high-order 1 in the digital information into the analog information. The gray values of the 2 pixel points which are acquired at the same time after transmission are L and H, the received gray values of the pixel points at other positions can be compared with H-delta 1 and L + delta 0, and when the gray value of one pixel point is greater than or equal to H-delta 1, the digital information corresponding to the bit represented by the pixel point is considered to be high-order 1; and when the gray value of one pixel point is less than or equal to L + delta 0, the digital information corresponding to the bit represented by the pixel point is considered as low-order 0.
Fig. 4 is a schematic diagram of a transmission process of a pixel point corresponding to analog information after conversion of one byte in digital information according to an embodiment of the present invention.
Fig. 4 illustrates an example in which the gray values of two pixel points before the pixel point corresponding to each byte are respectively set as the preset high-order value and the preset low-order value, as can be seen from fig. 4, after data transmission, the gray values of the pixel points may change, so that the digital information after conversion of the analog information corresponding to each bit in the byte is accurately determined by setting the gray values as the gray values of the transmitted pixel points of the preset low-order value and the preset high-order value, and the problem that the converted digital information is wrong due to deviation of the analog information in the transmission process is avoided.
Example 5:
fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention, where the device includes:
an obtaining module 501, configured to obtain, for each frame of image, digital information of data corresponding to the frame of image;
a conversion module 502, configured to convert the digital information into analog information;
the first processing module 503 is configured to transmit the analog information by using the invalid signal line corresponding to the frame of image.
Further, the first processing module 503 is specifically configured to, for each byte in the digital information, convert the byte into analog information.
Further, the first processing module 503 is specifically configured to, for each byte in the digital information, obtain a pixel point corresponding to each bit in the byte in the invalid signal line; aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information; and transmitting the invalid signal line data after the gray value of the pixel point is set.
Further, the first processing module 503 is further configured to obtain a first pixel point and a second pixel point, which are adjacent to a pixel point corresponding to a first bit in the byte and are not provided with a gray value, in the invalid signal line; setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
Fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention, where the device includes:
the receiving module 601 is configured to receive each invalid signal line data sent by the image acquisition device;
a second processing module 602, configured to obtain, for each invalid signal line data, analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
Further, the second processing module 602 is specifically configured to sequentially identify a gray value of each pixel point in the invalid signal line, and obtain a first pixel point whose gray value is set as a preset high-order numerical value and a second pixel point whose gray value is set as a preset low-order numerical value; acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
Further, the second processing module 602 is specifically configured to, for the obtained gray value of each pixel, convert the gray value of the pixel into digital information.
Example 6:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 7, including: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 are communicated with each other through the communication bus 704.
The memory 703 has stored therein a computer program which, when executed by the processor 701, causes the processor 701 to perform the steps of:
for each frame of image, acquiring digital information of data corresponding to the frame of image;
converting the digital information into analog information;
and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
In one possible embodiment, the converting the digital information into analog information includes:
for each byte of digital information, the byte is converted to analog information.
In a possible implementation manner, the transmitting the analog information by using the invalid signal line corresponding to the frame image includes:
aiming at each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in an invalid signal line;
aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information;
and transmitting the invalid signal line data after the gray value of the pixel point is set.
In a possible implementation manner, after the setting, for each bit in the byte, the gray value of the pixel point corresponding to the bit as the corresponding numerical value after the bit is converted into the analog information in the data information, and before the transmitting the invalid signal line after the gray value is set, the method further includes:
acquiring a first pixel point and a second pixel point which are adjacent to a pixel point corresponding to the first bit in the byte and are not provided with a gray value in the invalid signal line;
setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
On the basis of the above embodiments, an embodiment of the present invention further provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus.
The memory has stored therein a computer program which, when executed by the processor 701, causes the processor to perform the steps of:
receiving each invalid signal line data sent by the image acquisition equipment;
aiming at each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
In a possible implementation, the obtaining of the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal row, and acquiring a first pixel point with the gray value set as a preset high-order numerical value and a second pixel point with the gray value set as a preset low-order numerical value;
acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
In one possible embodiment, the converting the analog information into digital information includes:
and converting the gray value of each pixel point into digital information according to the obtained gray value of each pixel point.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 7:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
for each frame of image, acquiring digital information of data corresponding to the frame of image;
converting the digital information into analog information;
and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
In one possible embodiment, the converting the digital information into analog information includes:
for each byte of digital information, the byte is converted to analog information.
In a possible implementation manner, the transmitting the analog information by using the invalid signal line corresponding to the frame image includes:
aiming at each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in an invalid signal line;
aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information;
and transmitting the invalid signal line data after the gray value of the pixel point is set.
In a possible implementation manner, after the setting, for each bit in the byte, the gray value of the pixel point corresponding to the bit as the corresponding numerical value after the bit is converted into the analog information in the data information, and before the transmitting the invalid signal line after the gray value is set, the method further includes:
acquiring a first pixel point and a second pixel point which are adjacent to a pixel point corresponding to the first bit in the byte and are not provided with a gray value in the invalid signal line;
setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
receiving each invalid signal line data sent by the image acquisition equipment;
aiming at each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
In a possible implementation, the obtaining of the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal row, and acquiring a first pixel point with the gray value set as a preset high-order numerical value and a second pixel point with the gray value set as a preset low-order numerical value;
acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
In one possible embodiment, the converting the analog information into digital information includes:
and converting the gray value of each pixel point into digital information according to the obtained gray value of each pixel point.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. A data transmission method, applied to an image acquisition device, the method comprising:
for each frame of image, acquiring digital information of data corresponding to the frame of image;
converting the digital information into analog information;
and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
2. The method of claim 1, wherein converting the digital information into analog information comprises:
for each byte of digital information, the byte is converted to analog information.
3. The method of claim 2, wherein said transmitting the analog information using the invalid signal line corresponding to the frame image comprises:
aiming at each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in an invalid signal line;
aiming at each bit in the byte, setting the gray value of the pixel point corresponding to the bit as a numerical value corresponding to the bit converted into analog information in the digital information;
and transmitting the invalid signal line data after the gray value of the pixel point is set.
4. The method of claim 3, wherein after setting, for each bit in the byte, the gray level value of the pixel point corresponding to the bit to the value corresponding to the bit after the bit is converted into the analog information, and before transmitting the invalid signal line after the gray level value is set, the method further comprises:
acquiring a first pixel point and a second pixel point which are adjacent to a pixel point corresponding to the first bit in the byte and are not provided with a gray value in the invalid signal line;
setting the gray value of the first pixel point as a preset high-order numerical value; and setting the gray value of the second pixel point as a preset low-order numerical value.
5. A data transmission method, applied to a server, the method comprising:
receiving each invalid signal line data sent by the image acquisition equipment;
aiming at each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
6. The method of claim 5, wherein obtaining the analog information conveyed by the invalid signal line data comprises:
sequentially identifying the gray value of each pixel point in the invalid signal row, and acquiring a first pixel point with the gray value set as a preset high-order numerical value and a second pixel point with the gray value set as a preset low-order numerical value;
acquiring each pixel point between adjacent first pixel points and second pixel points; and acquiring analog information corresponding to the gray value of each pixel point.
7. The method of claim 6, wherein converting the analog information to digital information comprises:
and converting the gray value of each pixel point into digital information according to the obtained gray value of each pixel point.
8. A data transmission apparatus, applied to an image acquisition device, the apparatus comprising:
the acquisition module is used for acquiring digital information of data corresponding to each frame of image;
the conversion module is used for converting the digital information into analog information;
and the first processing module is used for transmitting the analog information by adopting the invalid signal line corresponding to the frame of image.
9. A data transmission apparatus, applied to a server, the apparatus comprising:
the receiving module is used for receiving data of each invalid signal line sent by the image acquisition equipment;
the second processing module is used for acquiring the analog information transmitted by the invalid signal line data aiming at each invalid signal line data; converting the analog information into digital information; and acquiring the data of the frame of image corresponding to the digital information.
10. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to perform the steps of the data transmission method according to any of claims 1-7 when executing a computer program stored in the memory.
11. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 7.
CN202110915611.9A 2021-08-10 2021-08-10 Data transmission method, device, equipment and medium Active CN113691757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915611.9A CN113691757B (en) 2021-08-10 2021-08-10 Data transmission method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915611.9A CN113691757B (en) 2021-08-10 2021-08-10 Data transmission method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113691757A true CN113691757A (en) 2021-11-23
CN113691757B CN113691757B (en) 2023-08-11

Family

ID=78579794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915611.9A Active CN113691757B (en) 2021-08-10 2021-08-10 Data transmission method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113691757B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5008749A (en) * 1989-03-25 1991-04-16 Bts Broadcast Television Systems Gmbh Method and apparatus for generating an auxiliary timing signal in the horizontal blanking interval of a video signal
JPH06333079A (en) * 1993-03-25 1994-12-02 Asahi Optical Co Ltd Data symbol reader
GB9702453D0 (en) * 1996-02-13 1997-03-26 Ibm Video display system
US5828422A (en) * 1996-04-12 1998-10-27 Wavephore, Inc. Ghost canceler
JP2000196960A (en) * 1998-12-28 2000-07-14 Ge Yokogawa Medical Systems Ltd Method and device for processing image and radioscopic photographing device
US20040195332A1 (en) * 2001-01-22 2004-10-07 Barber Charles P. Business methods using an optical reader having partial frame operating mode
US6895166B1 (en) * 1999-03-15 2005-05-17 Computer Prompting And Captioning Co. Method and apparatus for encoding control data in a video data system
US20050122335A1 (en) * 1998-11-09 2005-06-09 Broadcom Corporation Video, audio and graphics decode, composite and display system
CN105704445A (en) * 2016-01-19 2016-06-22 浙江大华技术股份有限公司 Method for upgrading video camera
CN106209322A (en) * 2016-07-18 2016-12-07 浙江大华技术股份有限公司 The method and device of mixed transport data in a kind of video signal
US20170170867A1 (en) * 2015-12-15 2017-06-15 Airbus Ds Gmbh Blanking using signal-based thresholding schemes
CN108093534A (en) * 2018-02-11 2018-05-29 上海晶丰明源半导体股份有限公司 Control method, controller and LED drive device
CN110858865A (en) * 2018-08-24 2020-03-03 上海富瀚微电子股份有限公司 Data transmission method and device for simulating high-definition video
CN111836004A (en) * 2019-04-18 2020-10-27 杭州海康威视数字技术股份有限公司 Audio data transmission method, device, system and equipment
CN112954165A (en) * 2021-02-09 2021-06-11 杭州海康威视数字技术股份有限公司 Analog camera, decoder and monitoring system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5008749A (en) * 1989-03-25 1991-04-16 Bts Broadcast Television Systems Gmbh Method and apparatus for generating an auxiliary timing signal in the horizontal blanking interval of a video signal
JPH06333079A (en) * 1993-03-25 1994-12-02 Asahi Optical Co Ltd Data symbol reader
GB9702453D0 (en) * 1996-02-13 1997-03-26 Ibm Video display system
US5828422A (en) * 1996-04-12 1998-10-27 Wavephore, Inc. Ghost canceler
US20050122335A1 (en) * 1998-11-09 2005-06-09 Broadcom Corporation Video, audio and graphics decode, composite and display system
JP2000196960A (en) * 1998-12-28 2000-07-14 Ge Yokogawa Medical Systems Ltd Method and device for processing image and radioscopic photographing device
US6895166B1 (en) * 1999-03-15 2005-05-17 Computer Prompting And Captioning Co. Method and apparatus for encoding control data in a video data system
US20040195332A1 (en) * 2001-01-22 2004-10-07 Barber Charles P. Business methods using an optical reader having partial frame operating mode
US20170170867A1 (en) * 2015-12-15 2017-06-15 Airbus Ds Gmbh Blanking using signal-based thresholding schemes
CN105704445A (en) * 2016-01-19 2016-06-22 浙江大华技术股份有限公司 Method for upgrading video camera
CN106209322A (en) * 2016-07-18 2016-12-07 浙江大华技术股份有限公司 The method and device of mixed transport data in a kind of video signal
CN108093534A (en) * 2018-02-11 2018-05-29 上海晶丰明源半导体股份有限公司 Control method, controller and LED drive device
CN110858865A (en) * 2018-08-24 2020-03-03 上海富瀚微电子股份有限公司 Data transmission method and device for simulating high-definition video
CN111836004A (en) * 2019-04-18 2020-10-27 杭州海康威视数字技术股份有限公司 Audio data transmission method, device, system and equipment
CN112954165A (en) * 2021-02-09 2021-06-11 杭州海康威视数字技术股份有限公司 Analog camera, decoder and monitoring system

Also Published As

Publication number Publication date
CN113691757B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN101465955A (en) Method and apparatus for updating background
CN110971560B (en) QAM signal modulation method and device and electronic equipment
CN104052577A (en) Signal transmission processing method and device and video data transmission method and system
CN112817602B (en) JSON format data transmitting and receiving method, device and medium
CN113676730B (en) Video coding method and device, electronic equipment and storage medium
CN115277882B (en) CAN message database establishment method and device, vehicle-mounted electronic equipment and storage medium
CN114499743A (en) Communication data processing method, device, equipment and storage medium
CN111882038A (en) Model conversion method and device
CN113691757A (en) Data transmission method, device, equipment and medium
CN116932202B (en) Access method, processor, electronic device and readable storage medium
CA1223076A (en) Error correction system in a teletext system
CN114339252B (en) Data compression method and device
CN110969063B (en) Meter reading method, meter reading equipment, remote meter reading device, system and storage medium
CN114254757A (en) Distributed deep learning method and device, terminal equipment and storage medium
CN112948105B (en) Gradient transmission method, gradient transmission device and parameter server
CN111970206A (en) FC network flow control method, device and related components
CN113139563A (en) Optimization method and device of image classification model
CN111310909A (en) Floating point number conversion circuit
CN112579519B (en) Data arithmetic circuit and processing chip
CN102208973B (en) Data stream transmitting method and device
CN102457761A (en) Method and device for transmitting and receiving video stream
CN117891627B (en) Inter-core communication interaction system applied to energy storage cooperative control device
CN111367497B (en) Posit data format-based floating-point number multiplication method and device
CN117081726B (en) Method and device for transmitting files in blocking and grading mode
CN108111636B (en) IP address setting method, device and system for mining network camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant