WO2014023197A1 - 一种数据传输方法及设备 - Google Patents

一种数据传输方法及设备 Download PDF

Info

Publication number
WO2014023197A1
WO2014023197A1 PCT/CN2013/080773 CN2013080773W WO2014023197A1 WO 2014023197 A1 WO2014023197 A1 WO 2014023197A1 CN 2013080773 W CN2013080773 W CN 2013080773W WO 2014023197 A1 WO2014023197 A1 WO 2014023197A1
Authority
WO
WIPO (PCT)
Prior art keywords
pictures
picture
file
transmitted
terminal
Prior art date
Application number
PCT/CN2013/080773
Other languages
English (en)
French (fr)
Inventor
王聪
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to US14/418,348 priority Critical patent/US9516327B2/en
Publication of WO2014023197A1 publication Critical patent/WO2014023197A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00347Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with another still picture apparatus, e.g. hybrid still picture apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/177Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a group of pictures [GOP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/16Indexing scheme for image data processing or generation, in general involving adaptation to the client's capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/32Image data format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/0008Connection or combination of a still picture apparatus with another apparatus
    • H04N2201/0065Converting image data to a format usable by the connected apparatus or vice versa
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method and device. Background technique
  • Bluetooth, Wi-Fi, infrared and other data transmission methods need to add corresponding communication modules on the mobile terminal to support data communication.
  • ISM Industrial Scientific Medical
  • ISM band is an open band that may be subject to interference from signals such as microwave ovens, cordless phones, scientific instruments, industrial equipment, or medical equipment.
  • Wi-Fi needs to be connected to the same AP (Wireless Access Point) at the same time, and many mobile terminals do not support point-to-point connections.
  • Embodiments of the present invention provide a data transmission method and device, which are used to solve the problem that data transmission between existing terminals needs to be realized by using other communication modules, and the problem of transmission interference, thereby realizing the convenience and effectiveness of data transmission between terminals. .
  • An embodiment of the present invention provides a data transmission method, where the method includes:
  • the first terminal collects a picture displayed on the display screen of the second terminal by using an image capturing module; the picture is generated by encoding the binary data of the file to be transmitted by the second terminal, and is displayed on a display screen of the second terminal
  • the plurality of color gradations of the pixels of the picture correspond to corresponding binary data;
  • the first terminal decodes the collected picture to obtain binary data, and restores the corresponding file according to the obtained binary data.
  • the embodiment of the invention further provides a data transmission method, the method comprising:
  • the first terminal encodes the binary data of the file to be transmitted, and generates a picture according to the coding result, where the plurality of color gradations of the pixels of the picture correspond to the corresponding binary data;
  • the first terminal displays the generated picture on the display screen, so that the opposite terminal collects the image through the image acquisition module, obtains binary data according to the collected picture, and restores the corresponding file according to the decoded binary data.
  • the embodiment of the invention further provides a terminal, including:
  • An image acquisition module configured to collect a picture displayed on a display screen of the opposite terminal; the picture is generated by encoding a binary data of a file to be transmitted by the opposite terminal, and displayed on a display screen of the opposite terminal, The plurality of color gradations of the pixels of the picture correspond to corresponding binary data;
  • a decoding module configured to decode the image collected by the image acquisition module to obtain binary data
  • a file generating module configured to restore the corresponding file according to the binary data obtained by the decoding module.
  • the embodiment of the invention further provides a terminal, including:
  • An encoding module configured to encode binary data to be transmitted, and generate a picture according to the encoded result, where multiple color gradations of the pixels of the picture correspond to corresponding binary data;
  • a display module configured to display the image generated by the encoding module on the display screen, so that the peer terminal collects through the image acquisition module, decodes the obtained image according to the collected image, and obtains binary data according to the decoded binary data.
  • the corresponding file is available.
  • the embodiment of the invention further provides a file transmission method, including:
  • the one or more pictures are generated by encoding the file to be transmitted.
  • the embodiment of the invention further provides a file output method, including:
  • Displaying the one or more pictures in sequence such that the receiving terminal performs an acquisition operation and a decoding operation for each of the one or more pictures to obtain decoded data of the one or more pictures, and according to The decoded data of the one or more pictures obtains the file to be transmitted.
  • the embodiment of the invention further provides a receiving terminal, including:
  • a camera for performing an acquisition operation for each of one or more pictures sequentially displayed by the output terminal
  • a processor configured to perform a decoding operation on each of the one or more pictures to obtain decoded data of the one or more pictures; obtain a to-be-transmitted according to the decoded data of the one or more pictures file; The one or more pictures are generated by encoding the file to be transmitted.
  • An embodiment of the present invention further provides an output terminal, including:
  • a processor for encoding a file to be transmitted to generate one or more pictures
  • a display screen configured to sequentially display the one or more pictures, such that the receiving terminal performs an acquisition operation and a decoding operation for each of the one or more pictures to obtain decoding of the one or more pictures Data, and obtaining the file to be transmitted according to the decoded data of the one or more pictures.
  • the data method and device provided by the embodiment of the present invention by encoding the binary data of the file to be transmitted by the terminal to generate a picture, are displayed on the display screen, and the plurality of color gradations of the pixels of the picture correspond to the corresponding binary data, and the opposite terminal After the image is collected by the image acquisition module, the image is decoded to obtain binary data, and the corresponding file is restored according to the obtained binary data, thereby realizing data transmission between the terminals.
  • the embodiment of the invention does not need to add an additional communication module on the terminal, thereby saving manufacturing cost; collecting images through the image acquisition module, avoiding electromagnetic radiation and electromagnetic interference problems caused by existing Bluetooth and Wi-Fi transmission modes, and the operation is more convenient effective.
  • FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 3 is a second schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 4 shows a flow chart of a file output method in accordance with one embodiment of the present invention.
  • FIG. 5 shows a flow chart of a file transfer method in accordance with one embodiment of the present invention.
  • Figure 6a illustrates the sequence of execution of acquisition and decoding operations for four pictures in accordance with one embodiment of the present invention.
  • Figure 6b shows the execution sequence of the acquisition and decoding operations of four pictures in accordance with another embodiment of the present invention.
  • Figure 6c illustrates an execution sequence of acquisition operations and decoding operations for four pictures in accordance with yet another embodiment of the present invention. detailed description
  • the embodiment of the invention provides a data transmission method, which is applied to a process of file transmission between terminals.
  • the terminal 1 transmits a file to the terminal 2.
  • the basic configuration of the terminal 1 and the terminal 2 is as follows:
  • the terminal 1 has a display screen of at least 480*360 pixels and 18-bit true color, and the opposite terminal (terminal 2) has an image.
  • the acquisition module (for example, a camera), the image acquisition module is at least 2 million pixels, and the terminal 1 and the terminal 2 can be a mobile phone, a PC, a television, or the like.
  • the graphic encoding software is installed on the terminal 1 to encode the file to be transmitted into a picture, and the file to be transmitted can be any file in any format, including: an audio file (for example, an mp3, wav format audio file), a video file (for example, Rm, mpeg, A video file in avi format), a text file (such as a text file in txt format), etc.; a corresponding graphics decoding software is installed on the terminal 2 for decoding the captured image.
  • the graphics codec software may include picture codec software of various formats such as bmp, jpg, tif, psd, etc. In the embodiment of the present invention, a graphics codec software supporting the bmp picture coding protocol is selected.
  • the graphic encoding software installed thereon is started; when the terminal 2 is initialized, the graphic decoding software installed thereon is started, and the camera is turned on. If the file to be transmitted needs to be transmitted from the terminal 1 to the terminal 2, the terminal 2 is adjusted.
  • the camera corresponds to the display screen of the terminal 1, and adjusts the distance between the terminal 1 and the terminal 2 so that the camera can clearly capture the picture displayed on the display of the terminal 1.
  • the data transmission process provided by the embodiment of the present invention is described in detail below with reference to FIG. 1. As shown in the figure, the process includes:
  • Step 101 The terminal 1 encodes the file to be transmitted by using the graphic coding software, generates at least one picture, and displays it on the display screen.
  • the terminal 1 is recognized as a string of binary data, and the terminal 1 encodes the file to be transmitted and generates a picture by using the graphic coding software, the picture is binary data, and the plurality of color gradations of the picture pixel correspond to the corresponding binary. data.
  • the graphic encoding software of the terminal 1 encodes one or more pictures, and the size of each picture is related to the resolution and the gradation index of the terminal display. If the terminal 1 generates a plurality of pictures, the picture frame switching is performed on the display screen according to the preset frequency.
  • the terminal 1 is installed with bmp graphics coding software, and the picture generated by the terminal 1 coding can be displayed in the form of a bitmap on the display screen of the terminal 1.
  • the point from the top left column of the first row is the first pixel
  • the second row of the first row is the second pixel
  • Each pixel can display red, green, and blue colors and their combinations.
  • the color scale of each color ranges from [0, 255].
  • the terminal 1 encodes the binary data of the file to be transmitted to generate a picture, specifically:
  • the first, second, and third pixels of the picture are used to carry the color gradation check code, and the terminal 1 encodes the binary data of the gradation check code to be transmitted, and according to the encoded gradation check code data, in the picture Set the gradation value of the gradation check code on 1, 2, and 3 pixels.
  • the first, second, and third pixels respectively display the gradation values of the three colors of red, green, and blue, so that the terminal 2 performs the gradation correction after decoding the picture, and ensures that the two terminals transmitting the data encode the same color. .
  • the 4th, 5th, and 6th pixels of the picture are used to carry the check code, and the terminal 1 encodes the binary data of the file check code to be transmitted, and according to the coded check code data, the 4th, 5th, and 6th pixels in the picture
  • the gradation value of the check code is set for the terminal 2 to verify the picture and verify the consistency of the codec data.
  • the seventh pixel of the picture is used to carry the picture number and the total number of pictures, and the terminal 1 encodes the binary data of the picture number and the total number of pictures to be transmitted, and according to the encoded picture number and the total number of pictures, on the seventh pixel of the picture.
  • Set the gradation value of the picture number and the total number of pictures which is used to indicate the total number of generated pictures and the position of the current picture relative to all pictures (for example, the picture is the mth picture of all n pictures).
  • the 7th pixel of the picture can also be used to carry only the picture sequence number information, and the terminal 1 encodes the binary data of the picture number of the transmission file.
  • the code, and according to the encoded picture number data set the gradation value of the picture number on the 7th pixel of the picture, so that the terminal 2 assembles the plurality of binary data generated by the picture decoding according to the picture number.
  • the 8th pixel to the 172800th pixel of the picture (172793 pixels in total) is used to carry the file data of the file to be transmitted, and the terminal 1 encodes the file binary data of the file to be transmitted, and according to the encoded file data, in the picture Set the level value of the file data on 7 pixels.
  • the 8th pixel of the picture may be reserved as an extended pixel for indicating an operation instruction (for example, starting transmission, stopping transmission, switching the next picture, etc.) for the terminal 2 to decode the picture, according to the control.
  • the information is sent to the terminal 1 with a control command to perform an operation on the picture.
  • Step 102 The terminal 2 takes a picture of the display screen of the terminal 1 through the camera, and collects the picture displayed on the display screen of the terminal 1.
  • Step 103 The terminal 2 decodes the collected picture to generate binary data.
  • the terminal 1 in the process of encoding the file to be transmitted, the terminal 1 generates file data (binary data corresponding to the 8th pixel to the 172800th pixel) in addition to the file to be transmitted, and also generates various attributes in the corresponding pixel positions.
  • the data binary data corresponding to the 1st-7th pixel
  • the terminal 2 decodes the first, second, and third pixels of the picture to obtain binary data of the color gradation proof code, and decodes the fourth, fifth, and sixth pixels of the picture to obtain binary data of the check code, and the picture is
  • the seventh pixel is decoded to obtain binary data of the picture number (or the picture number and the total number of pictures), and the 8-172800 pixels of the picture are decoded to obtain binary data of the file.
  • the terminal 2 compares the binary data of the decoded color scale proofreading code with the binary data of the standard color gradation (standard color gradation of three colors of red, green, and blue), and calculates the color scale proofreading of the first, second, and third pixels. difference.
  • the terminal 2 corrects the binary data of the decoded file (the binary data corresponding to the picture 8-172800 pixels) based on the difference of the gradation of the three pixels, and obtains the binary data of the collated file.
  • the first pixel color scale proofreading difference binary data of the first pixel gradation - binary data of the first pixel standard gradation
  • second pixel gradation proofreading binary data of the second pixel gradation - the second pixel standard Binary data of gradation
  • 3rd pixel gradation correction binary data of 3rd pixel gradation - binary data of 3rd pixel standard gradation.
  • the terminal 2 splices the gradation binary data of each pixel of the proofed picture to obtain the binary data of the collated file.
  • the terminal 2 decodes the picture, and the obtained binary data of the picture; if the terminal 1 encodes the file to be transmitted and generates a plurality of pictures, The terminal 2 decodes the plurality of pictures to generate binary data of a plurality of pictures.
  • Step 104 The terminal 2 calculates a check code for the binary data of the decoded file, and compares the calculated check code with the check code data of the collected picture. If not, perform step 103; otherwise, execute Step 105. Specifically, the terminal 2 decodes the binary data of the check code according to the 4th, 5th, and 6th pixels of the picture, and calculates the check code by using the binary inverse code summation algorithm, ⁇ , and the terminal 2 sets the check code field (4th, 5th, 5th, The binary data of the 6-pixel corresponding binary data is set to 0, and then the binary inversion of each 16-bit of the binary data corresponding to the 1-172800 pixel is performed and summed, if the value of the check code exceeds the hexadecimal 0x0000-0x3fff For the range, the inverse code is used as the check code; the terminal 2 judges the calculated check code and the check code data of the collected picture (the gradation value binary data of the check code corresponding to the 4th, 5th,
  • Step 105 The terminal 2 determines whether the currently collected picture is the last picture, and if yes, performs step 106; otherwise, performs step 108.
  • the terminal 2 can determine whether the currently collected picture is the last picture by using information carried by the seventh pixel of the picture. For example, if the terminal 2 determines that the picture number obtained by decoding the 7th pixel of the picture is equal to the binary data of the total number of pictures, the picture is the last picture (including: the case where the terminal 1 code only generates one picture, and the current picture is generated) In the case of the last picture of the plurality of pictures), step 106 is performed. If the terminal 2 determines that the picture number obtained by decoding the 7th pixel of the picture is not equal to the binary data of the total number of pictures, indicating that the currently collected picture is not the last picture, step 107 is performed.
  • Step 106 The terminal 2 restores the corresponding file according to the binary data generated by the picture decoding.
  • the terminal 1 encodes a file to be transmitted, one picture is generated, and the terminal 2 decodes the picture, and the obtained binary data of the picture is binary data of the corresponding file (file to be transmitted);
  • the terminal 1 is to be transmitted File encoding, a plurality of pictures are generated, and the terminal 2 decodes the generated plurality of pictures, generates binary data of a plurality of files, and obtains binary data of the picture number obtained according to the 7th pixel of the picture, and according to the picture 8-172800
  • the binary data of the file decoded by the pixel is assembled according to the picture number, and the binary data of the plurality of files is assembled, and the corresponding file is restored, thereby realizing the data (the file to be transmitted) is transmitted from the terminal 1 to the terminal 2.
  • the terminal 2 When the terminal 2 restores the corresponding file, the graphics decoding software is turned off, and an audio signal is sent to notify the terminal 1 to turn off the graphic encoding software.
  • the terminal 2 sends an audio signal to the terminal 1 through the speaker, notifying the terminal 1 that the file transmission is completed, and after receiving the audio signal through the microphone, the terminal 1 turns off the graphic encoding software.
  • the audio signal can be an acoustic signal (20Hz-20000Hz) audible to the human ear.
  • it can also be an ultrasonic signal greater than 20000Hz.
  • the ultrasonic signal can avoid noise generation and can be applied to environments with strict environmental requirements.
  • Step 107 The terminal 2 sends a signal to the terminal 1 to request the terminal 1 to display the next picture on the display screen, and performs step 102.
  • the terminal 2 sends an audio signal to the terminal 1 through the speaker, requesting the terminal 1 to switch the next picture, and after receiving the audio signal, the terminal 1 displays the next picture on the display screen, so that the camera of the terminal 2 can collect the same picture.
  • the audio signal may be an acoustic signal (20 Hz - 20000 Hz) audible to the human ear, preferably an ultrasonic signal greater than 20,000 Hz.
  • the terminal 1 when the terminal 1 encodes the file to be transmitted, it may only The file data to be transmitted is encoded, that is, the file data to be transmitted is carried in the 8-178200 pixel of the picture, and may also be encoded by combining one of the color gradation check code, the check code, the picture number, and the total number of pictures or a combination thereof.
  • the terminal 2 when the terminal 2 decodes the collected picture, the corresponding pixel is decoded according to the encoding of the terminal 1.
  • step 104, BP is omitted, and the terminal 2 decodes the picture 8-172800 pixels, obtains the binary data of the file, and decodes the seventh pixel of the picture to obtain the binary of the picture number.
  • Data when the terminal 1 is encoded, the 7th pixel contains only the picture number information), and the binary data of the obtained file is restored to the corresponding file according to the binary data of the picture number.
  • the terminal 1 presets the display period of the displayed picture. For example, setting 5S as a display period, switching the next picture every 5S, the terminal 2
  • the threshold can be set (the threshold is greater than the display period), for example, 8S is set.
  • the time when the terminal 2 collects 1 picture exceeds 8S, and the next picture is not collected the picture can be regarded as the last picture.
  • step 103 the process of color scale proofreading is omitted, and the binary data of the file is decoded directly according to the level-level binary data of the 8-182800 pixels of the acquired picture.
  • the data transmission scheme of the embodiment of the present invention is not limited to only between two mobile phones, and can be applied between any terminal that conforms to the basic configuration, such as between a computer and a mobile phone, a mobile phone, and a television.
  • the data method and device provided by the embodiment of the present invention by encoding the binary data of the file to be transmitted by the terminal to generate a picture, are displayed on the display screen, and the plurality of color gradations of the pixels of the picture correspond to the corresponding binary data, and the opposite terminal After the image is collected by the image acquisition module, the image is decoded to obtain binary data, and the corresponding file is restored according to the obtained binary data, thereby realizing data transmission between the terminals.
  • the embodiment of the invention does not need to add an additional communication module on the terminal, thereby saving manufacturing cost; collecting images through the image acquisition module, avoiding electromagnetic radiation and electromagnetic interference problems caused by existing Bluetooth and Wi-Fi transmission modes, and the operation is more convenient effective.
  • the embodiment of the present invention further provides a terminal.
  • the terminal includes: an image collection module 21, configured to collect a picture displayed on a display screen of the opposite terminal, where the picture is treated by the opposite terminal.
  • the binary data of the transmission file is encoded and displayed on the display screen of the opposite terminal, and the plurality of color gradations of the pixels of the picture correspond to the corresponding binary data.
  • the decoding module 22 is configured to decode the image collected by the image acquisition module 21 to obtain binary data.
  • the file generating module 23 is configured to restore the corresponding file according to the binary data obtained by the decoding module 22.
  • the decoding module 22 is specifically configured to decode the pixel for carrying the check code at the set position of the picture, obtain binary data of the check code, and decode the pixel for carrying the file data at the set position of the picture. , get the binary data of the file.
  • the file generating module 23 is configured to check the binary data of the file according to the binary data of the check code decoded by the decoding module 22, and restore the corresponding file according to the binary data of the file after the verification is passed.
  • the decoding module 22 is specifically configured to decode the pixels used to carry the picture sequence number and the total number of pictures in the set position of the picture, obtain binary data of the picture number and the total number of pictures, and use the set position of the picture for carrying The pixels of the file data are decoded to obtain binary data of the file.
  • the terminal further includes a judging module 24 and a sending module 25, and the judging module 24 is configured to judge whether the currently collected picture is the last picture according to the binary data of the picture number and the total number of pictures decoded by the decoding module 22.
  • the sending module 25 is configured to: when the determining module 24 determines that the currently collected picture is not the last picture, send a signal to the opposite terminal to request the peer terminal to display the next picture.
  • the decoding module 22 is specifically configured to decode the pixel for carrying the picture number in the set position of the picture, obtain binary data of the picture serial number, and decode the pixel used to carry the file data at the set position of the picture. , get the binary data of the file.
  • the file generating module 23 is specifically configured to decode the binary data of the picture serial number and the binary data of the decoded file according to the decoding module 22, and perform file restoration according to the picture number.
  • the decoding module 22 is specifically configured to decode the pixel for carrying the color gradation proof code at the set position of the picture, obtain binary data of the gradation proof code, and use the set position of the picture for carrying file data. The pixels are decoded to obtain the binary data of the file.
  • the terminal further includes a color scale proofreading module 26, and a color scale proofreading module 26, configured to perform a color scale calibration difference between the binary data of the color scale proofreading code decoded by the decoding module 22 and the binary data of the standard color scale, to the decoding module 22
  • the binary data of the decoded file is proofread, and the binary data of the proofed file is obtained.
  • the embodiment of the present invention further provides a terminal. As shown in FIG. 3, the terminal includes: an encoding module 31, configured to encode binary data of a file to be transmitted, and generate a picture according to the encoding result, where the picture is generated. The multiple color gradations of the pixels correspond to the corresponding binary data.
  • the display module 32 is configured to display the picture generated by the encoding module 31 on the display screen, so that the opposite terminal collects through the image acquisition module, decodes the obtained image according to the collected image, and obtains binary data according to the decoded binary data.
  • the corresponding file is available.
  • the encoding module 31 is specifically configured to encode the binary data of the file check code to be transmitted, and encode the file binary data of the file to be transmitted, and set the picture setting position for carrying the check according to the coded check code data.
  • the encoding module 31 is specifically configured to encode the binary data of the picture number and the total number of pictures to be transmitted, and encode the file binary data of the file to be transmitted, and set the picture setting position according to the encoded picture serial number and the total number of pictures.
  • the pixel level value of the picture number and the total number of pictures is carried, and the level value of the pixel for carrying the file data at the picture setting position is set according to the encoded file data.
  • the encoding module 31 is specifically configured to encode the binary data of the picture number to be transmitted, and encode the file binary data of the file to be transmitted, and set the pixel used to carry the picture serial number according to the encoded picture serial number data.
  • the gradation value, and the gradation value of the pixel for carrying the file data at the picture setting position is set according to the encoded file data.
  • the display module 32 is specifically configured to perform image frame switching on the display screen according to a preset frequency if the encoding module 31 generates a plurality of pictures.
  • the encoding module 31 is specifically configured to encode the binary data of the file level calibration code to be transmitted, and encode the file binary data of the file to be transmitted, and set the picture setting position for carrying according to the encoded color gradation proof code data.
  • FIG. 4 shows a flow diagram of a file output method 400 in accordance with one embodiment of the present invention. As shown in Figure 4, method 400 includes the following steps.
  • the file to be transmitted is encoded to generate one or more pictures.
  • the file to be transmitted is similar to the file to be transmitted in the foregoing embodiment, and those skilled in the art can understand the file to be transmitted by referring to the foregoing embodiment, and details are not described herein.
  • the encoding file may be used to encode the transmitted file.
  • the encoding method can be any suitable encoding method. In an embodiment of the present invention, according to the size of the file to be transmitted and the amount of data that can be carried by the generated single picture, one picture may be generated according to the file to be transmitted or the file to be transmitted may be divided into multiple parts and corresponding pictures may be generated accordingly. .
  • each picture carries a part of the data information of the file to be transmitted.
  • a portion of each of the pictures to be transmitted may be encoded separately.
  • the portion of the file to be transmitted that corresponds to the different pictures is encoded by the same encoding rule.
  • one or more pictures are sequentially displayed, such that the receiving terminal performs an acquisition operation and a decoding operation for each of the one or more pictures to obtain decoded data of one or more pictures, and according to one or The decoded data of the plurality of pictures obtains the file to be transmitted.
  • One or more pictures can be displayed one at a time on the display of the output terminal.
  • the display of the output terminal can have any gradation index, including monochrome, 256 colors (8-bit color), 4096 colors (12-bit color), 65536 colors (16-bit true color), and 262144 colors (18-bit true color). .
  • the resolution of the output terminal's display can be arbitrary, including 240*320 pixels, 320*480 pixels, 480*360 pixels, 640*480 pixels, 800*480 pixels, 854*480 pixels, 960*540 pixels, 1280 * 720 pixels, 1920* 1080 pixels, etc.
  • the output terminal generates one or more pictures after the file to be transmitted is encoded and displays one or more pictures on the display screen, and the combination of the color tone index and the resolution of the display determines a single The amount of data that the image can carry in full screen mode. Therefore, when the gradation index and resolution of the display are both large, the amount of data that a single picture can carry is also large, so the number of generated pictures is small. Conversely, when the gradation index and resolution of the display are both small, the amount of data that a single picture can carry is small, so the number of generated pictures is large.
  • encoding the file to be transmitted to generate one or more pictures comprises: setting a level value of a corresponding one of the one or more pictures according to the data segment of the file to be transmitted.
  • the file to be transmitted can be divided into appropriate data segments according to the length of binary data that each pixel of the generated picture can carry. For example, if the length of the binary data that can be carried by each pixel in the generated picture is 18 bits, the file to be transmitted is divided into a plurality of data segments, and the length of each data segment is 18 bits. If the file to be transmitted is The last data segment is shorter than 18 bits, and the additional code 0 or 1 can be added to the lower bit so that the length of the last data segment is equal to 18 bits.
  • the predetermined pixel carries information of the length of the additional code and the starting position in the last data segment.
  • the gradation value of the corresponding pixel in the picture is set according to each data segment, so that the gradation value of the corresponding pixel is equal to the data segment of the file to be transmitted.
  • the gradation values can come from a group that includes red gradation values, green gradation values, and blue gradation values.
  • the color scale of each color can range from [0, 63]. Setting the gradation value of the corresponding pixel to be equal to the data segment of the file to be transmitted does not require further processing of the file to be transmitted, so the method is simple and efficient, and the file to be transmitted can be transmitted faster.
  • encoding the file to be transmitted to generate one or more pictures further comprises: for each of the one or more pictures, one or more of the color correction codes can be set according to the standard color gradation
  • the gradation value of each of the predetermined pixels may be the 1, 2, 3 pixels of the picture.
  • the standard color gradation can be three colors of pure red, pure green, and pure blue. (For example, if the display is an 18-bit true color screen, the values are 3fl) 000, 003fl) 0, 00003O.
  • the gradation values of the first, second, and third pixels can be set to the gradation values of the three colors of pure red, pure green, and pure blue, respectively.
  • the predetermined pixels used to carry the tone calibration code may be at any suitable location of the picture.
  • the standard color gradation can be any other suitable color gradation.
  • the color scale proofreading code is used to proofread the data segments carried by the pixels of the picture when the receiving terminal decodes the picture.
  • encoding the file to be transmitted to generate one or more pictures further comprises: for each of the one or more pictures, may be set in one or more predetermined pixels for carrying the check code The gradation value of each one.
  • the check code is obtained by calculating a data segment corresponding to the gradation value of other pixels. Other pixels refer to pixels in the picture other than the pixels corresponding to the check code.
  • the check code is used to verify the data segment carried by the pixels of the picture when the receiving terminal decodes the picture.
  • the checksum of the data segment corresponding to the gradation value of the other pixel is calculated, and the checksum is set to check. The value of the code.
  • the gradation values of the 4th, 5th, and 6th pixels of the picture can be set to be equal to the check code. It is also possible to set the gradation value of any other suitable pixel to be equal to the check code.
  • the check code is advantageous for receiving the consistency between the final file and the file to be transmitted obtained by the terminal after the decoding process.
  • encoding the file to be transmitted to generate one or more pictures further comprises: setting, for each of the one or more pictures, each of the one or more predetermined pixels for carrying the picture number Level value.
  • the picture sequence number is used by the receiving terminal to sort the data segments obtained from the pictures at the time of decoding to splicing the data segments in the correct order.
  • the file to be transmitted is encoded to generate one or more pictures, further comprising: Each of the one or more pictures sets a tone scale value for each of the one or more predetermined pixels that carry the identifier.
  • the identifier can be used to identify whether the picture to which it belongs is the last picture. The identifier helps to determine the last picture in time, avoiding unnecessary operations.
  • the identifier can include an image serial number and a total number of images. The image sequence number and the total number of images can be used to indicate the total number of generated pictures and the position of the current picture in all pictures. According to the picture number and the total number of images, it can be judged whether the current picture is the last picture.
  • the identifier can simply be 0 or 1.
  • 0 can represent that the current picture is not the last picture, and 1 can represent the current picture as the last picture, and vice versa.
  • Identifiers can also be used to identify other information.
  • an identifier can indicate the start of a transfer.
  • the 7th pixel of the picture can be set to carry the identifier.
  • the gradation value of any other suitable pixel is also set to the bearer identifier.
  • encoding the file to be transmitted to generate one or more pictures further comprises: setting, for each of the one or more pictures, each of the one or more predetermined pixels for carrying the control code Level value.
  • the control code may include some operation instructions for controlling the receiving terminal to perform corresponding operations.
  • the gradation value of the 8th pixel of the picture can be set such that the 8th pixel carries the control code. It is also possible to set the gradation value of any other suitable pixel such that the pixel carries the control code.
  • the next picture of the current picture is displayed in response to a request from the receiving terminal to display the next picture.
  • the next picture is displayed. Displaying the picture according to the request from the receiving terminal ensures that the next picture is displayed after the receiving terminal finishes processing the current picture, so the transmission process is more accurate and reliable.
  • multiple pictures may be displayed in sequence at a fixed frequency.
  • the display request can be sent by ultrasound. Ultrasonic signals can avoid noise.
  • a signal is received from the receiving terminal that the notification file is transmitted and the display is stopped according to the signal.
  • an instruction of the receiving terminal is awaited.
  • receiving a signal that the notification file transmission from the receiving terminal is completed it indicates that the file transfer has been completed, so that the display of the picture can be stopped according to the signal.
  • the picture can be redisplayed if the transmission process is in error and the receiving terminal fails to correctly obtain the file to be transmitted. Therefore, stopping the display of the image according to the signal is advantageous for improving the accuracy of the transmission process.
  • the present invention provides a file transfer method.
  • FIG. 5 shows a flow diagram of a file transfer method 500 in accordance with one embodiment of the present invention.
  • Method 500 includes the following steps.
  • a collection operation and a decoding operation for each of the one or more pictures sequentially displayed by the output terminal are performed to obtain decoded data of one or more pictures.
  • Acquisition operations can be done using a camera.
  • the resolution of the camera needs to be able to clearly distinguish the requirements of each pixel in each picture.
  • the resolution of the camera can be 2 million pixels.
  • a file to be transmitted is obtained based on decoded data of one or more pictures.
  • One or more pictures are generated by encoding the file to be transferred. If there is only one picture generated by encoding the file to be transmitted, the decoded data obtained in step 501 is the file to be transmitted. If the image to be transmitted is encoded, the image generated has If there are multiple, the decoded data includes a part of each picture corresponding to the file to be transmitted. A part of each picture to be transmitted is spliced together to obtain a file to be transmitted.
  • the output terminal is similar to the foregoing terminal, and those skilled in the art can understand the output terminal by referring to the above description about the terminal.
  • the above transmission method can be realized without adding an additional communication module on the receiving terminal, which saves the manufacturing cost of the receiving terminal.
  • the electromagnetic radiation and electromagnetic interference problems caused by existing file transmission methods such as Bluetooth and Wi-Fi are avoided, and the operation is more convenient and effective.
  • the gradation value of each of at least a portion of the pixels of each of the one or more pictures may be equal to the corresponding data segment of the file to be transmitted.
  • the gradation values of corresponding pixels in one or more pictures may be set according to the data segments of the file to be transmitted.
  • the gradation values can come from a group that includes red gradation values, green gradation values, and blue gradation values.
  • an acquisition operation and a decoding operation are performed for each picture.
  • the acquisition operation and the decoding operation of the picture are sequentially performed to obtain the decoding data of the picture.
  • the collection operation and the decoding operation of the plurality of pictures may have different execution orders.
  • the plurality of pictures are divided into at least two groups. For the last picture in each group, after the decoding operation is completed, if the next picture exists, the acquisition operation for the next picture is started.
  • Figure 6a illustrates the sequence of execution of acquisition and decoding operations for four pictures in accordance with one embodiment of the present invention.
  • the four pictures are divided into four groups, each group including only one picture.
  • Figure 6a perform the following operations on four pictures, namely pictures, pictures, pictures, and pictures:
  • step 601c the picture is collected in the step, the picture is decoded in step 602c, the picture is collected in step 602d, the picture 2 is decoded, in step 603c, the picture 3 is collected, in step 603d, the picture 3 is decoded, and in step 604c, the picture is collected in the step, Decode the picture.
  • the above eight steps are sequentially performed in the following order: 601c ⁇ 602c ⁇ 603c ⁇ 604c That is, in this example, the acquisition and decoding of the next picture are started after the acquisition operation and the decoding operation for one picture are performed.
  • Figure 6b shows the execution sequence of the acquisition and decoding operations of four pictures in accordance with another embodiment of the present invention.
  • the acquisition operation and the decoding operation of the above four pictures are sequentially performed in the following order: 601c ⁇ 602c ⁇ 603c ⁇ 604c
  • four pictures are divided into two groups, and the picture and picture are the first group. , pictures and pictures are in the second group.
  • the respective acquisition operations 601c, 602c are sequentially performed on the two pictures in the first group, and then the respective decoding operations, 602d, are sequentially performed on the two pictures.
  • the image acquisition operation 603c is started. Thereafter, the acquisition operation and the decoding operation are performed on the pictures in the second group in an order similar to the execution order of the first group.
  • Figure 6c illustrates an execution sequence of acquisition operations and decoding operations for four pictures in accordance with yet another embodiment of the present invention.
  • four pictures are grouped into one group.
  • the acquisition operation and the decoding operation of the above four pictures are sequentially performed in the following order: 601c ⁇ 602c ⁇ 603c ⁇ 604c.
  • the acquisition operation is first performed on all the pictures in order. After the acquisition operation of the last picture is completed, the first picture is decoded.
  • the decoding operation can include the following steps.
  • the tone scale collation code is obtained according to the tone scale value for each of the one or more predetermined pixels for carrying the tone scale proof code; and the corresponding data segment is obtained according to the tone scale values of the other pixels.
  • the color correction proof code and the corresponding data segment are collated according to the proofreading difference between the color scale proofreading code and the standard color gradation.
  • the color scale proofreading code is collated with the standard color gradation (the color gradation of pure red, pure green, and pure blue) to calculate the color scale calibration difference of the first, second, and third pixels.
  • the data segments corresponding to the gradation values of the pixels of the entire picture are collated according to the gradation correction of the three pixels.
  • the gradation correction of the first pixel the gradation value of the first pixel - the standard gradation of the first pixel
  • the gradation correction of the second pixel the gradation value of the second pixel - the standard color of the second pixel Step
  • gradation correction of the third pixel gradation value of the third pixel - standard gradation of the third pixel.
  • the decoding operation may include the following steps.
  • a check code is obtained based on the gradation value of each of the one or more predetermined pixels for carrying the check code, and the corresponding data segment is obtained from the gradation values of the other pixels.
  • the corresponding data segment is verified according to the check code to re-execute the acquisition operation for each picture in the current group if the verification is not passed.
  • the method for verifying the data segment corresponding to the gradation value of the other pixel by using the check code is similar to the calibrating method used in the foregoing embodiment, and will not be described again. When the check fails, it indicates that the current picture has an error during transmission, such as color distortion.
  • the method 500 further includes: during execution, for the last picture in each group, after the decoding operation is completed, transmitting a request to display the next picture to the output terminal.
  • a request to display the next picture is sent to the output terminal.
  • the output terminal displays picture 2, picture 3 and picture 4, respectively.
  • Picture 4 is the last of all pictures, so although the request to display the next picture is sent to the output terminal when 604d is completed, the output terminal may not display any picture.
  • the request to display the next picture may not be sent to the output terminal when the decoding operation of the last picture in all pictures is completed.
  • the request is sent by ultrasound.
  • each of the one or more pictures includes one or more predetermined pixels for carrying an identifier.
  • the identifier is used to identify whether the picture to which it belongs is the last picture.
  • the identifier can include the image number and the total number of images. Those skilled in the art can understand the identifiers with reference to the foregoing embodiments, and details are not described herein again.
  • the request is sent based on the identifier.
  • a request to display the next picture may be sent to the output terminal.
  • the display may not be sent to the output terminal. Request for the next picture.
  • the method 500 further comprises: after obtaining the to-be-transmitted file based on the decoded data of the one or more pictures, transmitting a signal to the output terminal notifying that the file transfer is complete, such that the output terminal stops displaying according to the signal.
  • the signal to notify the completion of the file transfer has been set forth in the description of the embodiment of the method 400 and will not be described again.
  • the gradation values of corresponding pixels in the picture may be set based only on the data segments of the file to be transmitted.
  • the gradation values of the corresponding pixels in the picture may also be set in combination with one of the tone calibration code, the check code, and the identifier, or any combination thereof.
  • the corresponding pixel can be decoded depending on the encoding.
  • the step of proofreading using the tone scale proofing code precedes the step of verifying using the check code.
  • the file to be transmitted may be subjected to encryption, compression, and the like. Accordingly, in method 500, one or more pictures may be decrypted, decompressed, etc. during decoding of one or more pictures.
  • the present invention provides a receiving terminal comprising a camera and a processor.
  • the camera is operative to perform an acquisition operation for each of the one or more pictures sequentially displayed by the output terminal.
  • a processor is operative to perform a decoding operation of each of the one or more pictures to obtain decoded data for one or more pictures.
  • the processor is further operative to obtain a file to be transmitted based on decoded data of one or more pictures.
  • One or more pictures are generated by encoding the file to be transmitted.
  • the present invention provides an output terminal including a processor and a display screen.
  • the processor is used to encode the transmitted file to generate one or more pictures.
  • the display screen is configured to sequentially display one or more pictures, such that the receiving terminal performs an acquisition operation and a decoding operation for each of the one or more pictures to obtain decoded data of one or more pictures, and according to one or more The decoded data of the pictures obtains the file to be transmitted.
  • the present invention provides a non-transitory computer program product comprising executable program code for file transfer.
  • the executable program code is operative to: when executed, perform an acquisition operation and a decoding operation for each of the one or more pictures sequentially displayed by the output terminal to obtain decoded data of one or more pictures.
  • the executable program code is operative to: when executed, obtain a file to be transmitted based on decoded data of one or more pictures.
  • One or more pictures are generated by encoding the file to be transferred.
  • the present invention provides a non-transitory computer program product comprising executable program code for file output.
  • the executable program code is operable to: when executed, encode the file to be transmitted to generate one or more pictures. Further, the executable program code is operable to: when executed, display one or more pictures in sequence, such that the receiving terminal performs an acquisition operation and a decoding operation for each of the one or more pictures, to Decoding data of one or more pictures is obtained, and a file to be transmitted is obtained according to decoded data of one or more pictures.
  • the above executable program code is further operable for being executed by a processor At the time of the line, all the steps of the above corresponding methods can be implemented. For the sake of brevity, the additional functionality of the executable program code is not further described herein. Note that the code may directly cause the processor to perform specified operations, be compiled to cause the processor to perform specified operations, and/or be combined with other software, hardware, and/or firmware components (eg, libraries for implementing standard functions) for processing The device performs the specified operation.
  • the code may directly cause the processor to perform specified operations, be compiled to cause the processor to perform specified operations, and/or be combined with other software, hardware, and/or firmware components (eg, libraries for implementing standard functions) for processing The device performs the specified operation.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a
  • the terminal device (which may be a cell phone, a personal computer, a server, or a network device, etc.) performs the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明公开了一种数据传输方法及设备,该方法包括:第一终端通过图像采集模块采集第二终端显示屏上显示的图片;所述图片是所述第二终端对待传输文件的二进制数据进行编码所生成,并显示在所述第二终端的显示屏上的,所述图片的像素的多个颜色色阶对应相应的二进制数据;所述第一终端对采集到的图片进行解码,得到二进制数据,并根据得到的二进制数据还原出相应文件,从而实现终端之间的数据传输。本发明实施例无需在终端上增加额外的通信模块,节约制造成本;通过图像采集模块采集图片,避免了现有蓝牙、Wi-Fi传输方式带来的电磁辐射和电磁干扰问题,操作更为便捷有效。

