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

Data transmission method, device, equipment and medium Download PDF

Info

Publication number
CN113691757B
CN113691757B CN202110915611.9A CN202110915611A CN113691757B CN 113691757 B CN113691757 B CN 113691757B CN 202110915611 A CN202110915611 A CN 202110915611A CN 113691757 B CN113691757 B CN 113691757B
Authority
CN
China
Prior art keywords
gray value
pixel point
signal line
pixel
digital information
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.)
Active
Application number
CN202110915611.9A
Other languages
Chinese (zh)
Other versions
CN113691757A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a data transmission method, a device, equipment and a medium, which are used for solving the problem of less transmitted data volume when data transmission is carried out in the prior art. In the embodiment of the invention, for each frame image, digital information of data corresponding to the frame image is converted into analog information, and the analog information after conversion is transmitted by adopting invalid signal lines in the frame image. Since the data transmission is performed using the invalid signal line in the image when the data is transmitted, it is possible to make more data 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 artificial intelligence algorithms land more and more frequently in practical application scenarios, this puts higher demands on analog cameras in the data interaction process. The function that the simulation camera can realize intelligence is mainly through transmitting the image transmission that the front end was shot to the rear end and handle, and the rear end is with the data transmission that handles again for the front end camera in order to be used for showing intelligent recognition effect.
According to industry video signal standards, current analog cameras mainly adopt lines 5 to 9 and lines 10 to 24 in each frame blanking line to respectively transmit forward and reverse data, however, when the analog camera transmits data to the rear end, the data volume for communication can be transmitted too little, and each line can only transmit 3 bytes of data, so that the data volume required by the artificial intelligence processing of the rear end can not be met.
Disclosure of Invention
The invention provides a data transmission method, a device, equipment and a medium, which are used for solving the problem of less transmitted data volume 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, digital information of data corresponding to the frame of image is obtained;
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 in the 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:
for each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in the invalid signal line;
setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information;
invalid signal line data after the gradation value of the pixel point is set is transmitted.
Further, for each bit in the byte, setting the gray value of the pixel corresponding to the bit as a value corresponding to the bit converted into analog information in the data information, and before transmitting the invalid signal line after setting the gray value, 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 gray values in the invalid signal line;
setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be 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;
for 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 image corresponding to the digital information.
Further, the acquiring the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal line, and acquiring a first pixel point with the gray value set to a preset high-order value and a second pixel point with the gray value set to a preset low-order value;
acquiring each pixel point between the adjacent first pixel point and second pixel point; 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 aiming at the acquired gray value of the 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 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 an invalid signal line corresponding to the frame 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 obtain, for each byte in the digital information, a pixel point corresponding to each bit in the byte in the invalid signal line; setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information; invalid signal line data after the gradation value of the pixel point is set is transmitted.
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, in the invalid signal line and are not provided with a gray value; setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be 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 each invalid signal line data sent by the image acquisition equipment;
the second processing module is used for acquiring 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 image corresponding to the digital information.
Further, the second processing module is specifically configured to sequentially identify a gray value of each pixel in the invalid signal line, and obtain a first pixel with a gray value set to a preset high-order value and a second pixel with a gray value set to a preset low-order value; acquiring each pixel point between the adjacent first pixel point and second pixel point; and acquiring analog information corresponding to the gray value of each pixel point.
Further, the second processing module is specifically configured to convert, for the obtained gray value of each pixel, the gray value of the pixel into digital information.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, which at least comprises a processor and a memory, the processor being configured to execute the steps of the data transmission method according to any one of the preceding claims when executing a computer program stored in the memory.
In a sixth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the data transmission method of any one of the claims.
In the embodiment of the invention, for each frame image, digital information of data corresponding to the frame image is converted into analog information, and the analog information after conversion is transmitted by adopting invalid signal lines in the frame image. Since the data transmission is performed using the invalid signal line in the image when the data is transmitted, it is possible to make more data be transmitted.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
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 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 pixel transmission process 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 more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the invention, fall within the scope of protection of the invention.
Example 1:
fig. 1 is a schematic diagram of a data transmission process according to an embodiment of the present invention, where the process includes the following steps:
s101: for each frame of image, digital information of data corresponding to the frame of image is acquired.
The data transmission method provided by the embodiment of the invention is applied to the image acquisition equipment.
In the embodiment of the invention, for each frame of acquired image, the image acquisition device transmits data corresponding to the frame of image to the server. The image acquisition device may acquire the data corresponding to the frame image first, and acquire the digital information of the data corresponding to the frame image when performing data transmission, specifically, how to acquire the corresponding digital information according to the data corresponding to the frame image is the prior art, which is not described herein.
S102: converting the digital information to analog information.
Because the transmission time of the digital information is longer when the data transmission is performed, the transmission efficiency is lower, so that the digital information is converted into the analog information in the embodiment of the invention, and the efficiency of the data transmission is improved by transmitting the analog information. How to convert digital information into analog information is specifically known in the art and will not be described in detail herein.
S103: and transmitting the analog information by adopting an invalid signal line corresponding to the frame image.
In order to improve the transmission quantity of data, in the embodiment of the invention, the converted analog information is transmitted by adopting the invalid signal line corresponding to the frame image, so that the transmission quantity of data is improved.
In the embodiment of the invention, for each frame image, digital information of data corresponding to the frame image is converted into analog information, and the analog information after conversion is transmitted by adopting invalid signal lines in the frame image. Since the data transmission is performed using the invalid signal line in the image when the data is transmitted, it is possible to make more data be transmitted.
Example 2:
in order to improve the efficiency of data transmission, in the embodiment of the present invention, the converting the digital information into analog information includes:
for each byte in the digital information, the byte is converted to analog information.
In the embodiment of the invention, the transmission time of the digital information is longer, and in order to improve the data transmission efficiency, each byte in the digital information is converted into the analog information, and the converted analog information is transmitted when the data transmission is performed.
Specifically, for a certain data to be transmitted Date, wherein B is one byte of digital information, and a determination formula of analog information corresponding to each bit of the digital information is as follows:
wherein Bi is each bit contained in one byte, and the value of i is 0-7. That is, if the value of a certain bit in the digital information is 1, the analog information corresponding to the bit is 255, and if the value of a certain bit in the digital information is 0, the analog information corresponding to the bit is 0.
In order to achieve data transmission, in the embodiments of the present invention, the transmitting the analog information using the invalid signal line corresponding to the frame image includes:
for each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in the invalid signal line;
setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information;
invalid signal line data after the gradation value of the pixel point is set is transmitted.
In the prior art, the 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 the 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 data quantity of transmission is improved.
Wherein each byte of the digital information contains a predetermined number of bits, typically 8, i.e., each byte of the digital information contains 8 bits. Specifically, the process of setting the gray value of the pixel point is as follows: when analog information transmission is performed, the pixel point representing each bit in each byte in the invalid signal line corresponding to each byte in the digital information can be acquired first, and after the pixel point corresponding to each bit in the byte is acquired, the gray value of the pixel point corresponding to the bit is set as a numerical value after the bit is converted into the analog information for each bit in the byte. In order to improve accuracy of data transmission, in the above embodiments, in an embodiment of the present invention, for each bit in the byte, a gray value of a pixel corresponding to the bit is set to a value corresponding to the bit converted into analog information in the data information, and before an invalid signal line after the gray value is set in the transmission, 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 gray values in the invalid signal line;
setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be a preset low-order numerical value.
Because the analog information is easy to generate a larger error rate in the transmission process, if the larger error rate is generated, the accuracy of data transmission is lower, so in the embodiment of the invention, the larger error rate generated 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 the preset high-order numerical value and the preset low-order numerical value of each byte are set, the corresponding pixel points set as the preset high-order numerical value and the preset low-order numerical value of the byte can be acquired firstly, and specifically, the acquisition process of the pixel points set as the preset high-order numerical value and the pixel points set as the preset low-order numerical value is as follows: and acquiring a pixel point corresponding to the first bit in the byte in the invalid signal line, 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 pixels corresponding to the byte in the invalid signal line may be sequentially from left to right: the first pixel point of the preset high-order numerical value corresponding to the byte, the second pixel point of the preset low-order numerical value corresponding to the byte and the pixel point corresponding to each bit in the byte after being converted into analog information. Of course, for each byte, the arrangement manner of the pixel point corresponding to the byte in the invalid signal line from left to right may be other manners.
For each byte in the analog information, after determining a first pixel point and a second pixel point corresponding to the byte, setting the gray value of the first pixel point to be a preset high-order numerical value, and setting the gray value of the second pixel point to be a preset low-order numerical value, so that the numerical value after the byte is converted into the analog information, the preset high-order numerical value corresponding to the byte and the preset low-order numerical value corresponding to the byte are transmitted through an invalid signal line.
Fig. 2 is a schematic diagram of setting a gray value of a pixel corresponding to each byte according to an embodiment of the present invention.
In fig. 2, the gray values of two pixels before each pixel corresponding to each byte are respectively set to a preset high-level value and a preset low-level value, and as can be seen from fig. 2, the gray values of adjacent pixels may be sequentially set to a preset low-level value 0, a preset high-level value 255, and then each bit in the bytes may be set to a value after being converted into analog information. And correcting the value of each bit in the byte after being converted into analog information through the gray value of the pixel point which corresponds to the byte and is set to be the preset low-order value and the preset high-order value after transmission, so as to avoid the deviation of the value of each bit in the byte after being converted into analog information in the transmission process.
Example 3:
fig. 3 is a schematic diagram of a data transmission process according to 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, the data is transmitted through each piece of invalid signal line data sent by the image acquisition equipment, the server receives each piece of invalid signal line data sent by the image acquisition equipment, wherein the corresponding signal line is marked as an invalid signal line or an valid signal line in the signal line data sent by the image acquisition equipment received by the server.
S302: for 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 image corresponding to the digital information.
After receiving each invalid signal line data sent by the image acquisition device, acquiring data contained in the invalid signal line data according to each invalid signal line data, wherein the process of acquiring the data contained in the invalid signal line data is as follows: and acquiring the analog information transmitted by the invalid signal line, converting the acquired analog information into digital information after acquiring the analog information, and acquiring corresponding data in the invalid signal line data corresponding to the digital information through the digital information. Specifically, how to obtain the data in the invalid signal line data corresponding to the digital information through the digital information is in the prior art, and is not described herein.
Example 4:
in order to accurately determine digital information corresponding to analog information, in the embodiments 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 line, and acquiring a first pixel point with the gray value set to a preset high-order value and a second pixel point with the gray value set to a preset low-order value;
acquiring each pixel point between the adjacent first pixel point and second pixel point; 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 sequentially identify the gray value of each pixel point in the invalid signal line, acquire the adjacent first pixel point which is set to a preset high-order value and the adjacent second pixel point which is set to a preset low-order value in the invalid signal line according to each pixel point, acquire the preset number of pixel points after the first pixel point and the second pixel point are acquired, and determine the analog information corresponding to each pixel point according to the acquired 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 analog information is: sequentially determining a preset number of adjacent pixel points provided with gray values, wherein the gray values of the preset number of pixel points 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 the numerical value after each bit in the byte in the digital information is converted into analog information. And because each byte contains 8 bits, the preset number of pixels is usually 10 pixels, wherein the 10 pixels contain pixels corresponding to 8 bits in the byte, and the gray value corresponding to the byte is set to a preset high-order numerical value and is set to a pixel corresponding to a preset low-order numerical value.
For example, M/T bytes of analog information may be stored and transmitted for each inactive line in an image of m×n size, where M refers to the number of pixels in each line in the image of m×n size, N refers to the number of lines in the image of m×n size, and the minimum value of T is 10, that is, each inactive line may store and transmit at most M/10 bytes of digital information converted into analog information. Wherein m×n may be 1280×720, 1920×1080, 2592×1944 or 3840×2160, etc.
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 pixels corresponding to the byte from left to right, the gray value is set to be a preset high-order numerical value, the gray value is set to be a preset low-order numerical value, and the gray value is set to be a numerical value after each bit in the byte is converted into the analog information, so that when the first pixel and the second pixel are determined, a preset number of pixels can be sequentially obtained, wherein two pixels at the beginning of the preset number of pixels are respectively the first pixel and the second pixel.
In order to accurately determine the digital information corresponding to the analog information, in the embodiments of the present invention, the converting the analog information into the digital information includes:
and converting the gray value of each pixel point into digital information aiming at the acquired gray value of the pixel point.
In the embodiment of the invention, for each byte in the digital information, after the pixel point corresponding to the analog information converted by 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 is lost in the data transmission process, the value of the analog information transmitted by the invalid signal line acquired by the server is not fixed, so that the server may have a problem of conversion errors when converting the analog information transmitted in the image into digital information, and the number of pixels on the invalid signal line is large, and the degree of distortion of gray values of the pixels corresponding to the invalid signal line cannot be predicted to be large. Specifically, the digital information T determined by the server is:
wherein ImageDate is a gray value of a pixel after transmission, L is a gray value obtained after transmission of a pixel with a gray value set to a preset low-order value, and H is a gray value obtained after transmission of a pixel with a gray value set to a preset high-order value; Δ0 and Δ1 are preset values; while H-Delta 1>L +Delta0.
That is, the server knows that the gray values of the preset position pixels in the adjacent preset number of pixels sequentially provided with the gray values respectively represent a preset low-order numerical value and a preset high-order numerical value, wherein the preset low-order numerical value can be a value after the low-order 0 in the digital information is converted into the analog information, and the preset high-order numerical value can be a value after the high-order 1 in the digital information is converted into the analog information. And the gray values of the 2 pixel points obtained after transmission are L and H, so that the 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 regarded as high-order 1; when the gray value of a certain pixel point is smaller than or equal to L+Δ0, the digital information corresponding to the bit represented by the pixel point is considered to be low-order 0.
Fig. 4 is a schematic diagram of a pixel transmission process corresponding to analog information after conversion of one byte in digital information according to an embodiment of the present invention.
In fig. 4, the gray values of two pixels before the pixel corresponding to each byte are respectively set to a preset high-order value and a preset low-order value, and as can be seen from fig. 4, the gray values of the pixels may change after data transmission, so that the digital information after the conversion of the analog information corresponding to each byte is accurately determined by setting the gray values to the preset low-order value and the gray values after the transmission of the pixel corresponding to the preset high-order value, thereby avoiding the problem that the converted digital information has errors due to deviation of the analog information in the transmission process.
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 an invalid signal line corresponding to the frame 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 obtain, for each byte in the digital information, a pixel point corresponding to each bit in the byte in the invalid signal line; setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information; invalid signal line data after the gradation value of the pixel point is set is transmitted.
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, in the invalid signal line and have no gray value set; setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be 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:
a receiving module 601, configured to receive each inactive signal line data sent by the image capturing device;
the second processing module 602 is 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 image corresponding to the digital information.
Further, the second processing module 602 is specifically configured to sequentially identify a gray value of each pixel in the invalid signal line, obtain a first pixel with a gray value set to a preset high-order value, and obtain a second pixel with a gray value set to a preset low-order value; acquiring each pixel point between the adjacent first pixel point and second pixel point; and acquiring analog information corresponding to the gray value of each pixel point.
Further, the second processing module 602 is specifically configured to convert, for each obtained gray value of the pixel, the gray value of the pixel into digital information.
Example 6:
on the basis of the above embodiments, the embodiment of the present invention further provides an electronic device, as shown in fig. 7, including: the device 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 in communication 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, digital information of data corresponding to the frame of image is obtained;
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 implementation, the converting the digital information into analog information includes:
for each byte in the digital information, the byte is converted to analog information.
In one possible implementation manner, the transmitting the analog information using the invalid signal line corresponding to the frame image includes:
for each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in the invalid signal line;
setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information;
invalid signal line data after the gradation value of the pixel point is set is transmitted.
In one possible implementation manner, after setting, for each bit in the byte, the gray 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 in the data information, 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 gray values in the invalid signal line;
setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be a preset low-order numerical value.
On the basis of the above embodiments, the embodiment of the present invention further provides an electronic device, including: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication 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;
for 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 image corresponding to the digital information.
In one possible implementation manner, the acquiring the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal line, and acquiring a first pixel point with the gray value set to a preset high-order value and a second pixel point with the gray value set to a preset low-order value;
acquiring each pixel point between the adjacent first pixel point and second pixel point; and acquiring analog information corresponding to the gray value of each pixel point.
In one possible implementation, the converting the analog information into digital information includes:
and converting the gray value of each pixel point into digital information aiming at the acquired gray value of the pixel point.
The communication bus mentioned by the server may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; but also digital instruction processors (Digital Signal Processing, DSP), application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
Example 7:
on the basis of the above embodiments, the embodiments of the present invention further provide a computer readable storage medium having stored therein a computer program executable by an electronic device, which when run on the electronic device, causes the electronic device to perform the steps of:
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of:
for each frame of image, digital information of data corresponding to the frame of image is obtained;
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 implementation, the converting the digital information into analog information includes:
for each byte in the digital information, the byte is converted to analog information.
In one possible implementation manner, the transmitting the analog information using the invalid signal line corresponding to the frame image includes:
for each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in the invalid signal line;
setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information;
invalid signal line data after the gradation value of the pixel point is set is transmitted.
In one possible implementation manner, after setting, for each bit in the byte, the gray 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 in the data information, 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 gray values in the invalid signal line;
setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be a preset low-order numerical value.
On the basis of the above embodiments, the embodiments of the present invention further provide a computer readable storage medium having stored therein a computer program executable by a processor, which when run on the processor, causes the processor to perform the steps of:
receiving each invalid signal line data sent by the image acquisition equipment;
for 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 image corresponding to the digital information.
In one possible implementation manner, the acquiring the analog information transmitted by the invalid signal line data includes:
sequentially identifying the gray value of each pixel point in the invalid signal line, and acquiring a first pixel point with the gray value set to a preset high-order value and a second pixel point with the gray value set to a preset low-order value;
acquiring each pixel point between the adjacent first pixel point and second pixel point; and acquiring analog information corresponding to the gray value of each pixel point.
In one possible implementation, the converting the analog information into digital information includes:
and converting the gray value of each pixel point into digital information aiming at the acquired gray value of the pixel point.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (7)

