[go: up one dir, main page]

CN110365858B - Information transmission method, device, equipment, system and storage medium - Google Patents

Information transmission method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN110365858B
CN110365858B CN201810800242.7A CN201810800242A CN110365858B CN 110365858 B CN110365858 B CN 110365858B CN 201810800242 A CN201810800242 A CN 201810800242A CN 110365858 B CN110365858 B CN 110365858B
Authority
CN
China
Prior art keywords
image
information
pixel value
image data
information transmission
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
CN201810800242.7A
Other languages
Chinese (zh)
Other versions
CN110365858A (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.)
Beijing Zen Ai Technology Co ltd
Original Assignee
Beijing Zen Ai 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 Beijing Zen Ai Technology Co ltd filed Critical Beijing Zen Ai Technology Co ltd
Publication of CN110365858A publication Critical patent/CN110365858A/en
Application granted granted Critical
Publication of CN110365858B publication Critical patent/CN110365858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00095Systems or arrangements for the transmission of the picture signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00095Systems or arrangements for the transmission of the picture signal
    • H04N1/00114Systems or arrangements for the transmission of the picture signal with transmission of additional information signals
    • H04N1/00122Systems or arrangements for the transmission of the picture signal with transmission of additional information signals of text or character information only
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种信息传输方法、装置、设备、系统及存储介质,其中所述方法包括:将待传输的信息编码为适合视频数据线传输的图像数据;采用所述视频数据线传输所述图像数据。本发明实施例将信息编码为图像数据通过视频数据线进行传输,这样一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。

Figure 201810800242

The invention discloses an information transmission method, device, equipment, system and storage medium, wherein the method comprises: encoding information to be transmitted into image data suitable for transmission by video data lines; image data. This embodiment of the present invention encodes information into image data and transmits it through a video data line. In this way, on the one hand, developers can avoid using complex video underlying protocols to encode information, saving labor costs. On the other hand, even in the absence of a network It can also successfully transmit information, thereby improving the efficiency of information transmission.

Figure 201810800242

Description

信息传输方法、装置、设备、系统及存储介质Information transmission method, device, equipment, system and storage medium

相关申请Related applications

本申请要求本案申请人2018-04-10提交的申请号为“201810318012.7”,发明名称为“信息传输方法、装置、设备、系统及存储介质”的在先申请的优先权。This application claims the priority of the prior application with the application number "201810318012.7" and the invention title "Information Transmission Method, Apparatus, Equipment, System and Storage Medium" filed by the applicant of this case on 2018-04-10.

技术领域technical field

本发明实施例涉及信息传输技术领域,尤其涉及一种信息传输方法、装置、设备、系统及存储介质。Embodiments of the present invention relate to the technical field of information transmission, and in particular, to an information transmission method, apparatus, device, system, and storage medium.

背景技术Background technique

视频是随时间变化的图像流,含有更为丰富的其他媒体所无法表达的信息和内容。以视频的形式来传递信息,能够直观、生动、真实、高效地表达现实世界,所传递的信息量非常丰富,远远大于文本或静态的图像,因此越来越受到人们的喜爱。Video is a stream of images that changes over time and contains richer information and content that other media cannot express. The transmission of information in the form of video can express the real world intuitively, vividly, truly and efficiently. The amount of information transmitted is very rich, far greater than that of text or static images, so it is more and more popular among people.

目前,在传输信息(例如视频对应的文本信息、或控制指令)时均依赖于互联网技术。具体的,在发送设备和接收设备均处于联网状态下,采用有限网络或无限网络将信息传输至对方。但是,当发送设备和/或接收设备不满足联网条件时,则信息就不能通过网络成功传输到对方,从而导致信息传输失败,或者此时研发人员可以使用现有的视频传输技术和部件(用于在两个计算机之间传输视频信号所用的采集卡、视频解码器、显卡、视频编码器等)和其中复杂的视频底层协议对信息进行编码然后传输,这样就增加了人力成本和时间成本。At present, when transmitting information (for example, text information corresponding to a video, or control instructions), all rely on the Internet technology. Specifically, when both the sending device and the receiving device are in a networked state, a limited network or a wireless network is used to transmit information to each other. However, when the sending device and/or the receiving device do not meet the networking conditions, the information cannot be successfully transmitted to the other party through the network, resulting in the failure of information transmission, or the R&D personnel can use the existing video transmission technology and components (with The acquisition cards, video decoders, graphics cards, video encoders, etc. used to transmit video signals between two computers) and the complex video underlying protocols encode the information and then transmit it, which increases labor costs and time costs.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种信息传输方法、装置、设备、系统及存储介质,能够在不联网的情况下成功传输信息,并且节约了人力成本。Embodiments of the present invention provide an information transmission method, apparatus, device, system and storage medium, which can successfully transmit information without networking and save labor costs.

第一方面,本发明实施例提供了一种信息传输方法,包括:In a first aspect, an embodiment of the present invention provides an information transmission method, including:

将待传输的信息编码为适合视频数据线传输的图像数据;Encode the information to be transmitted into image data suitable for video data line transmission;

采用所述视频数据线传输所述图像数据。The image data is transmitted using the video data line.

第二方面,本发明实施例还提供了一种信息传输方法,包括:In a second aspect, an embodiment of the present invention also provides an information transmission method, including:

采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据;adopting a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device;

对所述图像数据进行解码得到所述信息。The information is obtained by decoding the image data.

第三方面,本发明实施例还提供了一种信息传输方法,包括:发送设备执行第一方面所述的信息传输方法和接收设备执行第二方面所述的信息传输方法。In a third aspect, an embodiment of the present invention further provides an information transmission method, including: a sending device executes the information transmission method described in the first aspect and a receiving device executes the information transmission method described in the second aspect.

第四方面,本发明实施例还提供一种信息传输装置,包括:In a fourth aspect, an embodiment of the present invention further provides an information transmission device, including:

信息编码模块,用于将待传输的信息编码为适合视频数据线传输的图像数据;an information encoding module for encoding the information to be transmitted into image data suitable for video data line transmission;

信息传输模块,用于采用所述视频数据线传输所述图像数据。an information transmission module, configured to transmit the image data by using the video data line.

第五方面,本发明实施例还提供一种信息传输装置,包括:In a fifth aspect, an embodiment of the present invention further provides an information transmission device, including:

数据接收模块,用于采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据;a data receiving module, configured to use a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device;

信息解码模块,用于对所述图像数据进行解码得到所述信息。An information decoding module, configured to decode the image data to obtain the information.

第六方面,本发明实施例还提供一种信息传输系统,其特征在于,包含第四方面所述的信息传输装置和第五方面所述的信息传输装置。In a sixth aspect, an embodiment of the present invention further provides an information transmission system, which is characterized by comprising the information transmission apparatus described in the fourth aspect and the information transmission apparatus described in the fifth aspect.

第七方面,本发明实施例还提供了一种设备,包括:In a seventh aspect, an embodiment of the present invention further provides a device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现第一方面所述的信息传输方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the information transmission method described in the first aspect.

第八方面,本发明实施例还提供了一种设备,包括:In an eighth aspect, an embodiment of the present invention further provides a device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现第二方面所述的信息传输方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the information transmission method described in the second aspect.

第九方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面所述的信息传输方法。In a ninth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the information transmission method described in the first aspect.

第十方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第二方面所述的信息传输方法。In a tenth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the information transmission method described in the second aspect.

本发明实施例通过将待传输的信息编码为图像数据,然后通过视频数据线进行传输,通过本发明,可以跨过视频线传输技术中的底层的协议,即,任何人使用本发明的技术,可以在现成的视频线传输技术(其中使用在两个计算机之间传输视频信号的采集卡、视频解码器、显卡、视频编码器等)或协议的基础上(但无需了解这些协议,或无需根据协议进行编码)完成对其他信息的传输,从而节约了人力成本;另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。In the embodiment of the present invention, the information to be transmitted is encoded into image data, and then transmitted through the video data line. Through the present invention, the underlying protocol in the video line transmission technology can be crossed, that is, anyone using the technology of the present invention, It can be based on off-the-shelf video cable transmission technology (where capture cards, video decoders, graphics cards, video encoders, etc. are used to transmit video signals between two computers) or protocols (but no knowledge of these protocols is required, or Protocol encoding) to complete the transmission of other information, thereby saving labor costs; on the other hand, information can be successfully transmitted even in the absence of a network, thereby improving information transmission efficiency.

附图说明Description of drawings