Description

一种数据传输方法及设备
相关申请的交叉引用
本申请要求于 2012年 8月 6日提交中国专利局、 申请号为 201210276830.8、 发明名 称为 "一种数据传输方法及设备"的中国专利申请的优先权, 其全部内容通过引用结合在 本申请中。 技术领域
本发明涉及通信技术领域, 特别是涉及一种数据传输方法及设备。 背景技术
随着通信技术的快速发展, 终端的处理功能日益强大, 存储容量大幅提高, 在终端之 间进行数据传输的需求也越来越大, 以手机终端为例, 目前在两个手机之间主要是通过电 磁波 (例如: 蓝牙、 无线保真 Wi-Fi) 以及光波 (例如: 红外线) 实现数据的传递。
然而, 现有的终端之间数据传输方案存在以下问题:
1、 蓝牙、 Wi-Fi、 红外等数据传输方式需要在移动终端上增加相应的通信模块来支持 数据通信。
2、 蓝牙、 Wi-Fi都工作在 ISM (Industrial Scientific Medical)频段, 而 ISM频段是一 个开放频段, 可能会受到诸如微波炉、 无绳电话、 科研仪器、 工业设备或医疗设备信号的 干扰。
3、 Wi-Fi需要同时连接到同一个 AP (Wireless Access Point, 无线访问接入点) 上, 而很多移动终端不支持点对点连接。
4、 部分手机已经不支持红外传输。
因此, 亟需一种数据传输方案用以解决上述问题。 发明内容
本发明实施例提供一种数据传输方法及设备,用以解决现有终端之间需要借助其他通 信模块实现数据传输的问题, 以及传输干扰问题, 实现了终端之间数据传输的便捷性和有 效性。
为此, 本发明实施例采用如下技术方案:
本发明实施例提供一种数据传输方法, 该方法包括:
第一终端通过图像采集模块采集第二终端显示屏上显示的图片;所述图片是所述第二 终端对待传输文件的二进制数据进行编码所生成, 并显示在所述第二终端的显示屏上的, 所述图片的像素的多个颜色色阶对应相应的二进制数据; 所述第一终端对采集到的图片进行解码, 得到二进制数据, 并根据得到的二进制数据 还原出相应文件。
本发明实施例还提供一种数据传输方法, 该方法包括:
第一终端对待传输文件的二进制数据进行编码, 并根据编码结果生成图片, 所述图片 的像素的多个颜色色阶对应相应的二进制数据;
所述第一终端将生成的图片显示在显示屏上, 以使对端终端通过图像采集模块进行采 集, 根据采集到的图片解码得到二进制数据, 并根据解码得到的二进制数据还原出相应文 件。
本发明实施例还提供一种终端, 包括:
图像采集模块, 用于采集对端终端显示屏上显示的图片; 所述图片是对端终端对待传 输文件的二进制数据进行编码所生成, 并显示在所述对端终端的显示屏上的, 所述图片的 像素的多个颜色色阶对应相应的二进制数据;
解码模块, 用于对所述图像采集模块采集到的图片进行解码, 得到二进制数据; 文件生成模块, 用于根据所述解码模块得到的二进制数据还原出相应文件。
本发明实施例还提供一种终端, 包括:
编码模块, 用于对待传输文件的二进制数据进行编码, 并根据编码结果生成图片, 所 述图片的像素的多个颜色色阶对应相应的二进制数据;
显示模块, 用于将所述编码模块生成的图片显示在显示屏上, 以使对端终端通过图像 采集模块进行采集, 根据采集到的图片进行解码得到二进制数据, 并根据解码得到的二进 制数据还原出相应文件。
本发明实施例还提供一种文件传输方法, 包括:
执行对于由输出终端所依次显示的一个或多个图片中的每一个图片的采集操作和解 码操作, 以获得所述一个或多个图片的解码数据; 以及
根据所述一个或多个图片的解码数据获得待传输文件;
其中所述一个或多个图片通过对所述待传输文件进行编码而生成。
本发明实施例还提供一种文件输出方法, 包括:
对待传输文件进行编码以生成一个或多个图片; 以及
依次显示所述一个或多个图片, 以使得接收终端执行对于所述一个或多个图片中的每 一个图片的采集操作和解码操作, 以获得所述一个或多个图片的解码数据, 并且根据所述 一个或多个图片的解码数据获得所述待传输文件。
本发明实施例还提供一种接收终端, 包括:
摄像头,用于执行对于由输出终端所依次显示的一个或多个图片中的每一个图片的采 集操作;
处理器, 用于执行对于所述一个或多个图片中的每一个图片的解码操作, 以获得所述 一个或多个图片的解码数据; 根据所述一个或多个图片的解码数据获得待传输文件; 其中所述一个或多个图片通过对所述待传输文件进行编码而生成。
本发明的实施例还提供一种输出终端, 包括:
处理器, 用于对待传输文件进行编码以生成一个或多个图片; 以及
显示屏, 用于依次显示所述一个或多个图片, 以使得接收终端执行对于所述一个或多 个图片中的每一个的采集操作和解码操作, 以获得所述一个或多个图片的解码数据, 并且 根据所述一个或多个图片的解码数据获得所述待传输文件。
本发明实施例提供的数据方法及设备,通过由终端将待传输文件的二进制数据编码生 成图片, 显示在显示屏上, 该图片的像素的多个颜色色阶对应相应的二进制数据, 对端终 端通过图像采集模块采集到该图片后, 对该图片解码, 得到二进制数据, 并根据得到的二 进制数据还原出相应文件, 从而实现终端之间的数据传输。本发明实施例无需在终端上增 加额外的通信模块, 节约制造成本; 通过图像采集模块采集图片, 避免了现有蓝牙、 Wi-Fi 传输方式带来的电磁辐射和电磁干扰问题, 操作更为便捷有效。 附图说明
图 1为本发明实施例提供的数据传输方法流程示意图。
图 2为本发明实施例提供的终端设备的结构示意图之一。
图 3为本发明实施例提供的终端设备的结构示意图之二。
图 4示出了根据本发明一个实施例的文件输出方法的流程图。
图 5示出了根据本发明一个实施例的文件传输方法的流程图。
图 6a示出了根据本发明一个实施例的四个图片的采集操作和解码操作的执行顺序。 图 6b 示出了根据本发明另一个实施例的四个图片的采集操作和解码操作的执行顺 序。
图 6c示出了根据本发明又一个实施例的四个图片的采集操作和解码操作的执行顺序。 具体实施方式
下面将结合本发明中的附图, 对本发明中的技术方案进行清楚、 完整的描述, 显然, 所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本 发明保护的范围。
本发明实施例提供一种数据传输方法, 应用于终端间进行文件传输的过程。在本发明 实施例中, 终端 1 向终端 2传输文件, 终端 1和终端 2的基本配置为: 终端 1具有至少 480*360像素 18位真彩的显示屏,对端终端(终端 2)具有图像采集模块(例如,摄像头), 该图像采集模块至少为 200万像素, 终端 1和终端 2可以为手机、 PC、 电视等。 终端 1 上安装有图形编码软件, 用于将待传输文件编码为图片, 待传输文件可以为任何格式的文 件, 包括: 音频文件(例如, mp3、 wav格式的音频文件) 、 视频文件(例如, rm、 mpeg、 avi格式的视频文件) 、 文本文件(例如 txt格式的文本文件)等; 终端 2上安装有相应的 图形解码软件, 用于对采集到的图片解码。 图形编解码软件可以包括: bmp、 jpg、 tif、 psd 等多种格式的图片编解码软件, 本发明实施例中选用支持 bmp 图片编码协议的图形编解 码软件。
终端 1初始化时, 启动其上安装的图形编码软件; 终端 2初始化时, 启动其上安装的 图形解码软件, 并开启摄像头, 若需要将待传输文件从终端 1传输到终端 2, 则调整终端 2的摄像头与终端 1的显示屏相对应, 并调整终端 1和终端 2之间的距离, 以便摄像头能 够清晰采集到终端 1显示屏上显示的图片。
以下结合图 1对本发明实施例提供的数据传输流程做详细说明, 如图所示, 该流程包 括:
步骤 101, 终端 1利用图形编码软件对待传输文件编码, 生成至少一个图片, 并显示 在显示屏上。
无论何种格式的文件, 终端 1都识别为一串二进制数据, 终端 1利用图形编码软件对 待传输文件编码并生成图片, 该图片为二进制数据, 该图片像素的多个颜色色阶对应相应 的二进制数据。根据待传输文件的大小, 终端 1的图形编码软件对其进行编码后可生成一 个或多个图片, 每个图片的大小与终端显示屏的分辨率和色阶指数相关。若终端 1生成多 个图片, 则按照预设的频率, 在显示屏上进行图片帧切换。
在本发明的实施例中, 终端 1安装的是 bmp图形编码软件, 终端 1编码生成的图片 可以位图形式显示在终端 1的显示屏上。
在生成的图片中,左上角起第一行第一列的点为第 1像素,第一行第二列为第 2像素, 以此类推。 每个像素可显示红、 绿、 蓝三种颜色及其组合, 每个颜色的色阶取值范围都是 [0, 255]。
终端 1对待传输文件的二进制数据编码生成图片, 具体为:
图片的第 1、 2、 3像素用于承载色阶校验码, 终端 1对待传输文件色阶校验码的二进 制数据进行编码, 并根据编码后的色阶校验码数据, 在图片的第 1、 2、 3像素上设置该色 阶校验码的色阶值。 第 1、 2、 3像素上分别显示红、 绿、 蓝三个颜色的色阶值, 以供终端 2对图片解码后进行色阶校正, 保证传输数据的 2个终端对同一颜色的编解码统一。
图片的第 4、 5、 6像素用于承载校验码, 终端 1对待传输文件校验码的二进制数据进 行编码, 并根据编码后的校验码数据,在图片的第 4、 5、 6像素上设置该校验码的色阶值, 以供终端 2对图片解码后进行校验, 确保编解码数据的一致性。
图片的第 7像素用于承载图片序号和图片总数信息,终端 1对待传输文件图片序号和 图片总数的二进制数据进行编码, 并根据编码后的图片序号和图片总数数据, 在图片的第 7像素上设置图片序号和图片总数的色阶值, 用于表示生成的图片的总数量以及当前图片 相对于全部图片的位置 (例如, 该图片为全部 n个图片中的第 m个图片) 。 图片的第 7 像素也可以用于仅承载图片序号信息,终端 1对待传输文件图片序号的二进制数据进行编 码, 并根据编码后的图片序号数据, 在图片的第 7像素上设置图片序号的色阶值, 以供终 端 2依据该图片序号对图片解码生成的多个二进制数据进行拼装。
图片的第 8像素到第 172800像素(共 172793个像素) , 用于承载待传输文件的文件 数据, 终端 1对待传输文件的文件二进制数据进行编码, 并根据编码后的文件数据, 在图 片的第 7像素上设置文件数据的色阶值。 此外, 也可以将图片的第 8像素预留, 作为扩展 像素, 用于表示操作指令 (例如, 开始传输、 停止传输、 切换下一个图片等) , 以供终端 2对图片解码后, 根据该控制信息向终端 1发送控制指令, 以执行对该图片的操作。
步骤 102, 终端 2通过摄像头对终端 1的显示屏进行拍照, 采集终端 1显示屏上显示 的图片。
步骤 103, 终端 2对采集到的图片进行解码, 生成二进制数据。
具体的, 终端 1在对待传输文件编码过程中, 除了对待传输文件生成文件数据 (第 8 像素到第 172800像素对应的二进制数据) 之外, 还在相应的像素位置生成了用于表示各 种属性的数据 (第 1-7像素对应的二进制数据) , 因此, 在对采集到的图片进行解码时, 不但需要对文件数据进行解码, 还需要对上述表示属性的数据进行解码。 即, 终端 2对图 片的第 1、 2、 3像素进行解码, 得到色阶校对码的二进制数据, 对图片的第 4、 5、 6像素 进行解码, 得到校验码的二进制数据, 对图片的第 7像素进行解码, 得到图片序号 (或者 图片序号和图片总数) 的二进制数据, 并对该图片的第 8-172800像素进行解码, 得到文 件的二进制数据。
终端 2将解码得到的色阶校对码的二进制数据与标准色阶(红、 绿、 蓝三个颜色的标 准色阶) 的二进制数据进行校对, 计算出第 1、 2、 3像素的色阶校对差。 终端 2根据该 3 个像素的色阶校对差, 对解码得到文件的二进制数据 (图片第 8-172800像素对应的二进 制数据) 进行校对, 得到校对后的文件的二进制数据。
具体的, 校对后的图片各像素的色阶二进制数据可以利用以下公式计算获得: 校对后的第 n像素的色阶二进制数据 =第!1像素的色阶二进制数据 +第 1像素色阶校对 差 +第 2像素色阶校对差 +第 3像素色阶校对差;
其中, 第 1像素色阶校对差=第 1像素色阶的二进制数据-第 1像素标准色阶的二进制 数据;第 2像素色阶校对差=第 2像素色阶的二进制数据-第 2像素标准色阶的二进制数据; 第 3像素色阶校对差=第 3像素色阶的二进制数据-第 3像素标准色阶的二进制数据。
终端 2将校对后的图片各像素的色阶二进制数据进行拼接,得到校对后的文件的二进 制数据。
在本步骤中, 如果终端 1对待传输文件编码, 生成了 1个图片, 则终端 2对该图片解 码, 得到的该图片的二进制数据; 如果终端 1对待传输文件编码, 生成了多个图片, 则终 端 2对该多个图片解码, 生成多个图片的二进制数据。
步骤 104, 终端 2对解码得到的文件的二进制数据计算校验码, 并将计算出的校验码 与采集到的图片的校验码数据比较, 若不匹配, 则执行步骤 103; 否则, 执行步骤 105。 具体的, 终端 2根据图片第 4、 5、 6像素解码得到校验码的二进制数据, 利用二进制 反码求和算法计算校验码, δΡ, 终端 2将校验码字段(第 4、 5、 6像素对应的二进制数据) 的二进制数据置 0, 然后对第 1-172800像素对应的二进制数据的每 16bit做二进制反码并 求和, 若校验码的数值超过十六进制 0x0000-0x3fff 的范围, 就用其反码作为校验码; 终 端 2判断计算出的校验码与采集到的图片的校验码数据(第 4、 5、 6像素对应的校验码的 色阶值二进制数据)是否匹配, 若匹配, 说明解码后的文件与编码前的文件一致, 则执行 步骤 105; 若不匹配, 说明解码后的文件与编码前的文件不一致, 则执行步骤 103 (即终 端 2重新对采集到的图片进行解码) 。
步骤 105,终端 2判断当前采集到的图片是否是最后一个图片,若是,则执行步骤 106; 否则执行步骤 108。
具体的, 终端 2可以通过图片第 7像素承载的信息, 判断当前采集到的图片是否是最 后一个图片。例如, 若终端 2判断图片第 7像素解码得到的图片序号与图片总数的二进制 数据相等, 则说明该图片为最后一个图片 (包括: 终端 1编码只生成一个图片的情形, 以 及当前图片为生成的多个图片中的最后一个图片的情形) , 则执行步骤 106。 若终端 2判 断图片第 7像素解码得到的图片序号与图片总数的二进制数据不相等,说明当前采集到的 图片不是最后一个图片, 则执行步骤 107。
步骤 106, 终端 2根据图片解码生成的二进制数据, 还原出相应文件。
具体的,如果终端 1对待传输文件编码,生成了 1个图片,终端 2对该图片进行解码, 得到的该图片的二进制数据即为相应文件(待传输文件) 的二进制数据; 如果终端 1对待 传输文件编码, 生成了多个图片, 则终端 2对生成的多个图片解码, 生成多个文件的二进 制数据,并根据图片第 7像素解码得到的图片序号的二进制数据,以及根据图片第 8-172800 像素解码得到的文件的二进制数据, 按照图片序号将多个文件的二进制数据进行拼装, 还 原出相应文件, 从而实现数据 (待传输文件) 从终端 1传输到终端 2。
当终端 2还原出相应文件后, 关闭图形解码软件, 并发出音频信号, 以通知终端 1关 闭图形编码软件。 优选的, 终端 2通过扬声器向终端 1发出音频信号, 通知终端 1文件传 输完成, 终端 1通过麦克风接收该音频信号后, 关闭图形编码软件。 该音频信号可以是人 耳可听见的声波信号 (20Hz-20000Hz) , 优选的, 也可以是大于 20000Hz的超声波信号, 超声波信号可以避免噪音的产生, 可适用于对环境要求较为严格的环境中。
步骤 107, 终端 2向终端 1发送信号, 以请求终端 1在显示屏上显示下一个图片, 并 执行步骤 102。
具体的, 终端 2通过扬声器向终端 1发出音频信号, 请求终端 1切换下一个图片, 终 端 1接收到该音频信号后, 在显示屏上显示下一个图片, 以使终端 2的摄像头可以采集到 该下一个图片。 该音频信号可以是人耳可听见的声波信号 (20Hz -20000Hz) , 优选的, 也可以是大于 20000Hz的超声波信号。
本发明实施例提供的数据传输流程中, 终端 1在对待传输文件进行编码时, 可以仅对 待传输文件数据进行编码, 即, 在图片的第 8-178200像素承载待传输文件数据, 也可分 别结合色阶校验码、 校验码、 图片序号和图片总数之一或者及其组合进行编码。 相应的, 终端 2对采集到的图片进行解码时, 根据终端 1编码的情况, 对相应的像素进行解码。
若终端 1未对校验码进行编码, 则省略步骤 104, BP , 终端 2对图片第 8-172800像素 进行解码, 得到文件的二进制数据, 并对图片第 7像素进行解码, 得到图片序号的二进制 数据 (终端 1编码时, 第 7像素仅包含图片序号信息) , 根据图片序号的二进制数据, 将 得到的文件的二进制数据还原出相应文件。
若终端 1未对图片序号和图片总数进行编码, 则在步骤 105中, 终端 1预先设定显示 图片的显示周期, 例如, 设置 5S为一个显示周期, 每隔 5S切换下一张图片, 终端 2可以 设置阈值 (该阈值大于显示周期) , 例如设置 8S, 当终端 2采集到 1个图片的时间超过 8S之后, 未采集到下 1个图片, 则可认为该图片为最后一个图片。
若终端 1未对色阶校验码进行编码, 则在步骤 103中, 省略色阶校对的过程, 直接根 据采集到的图片第 8-172800像素的色阶二进制数据, 解码得到文件的二进制数据。
在本发明实施例中, 以 480X360像素 18位真彩显示屏, 每秒切换 2帧为例, 理论传 输速率可以达到: (480X360-8)X18X2=6220512 6.22Mbit/秒。 若使用 960X720像素 18位 真彩显示屏, 每秒切换 2 帧为例, 理论传输速率可达: (960Χ720-8)Χ18Χ2=24882912 24.9Mbit/秒, 远远大于现有的蓝牙等传输方式的几十 Kbit/秒的传输速率。
本发明实施例的数据传输方案不仅仅限于 2个手机之间,可以应用在任何符合基本配 置的终端之间, 例如电脑与手机、 手机与电视之间等。
本发明实施例提供的数据方法及设备,通过由终端将待传输文件的二进制数据编码生 成图片, 显示在显示屏上, 该图片的像素的多个颜色色阶对应相应的二进制数据, 对端终 端通过图像采集模块采集到该图片后, 对该图片解码, 得到二进制数据, 并根据得到的二 进制数据还原出相应文件, 从而实现终端之间的数据传输。本发明实施例无需在终端上增 加额外的通信模块, 节约制造成本; 通过图像采集模块采集图片, 避免了现有蓝牙、 Wi-Fi 传输方式带来的电磁辐射和电磁干扰问题, 操作更为便捷有效。 基于相同的构思, 本发明实施例还提供一种终端, 如图 2所示, 该终端包括: 图像采集模块 21, 用于采集对端终端显示屏上显示的图片, 该图片是对端终端对待 传输文件的二进制数据进行编码所生成, 并显示在对端终端的显示屏上的, 所述图片的像 素的多个颜色色阶对应相应的二进制数据。
解码模块 22, 用于对图像采集模块 21采集到的图片进行解码, 得到二进制数据。 文件生成模块 23, 用于根据解码模块 22得到的二进制数据还原出相应文件。
解码模块 22, 具体用于对图片的设定位置上用于承载校验码的像素进行解码, 得到 校验码的二进制数据, 并对图片的设定位置上用于承载文件数据的像素进行解码, 得到文 件的二进制数据。 文件生成模块 23, 具体用于根据解码模块 22解码得到的校验码的二进制数据对文件 的二进制数据进行校验, 并在校验通过后, 根据文件的二进制数据还原出相应文件。
解码模块 22, 具体用于对该图片的设定位置上用于承载图片序号和图片总数的像素 进行解码, 得到图片序号和图片总数的二进制数据, 并对该图片的设定位置上用于承载文 件数据的像素进行解码, 得到文件的二进制数据。
该终端还包括判断模块 24和发送模块 25, 判断模块 24, 用于根据解码模块 22解码 得到的图片序号和图片总数的二进制数据, 判断当前采集到的图片是否为最后一个图片。
发送模块 25, 用于当判断模块 24判断当前采集到的图片不是最后一个图片时, 向对 端终端发送信号, 以请求对端终端显示下一个图片。
解码模块 22, 具体用于对该图片的设定位置上用于承载图片序号的像素进行解码, 得到图片序号的二进制数据, 并对该图片的设定位置上用于承载文件数据的像素进行解 码, 得到文件的二进制数据。
文件生成模块 23, 具体用于根据解码模块 22解码得到图片序号的二进制数据以及解 码得到的文件的二进制数据, 按照图片序号进行文件还原。
解码模块 22, 具体用于对该图片的设定位置上用于承载色阶校对码的像素进行解码, 得到色阶校对码的二进制数据,并对该图片的设定位置上用于承载文件数据的像素进行解 码, 得到文件的二进制数据。
该终端还包括色阶校对模块 26, 色阶校对模块 26, 用于根据解码模块 22解码得到的 色阶校对码的二进制数据与标准色阶的二进制数据间的色阶校对差, 对解码模块 22解码 得到的文件的二进制数据进行校对, 得到校对后的文件的二进制数据。 基于相同的构思, 本发明实施例还提供一种终端, 如图 3所示, 该终端包括: 编码模块 31, 用于对待传输文件的二进制数据进行编码, 并根据编码结果生成图片, 所述图片的像素的多个颜色色阶对应相应的二进制数据。
显示模块 32, 用于将编码模块 31生成的图片显示在显示屏上, 以使对端终端通过图 像采集模块进行采集, 根据采集到的图片进行解码得到二进制数据, 并根据解码得到的二 进制数据还原出相应文件。
编码模块 31, 具体用于对待传输文件校验码的二进制数据进行编码, 并对待传输文 件的文件二进制数据进行编码,并根据编码后的校验码数据设置图片设定位置上用于承载 校验码的像素的色阶值, 以及根据编码后的文件数据设置图片设定位置上用于承载文件数 据的像素的色阶值。
编码模块 31, 具体用于对待传输文件图片序号和图片总数的二进制数据进行编码, 并对待传输文件的文件二进制数据进行编码,并根据编码后的图片序号和图片总数数据设 置图片设定位置上用于承载图片序号和图片总数的像素色阶值, 以及根据编码后的文件数 据设置图片设定位置上用于承载文件数据的像素的色阶值。 编码模块 31, 具体用于对待传输文件图片序号的二进制数据进行编码, 并对待传输 文件的文件二进制数据进行编码,并根据编码后的图片序号数据设置图片设定位置上用于 承载图片序号的像素色阶值, 以及根据编码后的文件数据设置图片设定位置上用于承载文 件数据的像素的色阶值。
显示模块 32, 具体用于若编码模块 31生成多个图片, 则按照预设的频率, 在显示屏 上进行图片帧切换。
编码模块 31, 具体用于对待传输文件色阶校对码的二进制数据进行编码, 并对待传 输文件的文件二进制数据进行编码,并根据编码后的色阶校对码数据设置图片设定位置上 用于承载色阶校验码的像素的色阶值, 以及根据编码后的文件数据设置图片设定位置上用 于承载文件数据的像素的色阶值。
在一个实施例中, 提供了一种文件输出方法。 图 4示出了根据本发明一个实施例的文 件输出方法 400的流程图。 如图 4所示, 方法 400包括以下步骤。
在步骤 401, 对待传输文件进行编码以生成一个或多个图片。 待传输文件与前述实施 例的待传输文件类似, 本领域技术人员可以参考前述实施例理解待传输文件, 在此不再赘 述。 在一个实施例中, 可以使用编码软件对待传输文件进行编码。 编码方式可以是任何合 适的编码方式。在本发明的实施例中, 根据待传输文件的大小以及所生成的单个图片能够 承载的数据量,可以根据待传输文件生成一个图片或将待传输文件分成多个部分并相应地 生成多个图片。 在生成多个图片的情况下, 每个图片承载待传输文件的一部分数据信息。 可以分别对待传输文件的、每个图片所对应的一部分进行编码。优选地,对待传输文件的、 不同图片所对应的部分采用相同的编码规则进行编码。
在步骤 402, 依次显示一个或多个图片, 以使得接收终端执行对于一个或多个图片中 的每一个图片的采集操作和解码操作, 以获得一个或多个图片的解码数据, 并且根据一个 或多个图片的解码数据获得待传输文件。可以在输出终端的显示屏上每次一个地显示一个 或多个图片。 输出终端的显示屏可以具有任意色阶指数, 包括单色、 256色 (8位彩色) 、 4096色 (12位彩色) 、 65536色 (16位真彩色) 以及 262144色 (18位真彩色) 等。 输 出终端的显示屏的分辨率可以是任意的, 包括 240*320像素、 320*480像素、 480*360像 素、 640*480像素、 800*480像素、 854*480像素、 960*540像素、 1280*720像素、 1920* 1080 像素等。在本发明的实施例中, 输出终端将待传输文件经编码之后生成一个或多个图片并 将一个或多个图片显示在显示屏上,显示屏的色阶指数和分辨率的组合决定了单个图片在 全屏模式下所能承载的数据量。 因此, 当显示屏的色阶指数和分辨率均较大时, 单个图片 所能承载的数据量也较大, 因此所生成的图片的数目较小。 相反, 当显示屏的色阶指数和 分辨率均较小时, 单个图片所能承载的数据量较小, 因此所生成的图片的数目较大。
利用上述输出方法, 无需在输出终端上增加额外的通信模块, 即可输出文件, 节约制 造成本。 另外, 可以避免现有蓝牙、 Wi-Fi等文件输出方式带来的电磁辐射和电磁干扰问 题, 操作更为便捷有效。 下面具体描述待传输文件的编码过程。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 包括: 根据待传输 文件的数据片段设置一个或多个图片中的对应像素的色阶值。根据所生成的图片的每个像 素能够承载的二进制数据的长度, 可以将待传输文件分为适当的数据片段。 例如, 如果所 生成的图片中的每个像素能够承载的二进制数据的长度是 18 bit, 则将待传输文件分为多 个数据片段, 每个数据片段的长度是 18 bit. 如果待传输文件的最后一个数据片段的长度 比 18 bit短, 可以在低位补充附加码 0或 1, 使得最后一个数据片段的长度等于 18 bit。然 后可以在最后一个图片中设置一个预定像素的色阶值。该预定像素承载附加码的长度和在 最后一个数据片段中的开始位置的信息。然后根据每个数据片段设置图片中的对应像素的 色阶值, 使得该对应像素的色阶值等于待传输文件的数据片段。色阶值可以来自包括红色 色阶值、 绿色色阶值和蓝色色阶值的组。 每个颜色的色阶取值范围可以是 [0, 63]。将对应 像素的色阶值设置为等于待传输文件的数据片段无需对待传输文件进行进一步的处理, 因 此方法简单高效, 能够更快地传输待传输文件。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 进一步包括: 对于 一个或多个图片中的每一个,可以根据标准色阶设置用于承载色阶校对码的一个或多个预 定像素中的每一个的色阶值。 如之前所论述的, 预定像素可以是图片的第 1、 2、 3像素。 标准色阶可以是纯红、 纯绿、 纯蓝三个颜色色阶 (例如显示屏是 18位真彩屏的情况下, 取值分别是 3fl)000、 003fl)0、 00003O 。 可以分别将第 1、 2、 3像素的色阶值设置为纯红、 纯绿、 纯蓝三个颜色的色阶值。 可选地, 用于承载色阶校对码的预定像素可以在图片的任 何合适的位置。标准色阶可以是任何其他合适的颜色色阶。色阶校对码用于在接收终端对 对图片进行解码时, 对图片的像素所承载的数据片段进行校对。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 进一步包括: 对于 一个或多个图片中的每一个,可以设置用于承载校验码的一个或多个预定像素中的每一个 的色阶值。校验码通过对其他像素的色阶值所对应的数据片段进行计算而获得。其他像素 指图片中除校验码所对应的像素之外的像素。 校验码用于在接收终端对图片进行解码时, 对图片的像素所承载的数据片段进行校验。在一个实施例中, 当图片中的其他像素的色阶 值所对应的数据片段确定之后, 计算其他像素的色阶值所对应的数据片段的校验和, 并将 校验和设置为校验码的值。 如之前所述, 可以将图片的第 4、 5、 6像素的色阶值设置为等 于校验码。还可以将任何其他合适的像素的色阶值设置为等于校验码。校验码有利于接收 终端在解码过程后所获得的最终文件和待传输文件的一致性。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 进一步包括: 对于 一个或多个图片中的每一个,设置用于承载图片序号的一个或多个预定像素中的每一个的 色阶值。图片序号用于接收终端在解码时对从各图片所获得的数据片段进行排序以按照正 确顺序拼接数据片段。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 进一步包括: 对于 一个或多个图片中的每一个,设置用于承载标识符的一个或多个预定像素中的每一个的色 阶值。标识符可以用于标识其所属的图片是否是最后一个图片。标识符有利于及时判断最 后一个图片, 避免不必要的操作。 在一个示例中, 标识符可以包括图像序号和图像总数。 图像序号和图像总数可以用于表示所生成的图片的总数和当前图片在全部图片中的位置。 根据图片序号和图像总数可以判断当前图片是否是最后一个图片。在另一个示例中, 标识 符可以简单地是 0或者 1。 在该示例中, 0可以代表当前图片不是最后一个图片, 而 1可 以代表当前图片是最后一个图片, 反之亦然。 标识符还可以用于标识其他信息。 例如, 标 识符可以表示传输开始。 如之前所论述的, 可以将图片的第 7像素设置为承载标识符。 还 将任何其他合适的像素的色阶值设置为承载标识符。
在一个实施例中, 对待传输文件进行编码以生成一个或多个图片, 进一步包括: 对于 一个或多个图片中的每一个,设置用于承载控制码的一个或多个预定像素中的每一个的色 阶值。 控制码可以包含一些操作指令, 用于控制接收终端执行相应的操作。 如之前所论述 的, 可以设置图片的第 8像素的色阶值以使得第 8像素承载控制码。还可以设置任何其他 合适的像素的色阶值以使得该像素承载控制码。
在一个实施例中, 当前图片的下一个图片是响应于来自接收终端的显示下一个图片的 请求而显示。 在一个实施例中, 在显示当前图片时, 如果接收到来自接收终端的显示下一 个图片的请求, 则显示下一个图片。 根据来自接收终端的请求而显示图片, 可以保证在接 收终端完成对当前图片的处理之后才显示下一个图片, 因此传输过程更准确可靠。在另一 个实施例中, 可以以固定的频率来依次显示多个图片。 优选地, 显示请求可以通过超声波 发送。 超声波信号可以避免噪音的产生。
在一个实施例中, 在依次显示一个或多个图片之后, 接收来自接收终端的通知文件传 输完成的信号并根据信号停止显示。 优选地, 当完成所有图片的显示之后, 等待接收终端 的指示。 当接收到来自接收终端的通知文件传输完成的信号时, 说明文件传输已经完成, 因此可以根据该信号停止显示图片。可以在传输过程出错以及接收终端未能正确地获得待 传输文件的情况下, 重新显示图片。 因此, 根据信号停止显示图片有利于提高传输过程的 准确性。
在一个实施例中, 本发明提供了一种文件传输方法。 图 5示出了根据本发明一个实施 例的文件传输方法 500的流程图。 方法 500包括以下步骤。
在步骤 501, 执行对于由输出终端所依次显示的一个或多个图片中的每一个的采集操 作和解码操作, 以获得一个或多个图片的解码数据。 采集操作可以使用摄像头实现。 摄像 头的分辨率需要满足能够清晰地分辨每个图片中的每个像素的要求。例如, 摄像头的分辨 率可以是 200万像素。
在步骤 502, 根据一个或多个图片的解码数据获得待传输文件。 一个或多个图片通过 对待传输文件进行编码而生成。如果对待传输文件进行编码所生成的图片只有一个, 则在 步骤 501中所获得解码数据即为待传输文件。如果对待传输文件进行编码所生成的图片有 多个, 则解码数据中包括待传输文件的、 每个图片所对应的一部分。 将待传输文件的、 每 个图片所对应的一部分拼接起来, 即可获得待传输文件。 输出终端与前述终端 类似, 本 领域技术人员可以参考上述关于终端 的描述理解输出终端。
上述传输方法无需在接收终端上增加额外的通信模块即可实现,节约了接收终端的制 造成本。 通过采集图片接收待传输文件, 避免了现有蓝牙、 Wi-Fi等文件传输方式带来的 电磁辐射和电磁干扰问题, 操作更为便捷有效。
优选地,一个或多个图片中的每一个的至少一部分像素中的每一个的色阶值可以等于 待传输文件的对应数据片段。如之前方法 400的编码过程中所描述的, 可以根据待传输文 件的数据片段设置一个或多个图片中的对应像素的色阶值。色阶值可以来自包括红色色阶 值、 绿色色阶值和蓝色色阶值的组。
在步骤 的执行期间, 对于每个图片执行采集操作和解码操作。在输出终端所显示 的图片只有一个的情况下,依次执行对该图片的采集操作和解码操作即可获得该图片的解 码数据。 而在输出终端所显示的图片是多个图片的情况下, 该多个图片的采集操作和解码 操作可以具有不同的执行顺序。 多个图片分为至少两组, 对于每组中的最后一个图片, 在 解码操作完成后, 如果存在下一个图片的话, 对于下一个图片的采集操作开始执行。
图 6a示出了根据本发明一个实施例的四个图片的采集操作和解码操作的执行顺序。 在本实施例中, 四个图片分成四组, 每组仅包括一个图片。 如图 6a所示, 分别对四个图 片, 即图片 、 图片 、 图片 和图片 , 执行以下操作:
在步骤 601c, 采集图片 在步骤 , 解码图片 在步骤 602c, 采集图片 在 步骤 602d,解码图片 2;在步骤 603c,采集图片 3 ;在步骤 603d,解码图片 3 ;在步骤 604c, 采集图片 在步骤 ,解码图片 。上述八个步骤按照以下顺序依次执行: 601c →602c →603c →604c 也就是说, 在本示例中, 在执行完对于一个图 片的采集操作和解码操作之后, 才开始采集以及解码下一个图片。
图 6b 示出了根据本发明另一个实施例的四个图片的采集操作和解码操作的执行顺 序。 如图 6b所示, 上述四个图片的采集操作和解码操作按照以下顺序依次执行: 601c→ 602c →603c→604c 在本示例中, 将四个图片分为两组, 图片 和图片 为第一组, 图片 和图片 为第二组。 首先对第一组中的两个图片依次执行各 自的采集操作 601c、 602c, 之后依次对这两个图片执行各自的解码操作 、 602d。 在 解码操作 、 均完成之后, 才开始执行图片 的采集操作 603c。 之后, 对第二组 中的图片采用与第一组的执行顺序类似的顺序执行采集操作和解码操作。
图 6c示出了根据本发明又一实施例的四个图片的采集操作和解码操作的执行顺序。 在本实施例中, 四个图片分为一组。 如图 6c所示, 上述四个图片的采集操作和解码操作 按照以下顺序依次执行: 601c→602c→603c→604c 。 在本示例 中, 首先依次对全部图片执行采集操作。 待最后一个图片的采集操作完成之后, 才开始解 码第一个图片。 在一个实施例中, 对于一个或多个图片中的每一个, 解码操作可以包括以下步骤。 根 据用于承载色阶校对码的一个或多个预定像素中的每一个的色阶值获得色阶校对码;并且 根据其他像素的色阶值获得所对应的数据片段。 根据色阶校对码与标准色阶之间的校对 差,对色阶校对码和所对应的数据片段进行校对。例如, 将色阶校对码与标准色阶(纯红、 纯绿、 纯蓝三个颜色的色阶) 进行校对, 计算出第 1、 2、 3像素的色阶校对差。 根据该 3 个像素的色阶校对差, 对整个图片的像素的色阶值所对应的数据片段进行校对。
具体的, 对于第 n像素来说, 校对后的色阶值可以利用以下公式计算获得: 校对后的第 n像素的色阶值 =第!1像素的色阶值-第 1像素的色阶校对差-第 2像素的色 阶校对差-第 3像素的色阶校对差;
其中, 第 1像素的色阶校对差 =第 1像素的色阶值-第 1像素的标准色阶; 第 2像素的 色阶校对差 =第 2像素的色阶值-第 2像素的标准色阶; 第 3像素的色阶校对差 =第 3像素 的色阶值-第 3像素的标准色阶。
在一个实施例中, 对于每组中的每一个图片, 解码操作可以包括以下步骤。 根据用于 承载校验码的一个或多个预定像素中的每一个的色阶值获得校验码,并且根据其他像素的 色阶值获得所对应的数据片段。根据校验码对所对应的数据片段进行校验, 以在校验未通 过的情况下重新执行对于当前组中的每一个图片的采集操作。使用校验码对其他像素的色 阶值所对应的数据片段进行校验的方法与前述实施例所采用的校验方法类似,在此不再赘 述。 当校验未通过时, 说明当前图片在传输过程中出现错误, 例如颜色失真等。 在本实施 例中, 当校验未通过时, 可以重新执行采集操作。 现结合图 6a-6c描述校验过程。 例如, 在图 6a中, 如果解码图片 1时校验未通过, 则只需重新采集图片 1。 在图 6b中, 如果解 码图片 1 时校验未通过, 则需要重新采集图片 1和图片 2。 在图 6c中, 如果解码图片 1 时校验未通过, 则需要重新采集图片 1、 图片 2、 图片 3和图片 4。 因此, 所分的组越多, 需要重新采集的图片则越少。
在一个实施例中, 方法 500进一步包括: 在执行期间, 对于每组中的最后一个图片, 在解码操作完成之后, 向输出终端发送显示下一个图片的请求。参考图 6a-6c。在图 6a中, 当 601d、 602d、 603d和 604d完成时, 均会向输出终端发送显示下一个图片的请求。 输出 终端相应地分别显示图片 2、 图片 3和图片 4。 图片 4是所有图片中的最后一个, 因此虽 然在 604d完成时, 向输出终端发送了显示下一个图片的请求, 但是输出终端可以不显示 任何图片。 在另一个实施例中, 可以在所有图片中的最后一个图片的解码操作完成时, 不 向输出终端发送显示下一个图片的请求。 优选地, 请求通过超声波发送。
在一个实施例中,一个或多个图片中的每一个包括用于承载标识符的一个或多个预定 像素。标识符用于标识所属的图片是否是最后一个图片。标识符可以包括图像序号和图像 总数。 本领域技术人员可以参考前述实施例理解标识符, 在此不再赘述。 优选地, 请求基 于标识符发送。 当标识符标识当前图片不是最后一个图片时, 可以向输出终端发送显示下 一个图片的请求。 当标识符标识当前图片是最后一个图片时, 可以不向输出终端发送显示 下一个图片的请求。
在一个实施例中, 方法 500进一步包括: 在根据一个或多个图片的解码数据获得待传 输文件之后, 向输出终端发送通知文件传输完成的信号, 以使得输出终端根据所述信号停 止显示。通知文件传输完成的信号在关于方法 400的实施例描述中已经进行了阐述, 在此 不再赘述。
在方法 400中, 可以仅根据待传输文件的数据片段设置图片中的对应像素的色阶值。 也可以分别结合色阶校对码、校验码和标识符中的一个或其任意组合来设置图片中的对应 像素的色阶值。 相应地, 在方法 500中, 可以根据编码的情况来对相应的像素进行解码。 在方法 500的解码操作中,使用色阶校对码进行校对的步骤先于使用校验码进行校验的步 骤。另外, 本领域技术人员可以理解,在方法 400中, 在对待传输文件进行编码的过程中, 可以对待传输文件进行加密、 压缩等处理。 相应地, 在方法 500中, 在对一个或多个图片 进行解码的过程中, 可以对一个或多个图片进行解密、 解压缩等处理。
在一个实施例中, 本发明提供了一种接收终端, 包括摄像头和处理器。 摄像头用于执 行对于由输出终端所依次显示的一个或多个图片中的每一个的采集操作。处理器用于执行 一个或多个图片中的每一个的解码操作, 以获得一个或多个图片的解码数据。 处理器进一 步用于根据一个或多个图片的解码数据获得待传输文件。一个或多个图片通过对待传输文 件进行编码而生成。
在一个实施例中, 本发明提供一种输出终端, 包括处理器和显示屏。 处理器用于对待 传输文件进行编码以生成一个或多个图片。 显示屏用于依次显示一个或多个图片, 以使得 接收终端执行对于一个或多个图片中的每一个的采集操作和解码操作, 以获得一个或多个 图片的解码数据, 并且根据一个或多个图片的解码数据获得待传输文件。
本领域普通技术人员可以理解,上述处理器进一步可用于实施上述相应方法的附加步 骤。 为了简洁, 在此不对处理器的附加功能进行进一步描述。
在一个实施例中,本发明提供一种包括用于文件传输的可执行程序代码的非暂时性计 算机程序产品。 可执行程序代码可操作用于: 当执行时, 执行对于由输出终端所依次显示 的一个或多个图片中的每一个图片的采集操作和解码操作, 以获得一个或多个图片的解码 数据。 进一步地, 可执行程序代码可操作用于: 当执行时, 根据一个或多个图片的解码数 据获得待传输文件。 一个或多个图片通过对待传输文件进行编码而生成。
在一个实施例中,本发明提供一种包括用于文件输出的可执行程序代码的非暂时性计 算机程序产品。 可执行程序代码可操作用于: 当执行时, 对待传输文件进行编码以生成一 个或多个图片。 进一步地, 可执行程序代码可操作用于: 当执行时, 依次显示一个或多个 图片, 以使得接收终端执行对于所述一个或多个图片中的每一个图片的采集操作和解码操 作, 以获得一个或多个图片的解码数据, 并且根据一个或多个图片的解码数据获得待传输 文件。
本领域普通技术人员可以理解,上述可执行程序代码进一步可操作用于当由处理器执 行时, 可以实施上述相应方法的所有步骤。 为了简洁, 在此不对可执行程序代码的附加功 能进行进一步描述。 注意, 代码可直接使处理器实施指定操作、 经编译以使处理器实施指 定操作、 和 /或与其他软件、 硬件、 和 /或固件元件 (例如用于实施标准功能的库) 结合以 使处理器实施指定操作。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于 实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个装置中。 上述实 施例的模块可以合并为一个模块, 也可以进一步拆分成多个子模块。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件 加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的 实施方式。基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分 可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指 令用以使得一台终端设备 (可以是手机, 个人计算机, 服务器, 或者网络设备等)执行本 发明各个实施例所述的方法。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术人员来 说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视 本发明的保护范围。

