摘要 |
Disclosed are a data transmission method and device. The method comprises: a first terminal collecting, through an image collecting module, a picture displayed on a display screen of a second terminal, the picture being generated by the second terminal to encode binary data in a to-be-transmitted file and displayed on the display screen of the second terminal, and the color gradation of multiple colors of the pixel of the picture being corresponding to corresponding binary data; and the first terminal decoding the collected picture to obtain the binary data, and restoring the corresponding file according to the obtained binary data, thereby implementing data transmission between terminals. According to embodiments of the present invention, no additional communication module needs to be increased on the terminal, thereby saving the manufacturing cost; by collecting the picture through the image collecting module, the problems of electromagnetic radiation and electromagnetic interference brought by the existing Bluetooth and Wi-Fi transmission manner are avoided, and the operation is more convenient and effective. |