图1为本发明实施例一提供的信息传输方法的流程示意图;1 is a schematic flowchart of an information transmission method provided in Embodiment 1 of the present invention;

图2为本发明实施例二提供的信息传输方法的流程示意图;2 is a schematic flowchart of an information transmission method according to Embodiment 2 of the present invention;

图3为本发明实施例三提供的信息传输方法的流程示意图;3 is a schematic flowchart of an information transmission method according to Embodiment 3 of the present invention;

图4为本发明实施例四提供的信息传输方法的流程示意图;4 is a schematic flowchart of an information transmission method according to Embodiment 4 of the present invention;

图5为本发明实施例五提供的信息传输方法的流程示意图;5 is a schematic flowchart of an information transmission method according to Embodiment 5 of the present invention;

图6为本发明实施例六提供的信息传输方法的流程示意图;6 is a schematic flowchart of an information transmission method according to Embodiment 6 of the present invention;

图7为本发明实施例七提供的信息传输装置的结构示意图;7 is a schematic structural diagram of an information transmission apparatus according to Embodiment 7 of the present invention;

图8为本发明实施例八提供的信息传输装置的结构示意图;8 is a schematic structural diagram of an information transmission apparatus according to Embodiment 8 of the present invention;

图9为本发明实施例九提供的设备的结构示意图。FIG. 9 is a schematic structural diagram of a device provided by Embodiment 9 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。In order to make the objectives, technical solutions and advantages of the present invention clearer, the specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, the drawings only show some but not all of the contents related to the present invention. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

在本申请中,包括在下文的具体描述中和权利要求书中,“采用所述视频数据线传输所述图像数据”和“通过视频数据线接收发送设备发送的图像数据”为现有技术中的已知的涉及采集卡、视频解码器、显卡、视频编码器等的图像传输和接收,并非本发明的发明点,故特意略过,不做详细描述。In the present application, including in the following detailed description and claims, "using the video data line to transmit the image data" and "receiving the image data sent by the sending device through the video data line" are in the prior art The known image transmission and reception involving capture cards, video decoders, graphics cards, video encoders, etc., are not the invention points of the present invention, so they are deliberately omitted and will not be described in detail.

实施例一Example 1

图1为本发明实施例一提供的一种信息传输方法的流程图,本实施例可适用于传输信息的情况,该方法可以由本发明实施例提供的信息传输装置或设备来执行,该信息传输装置可采用软件和/或硬件的方式实现,该装置可集成在终端设备中或终端设备的应用端中。其中,终端设备可以为但不限于为移动终端 (平板电脑或智能手机)、固定终端设备(例如台式电脑)。FIG. 1 is a flowchart of an information transmission method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of transmitting information. The method can be executed by the information transmission apparatus or device provided by the embodiment of the present invention. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a terminal device or an application end of the terminal device. Wherein, the terminal device may be, but is not limited to, a mobile terminal (tablet computer or smart phone), a fixed terminal device (such as a desktop computer).

其中,应用端可以为内嵌于终端设备中的某个客户端的插件,或者为所述终端设备的操作系统的插件,与内嵌于终端设备中的信息传输客户端或者终端设备的操作系统中的信息传输应用程序配合使用;应用端也可以为所述终端设备中一个独立的可提供信息传输的客户端,本实施例对此不进行限制。The application end may be a plug-in of a client embedded in the terminal device, or a plug-in of the operating system of the terminal device, and the information transmission client embedded in the terminal device or the operating system of the terminal device. The application end can also be an independent client in the terminal device that can provide information transmission, which is not limited in this embodiment.

图1为本发明实施例一提供的信息传输方法的流程示意图,如图1所示,具体包括:FIG. 1 is a schematic flowchart of an information transmission method provided in Embodiment 1 of the present invention, as shown in FIG. 1 , which specifically includes:

S101、将待传输的信息编码为适合视频数据线传输的图像数据。S101. Encode the information to be transmitted into image data suitable for video data line transmission.

其中,信息包含但不限于语音形式的控制指令、文本形式的控制指令、键盘输入的控制指令。其中,控制指令可以为但不限于开机指令、关机指令、播放指令、快进指令、暂停指令等。The information includes, but is not limited to, control instructions in voice form, control instructions in text form, and control instructions entered by keyboard. The control instruction may be, but not limited to, a power-on instruction, a power-off instruction, a play instruction, a fast-forward instruction, a pause instruction, and the like.

其中,视频数据线为用来传输视频信号的,包括但不限于为以下任意一种:音视频数据线(Audio Video Cable,AV线)、S端子线、三色差线、视频图形阵列数据线(VideoGraphics Array,VGA)、数字视频界面数据线(Digital Visual Interface,DVI)、高清晰多媒体接口线(High Definition Multimedia Interface, HDMI)。Wherein, the video data line is used to transmit video signals, including but not limited to any of the following: audio and video data line (Audio Video Cable, AV line), S terminal line, three color difference line, video graphics array data line ( VideoGraphics Array, VGA), digital video interface data line (Digital Visual Interface, DVI), high definition multimedia interface line (High Definition Multimedia Interface, HDMI).

具体的,可将待传输的信息编码为图像格式,这样待传输的信息就以图像像素值的形式存在,这样就可以通过视频数据线传输对应的图像数据,一方面可以避免使用复杂的视频底层协议对信息进行处理,另一方面,可以达到在无网络情况下传输信息的目的。Specifically, the information to be transmitted can be encoded into an image format, so that the information to be transmitted exists in the form of image pixel values, so that the corresponding image data can be transmitted through the video data line, on the one hand, the use of complex video bottom layers can be avoided. The protocol processes information, on the other hand, it can achieve the purpose of transmitting information without a network.

S102、采用所述视频数据线传输所述图像数据。S102. Use the video data line to transmit the image data.

具体的,可采用所述视频数据线将图像数据发送至接收设备,在接收设备收到图像数据后,对图像数据进行解码得到对应的信息,接收设备可根据信息执行相应的操作。例如,当信息为视频播放指令时,则接收设备开始播放视频等等。Specifically, the video data line can be used to send the image data to the receiving device. After the receiving device receives the image data, it decodes the image data to obtain corresponding information, and the receiving device can perform corresponding operations according to the information. For example, when the information is a video playing instruction, the receiving device starts to play the video and so on.

本实施例通过将待传输的信息编码为图像数据,然后通过视频数据线进行传输,这样一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。In this embodiment, the information to be transmitted is encoded into image data, and then transmitted through the video data line. On the one hand, it can avoid the R&D personnel to use the complex video bottom layer protocol to encode the information, which saves labor costs. On the other hand, even if In the case of no network, information can also be successfully transmitted, thereby improving the efficiency of information transmission.

示例性的,所述将待传输的信息编码为适合视频数据线传输的图像数据包括:Exemplarily, the encoding of the information to be transmitted into image data suitable for video data line transmission includes:

对所述信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值;Perform quantization processing on the content contained in the information, and use the corresponding quantized value as the pixel value of the first image;

根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据。According to the pixel value of the first image and the preset basic image, image data suitable for video data line transmission is obtained.

其中,信息中包含的内容可以为但不限于文本信息、语音信息。基础图像可以为但不限于空白图像、已有图像或自定义的其它图像。The content included in the information may be, but not limited to, text information and voice information. The base image can be, but is not limited to, a blank image, an existing image, or another customized image.

具体的,如果信息为文本信息,则可将文本信息中包含的各字符进行二值化,例如采用0或1表示各字符,或采用0或255表示各字符。或者,将各字符对应的数值在0-255间做归一化处理,使得各字符对应的量化值为0-255中的任意数值,等等。Specifically, if the information is text information, each character included in the text information may be binarized, for example, 0 or 1 is used to represent each character, or 0 or 255 is used to represent each character. Alternatively, the numerical value corresponding to each character is normalized between 0 and 255, so that the quantized value corresponding to each character is any numerical value from 0 to 255, and so on.

实施例二Embodiment 2

图2是本发明实施例二提供的一种信息传输方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:若所述基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。FIG. 2 is a flowchart of an information transmission method according to Embodiment 2 of the present invention. This embodiment is optimized based on the above-mentioned embodiment. In this embodiment, the obtaining image data suitable for video data line transmission according to the first image pixel value and the preset basic image includes: if the basic image If the image is a pre-created blank image, the pixel value of the first image is added to the corresponding position of the blank image to obtain the image data.

相应的,本实施例的方法具体包括:Correspondingly, the method of this embodiment specifically includes:

S201、对待传输的信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值。S201. Perform quantization processing on the content contained in the information to be transmitted, and use the corresponding quantized value as the pixel value of the first image.