1. A data transmission method, applied to an image acquisition apparatus, the method comprising:
for each frame of image, digital information of data corresponding to the frame of image is obtained;
converting the digital information into analog information;
transmitting the simulation information by adopting an invalid signal line corresponding to the frame image;
wherein, the transmitting the analog information by using the invalid signal line corresponding to the frame image includes:
for each byte in the digital information, acquiring a pixel point corresponding to each bit in the byte in the invalid signal line;
setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information;
transmitting invalid signal line data after setting the gray value of the pixel point;
setting, for each bit in the byte, a gray value of a pixel point corresponding to the bit, after the bit is converted into a value corresponding to analog information in digital information, and before transmitting an 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 gray values in the invalid signal line;
setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be a preset low-order numerical value.
2. The method of claim 1, wherein the converting the digital information to analog information comprises:
for each byte in the digital information, the byte is converted to analog information.
3. A data transmission method, applied to a server, the method comprising:
receiving each invalid signal line data sent by the image acquisition equipment;
for each invalid signal line data, acquiring analog information transmitted by the invalid signal line data; converting the analog information into digital information; acquiring data of the frame image corresponding to the digital information;
the acquiring the analog information transmitted by the invalid signal line data comprises the following steps:
sequentially identifying the gray value of each pixel point in the invalid signal line, and acquiring a first pixel point with the gray value set to a preset high-order value and a second pixel point with the gray value set to a preset low-order value; acquiring a preset number of pixel points after the adjacent first pixel points and second pixel points; obtaining simulation information corresponding to the gray value of each pixel point in the preset number of pixel points;
the converting the analog information into digital information includes:
converting the gray value of each pixel point in the preset number of pixel points into digital information aiming at the gray value of the pixel point;
the gray value of the pixel is converted into digital information according to the following formula:
wherein ImageDate is the gray value of the pixel after transmission, L is the gray value obtained after transmission of the pixel with the gray value set as the preset low-order value, and H is the gray value obtained after transmission of the pixel with the gray value set as the preset high-order value; Δ0 and Δ1 are preset values; h- Δ 1>L +Δ0.
4. A data transmission apparatus for use with an image acquisition device, the apparatus comprising:
the acquisition module is used for acquiring digital information of data corresponding to each frame image;
the conversion module is used for converting the digital information into analog information;
the first processing module is used for transmitting the analog information by adopting an invalid signal line corresponding to the frame image;
the first processing module is specifically configured to obtain, for each byte in the digital information, a pixel point corresponding to each bit in the byte in the invalid signal line; setting the gray value of the pixel point corresponding to each bit in the byte as a corresponding numerical value after the bit is converted into analog information in the digital information; transmitting invalid signal line data after setting the gray value of the pixel point;
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, in the invalid signal line and are not provided with a gray value; setting the gray value of the first pixel point to be a preset high-order numerical value; and setting the gray value of the second pixel point to be a preset low-order numerical value.
5. A data transmission apparatus for use with a server, the apparatus comprising:
the receiving module is used for receiving each invalid signal line data sent by the image acquisition equipment;
the second processing module is used for acquiring analog information transmitted by the invalid signal line data aiming at each invalid signal line data; converting the analog information into digital information; acquiring data of the frame image corresponding to the digital information;
the second processing module is specifically configured to sequentially identify a gray value of each pixel in the invalid signal line, and obtain a first pixel with a gray value set to a preset high-order value and a second pixel with a gray value set to a preset low-order value; acquiring a preset number of pixel points after the adjacent first pixel points and second pixel points; obtaining simulation information corresponding to the gray value of each pixel point in the preset number of pixel points;
the second processing module is specifically configured to convert, for the obtained gray value of each pixel point in the preset number of pixel points, the gray value of the pixel point into digital information; the gray value of the pixel is converted into digital information according to the following formula:
wherein ImageDate is the gray value of the pixel after transmission, L is the gray value obtained after transmission of the pixel with the gray value set as the preset low-order value, and H is the gray value obtained after transmission of the pixel with the gray value set as the preset high-order value; Δ0 and Δ1 are preset values; h- Δ 1>L +Δ0.
6. An electronic device comprising at least a processor and a memory, the processor being adapted to perform the steps of the data transmission method of any of claims 1-3 when executing a computer program stored in the memory.
7. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, performs the steps of the data transmission method of any one of claims 1-3.
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 CN113691757A (en) 2021-11-23
CN113691757B true 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 (12)

