CN107734345A - A kind of image data transmission method and system - Google Patents
A kind of image data transmission method and system Download PDFInfo
- Publication number
- CN107734345A CN107734345A CN201710909294.3A CN201710909294A CN107734345A CN 107734345 A CN107734345 A CN 107734345A CN 201710909294 A CN201710909294 A CN 201710909294A CN 107734345 A CN107734345 A CN 107734345A
- Authority
- CN
- China
- Prior art keywords
- byte
- character string
- character
- byte arrays
- arrays
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Facsimiles In General (AREA)
Abstract
The invention discloses a kind of image data transmission method, including:Camera terminal obtains original image, and each original image is converted into corresponding byte arrays;The camera terminal performs the encoding operation to each byte arrays, so as to generate character string corresponding to the original image;Each character string is sent to display terminal by the camera terminal;The display terminal reads the character string, and the character string perform decoding is operated, and obtains decoded byte arrays;The decoded byte arrays are converted to decoded picture by the display terminal.The invention also discloses a kind of image data Transmission system.Using embodiments of the invention, it is possible to increase picture transfer efficiency simultaneously effectively saves the time.
Description
Technical field
The invention belongs to picture processing field, more particularly to a kind of image data transmission method and system.
Background technology
Due to the rapid development of mobile communication technology, and the matchmaker that the popularization of 4G networks, short message, multimedia message and mail etc. is traditional
Body interactive mode can not meet expressing needed for user mutual gradually, present terminal be more with voice, video,
The forms such as picture realize the interaction of user, greatly improve the experience of user and the viscosity of product.So in a mobile network such as
It is a master for needing to solve in current mobile network's technology that what, which faster transmits picture file, provides the user preferably experience,
Want problem.In existing picture transmission method, original image is typically directly sent to display terminal from camera terminal, once
When needing the picture number that transmits excessive, the way so directly transmitted can cause transmission speed slow, substantial amounts of so as to waste
Time, in addition, directly transmitting a large amount of image datas easily causes systemic breakdown.It would therefore be highly desirable to one kind can improve picture transfer
Efficiency and effectively time saving image data transmission method solves the above problems.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of image data transmission method and system, it is possible to increase picture transfer
Efficiency simultaneously effectively saves the time.
To achieve these goals, the embodiment of the present invention provides a kind of image data transmission method, including step:
S11, camera terminal obtain original image, and each original image are converted into corresponding byte arrays;
S12, the camera terminal perform the encoding operation to each byte arrays, so as to generate the original image pair
The character string answered;
Each character string is sent to display terminal by S13, the camera terminal;
S14, the display terminal read the character string, and the character string perform decoding is operated, after being decoded
Byte arrays;
The decoded byte arrays are converted to decoded picture by S15, the display terminal.
As the improvement of such scheme, the step S12 specifically includes step:
201st, the numerical value of each binary number corresponding to byte in the byte arrays is determined;
If the 202, the numerical value of binary number corresponding to the byte is more than or equal to 0, directly it is by the byte conversion
Corresponding character in ASCII character table;If the numerical value of binary number corresponding to the byte is less than 0, the byte is performed and taken
Corresponding character in ASCII character table is reconverted into after positive operation;
203rd, after each byte conversion in the byte arrays is corresponding character in ASCII character table, the word is obtained
The character string of joint number group, so as to generate character string corresponding to the original image.
As the improvement of such scheme, it is described take just operate for by the numerical value less than 0 binary number last
Digit is negated, so as to obtain the new binary number that numerical value is more than or equal to 0.
As the improvement of such scheme, the decoding operate in the step S14 includes:According to the ASCII character table by institute
The each character for stating character string is converted to binary numeral, so as to obtain decoded byte arrays.
Compared with prior art, image data transmission method will be each by camera terminal disclosed in the embodiment of the present invention
Character string is converted to after the encoded operation of original image, and each character string is sent to display terminal, then is led to
Cross the display terminal and the character string is reduced into decoded picture after decoding operate, solve straight in the prior art
Connecing transmission picture causes transmission speed slowly and directly transmits the problem of a large amount of image datas cause systemic breakdown, it is possible to increase figure
Piece efficiency of transmission simultaneously effectively saves the time.
To achieve the above object, the embodiment of the present invention also provides a kind of image data Transmission system, including camera terminal
And display terminal, the camera terminal include picture converting unit, coding unit and character string transmitting element, the display is eventually
End includes character string receiving unit, decoding unit and byte arrays converting unit;
The picture converting unit is used to each picture being converted to byte arrays, and by each byte arrays
It is sent to the coding unit;
The coding unit performs the encoding operation to each byte arrays, so as to generate character string;
The character string is sent to the display terminal by the character string transmitting element;
The character string receiving unit receives the character string that the character string transmitting element is sent;
The decoding unit carries out decoding operate to the character string, so as to obtain decoded byte arrays, and by institute
State decoded byte arrays and be sent to the byte arrays converting unit;
The decoded byte arrays are converted to decoded picture by the byte arrays converting unit.
As the improvement of such scheme, the encoding operation includes:Determine in the byte arrays corresponding to each byte
The numerical value of binary number;If the numerical value of binary number corresponding to the byte is more than or equal to 0, directly by the byte conversion
For corresponding character in ASCII character table;If the numerical value of binary number corresponding to the byte is less than 0, the byte is performed
Corresponding character in ASCII character table is reconverted into after taking positive operation;Treat that each byte conversion is ASCII character in the byte arrays
In table after corresponding character, the character string of the byte arrays is obtained, so as to generate character string corresponding to the original image.
As the improvement of such scheme, it is described take just operate for by the numerical value less than 0 binary number last
Digit is negated, so as to obtain the new binary number that numerical value is more than or equal to 0.
As the improvement of such scheme, the decoding operate includes:The decoding operate includes:According to the ASCII character
Each character of the character string is converted to binary numeral by table, so as to obtain decoded byte arrays.
Compared with prior art, image data Transmission system disclosed in the embodiment of the present invention will be with original by coding unit
Character string is converted to after the encoded operation of byte arrays corresponding to beginning picture, and by the decoding unit to the character string
Carry out decoding operate after generate decoded picture, solve in the prior art directly transmission picture cause transmission speed slowly and
Directly transmit the problem of a large amount of image datas cause systemic breakdown, it is possible to increase picture transfer efficiency simultaneously effectively saves the time.
Brief description of the drawings
Fig. 1 is a kind of flow chart of image data transmission method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of encoding operation in a kind of image data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of system block diagram of image data Transmission system provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of image data transmission method provided in an embodiment of the present invention;Including step
Suddenly:
S11, camera terminal obtain original image, and each original image are converted into corresponding byte arrays;
S12, the camera terminal perform the encoding operation to each byte arrays, so as to generate the original image pair
The character string answered;
Each character string is sent to display terminal by S13, the camera terminal;
S14, the display terminal read the character string, and the character string perform decoding is operated, after being decoded
Byte arrays;
The decoded byte arrays are converted to decoded picture by S15, the display terminal.
Preferably, the decoding operate in the step S14 includes:According to the ASCII character table by the every of the character string
One character is converted to binary numeral, so as to obtain decoded byte arrays.
Specifically, the camera terminal obtains original image, the camera terminal stores a more than original image;It is described
Camera terminal is by accessing the storage address of each original image, according to the path of each original image by each institute
State original image and be converted to binary stream data, the binary stream data are the byte arrays, include N number of byte group
Into byte arrays, N is integer, and N is more than or equal to 0.
Specifically, the camera terminal performs the encoding operation to each byte arrays successively, so as to generate each institute
State character string corresponding to byte arrays.
Specifically, each character string is sent to display terminal by the camera terminal, the display terminal reads institute
Character string is stated, corresponding ASCII character, such as the character are found in ASCII character table according to each character of the character string
One of character " n " of string, then the character " n " corresponding ASCII character in the ASCII character table is byte
" 01101110 ", so as to decoded byte arrays corresponding to each character string is converted to according to the ASCII character table.Specifically
, decoded byte arrays are converted to graphic form and are presented on the display terminal by the display terminal.
Image data transmission method provided in an embodiment of the present invention is passed through each original image by camera terminal
Character string is converted to after crossing encoding operation, and each character string is sent to display terminal, then passes through the display terminal
The character string is reduced into decoded picture after decoding operate, solving directly transmission picture in the prior art causes
Transmission speed is slow and directly transmits the problem of a large amount of image datas cause systemic breakdown, it is possible to increase picture transfer efficiency simultaneously has
Effect saves the time.
Referring to Fig. 2, Fig. 2 is the flow of encoding operation in a kind of image data transmission method provided in an embodiment of the present invention
Figure;Specifically include step:
201st, the numerical value of each binary number corresponding to byte in the byte arrays is determined;
If the 202, the numerical value of binary number corresponding to the byte is more than or equal to 0, directly it is by the byte conversion
Corresponding character in ASCII character table;If the numerical value of binary number corresponding to the byte is less than 0, the byte is performed and taken
Corresponding character in ASCII character table is reconverted into after positive operation;
203rd, after each byte conversion in the byte arrays is corresponding character in ASCII character table, the word is obtained
The character string of joint number group, so as to generate character string corresponding to the original image.
Preferably, described take just is operated for the last one digit number of binary number of the numerical value less than 0 to be negated,
So as to obtain the new binary number that numerical value is more than or equal to 0.
Specifically, a byte includes eight bit, because there was only positive eight-digit binary number in the ASCII character table
Number just has corresponding character, therefore, conversion behaviour is performed according to ASCII character table to the eight bit in the display terminal
, it is necessary to judge whether the numerical value of the eight bit is more than or equal to 0 before work.
If specifically, the numerical value of the eight bit be more than or equal to 0, it is described directly by the eight-digit binary number
It is several to switch to corresponding character according to the ASCII character table;If the numerical value of the eight bit is less than 0, to described eight
Binary number carries out taking positive operation, will the eight bit it is last think negated, for example described eight two are entered
The last one digit number of number processed is " 1 ", then the last one digit number " 1 " is negated, and negates the rear last one digit number " 1 " and becomes
For " 0 ", now, 0 eight bit of being less than is converted to eight bit more than or equal to 0.The display is eventually
Each byte in the byte arrays is obtained corresponding character by end according to the ASCII character table, so as to generate the original graph
Character string corresponding to piece.
Referring to Fig. 3, Fig. 3 is a kind of system block diagram of image data Transmission system provided in an embodiment of the present invention;Including
Camera terminal 10 and display terminal 20, the camera terminal 10 include picture converting unit 101, coding unit 102 and character
String transmitting element 103, it is single that the display terminal 20 includes character string receiving unit 201, decoding unit 202 and byte arrays conversion
Member 203;
The picture converting unit 101 is used to each picture being converted to byte arrays, and by each byte
Array is sent to the coding unit 102;
The coding unit 102 performs the encoding operation to each byte arrays, so as to generate character string;
The character string is sent to the display terminal 20 by the character string transmitting element 103;
The character string receiving unit 201 receives the character string that the character string transmitting element 103 is sent;
The decoding unit 202 carries out decoding operate to the character string, so as to obtain decoded byte arrays, and will
The decoded byte arrays are sent to the byte arrays converting unit 203;
The decoded byte arrays are converted to decoded picture by the byte arrays converting unit 203.
Preferably, encoding operation includes in the coding unit 102:Determine in the byte arrays corresponding to each byte
The numerical value of binary number;If the numerical value of binary number corresponding to the byte is more than or equal to 0, directly by the byte conversion
For corresponding character in ASCII character table;If the numerical value of binary number corresponding to the byte is less than 0, the byte is performed
Corresponding character in ASCII character table is reconverted into after taking positive operation;Treat that each byte conversion is ASCII character in the byte arrays
In table after corresponding character, the character string of the byte arrays is obtained, so as to generate character string corresponding to the original image.
Preferably, described take just is operated for the last one digit number of binary number of the numerical value less than 0 to be negated,
So as to obtain the new binary number that numerical value is more than or equal to 0.
Preferably, decoding operate includes described in the decoding unit 202:According to the ASCII character table by the character
Each character of string is converted to binary numeral, so as to obtain decoded byte arrays.
Specifically, the picture converting unit 101 is by accessing the storage address of each original image, and according to every
Each original image is converted to binary stream data by the path of one original image, and the binary stream data are
The byte arrays, include the byte arrays of N number of byte composition, N is integer, and N is more than or equal to 0.
Specifically, a byte includes eight bit, because there was only positive eight-digit binary number in the ASCII character table
Number just has corresponding character, therefore, the eight bit is performed according to ASCII character table in the coding unit 102 and turned
Change before operation, the coding unit 102 needs to judge whether the numerical value of the eight bit is more than or equal to 0.If institute
State eight bit numerical value be more than or equal to 0, then it is described directly by the eight bit according to the ASCII character table
Switch to corresponding character;If the numerical value of the eight bit is less than 0, the eight bit is carried out to take positive behaviour
Make, will the eight bit it is last think negated, for example the last one digit number of the eight bit is
" 1 ", then the last one digit number " 1 " is negated, negate the rear last one digit number " 1 " and be changed into " 0 ", it is now, described small
Eight bit in 0 is converted to eight bit more than or equal to 0.The coding unit 102 is by the byte number
Each byte obtains corresponding character according to the ASCII character table in group, so as to generate character string corresponding to the original image.
Specifically, each character string is sent to the display terminal 20 by the character string transmitting element 103.
Specifically, the character string receiving unit 201 receives the character string that the character string transmitting element 103 is sent, institute
State decoding unit 202 and read the character string, found according to each character of the character string in ASCII character table corresponding to
ASCII character, such as one of character " n " of the character string, then the character " n " is right in the ASCII character table
The ASCII character answered is byte " 01101110 ", so as to which each character string is converted into corresponding decoding according to the ASCII character table
Byte arrays afterwards.Specifically, decoded byte arrays are converted to graphic form by the byte arrays converting unit 203 is in
The present display terminal.
Image data Transmission system provided in an embodiment of the present invention will word corresponding with original image by coding unit
Be converted to character string after the encoded operation of joint number group, and after carrying out decoding operate to the character string by the decoding unit
Decoded picture is generated, solving directly transmission picture in the prior art causes transmission speed slowly and directly transmit big spirogram
Sheet data causes the problem of systemic breakdown, it is possible to increase picture transfer efficiency simultaneously effectively saves the time.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (8)
1. a kind of image data transmission method, it is characterised in that including step:
S11, camera terminal obtain original image, and each original image are converted into corresponding byte arrays;
S12, the camera terminal perform the encoding operation to each byte arrays, so as to generate corresponding to the original image
Character string;
Each character string is sent to display terminal by S13, the camera terminal;
S14, the display terminal read the character string, and the character string perform decoding is operated, and obtain decoded word
Joint number group;
The decoded byte arrays are converted to decoded picture by S15, the display terminal.
2. image data transmission method as claimed in claim 1, it is characterised in that the step S12 specifically includes step:
201st, the numerical value of each binary number corresponding to byte in the byte arrays is determined;
It is ASCII directly by the byte conversion if the 202, the numerical value of binary number corresponding to the byte is more than or equal to 0
Corresponding character in code table;If the numerical value of binary number corresponding to the byte is less than 0, the byte is performed and takes positive operation
After be reconverted into corresponding character in ASCII character table;
203rd, after each byte conversion in the byte arrays is corresponding character in ASCII character table, the byte number is obtained
The character string of group, so as to generate character string corresponding to the original image.
3. image data transmission method as claimed in claim 2, it is characterised in that described take just is operated for by the number
The last one digit number of binary number of the value less than 0 is negated, so as to obtain the new binary number that numerical value is more than or equal to 0.
4. image data transmission method as claimed in claim 1, it is characterised in that the decoding operate in the step S14
Including:Each character of the character string is converted into binary numeral according to the ASCII character table, it is decoded so as to obtain
Byte arrays.
A kind of 5. image data Transmission system, it is characterised in that including camera terminal and display terminal, the camera terminal bag
Picture converting unit, coding unit and character string transmitting element are included, the display terminal includes character string receiving unit, decoding
Unit and byte arrays converting unit;
The picture converting unit is used to each picture being converted to byte arrays, and each byte arrays are sent
To the coding unit;
The coding unit performs the encoding operation to each byte arrays, so as to generate character string;
The character string is sent to the display terminal by the character string transmitting element;
The character string receiving unit receives the character string that the character string transmitting element is sent;
The decoding unit carries out decoding operate to the character string, so as to obtain decoded byte arrays, and by the solution
Byte arrays after code are sent to the byte arrays converting unit;
The decoded byte arrays are converted to decoded picture by the byte arrays converting unit.
6. image data Transmission system as claimed in claim 5, it is characterised in that the encoding operation includes:Determine institute
State the numerical value of each binary number corresponding to byte in byte arrays;If the numerical value of binary number corresponding to the byte be more than or
Then it is corresponding character in ASCII character table directly by the byte conversion equal to 0;If binary number corresponding to the byte
Numerical value is less than 0, then the byte is performed and be reconverted into corresponding character in ASCII character table after taking positive operation;Treat the byte
After each byte conversion is corresponding character in ASCII character table in array, the character string of the byte arrays is obtained, so as to generate
Character string corresponding to the original image.
7. image data Transmission system as claimed in claim 6, it is characterised in that described take just is operated for by the number
The last one digit number of binary number of the value less than 0 is negated, so as to obtain the new binary number that numerical value is more than or equal to 0.
8. image data Transmission system as claimed in claim 5, it is characterised in that the decoding operate includes:According to institute
State ASCII character table and each character of the character string is converted into binary numeral, so as to obtain decoded byte arrays.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909294.3A CN107734345B (en) | 2017-09-29 | 2017-09-29 | Picture datamation transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909294.3A CN107734345B (en) | 2017-09-29 | 2017-09-29 | Picture datamation transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734345A true CN107734345A (en) | 2018-02-23 |
CN107734345B CN107734345B (en) | 2020-05-08 |
Family
ID=61209167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710909294.3A Active CN107734345B (en) | 2017-09-29 | 2017-09-29 | Picture datamation transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734345B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108932330A (en) * | 2018-07-05 | 2018-12-04 | 北京京东金融科技控股有限公司 | A kind of data display method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1216665A (en) * | 1996-02-20 | 1999-05-12 | 艾利森公司 | Sending graphic images to mobile terminals |
US20120154508A1 (en) * | 2004-04-06 | 2012-06-21 | Nec Corporation | Receiving and sending method of mobile tv phone and mobile tv phone terminal |
CN103841143A (en) * | 2012-11-23 | 2014-06-04 | 华为技术有限公司 | File sending method, receiving method, system and device |
CN105007452A (en) * | 2015-07-01 | 2015-10-28 | 华东师范大学 | Camera-based data transmission system |
CN105975607A (en) * | 2016-05-16 | 2016-09-28 | 乐视控股(北京)有限公司 | Picture storing and reading methods and picture storing system |
-
2017
- 2017-09-29 CN CN201710909294.3A patent/CN107734345B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1216665A (en) * | 1996-02-20 | 1999-05-12 | 艾利森公司 | Sending graphic images to mobile terminals |
US20120154508A1 (en) * | 2004-04-06 | 2012-06-21 | Nec Corporation | Receiving and sending method of mobile tv phone and mobile tv phone terminal |
CN103841143A (en) * | 2012-11-23 | 2014-06-04 | 华为技术有限公司 | File sending method, receiving method, system and device |
CN105007452A (en) * | 2015-07-01 | 2015-10-28 | 华东师范大学 | Camera-based data transmission system |
CN105975607A (en) * | 2016-05-16 | 2016-09-28 | 乐视控股(北京)有限公司 | Picture storing and reading methods and picture storing system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108932330A (en) * | 2018-07-05 | 2018-12-04 | 北京京东金融科技控股有限公司 | A kind of data display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107734345B (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2285029B1 (en) | Data transmission method, transmission system and data transmitter | |
CN108989708A (en) | The low speed signal photoelectric conversion module of all-purpose belt multimedia interface | |
CN103986966B (en) | It is a kind of that intelligent television image is pushed to the system and method that mobile terminal is shown | |
CN1571508B (en) | A method for implementing multi-frame | |
CN100425081C (en) | Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof | |
CN107561564B (en) | A kind of compression implementation method of big-dipper satellite information transmission | |
CN1340255A (en) | Header compression in real time services | |
CN102301730A (en) | Method, device and system for transmitting and processing multichannel AV | |
CN103825869A (en) | Compression and decompression method for Ethernet message header, and compression and decompression device thereof | |
WO2018103452A1 (en) | Method and device for encoding and decoding information bitmap, and storage medium | |
CN104168439B (en) | A kind of method for video coding and device | |
CN104380832A (en) | Compression devices, decompression devices, compression methods, and decompression methods | |
CN202907302U (en) | A cascade structure of a LED lamp string | |
TWI461003B (en) | Method for decoding data | |
CN1937582B (en) | Method for preprocessing data to be compressed and compressed data transmission method | |
CN110381278A (en) | Method and apparatus for color space 4:4:4 transmission | |
CN101388731B (en) | Low rate equivalent speech water sound communication technique | |
CN107734345A (en) | A kind of image data transmission method and system | |
ATE312484T1 (en) | MESSAGE BROADCASTING SYSTEM IN A RADIO COMMUNICATIONS NETWORK | |
CN102223406B (en) | System and method for network-based digitalized real-time transmission of video information | |
CN101483833B (en) | Method and apparatus for receiving urgent broadcast message | |
CN101998104B (en) | Generating method for video telephone and substitute video thereof | |
CN103516775B (en) | A kind of method and system realizing equipment room Fast synchronization | |
CN104080015A (en) | Video coding method | |
JP2004528737A (en) | Method and apparatus for transmitting and receiving data structures in a compressed format based on component frequency |
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 |