具体的,以信息内容为文本信息为例,本实施例可采用的一个量化示例如下:首先将文本信息转为一个长字符串,计算出字符串总字节数,将整个字符串转为相应的二进制位,一个字节对应8个二进制位,总二进制位数为8倍的总字节数,这样形成一个二进制序列,将二进制序列中的各二进制数(即0或1) 作为第一图像像素值。Specifically, taking the information content as text information as an example, a quantitative example that can be used in this embodiment is as follows: first, convert the text information into a long string, calculate the total number of bytes of the string, and convert the entire string into a corresponding One byte corresponds to 8 binary bits, and the total number of binary digits is 8 times the total number of bytes, so a binary sequence is formed, and each binary number (ie, 0 or 1) in the binary sequence is used as the first image. Pixel values.

S202、若基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。S202. If the base image is a pre-created blank image, add the pixel value of the first image to a corresponding position of the blank image to obtain the image data.

其中,空白图像为像素值全为0或1的图像。The blank image is an image whose pixel values are all 0 or 1.

具体的,可使用opencv开源库创建一张空白的图像,空白图像所有的像素值均为0或1,将S201中的二进制序列依次写入空白图像中,一个二进制位占据一个像素值,以连续8个1作为二进制序列结束标记。Specifically, you can use the opencv open source library to create a blank image. All the pixel values of the blank image are 0 or 1. Write the binary sequence in S201 into the blank image in sequence. 8 1s mark the end of the binary sequence.

另外,图像在传输中无信息损失时,解码可以完全复原原始信息,但考虑到在传输的过程中可能有信息损失,如图像像素值发生轻微的改变,导致在解析图片时出错,本实施例考虑了一种容错机制,即在编码时不直接存入0和1,而是如果值为0则存入0,如果值为1则存入255,传输后,即使像素值有轻微的改变,如有些0变成了3或5,有些255变成了245或251等,对接收端收到的图像做二值化,如取二值化阈值为128,如果值小于128,则置为0,如果值大于128,则置为1,如此对传输过程中的损失有了容纳能力,可以完全复原原始信息。In addition, when there is no information loss in the image during transmission, decoding can completely restore the original information, but considering that there may be information loss during the transmission process, such as a slight change in the image pixel value, an error occurs when parsing the image. A fault-tolerant mechanism is considered, that is, 0 and 1 are not directly stored during encoding, but if the value is 0, 0 is stored, and if the value is 1, 255 is stored. After transmission, even if the pixel value changes slightly, If some 0 become 3 or 5, some 255 become 245 or 251, etc., binarize the image received by the receiver, for example, take the binarization threshold as 128, if the value is less than 128, set it to 0 , if the value is greater than 128, it is set to 1, so that the loss in the transmission process can be accommodated, and the original information can be completely restored.

S203、采用视频数据线对所述图像数据进行传输。S203. Use a video data line to transmit the image data.

具体的,图像数据通过视频数据线传输,在接收设备收到图像数据后,对图像数据从头开始遍历像素值,每获取到8个值解析为一个字节,存入字节数组中,遇到结束标志连续8个1,说明已经获取到所有的被编码方式,停止遍历,将字节数组转为字符串,即完成了整个编码->传输->解码过程。Specifically, the image data is transmitted through the video data line. After the receiving device receives the image data, it traverses the pixel values of the image data from the beginning. Every 8 values obtained are parsed into one byte and stored in the byte array. The end flag is 8 consecutive 1s, indicating that all the encoded methods have been obtained, stop traversing, and convert the byte array into a string, that is, the entire encoding->transmission->decoding process is completed.

本实施例通过对待传输的信息进行量化处理,并通过创建空白图像的方式,将第一图像像素值添加到空白图像的相应位置处,得到适合视频数据线传输的图像数据。由此可见,一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。In this embodiment, the information to be transmitted is quantized, and the pixel value of the first image is added to the corresponding position of the blank image by creating a blank image to obtain image data suitable for video data line transmission. It can be seen that, on the one hand, developers can avoid using complex video underlying protocols to encode information, saving labor costs, on the other hand, information can be successfully transmitted even without a network, thereby improving information transmission efficiency.

实施例三Embodiment 3

图3是本发明实施例三提供的一种信息传输方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:若所述基础图像为已有图像,则在所述基础图像中增加空白像素点,将所述空白像素点位置处的图像像素值作为所述第二图像像素值;使用所述第一图像像素值替换所述第二图像像素值,将替换后的基础图像对应的数据作为所述图像数据。FIG. 3 is a flowchart of an information transmission method according to Embodiment 3 of the present invention. This embodiment is optimized based on the above-mentioned embodiment. In this embodiment, the obtaining image data suitable for video data line transmission according to the first image pixel value and the preset basic image includes: if the basic image If the image is an existing image, then add a blank pixel in the base image, and use the image pixel value at the position of the blank pixel as the second image pixel value; use the first image pixel value to replace the For the second image pixel value, the data corresponding to the replaced base image is used as the image data.

相应的,本实施例的方法具体包括:Correspondingly, the method of this embodiment specifically includes:

S301、对待传输的信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值。S301. Perform quantization processing on the content contained in the information to be transmitted, and use the corresponding quantized value as the pixel value of the first image.

S302、若基础图像为已有图像,则在所述基础图像中增加空白像素点。S302. If the base image is an existing image, add blank pixels in the base image.

具体的,可在基础图像的任意位置处增加空白像素点,这些空白像素点可以是离散的,也可以是连续的。Specifically, blank pixels may be added at any position of the base image, and these blank pixels may be discrete or continuous.

S303、将所述第一图像像素值添加到所述空白像素点处,得到所述图像数据。S303. Add the pixel value of the first image to the blank pixel to obtain the image data.

可将第一图像像素值添加到空白像素点处,将得到的新的基础图像的数据作为图像数据进行传输。The pixel value of the first image may be added to the blank pixel point, and the obtained data of the new basic image may be transmitted as image data.

S304、采用所述视频数据线传输所述图像数据。S304. Use the video data line to transmit the image data.

本实施例通过对待传输的信息进行量化处理,并在基础图像中增加空白像素点,将第一图像像素值添加到空白像素点处,将得到的新的基础图像的数据作为图像数据进行传输。由此可见,一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。In this embodiment, the information to be transmitted is quantized, and blank pixels are added to the base image, and the pixel value of the first image is added to the blank pixels, and the obtained data of the new base image is transmitted as image data. It can be seen that, on the one hand, developers can avoid using complex video underlying protocols to encode information, saving labor costs, on the other hand, information can be successfully transmitted even without a network, thereby improving information transmission efficiency.

实施例四Embodiment 4

图4是本发明实施例四提供的一种信息传输方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:若所述基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值;根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。FIG. 4 is a flowchart of an information transmission method according to Embodiment 4 of the present invention. This embodiment is optimized based on the above-mentioned embodiment. In this embodiment, the obtaining image data suitable for video data line transmission according to the first image pixel value and the preset basic image includes: if the basic image If the image is an existing image, extract the pixel value at the preset position in the basic image as the second image pixel value; recalculate the preset pixel value according to the first image pixel value and the second image pixel value to obtain the preset image The pixel value at the position, and the data corresponding to the basic image obtained by recalculation is used as the image data.

相应的,本实施例的方法具体包括:Correspondingly, the method of this embodiment specifically includes:

S401、对待传输的信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值。S401. Perform quantization processing on the content contained in the information to be transmitted, and use the corresponding quantized value as the pixel value of the first image.

S402、若基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值。S402. If the base image is an existing image, extract a pixel value at a preset position in the base image as a second image pixel value.

具体的,直接将已有图像作为基础图像。当为已有图像时,对应的第二图像像素值则为该已有图像中预设位置处的图像像素值。可根据信息包含的字节大小选取预设个数位置处的图像像素值作为第二图像像素值。Specifically, the existing image is directly used as the base image. When it is an existing image, the corresponding second image pixel value is the image pixel value at the preset position in the existing image. The image pixel values at the preset number of positions may be selected as the second image pixel value according to the byte size included in the information.

S403、根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。S403. Recalculate the pixel value at the preset position according to the pixel value of the first image and the pixel value of the second image, and use the recalculated data corresponding to the base image as the image data.