Claims

权利要求
1.一种文件传输方法, 包括:
执行对于由输出终端所依次显示的一个或多个图片中的每一个图片的采集操作 和解码操作, 以获得所述一个或多个图片的解码数据; 以及
根据所述一个或多个图片的解码数据获得待传输文件;
其中所述一个或多个图片通过对所述待传输文件进行编码而生成。
2.如权利要求 1所述的方法, 其特征在于, 所述一个或多个图片中的每一个图片 的至少一部分像素中的每一个的色阶值等于所述待传输文件的对应数据片段。
3.如权利要求 2所述的方法, 其特征在于, 所述色阶值来自包括红色色阶值、 绿 色色阶值和蓝色色阶值的组。
4.如权利要求 1所述的方法, 其特征在于, 所述多个图片分为至少两组, 对于每 组中的最后一个图片, 在所述解码操作完成后, 如果存在下一个图片的话, 对于所述 下一个图片的采集操作开始执行。
5.如权利要求 4所述的方法, 其特征在于, 对于每组中的每一个图片, 所述解码 操作包括:
根据用于承载校验码的一个或多个预定像素中的每一个的色阶值获得所述校验 码; 并且根据其他像素的色阶值获得所对应的数据片段; 以及
根据所述校验码对所述所对应的数据片段进行校验, 以在所述校验未通过的情况 下重新执行对于当前组中的每一个图片的采集操作。
6.如权利要求 4所述的方法, 其特征在于, 所述方法进一步包括:
在所述执行期间, 对于每组中的最后一个图片, 在所述解码操作完成之后, 向所 述输出终端发送显示下一个图片的请求。
7.如权利要求 6所述的方法, 其特征在于, 所述一个或多个图片中的每一个包括 用于承载标识符的一个或多个预定像素,所述标识符用于标识所属的图片是否是最后 一个图片, 所述请求基于所述标识符发送。
8.如权利要求 7所述的方法,其特征在于,所述标识符包括图像序号和图像总数。
9.如权利要求 1所述的方法, 其特征在于, 对于所述一个或多个图片中的每一个 图片, 所述解码操作包括:
根据用于承载色阶校对码的一个或多个预定像素中的每一个的色阶值获得所述 色阶校对码; 并且根据其他像素的色阶值获得所对应的数据片段; 以及 根据所述色阶校对码与标准色阶之间的校对差,对所述色阶校对码和所述所对应 的数据片段进行校对。
10.如权利要求 1 所述的方法, 其特征在于, 所述方法进一步包括: 在根据所述 一个或多个图片的解码数据获得待传输文件之后, 向所述输出终端发送通知文件传输 完成的信号, 以使得所述输出终端根据所述信号停止显示。
11.一种文件输出方法, 包括:
对待传输文件进行编码以生成一个或多个图片; 以及
依次显示所述一个或多个图片, 以使得接收终端执行对于所述一个或多个图片中 的每一个图片的采集操作和解码操作, 以获得所述一个或多个图片的解码数据, 并且 根据所述一个或多个图片的解码数据获得所述待传输文件。
12.如权利要求 1 1所述的方法, 其特征在于, 所述对待传输文件进行编码以生成 一个或多个图片, 包括:
根据所述待传输文件的数据片段设置所述一个或多个图片中的对应像素的色阶 值。
13.如权利要求 12所述的方法, 其特征在于, 所述色阶值来自包括红色色阶值、 绿色色阶值和蓝色色阶值的组。
14.如权利要求 1 1所述的方法, 其特征在于, 所述对待传输文件进行编码以生成 一个或多个图片, 包括: 对于所述一个或多个图片中的每一个, 根据标准色阶设置用 于承载色阶校对码的一个或多个预定像素中的每一个的色阶值。
15.如权利要求 1 1所述的方法, 其特征在于, 所述对待传输文件进行编码以生成 一个或多个图片, 包括: 对于所述一个或多个图片中的每一个, 设置用于承载校验码 的一个或多个预定像素中的每一个的色阶值,其中所述校验码通过对其他像素的色阶 值所对应的数据片段进行计算而获得。
16.如权利要求 1 1所述的方法, 其特征在于, 所述对待传输文件进行编码以生成 一个或多个图片, 包括: 对于所述一个或多个图片中的每一个, 设置用于承载标识符 的一个或多个预定像素中的每一个的色阶值,所述标识符用于标识所属的图片是否是 最后一个图片。
17.如权利要求 16所述的方法, 其特征在于, 所述标识符包括图像序号和图像总 数。
18.如权利要求 1 1所述的方法, 其特征在于, 所述方法进一步包括: 在依次显示 所述一个或多个图片之后,接收来自所述接收终端的通知文件传输完成的信号并根据 所述信号停止显示。
19.一种接收终端, 包括:
摄像头,用于执行对于由输出终端所依次显示的一个或多个图片中的每一个图片 的采集操作;
处理器, 用于执行对于所述一个或多个图片中的每一个图片的解码操作, 以获得 所述一个或多个图片的解码数据;根据所述一个或多个图片的解码数据获得待传输文 件;
其中所述一个或多个图片通过对所述待传输文件进行编码而生成。
20.—种输出终端, 包括:
处理器, 用于对待传输文件进行编码以生成一个或多个图片; 以及
显示屏, 用于依次显示所述一个或多个图片, 以使得接收终端执行对于所述一个 或多个图片中的每一个的采集操作和解码操作, 以获得所述一个或多个图片的解码数 据, 并且根据所述一个或多个图片的解码数据获得所述待传输文件。
PCT/CN2013/080773 2012-08-06 2013-08-02 一种数据传输方法及设备 WO2014023197A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/418,348 US9516327B2 (en) 2012-08-06 2013-08-02 Data transmission method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210276830.8A CN103581672B (zh) 2012-08-06 2012-08-06 一种数据传输方法及设备
CN201210276830.8 2012-08-06