* 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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853385B1 (en) * 1999-11-09 2005-02-08 Broadcom Corporation Video, audio and graphics decode, composite and display system
US7270273B2 (en) * 2001-01-22 2007-09-18 Hand Held Products, Inc. Optical reader having partial frame operating mode
EP3182606B1 (en) * 2015-12-15 2019-10-23 Airbus Defence and Space GmbH Blanking using signal-based thresholding schemes

Patent Citations (12)

* 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
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
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
CN113691757A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN110929865B (en) Network quantification method, service processing method and related product
CN108600783B (en) Frame rate adjusting method and device and terminal equipment
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
WO2022088876A1 (en) Communication data processing method and apparatus, device, and storage medium
CN110599586A (en) Semi-dense scene reconstruction method and device, electronic equipment and storage medium
CN110275880B (en) Data analysis method, device, server and readable storage medium
CN112561050B (en) Neural network model training method and device
CN110717864B (en) Image enhancement method, device, terminal equipment and computer readable medium
CN113691757B (en) Data transmission method, device, equipment and medium
CN113128696A (en) Distributed machine learning communication optimization method and device, server and terminal equipment
CN116912653A (en) Model training method and device and electronic equipment
CN110782415A (en) Image completion method and device and terminal equipment
CN115830414A (en) Face key point regression model training method, device, equipment and storage medium
CN112598616B (en) Method for determining exposure parameters of electronic equipment and imaging method
CN108668166A (en) A kind of coding method, device and terminal device
CN114897719A (en) Video processing method and device, electronic equipment and storage medium
CN114332928A (en) Image segmentation method and device, electronic equipment and storage medium
CN113780286A (en) Object recognition method and device, storage medium and electronic device
CN118312797B (en) Similarity determination method, device and equipment and computer storage medium
CN111415288A (en) Digital watermark embedding and detecting method and device
CN112288748A (en) Semantic segmentation network training and image semantic segmentation method and device
CN112948105B (en) Gradient transmission method, gradient transmission device and parameter server
CN110517204B (en) Noise elimination method and device of X-ray detector and detector
CN114819122B (en) Data processing method and device based on impulse neural network
CN114429429B (en) Ghost imaging inversion method, ghost imaging inversion system, electronic equipment and storage medium

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