具体的,可将对应位置处的第一图像像素值和第二图像像素值进行加和、作差、或加权等计算,将计算得到的像素值作为预设位置处的像素值,将重新计算得到的已有图像对应的数据作为图像数据进行传输。Specifically, the pixel value of the first image and the pixel value of the second image at the corresponding position can be calculated by adding, subtracting, or weighting, and taking the calculated pixel value as the pixel value at the preset position, and recalculating The obtained data corresponding to the existing image is transmitted as image data.

S404、采用视频数据线传输所述图像数据。S404, using a video data line to transmit the image data.

由此可见,一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。It can be seen that, on the one hand, developers can avoid using complex video underlying protocols to encode information, saving labor costs, on the other hand, information can be successfully transmitted even without a network, thereby improving information transmission efficiency.

实施例五Embodiment 5

图5为本发明实施例五提供的一种信息传输方法的流程图,本实施例可适用于传输信息的情况,该方法可以由本发明实施例提供的信息传输装置或设备来执行,该信息传输装置可采用软件和/或硬件的方式实现,该装置可集成在终端设备中或终端设备的应用端中。其中,终端设备可以为但不限于为移动终端 (平板电脑或智能手机)、固定终端设备(例如台式电脑)。FIG. 5 is a flowchart of an information transmission method provided in Embodiment 5 of the present invention. This embodiment is applicable to the case of transmitting information. The method may be executed by the information transmission apparatus or device provided in this embodiment of the present invention. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a terminal device or an application end of the terminal device. Wherein, the terminal device may be, but is not limited to, a mobile terminal (tablet computer or smart phone), a fixed terminal device (such as a desktop computer).

其中,应用端可以为内嵌于终端设备中的某个客户端的插件,或者为所述终端设备的操作系统的插件,与内嵌于终端设备中的信息传输客户端或者终端设备的操作系统中的信息传输应用程序配合使用;应用端也可以为所述终端设备中一个独立的可提供信息传输的客户端,本实施例对此不进行限制。The application end may be a plug-in of a client embedded in the terminal device, or a plug-in of the operating system of the terminal device, and the information transmission client embedded in the terminal device or the operating system of the terminal device. The application end can also be an independent client in the terminal device that can provide information transmission, which is not limited in this embodiment.

图5为本发明实施例五提供的信息传输方法的流程示意图,如图5所示,具体包括:FIG. 5 is a schematic flowchart of an information transmission method provided in Embodiment 5 of the present invention, as shown in FIG. 5 , which specifically includes:

S501、采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据。S501. Use a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device.

其中,信息包含但不限于语音形式的控制指令、文本形式的控制指令、键盘输入的控制指令、或视频对应的文本信息。其中,控制指令可以为但不限于开机指令、关机指令、播放指令、快进指令、暂停指令等。其中,视频数据线为用来传输视频信号的,包括但不限于为以下任意一种:音视频数据线(Audio Video Cable,AV线)、S端子线、三色差线、视频图形阵列数据线(Video Graphics Array,VGA)、数字视频界面数据线(Digital VisualInterface,DVI)、高清晰多媒体接口线(High Definition Multimedia Interface,HDMI)。The information includes, but is not limited to, a control command in the form of voice, a control command in the form of text, a control command input from a keyboard, or text information corresponding to a video. The control instruction may be, but not limited to, a power-on instruction, a power-off instruction, a play instruction, a fast-forward instruction, a pause instruction, and the like. Wherein, the video data line is used to transmit video signals, including but not limited to any of the following: audio and video data line (Audio Video Cable, AV line), S terminal line, three color difference line, video graphics array data line ( Video Graphics Array, VGA), digital video interface data line (Digital Visual Interface, DVI), high-definition multimedia interface line (High Definition Multimedia Interface, HDMI).

具体的,可将待传输的信息编码为图像格式,这样待传输的信息就以图像像素值的形式存在,这样就可以通过视频数据线传输对应的图像数据,一方面可以避免使用复杂的视频底层协议对信息进行处理,另一方面,可以达到在无网络情况下传输信息的目的。Specifically, the information to be transmitted can be encoded into an image format, so that the information to be transmitted exists in the form of image pixel values, so that the corresponding image data can be transmitted through the video data line, on the one hand, the use of complex video bottom layers can be avoided. The protocol processes information, on the other hand, it can achieve the purpose of transmitting information without a network.

S502、对所述图像数据进行解码得到所述信息。S502. Decode the image data to obtain the information.

具体的,在接收设备收到图像数据后,采用与发送设备对应一致的编码方式对图像数据进行解码得到对应的信息,进一步的,接收设备可根据信息执行相应的操作。例如,当信息为视频播放指令时,则接收设备开始播放视频等等。Specifically, after receiving the image data, the receiving device decodes the image data in a coding manner consistent with that of the sending device to obtain corresponding information, and further, the receiving device can perform corresponding operations according to the information. For example, when the information is a video playing instruction, the receiving device starts to play the video and so on.

本实施例通过视频数据线接收图像数据,并对所述图像数据进行解码得到对应的信息,这样一方面可以避免研发人员使用复杂的视频底层协议对信息进行编码,节约了人力成本,另一方面,即使在无网络的情况下也能够成功传输信息,进而提高信息传输效率。In this embodiment, image data is received through a video data line, and the image data is decoded to obtain corresponding information. In this way, on the one hand, developers can be prevented from using complex video underlying protocols to encode information, which saves labor costs, and on the other hand , even in the absence of a network, the information can be successfully transmitted, thereby improving the efficiency of information transmission.

示例性的,所述对所述图像数据进行解码得到所述信息包括:Exemplarily, the decoding of the image data to obtain the information includes:

根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值;According to the encoding method adopted by the sending device, decode the image data to obtain a first image pixel value;

对所述第一图像像素值进行反量化处理,得到所述信息。Perform inverse quantization processing on the pixel values of the first image to obtain the information.

具体的,以信息内容为文本信息为例,如果发送设备采用的编码方式为,首先将文本信息转为一个长字符串,计算出字符串总字节数,将整个字符串转为相应的二进制位,一个字节对应8个二进制位,总二进制位数为8倍的总字节数,这样形成一个二进制序列,使用opencv开源库创建一张空白的图像,空白图像所有的像素值均为0或1,将二进制序列依次写入空白图像中,一个二进制位占据一个像素值,以连续8个1作为二进制序列结束标记。Specifically, taking the information content as text information as an example, if the encoding method adopted by the sending device is, firstly convert the text information into a long string, calculate the total number of bytes of the string, and convert the entire string into the corresponding binary Bit, one byte corresponds to 8 binary bits, the total number of binary bits is 8 times the total number of bytes, thus forming a binary sequence, using the opencv open source library to create a blank image, all pixel values of the blank image are 0 Or 1, the binary sequence is sequentially written into the blank image, one binary bit occupies one pixel value, and 8 consecutive 1s are used as the end marker of the binary sequence.

具体的,在接收设备收到图像数据后,对图像数据从头开始遍历像素值,每获取到8个值解析为一个字节,存入字节数组中,遇到结束标志连续8个1,说明已经获取到所有的被编码方式,停止遍历,将字节数组转为字符串,即完成了整个编码->传输->解码过程。Specifically, after the receiving device receives the image data, it traverses the pixel values of the image data from the beginning, parses each 8 values obtained into a byte, and stores them in the byte array. When the end flag is encountered, there are 8 consecutive 1s, indicating that All the encoded methods have been obtained, stop the traversal, and convert the byte array into a string, that is, the entire encoding->transmission->decoding process is completed.

示例性的,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Exemplarily, the decoding of the image data to obtain the first image pixel value according to the encoding method adopted by the sending device includes:

若所述编码方式为预先创建空白图像作为基础图像,则直接从所述图像数据中提取像素值作为所述第一图像像素值。If the encoding method is to create a blank image in advance as the base image, the pixel value is directly extracted from the image data as the pixel value of the first image.

示例性的,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Exemplarily, the obtaining image data suitable for video data line transmission according to the pixel value of the first image and the preset base image includes:

若所述编码方式为以已有图像作为基础图像且包含第一编码信息,则根据所述第一编码信息确定所述图像数据中的空白像素点位置;If the encoding method uses an existing image as a base image and includes first encoding information, determining the position of a blank pixel in the image data according to the first encoding information;

将所述空白像素点位置处的图像像素值作为所述第一图像像素值。The image pixel value at the position of the blank pixel point is used as the first image pixel value.