Publications (1)

Publication Number Publication Date
WO2014023197A1 true WO2014023197A1 (zh) 2014-02-13

Family

ID=50052450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080773 WO2014023197A1 (zh) 2012-08-06 2013-08-02 一种数据传输方法及设备

Country Status (3)

Country Link
US (1) US9516327B2 (zh)
CN (1) CN103581672B (zh)
WO (1) WO2014023197A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI740300B (zh) * 2019-12-11 2021-09-21 宏碁股份有限公司 資料傳輸系統和資料傳輸方法
CN113993104A (zh) * 2021-10-26 2022-01-28 中汽创智科技有限公司 一种数据传输方法、装置、设备及存储介质
CN115883264A (zh) * 2023-03-03 2023-03-31 北京仁光科技有限公司 信息安全传输系统和信息安全传输方法

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991999B (zh) * 2015-02-15 2019-12-24 联想(北京)有限公司 信息处理方法及电子设备
CN104918059B (zh) * 2015-05-19 2018-07-20 京东方科技集团股份有限公司 图像传输方法及装置、终端设备
CN106792149B (zh) * 2016-12-14 2021-03-02 广州视源电子科技股份有限公司 图片播放方法及装置
CN108093302B (zh) * 2017-12-25 2020-05-12 北京新片场传媒股份有限公司 一种视频流文件压缩传输的方法及系统
CN110031970B (zh) * 2019-04-25 2021-08-03 理念光电(湖北)有限公司 光学镜头成像方法
CN110428475B (zh) 2019-06-21 2021-02-05 腾讯科技(深圳)有限公司 一种医学图像的分类方法、模型训练方法和服务器
CN111131833B (zh) * 2019-12-27 2022-04-19 宁波深寻信息科技有限公司 一种基于彩色图形编码及压缩算法的窄带通信传输方法
CN111899173B (zh) * 2020-07-24 2021-04-27 自然资源部第一海洋研究所 数据传输方法和装置及电子设备
CN113037465A (zh) * 2021-03-11 2021-06-25 钧捷智能(深圳)有限公司 汽车数据安全处理方法、装置、电子设备及存储介质
CN113795015B (zh) * 2021-08-17 2023-10-20 咪咕文化科技有限公司 数据传输方法、装置、设备及计算可读存储介质
CN115328539B (zh) * 2022-08-05 2023-06-02 广州斯必得电子科技有限公司 一种可编程控制的文件控制方法及系统

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710929A (zh) * 2005-07-11 2005-12-21 北京中星微电子有限公司 手持设备的数据通讯系统和方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7070103B2 (en) * 2000-01-03 2006-07-04 Tripletail Ventures, Inc. Method and apparatus for bar code data interchange
CN1317774A (zh) * 2001-05-15 2001-10-17 郭宝平 一种光电子信息加密编码方法
CN100379190C (zh) * 2005-07-19 2008-04-02 北京中星微电子有限公司 基于二维码视像传输的速率控制方法
US7663671B2 (en) * 2005-11-22 2010-02-16 Eastman Kodak Company Location based image classification with map segmentation
US8125533B2 (en) * 2007-05-08 2012-02-28 Seiko Epson Corporation Undeveloped image data developing apparatus, method for developing undeveloped image data, and computer program for developing undeveloped image data
CN101615929A (zh) * 2008-06-27 2009-12-30 鸿富锦精密工业(深圳)有限公司 数据传输、发送和接收方法
CN101944187B (zh) * 2010-09-07 2014-04-02 龚湘明 二维微型编码及其处理方法、装置
KR20140101394A (ko) * 2011-12-28 2014-08-19 인텔 코포레이션 이미지 컬렉션에 기초하여 콘텐츠를 제공하는 시스템, 방법 및 장치
US8923627B2 (en) * 2013-02-21 2014-12-30 Eastman Kodak Company Method for locating an electronic apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710929A (zh) * 2005-07-11 2005-12-21 北京中星微电子有限公司 手持设备的数据通讯系统和方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI740300B (zh) * 2019-12-11 2021-09-21 宏碁股份有限公司 資料傳輸系統和資料傳輸方法
US11159237B2 (en) 2019-12-11 2021-10-26 Acer Incorporated Data transmission system and method
CN113993104A (zh) * 2021-10-26 2022-01-28 中汽创智科技有限公司 一种数据传输方法、装置、设备及存储介质
CN113993104B (zh) * 2021-10-26 2023-12-26 中汽创智科技有限公司 一种数据传输方法、装置、设备及存储介质
CN115883264A (zh) * 2023-03-03 2023-03-31 北京仁光科技有限公司 信息安全传输系统和信息安全传输方法
CN115883264B (zh) * 2023-03-03 2024-02-06 北京仁光科技有限公司 信息安全传输系统和信息安全传输方法