其中,第一编码信息为发送设备和接收设备预先约定的编码方式中包含的信息,在本实施例中包含发送设备编码时采用的图像及增加的空白像素点位置。接收设备在接收到图像数据后,可根据编码方式和第一编码信息确定所述图像数据中的空白像素点位置,直接从这些位置中获取到第一图像像素值。The first encoding information is the information contained in the encoding mode pre-agreed by the sending device and the receiving device, and in this embodiment includes the image used by the sending device for encoding and the positions of the added blank pixels. After receiving the image data, the receiving device may determine the positions of blank pixels in the image data according to the encoding method and the first encoding information, and directly obtain the pixel values of the first image from these positions.

示例性的,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Exemplarily, the decoding of the image data to obtain the first image pixel value according to the encoding method adopted by the sending device includes:

若所述编码方式为以已有图像作为基础图像且包含第二编码信息,则根据所述第二编码信息提取所述图像数据中的预设位置处的像素值作为第三图像像素值;If the encoding method uses an existing image as a base image and includes second encoding information, extracting a pixel value at a preset position in the image data according to the second encoding information as a third image pixel value;

根据所述第二编码信息获取所述基础图像中的所述预设位置处的像素值作为第二图像像素值;Acquiring, according to the second encoding information, the pixel value at the preset position in the base image as the second image pixel value;

根据所述第二图像像素值和所述第三图像像素值计算得到所述第一图像像素值。The pixel value of the first image is calculated according to the pixel value of the second image and the pixel value of the third image.

其中,第二编码信息为发送设备和接收设备预先约定的编码方式中包含的信息,在本实施例中包含发送设备编码时采用的基础图像、预设位置编号及计算方式。接收设备在接收到图像数据后,可根据编码方式和第二编码信息获取到图像数据中的预设位置处的像素值即第三图像像素值,以及基础图像中的所述预设位置处的像素值即第二图像像素值,并根据包含的计算方式对第三图像像素值和第二像素值进行计算即可得到第一图像像素值。Wherein, the second encoding information is the information included in the encoding mode pre-agreed by the sending device and the receiving device, and in this embodiment includes the basic image, the preset position number, and the calculation mode used by the sending device for encoding. After receiving the image data, the receiving device can obtain, according to the encoding method and the second encoding information, the pixel value at the preset position in the image data, that is, the third image pixel value, and the pixel value at the preset position in the base image. The pixel value is the pixel value of the second image, and the pixel value of the first image can be obtained by calculating the pixel value of the third image and the pixel value of the second image according to the included calculation method.

实施例六Embodiment 6

图6为本发明实施例六提供的信息传输方法的流程示意图,本实施例为发送设备和接收设备共同完成信息传输的交互实施例。如图6所示,具体包括:FIG. 6 is a schematic flowchart of an information transmission method according to Embodiment 6 of the present invention. This embodiment is an interactive embodiment in which a sending device and a receiving device jointly complete information transmission. As shown in Figure 6, it specifically includes:

S601、发送设备将待传输的信息编码为适合视频数据线传输的图像数据。S601. The sending device encodes the information to be transmitted into image data suitable for video data line transmission.

S602、发送设备采用视频数据线将图像数据发送至接收设备。S602. The sending device uses a video data line to send the image data to the receiving device.

S603、接收设备通过视频数据线接收图像数据,并对图像数据进行解码得到信息。S603. The receiving device receives the image data through the video data line, and decodes the image data to obtain information.

其中,发送设备和接收设备可预先预定好采用的编码方式,以便于接收设备成功解码。Wherein, the sending device and the receiving device may pre-determine the encoding mode to be used, so that the receiving device can decode successfully.

具体的,发送设备首先对所述信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值;然后根据所述第一图像像素值和预设的基础图像,编码得到对应的图像数据。Specifically, the sending device first performs quantization processing on the content contained in the information, and uses the corresponding quantized value as the pixel value of the first image; then, according to the pixel value of the first image and the preset basic image, the corresponding image data.

具体的,发送设备可采用的编码方式如下:Specifically, the encoding methods that can be adopted by the sending device are as follows:

第一种,若所述基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。First, if the base image is a pre-created blank image, the pixel value of the first image is added to a corresponding position of the blank image to obtain the image data.

第二种,若所述基础图像为已有图像,则在所述基础图像中增加空白像素点;将所述第一图像像素值添加到所述空白像素点处,得到所述图像数据。Second, if the base image is an existing image, add a blank pixel in the base image; add the pixel value of the first image to the blank pixel to obtain the image data.

第三种,若所述基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值;根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。Third, if the base image is an existing image, extract the pixel value at the preset position in the base image as the second image pixel value; according to the first image pixel value and the second image pixel value The pixel value at the preset position is obtained by recalculating the value, and the data corresponding to the base image obtained by the recalculation is used as the image data.

在接收设备接收到图像数据后,根据约定的编码方式对图像数据进行解码得到信息。具体的,首先根据所述发送设备采用的编码方式,解码图像数据得到第一图像像素值;然后对第一图像像素值进行反量化处理,得到所述信息。After receiving the image data, the receiving device decodes the image data according to the agreed encoding method to obtain information. Specifically, first, according to the encoding method adopted by the sending device, the image data is decoded to obtain the first image pixel value; then the first image pixel value is inversely quantized to obtain the information.

若发送设备采用的编码方式为第一种,则接收设备直接从图像数据中提取像素值作为所述第一图像像素值。If the encoding method adopted by the sending device is the first type, the receiving device directly extracts the pixel value from the image data as the first image pixel value.

若发送设备采用的编码方式为第二种,则接收设备根据所述第一编码信息确定所述图像数据中的空白像素点位置;将所述空白像素点位置处的图像像素值作为所述第一图像像素值。If the encoding method adopted by the sending device is the second type, the receiving device determines the blank pixel position in the image data according to the first encoding information; the image pixel value at the blank pixel position is used as the first encoding information. An image pixel value.

若发送设备采用的编码方式为第三种,则接收设备根据所述第二编码信息提取所述图像数据中的预设位置处的像素值作为第三图像像素值;根据所述第二编码信息获取所述基础图像中的所述预设位置处的像素值作为第二图像像素值;根据所述第二图像像素值和所述第三图像像素值计算得到所述第一图像像素值。If the encoding mode adopted by the sending device is the third type, the receiving device extracts the pixel value at the preset position in the image data according to the second encoding information as the third image pixel value; according to the second encoding information The pixel value at the preset position in the basic image is acquired as a second image pixel value; the first image pixel value is obtained by calculating according to the second image pixel value and the third image pixel value.

关于发送设备具体的编码方法和接收设备具体的解码方法参见上述实施例这里不再赘述。For the specific encoding method of the sending device and the specific decoding method of the receiving device, refer to the above-mentioned embodiments and will not be repeated here.

实施例七Embodiment 7

图7为本发明实施例七提供的信息传输装置的结构示意图,本实施例可适用于传输信息的情况,该信息传输装置可采用软件和/或硬件的方式实现,该装置可集成在终端设备中或终端设备的应用端中。其中,终端设备可以为但不限于为移动终端(平板电脑或智能手机)、固定终端设备(例如台式电脑)。FIG. 7 is a schematic structural diagram of an information transmission apparatus according to Embodiment 7 of the present invention. This embodiment is applicable to the case of transmitting information. The information transmission apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a terminal device. in the application side of the terminal device. Wherein, the terminal device may be, but not limited to, a mobile terminal (tablet computer or smart phone), or a fixed terminal device (eg, desktop computer).

其中,应用端可以为内嵌于终端设备中的某个客户端的插件,或者为所述终端设备的操作系统的插件,与内嵌于终端设备中的信息传输客户端或者终端设备的操作系统中的信息传输应用程序配合使用;应用端也可以为所述终端设备中一个独立的可提供信息传输的客户端,本实施例对此不进行限制。The application end may be a plug-in of a client embedded in the terminal device, or a plug-in of the operating system of the terminal device, and the information transmission client embedded in the terminal device or the operating system of the terminal device. The application end can also be an independent client in the terminal device that can provide information transmission, which is not limited in this embodiment.

如图7所示,具体包括:信息编码模块71和信息传输模块72;As shown in Figure 7, it specifically includes: an information encoding module 71 and an information transmission module 72;

信息编码模块71用于将待传输的信息编码为适合视频数据线传输的图像数据;The information encoding module 71 is used to encode the information to be transmitted into image data suitable for video data line transmission;

信息传输模块72用于采用所述视频数据线传输所述图像数据。The information transmission module 72 is used for transmitting the image data by using the video data line.

本实施例所述的信息传输装置用于执行上述各实施例所述的信息传输方法,其技术原理和产生的技术效果类似,这里不再累述。The information transmission apparatus described in this embodiment is used to execute the information transmission methods described in the above-mentioned embodiments, and the technical principle and the resulting technical effect are similar, which will not be repeated here.

示例性的,所述信息编码模块71包括:信息量化单元711和信息编码单元 712;Exemplarily, the information encoding module 71 includes: an information quantization unit 711 and an information encoding unit 712;

信息量化单元711用于对所述信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值;The information quantization unit 711 is configured to perform quantization processing on the content contained in the information, and use the corresponding quantized value as the first image pixel value;

信息编码单元712用于根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据。The information encoding unit 712 is configured to obtain image data suitable for video data line transmission according to the pixel value of the first image and a preset base image.

示例性的,所述信息编码单元712具体用于:若所述基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。Exemplarily, the information encoding unit 712 is specifically configured to: if the base image is a pre-created blank image, add the pixel value of the first image to a corresponding position of the blank image to obtain the image. data.

示例性的,所述信息编码单元712具体用于:若所述基础图像为已有图像,则在所述基础图像中增加空白像素点;将所述第一图像像素值添加到所述空白像素点处,得到所述图像数据。Exemplarily, the information encoding unit 712 is specifically configured to: if the base image is an existing image, add a blank pixel in the base image; add the pixel value of the first image to the blank pixel. point, the image data is obtained.

示例性的,所述信息编码单元712具体用于:若所述基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值;根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。Exemplarily, the information encoding unit 712 is specifically configured to: if the base image is an existing image, extract a pixel value at a preset position in the base image as a second image pixel value; The image pixel value and the second image pixel value are recalculated to obtain the pixel value at the preset position, and the recalculated data corresponding to the base image is used as the image data.

示例性的,所述量化值为0或1;或所述量化值为0至255中的任意值。Exemplarily, the quantization value is 0 or 1; or the quantization value is any value from 0 to 255.

上述各实施例所述的信息传输装置同样用于执行上述各实施例所述的信息传输方法,其技术原理和产生的技术效果类似,这里不再累述。The information transmission apparatuses described in the foregoing embodiments are also used to execute the information transmission methods described in the foregoing embodiments, and the technical principles and the resulting technical effects are similar, which will not be repeated here.

实施例八Embodiment 8

图8为本发明实施例八提供的信息传输装置的结构示意图,本实施例可适用于传输信息的情况,该信息传输装置可采用软件和/或硬件的方式实现,该装置可集成在终端设备中或终端设备的应用端中。其中,终端设备可以为但不限于为移动终端(平板电脑或智能手机)、固定终端设备(例如台式电脑)。FIG. 8 is a schematic structural diagram of an information transmission apparatus provided in Embodiment 8 of the present invention. This embodiment is applicable to the case of transmitting information. The information transmission apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a terminal device. in the application side of the terminal device. Wherein, the terminal device may be, but not limited to, a mobile terminal (tablet computer or smart phone), or a fixed terminal device (eg, desktop computer).

其中,应用端可以为内嵌于终端设备中的某个客户端的插件,或者为所述终端设备的操作系统的插件,与内嵌于终端设备中的信息传输客户端或者终端设备的操作系统中的信息传输应用程序配合使用;应用端也可以为所述终端设备中一个独立的可提供信息传输的客户端,本实施例对此不进行限制。The application end may be a plug-in of a client embedded in the terminal device, or a plug-in of the operating system of the terminal device, and the information transmission client embedded in the terminal device or the operating system of the terminal device. The application end can also be an independent client in the terminal device that can provide information transmission, which is not limited in this embodiment.

如图8所示,具体包括:数据接收模块81和信息解码模块82;As shown in Figure 8, it specifically includes: a data receiving module 81 and an information decoding module 82;

数据接收模块81用于采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据;The data receiving module 81 is configured to use a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device;

信息解码模块82用于对所述图像数据进行解码得到所述信息。The information decoding module 82 is configured to decode the image data to obtain the information.

本实施例所述的信息传输装置用于执行上述各实施例所述的信息传输方法,其技术原理和产生的技术效果类似,这里不再累述。The information transmission apparatus described in this embodiment is used to execute the information transmission methods described in the above-mentioned embodiments, and the technical principle and the resulting technical effect are similar, which will not be repeated here.

示例性的,所述信息解码模块82包括:信息解码单元821和反量化单元822;Exemplarily, the information decoding module 82 includes: an information decoding unit 821 and an inverse quantization unit 822;

信息解码单元821用于根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值;The information decoding unit 821 is configured to decode the image data to obtain a first image pixel value according to the encoding method adopted by the sending device;

反量化单元822用于对所述第一图像像素值进行反量化处理,得到所述信息。The inverse quantization unit 822 is configured to perform inverse quantization processing on the pixel value of the first image to obtain the information.

示例性的,所述信息解码单元821具体用于:若所述编码方式为预先创建空白图像作为基础图像,则直接从所述图像数据中提取像素值作为所述第一图像像素值。Exemplarily, the information decoding unit 821 is specifically configured to: if the encoding method is to create a blank image in advance as a base image, directly extract pixel values from the image data as the pixel values of the first image.

示例性的,所述信息解码单元821具体用于:若所述编码方式为以已有图像作为基础图像且包含第一编码信息,则根据所述第一编码信息确定所述图像数据中的空白像素点位置;将所述空白像素点位置处的图像像素值作为所述第一图像像素值。Exemplarily, the information decoding unit 821 is specifically configured to: if the encoding method is to use an existing image as a base image and include first encoding information, determine the blanks in the image data according to the first encoding information. Pixel point position; take the image pixel value at the blank pixel point position as the first image pixel value.

示例性的,所述信息解码单元821具体用于:若所述编码方式为以已有图像作为基础图像且包含第二编码信息,则根据所述第二编码信息提取所述图像数据中的预设位置处的像素值作为第三图像像素值;根据所述第二编码信息获取所述基础图像中的所述预设位置处的像素值作为第二图像像素值;根据所述第二图像像素值和所述第三图像像素值计算得到所述第一图像像素值。Exemplarily, the information decoding unit 821 is specifically configured to: if the encoding method is to use an existing image as a base image and include second encoding information, extract the pre-image in the image data according to the second encoding information. Set the pixel value at the position as the third image pixel value; obtain the pixel value at the preset position in the base image according to the second encoding information as the second image pixel value; According to the second image pixel value and the third image pixel value to obtain the first image pixel value.

上述各实施例所述的信息传输装置同样用于执行上述各实施例所述的信息传输方法,其技术原理和产生的技术效果类似,这里不再累述。The information transmission apparatuses described in the foregoing embodiments are also used to execute the information transmission methods described in the foregoing embodiments, and the technical principles and the resulting technical effects are similar, which will not be repeated here.

实施例九Embodiment 9

本发明实施例提供一种信息传输系统,包含本发明实施例七所述的信息传输装置和本发明实施例八所述的信息传输装置。An embodiment of the present invention provides an information transmission system, including the information transmission apparatus described in Embodiment 7 of the present invention and the information transmission apparatus described in Embodiment 8 of the present invention.

实施例十Embodiment ten

图9为本发明实施例十提供的一种设备的结构示意图。图9示出了适于用来实现本发明实施方式的示例性计算机设备12的框图。图9显示的计算机设备 12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 9 is a schematic structural diagram of a device according to Embodiment 10 of the present invention. Figure 9 shows a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 9 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

如图9所示,计算机设备12以通用计算设备的形式表现。计算机设备12 的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器 28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 9, computer device 12 takes the form of a general-purpose computing device. Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components including system memory 28 and processing unit 16.

总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA) 总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA) 局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Microchannel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local area bus, and the Peripheral Component Interconnect ( PCI) bus.

计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including both volatile and nonvolatile media, removable and non-removable media.

系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图9未显示,通常称为“硬盘驱动器”)。尽管图9中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如 CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . Computer device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive"). Although not shown in Figure 9, a disk drive for reading and writing to removable non-volatile magnetic disks (eg "floppy disks") and removable non-volatile optical disks (eg CD-ROM, DVD-ROM) may be provided or other optical media) to read and write optical drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.

具有一组(至少一个)程序模块52的程序/实用工具50,可以存储在例如存储器28中,这样的程序模块52包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块52通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 50 having a set (at least one) of program modules 52, which may be stored, for example, in memory 28, such program modules 52 including, but not limited to, an operating system, one or more application programs, other programs Modules and program data, each or some combination of these examples may include an implementation of a network environment. Program modules 52 generally perform the functions and/or methods of the described embodiments of the present invention.