Also Published As

Publication number Publication date
US20150222911A1 (en) 2015-08-06
CN103581672B (zh) 2018-09-04
US9516327B2 (en) 2016-12-06
CN103581672A (zh) 2014-02-12

Similar Documents

Publication Publication Date Title
WO2014023197A1 (zh) 一种数据传输方法及设备
US20220295027A1 (en) Projection display method and electronic device
CN107481709B (zh) 音频数据传输方法及装置
CN111580765A (zh) 投屏方法、投屏装置、存储介质、被投屏设备与投屏设备
CN111629366B (zh) 蓝牙设备间的交互方法及装置、存储介质和电子设备
US20120173744A1 (en) Wireless connection method and apparatus using image recognition in mobile communication terminal
JP2003348556A (ja) テレビ電話システムおよびその端末装置
CN110621055A (zh) 一种配网方法、装置、终端、设备、存储介质及系统
JP2012170051A (ja) 送信装置、受信装置、スクリーン画面伝送システムおよび方法
CN106851172A (zh) 摄像头的调用方法、装置及系统
CN114979755A (zh) 投屏方法、装置、终端设备及计算机可读存储介质
WO2012144815A2 (en) Apparatus and method for adjusting resolution of application in wireless terminal
WO2024012345A1 (zh) 一种投屏画面的处理方法及相关装置
KR20110139782A (ko) 이동통신 단말기 간 실시간 스트리밍을 위한 장치 및 방법
CN110149631B (zh) 一种适用于云音箱建立连接的方法及系统
KR20100018965A (ko) 이동통신단말기의 웹 페이지 제공 시스템 및 그 방법
CN113055713B (zh) 视频图像超分方法及装置、存储介质和电子设备
EP1753238A2 (en) Method of transmitting image data in video telephone mode of a wireless terminal
CN108337555B (zh) 数据的显示方法、系统及可穿戴设备
KR101341862B1 (ko) 플로우 모션 영상 촬영 방법 및 시스템
JP2932027B2 (ja) テレビ電話装置
US20080052631A1 (en) System and method for executing server applications in mobile terminal
CN106656353B (zh) 应用于智能机器人的信息传输方法和装置
CN113934388B (zh) 同步显示方法、终端及存储介质
WO2012174931A1 (zh) 参数控制方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13828698

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14418348

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31.08.2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13828698

Country of ref document: EP

Kind code of ref document: A1