计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出 (I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图9所示,网络适配器20通过总线18与计算机设备12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Computer device 12 may also communicate with one or more external devices 14 (eg, keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with computer device 12, and/or communicate with Any device (eg, network card, modem, etc.) that enables the computer device 12 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 22 . Also, the computer device 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 20 . As shown in FIG. 9 , network adapter 20 communicates with other modules of computer device 12 via bus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.

处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的信息传输方法:The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the information transmission method provided by the embodiment of the present invention:

将待传输的信息编码为适合视频数据线传输的图像数据;Encode the information to be transmitted into image data suitable for video data line transmission;

采用所述视频数据线传输所述图像数据。The image data is transmitted using the video data line.

进一步地,所述将待传输的信息编码为适合视频数据线传输的图像数据包括:Further, the encoding of the information to be transmitted into image data suitable for video data line transmission includes:

对所述信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值;Perform quantization processing on the content contained in the information, and use the corresponding quantized value as the pixel value of the first image;

根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据。According to the pixel value of the first image and the preset basic image, image data suitable for video data line transmission is obtained.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。If the base image is a pre-created blank image, the pixel value of the first image is added to the corresponding position of the blank image to obtain the image data.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为已有图像,则在所述基础图像中增加空白像素点;If the base image is an existing image, adding blank pixels in the base image;

将所述第一图像像素值添加到所述空白像素点处,得到所述图像数据。The first image pixel value is added to the blank pixel point to obtain the image data.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值;If the base image is an existing image, extracting a pixel value at a preset position in the base image as a second image pixel value;

根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。The pixel value at the preset position is recalculated according to the pixel value of the first image and the pixel value of the second image, and the recalculated data corresponding to the base image is used as the image data.

进一步地,所述量化值为0或1;或所述量化值为0至255中的任意值。Further, the quantization value is 0 or 1; or the quantization value is any value from 0 to 255.

实施例十一Embodiment 11

本发明实施例十一提供一种设备,具体参见图9,例如实现本发明实施例所提供的信息传输方法:Embodiment 11 of the present invention provides a device, specifically referring to FIG. 9 , for example, to implement the information transmission method provided by the embodiment of the present invention:

采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据;adopting a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device;

对所述图像数据进行解码得到所述信息。The information is obtained by decoding the image data.

进一步地,所述对所述图像数据进行解码得到所述信息包括:Further, the decoding of the image data to obtain the information includes:

根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值;According to the encoding method adopted by the sending device, decode the image data to obtain a first image pixel value;

对所述第一图像像素值进行反量化处理,得到所述信息。Perform inverse quantization processing on the pixel values of the first image to obtain the information.

进一步地,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Further, according to the encoding method adopted by the sending device, decoding the image data to obtain the first image pixel value includes:

若所述编码方式为预先创建空白图像作为基础图像,则直接从所述图像数据中提取像素值作为所述第一图像像素值。If the encoding method is to create a blank image in advance as the base image, the pixel value is directly extracted from the image data as the pixel value of the first image.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述编码方式为以已有图像作为基础图像且包含第一编码信息,则根据所述第一编码信息确定所述图像数据中的空白像素点位置;If the encoding method uses an existing image as a base image and includes first encoding information, determining the position of a blank pixel in the image data according to the first encoding information;

将所述空白像素点位置处的图像像素值作为所述第一图像像素值。The image pixel value at the position of the blank pixel point is used as the first image pixel value.

进一步地,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Further, according to the encoding method adopted by the sending device, decoding the image data to obtain the first image pixel value includes:

若所述编码方式为以已有图像作为基础图像且包含第二编码信息,则根据所述第二编码信息提取所述图像数据中的预设位置处的像素值作为第三图像像素值;If the encoding method uses an existing image as a base image and includes second encoding information, extracting a pixel value at a preset position in the image data according to the second encoding information as a third image pixel value;

根据所述第二编码信息获取所述基础图像中的所述预设位置处的像素值作为第二图像像素值;Acquiring, according to the second encoding information, the pixel value at the preset position in the base image as the second image pixel value;

根据所述第二图像像素值和所述第三图像像素值计算得到所述第一图像像素值。The pixel value of the first image is calculated according to the pixel value of the second image and the pixel value of the third image.

实施例十二Embodiment 12

本发明实施例提供一种信息传输系统,包括本发明实施例十所述的设备和本发明实施例十一所述的设备。An embodiment of the present invention provides an information transmission system, including the device described in Embodiment 10 of the present invention and the device described in Embodiment 11 of the present invention.

实施例十三Embodiment thirteen

本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的信息传输方法:The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, implements the information transmission methods provided by all the inventive embodiments of the present application:

将待传输的信息编码为适合视频数据线传输的图像数据;Encode the information to be transmitted into image data suitable for video data line transmission;

采用所述视频数据线传输所述图像数据。The image data is transmitted using the video data line.

进一步地,所述将待传输的信息编码为适合视频数据线传输的图像数据包括:Further, the encoding of the information to be transmitted into image data suitable for video data line transmission includes:

对所述信息中包含的内容进行量化处理,将对应的量化值作为第一图像像素值;Perform quantization processing on the content contained in the information, and use the corresponding quantized value as the pixel value of the first image;

根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据。According to the pixel value of the first image and the preset basic image, image data suitable for video data line transmission is obtained.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为预先创建的空白图像,则将所述第一图像像素值添加到所述空白图像的相应位置处,得到所述图像数据。If the base image is a pre-created blank image, the pixel value of the first image is added to the corresponding position of the blank image to obtain the image data.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为已有图像,则在所述基础图像中增加空白像素点;If the base image is an existing image, adding blank pixels in the base image;

将所述第一图像像素值添加到所述空白像素点处,得到所述图像数据。The first image pixel value is added to the blank pixel point to obtain the image data.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述基础图像为已有图像,则提取所述基础图像中预设位置处的像素值作为第二图像像素值;If the base image is an existing image, extracting a pixel value at a preset position in the base image as a second image pixel value;

根据所述第一图像像素值和所述第二图像像素值重新计算得到所述预设位置处的像素值,将重新计算得到的基础图像对应的数据作为所述图像数据。The pixel value at the preset position is recalculated according to the pixel value of the first image and the pixel value of the second image, and the recalculated data corresponding to the base image is used as the image data.

进一步地,所述量化值为0或1;或所述量化值为0至255中的任意值。Further, the quantization value is 0 or 1; or the quantization value is any value from 0 to 255.

实施例十四Embodiment 14

本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的信息传输方法:The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, implements the information transmission methods provided by all the inventive embodiments of the present application:

采用视频数据线接收发送设备发送的图像数据,所述图像数据为所述发送设备对待传输的信息进行编码得到的适合所述视频数据线传输的数据;adopting a video data line to receive image data sent by a sending device, where the image data is data suitable for transmission by the video data line obtained by encoding the information to be transmitted by the sending device;

对所述图像数据进行解码得到所述信息。The information is obtained by decoding the image data.

进一步地,所述对所述图像数据进行解码得到所述信息包括:Further, the decoding of the image data to obtain the information includes:

根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值;According to the encoding method adopted by the sending device, decode the image data to obtain a first image pixel value;

对所述第一图像像素值进行反量化处理,得到所述信息。Perform inverse quantization processing on the pixel values of the first image to obtain the information.

进一步地,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Further, according to the encoding method adopted by the sending device, decoding the image data to obtain the first image pixel value includes:

若所述编码方式为预先创建空白图像作为基础图像,则直接从所述图像数据中提取像素值作为所述第一图像像素值。If the encoding method is to create a blank image in advance as the base image, the pixel value is directly extracted from the image data as the pixel value of the first image.

进一步地,所述根据所述第一图像像素值和预设的基础图像,得到适合视频数据线传输的图像数据包括:Further, according to the pixel value of the first image and the preset base image, obtaining image data suitable for video data line transmission includes:

若所述编码方式为以已有图像作为基础图像且包含第一编码信息,则根据所述第一编码信息确定所述图像数据中的空白像素点位置;If the encoding method uses an existing image as a base image and includes first encoding information, determining the position of a blank pixel in the image data according to the first encoding information;

将所述空白像素点位置处的图像像素值作为所述第一图像像素值。The image pixel value at the position of the blank pixel point is used as the first image pixel value.

进一步地,所述根据所述发送设备采用的编码方式,解码所述图像数据得到第一图像像素值包括:Further, according to the encoding method adopted by the sending device, decoding the image data to obtain the first image pixel value includes:

若所述编码方式为以已有图像作为基础图像且包含第二编码信息,则根据所述第二编码信息提取所述图像数据中的预设位置处的像素值作为第三图像像素值;If the encoding method uses an existing image as a base image and includes second encoding information, extracting a pixel value at a preset position in the image data according to the second encoding information as a third image pixel value;

根据所述第二编码信息获取所述基础图像中的所述预设位置处的像素值作为第二图像像素值;Acquiring, according to the second encoding information, the pixel value at the preset position in the base image as the second image pixel value;

根据所述第二图像像素值和所述第三图像像素值计算得到所述第一图像像素值。The pixel value of the first image is calculated according to the pixel value of the second image and the pixel value of the third image.

本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、 Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN) —连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider via Internet connection).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (8)

1. An information transmission method, comprising:
encoding information to be transmitted into image data suitable for video data line transmission;
transmitting the image data by using the video data line;
the encoding of the information to be transmitted into image data suitable for transmission over the video data line comprises:
performing quantization processing on the content contained in the information, and taking a corresponding quantization value as a first image pixel value;
obtaining image data suitable for video data line transmission according to the first image pixel value and a preset basic image;
the preset basic image is a blank image created in advance, and obtaining image data suitable for transmission of a video data line according to the first image pixel value and the preset basic image comprises: adding the first image pixel value to the corresponding position of the blank image to obtain the image data;
if the first image pixel value is 0, then 0 is stored at the corresponding location of the blank image, and if the first image pixel value is 1, then 255 is stored.
2. An information transmission method, comprising:
receiving image data sent by sending equipment by adopting a video data line, wherein the image data is data which is obtained by coding information to be transmitted by the sending equipment and is suitable for transmission of the video data line;
the encoding of the information to be transmitted comprises:
performing quantization processing on the content contained in the information, and taking a corresponding quantization value as a first image pixel value;
obtaining image data suitable for video data line transmission according to the first image pixel value and a preset basic image;
the preset basic image is a blank image created in advance, and obtaining image data suitable for transmission of a video data line according to the first image pixel value and the preset basic image comprises: adding the first image pixel value to the corresponding position of the blank image to obtain the image data;
if the first image pixel value is 0, storing 0 at the corresponding position of the blank image, and if the first image pixel value is 1, storing 255;
decoding the image data to obtain the information;
the decoding the image data to obtain the information includes:
decoding the image data to obtain a first image pixel value according to the coding mode adopted by the sending equipment;
and carrying out inverse quantization processing on the first image pixel value to obtain the information.
3. An information transmission method, comprising:
the transmitting device performs the method of claim 1 and the receiving device performs the method of claim 2.
4. An apparatus for information transmission, the apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the information transmission method of claim 1.
5. An apparatus for information transmission, the apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the information transmission method of claim 2.
6. An information transmission system comprising the apparatus for information transmission of claim 4 and the apparatus for information transmission of claim 5.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the information transmission method according to claim 1.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the information transmission method according to claim 2.
CN201810800242.7A 2018-04-10 2018-07-20 Information transmission method, device, equipment, system and storage medium Active CN110365858B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810318012 2018-04-10
CN2018103180127 2018-04-10

Publications (2)

Publication Number Publication Date
CN110365858A CN110365858A (en) 2019-10-22
CN110365858B true CN110365858B (en) 2020-08-25

Family

ID=68212915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810800242.7A Active CN110365858B (en) 2018-04-10 2018-07-20 Information transmission method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN110365858B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117478271B (en) * 2023-10-30 2024-05-14 重庆贝特计算机系统工程有限公司 Safety protection system for industrial Internet data transmission

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594317A (en) * 2008-05-29 2009-12-02 国际商业机器公司 Text sending method and text dispensing device and system
CN102036088A (en) * 2009-10-05 2011-04-27 索尼公司 Image signal processing apparatus, image signal processing method, image display apparatus, image display method, program, and image display system
CN102117475A (en) * 2009-12-31 2011-07-06 财团法人工业技术研究院 Image recognition rate calculation method and system and embedded image processing system thereof
CN102270335A (en) * 2010-06-03 2011-12-07 三星电子(中国)研发中心 Method for embedding additional information into image
CN203301624U (en) * 2012-10-24 2013-11-20 瑞成奈米股份有限公司 Multi-signal receiving module and multi-signal transmission line control integration device
CN103428443A (en) * 2012-05-25 2013-12-04 宏正自动科技股份有限公司 Video channel control system and video channel control method
CN104424619A (en) * 2013-08-23 2015-03-18 富士施乐株式会社 Information processing apparatus and information processing method
CN105282470A (en) * 2014-05-30 2016-01-27 佳能株式会社 Receiver, display apparatus and non-transitory computer-readable storage medium storing receiving control program
CN107864367A (en) * 2016-09-21 2018-03-30 精工爱普生株式会社 The control method of optical projection system, control device and optical projection system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6468105B2 (en) * 2015-07-16 2019-02-13 富士ゼロックス株式会社 COMMUNICATION SYSTEM, SERVER DEVICE, CLIENT DEVICE, AND PROGRAM

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594317A (en) * 2008-05-29 2009-12-02 国际商业机器公司 Text sending method and text dispensing device and system
CN102036088A (en) * 2009-10-05 2011-04-27 索尼公司 Image signal processing apparatus, image signal processing method, image display apparatus, image display method, program, and image display system
CN102117475A (en) * 2009-12-31 2011-07-06 财团法人工业技术研究院 Image recognition rate calculation method and system and embedded image processing system thereof
CN102270335A (en) * 2010-06-03 2011-12-07 三星电子(中国)研发中心 Method for embedding additional information into image
CN103428443A (en) * 2012-05-25 2013-12-04 宏正自动科技股份有限公司 Video channel control system and video channel control method
CN203301624U (en) * 2012-10-24 2013-11-20 瑞成奈米股份有限公司 Multi-signal receiving module and multi-signal transmission line control integration device
CN104424619A (en) * 2013-08-23 2015-03-18 富士施乐株式会社 Information processing apparatus and information processing method
CN105282470A (en) * 2014-05-30 2016-01-27 佳能株式会社 Receiver, display apparatus and non-transitory computer-readable storage medium storing receiving control program
CN107864367A (en) * 2016-09-21 2018-03-30 精工爱普生株式会社 The control method of optical projection system, control device and optical projection system

Also Published As

Publication number Publication date
CN110365858A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
US9081536B2 (en) Performance enhancement in virtual desktop infrastructure (VDI)
CN102832968B (en) Method for performing communication between mobile phone and equipment by using audio interface
WO2013052879A1 (en) Frame buffer format detection
US11196868B2 (en) Audio data processing method, server, client and server, and storage medium
US20140185950A1 (en) Progressive entropy encoding
CN108965430A (en) Image acquisition method, device, computer equipment and storage medium
CN112422978A (en) Intelligent transcoding method and device, electronic equipment and storage medium
CN115767181A (en) Live video stream rendering method, device, equipment, storage medium and product
WO2018040427A1 (en) Screen interface sharing method and system
CN110365858B (en) Information transmission method, device, equipment, system and storage medium
CN109547839A (en) The dynamic previewing processing method and processing device of live content, medium, electronic equipment
CN104639501B (en) A kind of method of data stream transmitting, equipment and system
US20140333640A1 (en) System and method for forwarding a graphics command stream
CN114071190A (en) Cloud application video stream processing method, related device and computer program product
CN113660495A (en) Real-time video stream compression method, device, electronic device and storage medium
CN110365929B (en) Information transmission method, device, equipment, system and storage medium
US20140333639A1 (en) System and method for forwarding a graphics command stream
CN115456854A (en) Method and device for adding watermark, electronic equipment and storage medium
CN111949825A (en) Method, electronic device and storage medium for adding and displaying item information in video
CN111949826A (en) Method, electronic device and storage medium for adding and displaying item information in video
CN110515575B (en) Apparatus and method for interacting with computers within a subnet
CN112839227B (en) Image coding method, device, equipment and medium
WO2016107174A1 (en) Method and system for processing multimedia file data, player and client
CN109495793B (en) Bullet screen writing method, device, equipment and medium
CN110830744B (en) A secure interactive system

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 201, floor 2, building 1, No. 28, Shangdi Chuangye Middle Road, Haidian District, Beijing 100085

Patentee after: BEIJING ZEN-AI TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100085 room 02-a177, 2 / F, block B, 22 Xinhe Road, Haidian District, Beijing

Patentee before: BEIJING ZEN-AI TECHNOLOGY Co.,Ltd.

Country or region before: China