CN103414742A - Image transmission method and system - Google Patents

Image transmission method and system Download PDF

Info

Publication number
CN103414742A
CN103414742A CN2013102771790A CN201310277179A CN103414742A CN 103414742 A CN103414742 A CN 103414742A CN 2013102771790 A CN2013102771790 A CN 2013102771790A CN 201310277179 A CN201310277179 A CN 201310277179A CN 103414742 A CN103414742 A CN 103414742A
Authority
CN
China
Prior art keywords
image data
definition
pixel
data
mobile terminal
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
Application number
CN2013102771790A
Other languages
Chinese (zh)
Other versions
CN103414742B (en
Inventor
程波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310277179.0A priority Critical patent/CN103414742B/en
Publication of CN103414742A publication Critical patent/CN103414742A/en
Application granted granted Critical
Publication of CN103414742B publication Critical patent/CN103414742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an image transmission method which includes: when a mobile terminal receives an image display request initiated by a user, according to a first definition of first to-be-displayed image data and a second definition of second currently-displayed image data, a definition changing parameter is generated; the mobile terminal sends the definition changing parameter to a server; the server extracts pixels from a complete image data according to the definition changing parameter and uses the pixels to generate third image data which are to be received by the mobile terminal; and the mobile terminal combines the received third image data with the second image data so as to generate a first image number. The invention also provides an image transmission system. According to the technical scheme provided by the invention, the data flow and the bandwidth occupied by the image transmission are reduced.

Description

A kind of picture transmission method and system
[technical field]
The present invention relates to the internet, applications field, relate in particular to a kind of picture transmission method and system.
[background technology]
At present, the user browses on mobile terminal picture all is transferred to mobile terminal by server, and main transmission means is: in transmitting procedure, it is clear that the figure sector-meeting becomes gradually.
Yet, in the transmission means of prior art, for the picture that the user does not pay close attention to, the user does not need the picture of high definition, therefore when the picture of certain definition reaches front end, when the user has judged the picture that does not need high definition more, do not needed to continue the transmission picture, if continue transmission, on the one hand by occupied bandwidth, affect the transmission of other data, caused on the other hand the waste of flow.
[summary of the invention]
In view of this, the invention provides a kind of picture transmission method and system, the data traffic and the bandwidth that to reduce the picture transmission, take.
Concrete technical scheme of the present invention is as follows:
According to one preferred embodiment of the present invention, a kind of picture transmission method comprises:
When mobile terminal received the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generated the definition running parameter;
Described mobile terminal sends to server by described definition running parameter;
The described server of described mobile terminal reception from complete image data, extracting pixel, utilizes the 3rd image data of the pixel generation of extracting according to described definition running parameter;
The 3rd image data that described mobile terminal will be received and described second picture data merge, and generate described the first image data.
In said method, the second definition of the second picture data of described the first definition according to the first image data to be shown and current demonstration, generate the definition running parameter, comprising:
Utilize the first definition of the first image data to be shown to deduct the second definition of the second picture data of current demonstration, obtain described definition running parameter.
In said method, the 3rd image data that described mobile terminal will be received and described second picture data merge, and generate described the first image data, comprising:
Described mobile terminal obtains binary data according to described definition running parameter, and described binary data is traveled through to high-order order according to low level;
The l bit data that described mobile terminal traverses is 0 o'clock, continues traversal; The l bit data that described mobile terminal traverses is 1 o'clock, take the 0th position in the matrix of presetting to be starting point, with 2 k-lFor interval, obtain needing the abscissa of the position of filler pixels, then take the 0th position in described matrix and be starting point, with 2 k-lFor interval, obtain needing the ordinate of the position of filler pixels;
Described mobile terminal obtains the position of pixel in matrix according to described abscissa and described ordinate; Described matrix fill-in has described the 3rd image data;
Described mobile terminal starts to extract successively pixel from first pixel the pixel of receiving, and the pixel filling that will extract according to default processes pixel order is to relevant position;
Described mobile terminal removes the part be not filled in matrix, utilizes the pixel of the part be filled to form the first image data.
In said method, the method also comprises:
Described mobile terminal shows described the first image data;
After described mobile terminal receives the Image Display request again, judge the first definition of described the first image data;
When described the first definition is less than the definition of complete image data, send picture transmission request to server.
A kind of picture transmission method comprises:
The definition running parameter that the server mobile terminal receive sends;
Described server from complete image data, extracting pixel, utilizes the pixel of extracting to generate the 3rd image data according to described definition running parameter;
Described server sends to described mobile terminal by described the 3rd image data.
In said method, described server, comprising from complete image data, extracting pixel according to described definition running parameter:
Described server is converted into binary data by described definition running parameter, and described binary data is traveled through to high-order order according to low level;
When the l bit data traversed when described server was 0, described server continued traversal; When the l bit data traversed when described server was 1, described server obtained the coordinate that needs the pixel of extracting in complete image data, and determined according to the coordinate obtained the pixel retained in complete image data;
Described server takes out other pixels except the pixel retained in complete image data.
In said method, described server obtains the coordinate that needs the pixel of extracting in complete image data, comprising:
Since 0 with 2 k-lFor the interval value, obtain abscissa x, described abscissa x forms abscissa set X; The span of described x is less than or equal to the width of described complete image data;
Since 0 with 2 k-lFor the interval value, obtain ordinate y, described ordinate y forms the ordinate set; The span of described y is less than or equal to the height of described complete image data;
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, x ∈ X and y ∈ Y;
Coordinate to described pixel screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
A kind of image transmission system comprises:
Generation unit, for when receiving the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generate the definition running parameter;
Transmitting element, for sending to server by described definition running parameter;
Receiving element, extract pixel according to described definition running parameter from complete image data for receiving described server, utilizes the 3rd image data of the pixel generation of extracting;
Processing unit, merge for the 3rd image data and the described second picture data that will receive, generates described the first image data.
In said system, described generation unit, according to the second definition of the second picture data of the first definition of the first image data to be shown and current demonstration, generates the definition running parameter, comprising:
Utilize the first definition of the first image data to be shown to deduct the second definition of the second picture data of current demonstration, obtain described definition running parameter.
In said system, the 3rd image data that described processing unit will be received and described second picture data merge, and generate described the first image data, comprising:
According to described definition running parameter, obtain binary data, and described binary data is traveled through to high-order order according to low level;
The l bit data traversed is 0 o'clock, continues traversal; The l bit data traversed is 1 o'clock, take the 0th position in the matrix of presetting to be starting point, with 2 k-lFor interval, obtain needing the abscissa of the position of filler pixels, then take the 0th position in described matrix and be starting point, with 2 k-lFor interval, obtain needing the ordinate of the position of filler pixels;
According to described abscissa and described ordinate, obtain the position of pixel in matrix; Described matrix fill-in has described the 3rd image data;
From first pixel the pixel of receiving, start to extract successively pixel, and the pixel filling that will extract according to default processes pixel order is to relevant position;
Remove the part be not filled in matrix, utilize the pixel of the part be filled to form the first image data.
In said system, this system also comprises: display unit, be used to showing described the first image data;
Described generation unit, also for after again receiving the Image Display request, judge the first definition of described the first image data;
Transmitting element, also when when described generation unit, judging the first definition and be less than the definition of complete image data, send picture transmission request to described server.
A kind of image transmission system comprises:
Receiving element, for the definition running parameter of mobile terminal receive transmission;
Processing unit, for according to described definition running parameter, extracting pixel from complete image data, utilize the pixel of extracting to generate the 3rd image data;
Transmitting element, for sending to described mobile terminal by described the 3rd image data.
In said system, described processing unit, comprising from complete image data, extracting pixel according to described definition running parameter:
Described definition running parameter is converted into to binary data, and described binary data is traveled through to high-order order according to low level;
When the l bit data traversed is 0, continue traversal; When the l bit data traversed is 1, obtains the coordinate that needs the pixel of extracting in complete image data, and determine according to the coordinate obtained the pixel retained in complete image data;
In complete image data, take out other pixels except the pixel retained.
In said system, in the complete image data of described acquisition, need the coordinate of the pixel of extracting, comprising:
Since 0 with 2 k-lFor the interval value, obtain abscissa x, described abscissa x forms abscissa set X; The span of described x is less than or equal to the width of described complete image data;
Since 0 with 2 k-lFor the interval value, obtain ordinate y, described ordinate y forms the ordinate set; The span of described y is less than or equal to the height of described complete image data;
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, x ∈ X and y ∈ Y;
Coordinate to described pixel screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
As can be seen from the above technical solutions, the present invention has following beneficial effect:
The image data that mobile terminal will be received merges and generates the image data that definition is higher with the image data of having received, the image data of the high definition therefore obtained is to obtain on the basis of image data of the low definition that formerly obtains, do not abandon the image data first obtained, reduced the waste of network traffics, and the image data of mobile terminal request is different from the image data of having received, image data and the existing image data newly received are merged, just can obtain than the image data of current demonstration image data more clearly, not all to repeat to transmit identical image data at every turn, save data traffic and bandwidth, improve efficiency of transmission and the display efficiency of image data.
[accompanying drawing explanation]
Fig. 1 is the schematic flow sheet that the present invention realizes the preferred embodiment one of picture transmission method;
Fig. 2 is the schematic flow sheet that the present invention realizes the preferred embodiment two of picture transmission method
Fig. 3 is the schematic diagram that the present invention realizes the embodiment of picture transmission method;
Fig. 4 is the structural representation that the present invention realizes the preferred embodiment one of image transmission system
Fig. 5 is the structural representation that the present invention realizes the preferred embodiment two of image transmission system.
[embodiment]
Basic thought of the present invention is: when mobile terminal received the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generated the definition running parameter; Described mobile terminal sends to server by described definition running parameter; The described server of described mobile terminal reception from complete image data, extracting pixel, utilizes the 3rd image data of the pixel generation of extracting according to described definition running parameter; The 3rd image data that described mobile terminal will be received and described second picture data merge, and generate described the first picture number.
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
The invention provides a kind of picture transmission method, it is the processing method that the present invention realizes mobile terminal side in picture transmission method, Fig. 1 is the schematic flow sheet that the present invention realizes the preferred embodiment one of picture transmission method, and as shown in Figure 1, the preferred embodiment comprises the following steps:
Step S101, when mobile terminal receives the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generate the definition running parameter, and described definition running parameter sent to server.
Concrete, when the user enters the interface Showed Picture of mobile terminal first, in interface, Show Picture, mobile terminal is to receive for the first time the Image Display request, after as the user, entering into the interface Showed Picture, while clicking picture shown in interface, mean that the user asks to obtain the image data higher than the definition of the image data of current demonstration, mobile terminal is received the Image Display request for this image data at every turn; The image data shown can be the picture in news, streetscape picture in map or the picture in Search Results etc.
When mobile terminal was received the Image Display request for certain image data, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generated definition running parameter R, described definition running parameter
Figure BDA00003458935100071
The definition running parameter equals the difference of the second definition of the second picture data of the first definition of the first image data to be shown and current demonstration, namely
Figure BDA00003458935100072
Wherein, described the first definition
Figure BDA00003458935100073
Described the second definition
Figure BDA00003458935100074
Therefore according to the second definition of the second picture data of current demonstration, can determine k n, can set in advance step value, k N+1Equal k nAdd step value, k N+1Span be to be greater than k nAnd be less than or equal to the arbitrary integer in the k scope; Wherein, 1≤k≤min (M, N).For example, M equals 10, N and equals 11, min (M, N)=10, and k can get any one numerical value in 1 to 10, and for example k equals 5.
Generally, while receiving for the first time the Image Display request, can be to the lower image data of server request definition, namely when to server, sending the definition running parameter for the first time, the second definition of the second picture data of current demonstration
Figure BDA00003458935100081
The definition of image data that means current demonstration is minimum, wherein, and k 1Value can set in advance default value, make k 1Have initial value f, wherein, the value of k need to set in advance, and the value of k is repeatedly immobilizing in picture transmission request.
In the present invention, the definition running parameter R sent to server is decimal data, this decimal data can be converted into binary data, namely by binary data, mean the readability of the picture of asking, as 00 ... 00 binary data means that definition is minimum, and the pixel of the image data of request is 12 of complete image data M+N-2k11 ... 11 binary data means that definition is the highest, and the image data of request is complete image data, 00 ... 1 ... the l position of 00 binary data is 1, other are all 0, and the pixel of the image data of asking so is 12 of complete image data k-l, the definition R=(2 of the image data of request L+1-2 l, k), the k in definition running parameter R means to transform the data amount check in the binary data obtained; And, mobile terminal is to the server request image data time, need to be according to order request from low to high, namely first ask the image data that definition is low, ask again the image data that definition is high, for example, first ask binary data 000 ... 00111 ... 11100 ... the namely front j of 0(position is 0, middle i position is 1, rear k-j-i position is 0) image data of represented readability, ask again binary data 11 ... 11000 ... 000(namely before the j position be 1, rear k-j position is 0) image data of represented readability.
Mobile terminal, after generating the definition running parameter, sends picture transmission request to server, wherein carries the definition running parameter of generation and the sign of request image data.
Step S102, the described server of described mobile terminal reception from complete image data, extracting pixel, utilize the 3rd image data of the pixel generation of extracting according to described definition running parameter.
The 3rd image data that step S103, described mobile terminal will receive and described second picture data merge, and generate described the first image data.
Concrete, mobile terminal is after receiving that from server the definition running parameter is the 3rd image data of R, mobile terminal merges the 3rd image data and second picture data, generates the first image data to be shown, by the method for the 3rd image data and the merging of second picture data is:
Mobile terminal, when from server, obtaining image data for the first time, just creates one 2 M* 2 Nmatrix M t, matrix M t has had previously obtd image data, mobile terminal is filled into the image data of this acquisition the relevant position of this matrix, filling process is exactly the inverse process that server extracts pixel, namely according to the definition running parameter R in this picture transmission request, obtain binary data, then according to low level, to high-order order, binary data is traveled through, the l bit data traversed is 0 o'clock, continue traversal, the l bit data traversed is 1 o'clock, need to be to filler pixels in matrix M t, during filler pixels, first take the 0th position in matrix M t is starting point, with 2 k-lfor interval, determine the abscissa of the position need filler pixels, then take the 0th position in matrix M t and be starting point, with 2 k-lfor interval, determine the ordinate of the position that needs filler pixels, thereby determine the position of pixel in matrix M t, by that analogy, obtain the position of all pixels in matrix M t, then, by the pixel filling in the 3rd image data to these positions in matrix M t, during filler pixels, first from first pixel the pixel of receiving, start to extract successively pixel, the pixel filling that then will extract according to default processes pixel order is to relevant position, after all being filled into all pixels of receiving in matrix M t, remove the part be not filled in matrix M t, utilize the pixel of the part be filled to form image data.
Mobile terminal need to show the first image data obtained after merging, if the user has higher requirement to the definition of the first image data, can continue to click picture, in order to mobile terminal, to initiate the demonstration request of picture, after mobile terminal receives this Image Display request, the definition r that needs judgement the first image data, if the definition r=(2 of this first image data k-1, k), the definition that means the first image data equals the definition of complete image data, has namely reached the peak of definition; If the definition of the first image data is less than r=(2 k-1, k), mean to also have the higher image data of definition, therefore, execution step S101, mobile terminal continue to send picture transmission request to server, in order to the higher image data of server request definition, to meet consumers' demand; For example, if the definition of the first image data is r=(11111,5), be converted into decimal data by 11111, obtain r=(2 5-1,5), namely the definition of the first picture equals the definition of complete image data, and the user clicks the first image data again and can not triggering mobile terminals obtain image data more clearly from server.
For example, when mobile terminal obtains definition, be 000 ... 00111 ... 11100 ... the j position is 0 before 0(, and middle i is for being 1, and finally the k-j-i position is 0) image data I 2The time, by image data I 2With the definition of receiving before be 111 ... 11000 ... the j position is 1 before 000(, and rear k-j position is 0) image data I 1Merge, generating definition is 111 ... 111 ... 11100 ... the j+i position is 1 before 0(, and rear k-j-i position is 0) image data I 3The merging method is: according to the binary data 111 of the definition running parameter generated for the first time ... 11000 ... 000, obtain image data I 1In the position of all pixels in matrix M t, then by image data I 1In all pixel fillings in matrix M t; Again according to the binary data 000 of the definition running parameter generated for the second time ... 00111 ... 11100 ... 0, obtain image data I 2In the position of all pixels in matrix M t, by image data I 2In all pixel fillings in matrix M t, finally remove the part be not filled in matrix M t, utilize the pixel generating pictures data I of the part filled 3.
The present invention also provides a kind of picture transmission method, it is the processing method that the present invention realizes server side in picture transmission method, Fig. 2 is the schematic flow sheet that the present invention realizes the preferred embodiment two of picture transmission method, and as shown in Figure 2, the preferred embodiment comprises the following steps:
Step S201, the definition running parameter that the server mobile terminal receive sends.
Step S202, described server, utilize the pixel of extracting to generate the 3rd image data, and described the 3rd image data are sent to described mobile terminal from complete image data, extracting pixel according to described definition running parameter.
Concrete, server receives the picture transmission request of the sign of carrying definition running parameter and image data from mobile terminal, need to generate corresponding image data according to the definition running parameter, and the method for generating pictures data is:
At first, due to the flow that mobile terminal consumes in order to reduce picture transmission request, the definition running parameter R of transmission is decimal data, and therefore, at first server needs the definition parameters R is converted into to binary data; For example, definition R=(4,5) in picture transmission request, server obtains R=(00100,5) after R=(4,5) is converted to binary data.
Then, server obtains corresponding complete image data according to being identified in database of image data in picture transmission request, and described complete image data refers to the image data of definition maximum corresponding to this sign of preserving in database; Described image data refers to the pixel of picture; Server travels through the binary data obtained to high-order order according to low level, when the l bit data traversed is 0, continues traversal; When the l bit data traversed is 1, obtain in complete image data and need the pixel of extracting, before obtaining the pixel that needs extraction, need to first determine the abscissa set of pixel, that is:
Abscissa set X={x}, wherein, x=2 k-l* T, T=0,1,2 ..., J, 2 M-1<2 k-l* J<2 M-1; Mean: the numerical value x in abscissa set X gets since 0, and each value is spaced apart 2 k-l, and span is less than or equal to the width of complete image data.
Determine again the ordinate set of pixel, that is:
Ordinate set Y={y}, wherein, y=2 k-l* T, T=0,1,2 ..., J, 2 N-1<2 k-l* J<2 N-1; Mean: the numerical value y in ordinate set Y gets since 0, and each value is spaced apart 2 k-l, and span is less than or equal to the height of complete image data.
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, wherein, x ∈ X and y ∈ Y, mean that the coordinate of described pixel is all combined result of x and y; Coordinate to the described pixel obtained screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
Finally, server is after traveling through binary data, according to the coordinate of the pixel of determining, in complete image data, retain the pixel of these coordinate positions, the pixel of other positions is taken out, according to the pixel retained, form the 3rd image data, the 3rd image data obtained is exactly the corresponding image data of definition running parameter R carried in the picture transmission request of receiving.
The definition running parameter that server will obtain is that the 3rd image data that R is corresponding sends to mobile terminal; Here, can at server and mobile terminal, all configure the processes pixel order in advance, so, server can be queued up to the pixel of extracting according to default processes pixel order, the pixel obtained after queuing up is sent to mobile terminal, so, mobile terminal can arrive assigned address by pixel filling according to identical processes pixel order; For example, the processes pixel order can be queued up for the sequencing according to traversal, for the different pixels under same traversal order, can rank according to the ascending order of abscissa, for the identical pixel of abscissa, can rank according to the ascending order of ordinate.
Embodiment
Fig. 3 is the schematic diagram that the present invention realizes the embodiment of picture transmission method, and as shown in Figure 3, the definition r=of the image data of the current demonstration of mobile terminal (1,3), image data comprise 4 pixels, when the user needs the image data of high definition more, click the image data of current demonstration, then mobile terminal sends picture transmission request to server, wherein carry definition running parameter R=(2,3), then receive the definition running parameter R=(2 that server sends, 3) corresponding image data, mobile terminal is by definition running parameter R=(2,3) image data and definition r=(1,3) image data merges, and obtains the image data of definition r=(3,3), the user clicks the image data of current demonstration again, then mobile terminal sends picture transmission request to server, wherein carry definition running parameter R=(4, 3), then receive the definition r=(4 that server sends, 3) corresponding image data, mobile terminal is by definition running parameter R=(4, 3) image data and definition r=(3, 3) image data merges, obtain definition r=(7, 3) image data, this definition r=(7, 3) image data is the image data that definition is the highest, even therefore the user clicks picture again, mobile terminal can not send picture transmission request to server more yet.
For realizing said method, the present invention also provides a kind of image transmission system, and this image transmission system is positioned at mobile terminal, and Fig. 4 is the structural representation that the present invention realizes the preferred embodiment one of image transmission system, and as shown in Figure 4, this image transmission system comprises:
Generation unit 40, for when receiving the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generate the definition running parameter;
Transmitting element 41, for sending to server by described definition running parameter;
Receiving element 42, extract pixel according to described definition running parameter from complete image data for receiving described server, utilizes the 3rd image data of the pixel generation of extracting;
Processing unit 43, merge for the 3rd image data and the described second picture data that will receive, generates described the first image data.
Wherein, described generation unit 40, according to the second definition of the second picture data of the first definition of the first image data to be shown and current demonstration, generates the definition running parameter, comprising:
Utilize the first definition of the first image data to be shown to deduct the second definition of the second picture data of current demonstration, obtain described definition running parameter.
Wherein, the 3rd image data that described processing unit 43 will be received and described second picture data merge, and generate described the first image data, comprising:
According to described definition running parameter, obtain binary data, and described binary data is traveled through to high-order order according to low level;
The l bit data traversed is 0 o'clock, continues traversal; The l bit data traversed is 1 o'clock, take the 0th position in the matrix of presetting to be starting point, with 2 k-lFor interval, obtain needing the abscissa of the position of filler pixels, then take the 0th position in described matrix and be starting point, with 2 k-lFor interval, obtain needing the ordinate of the position of filler pixels;
According to described abscissa and described ordinate, obtain the position of pixel in matrix; Described matrix fill-in has described the 3rd image data;
From first pixel the pixel of receiving, start to extract successively pixel, and the pixel filling that will extract according to default processes pixel order is to relevant position;
Remove the part be not filled in matrix, utilize the pixel of the part be filled to form the first image data.
This system also comprises: display unit 44, be used to showing described the first image data;
Described generation unit 40, also for after again receiving the Image Display request, judge the first definition of described the first image data;
Transmitting element 41, also when when described generation unit 40, judging the first definition and be less than the definition of complete image data, send picture transmission request to described server.
The present invention also provides a kind of image transmission system, and this image transmission system is positioned at server, and Fig. 5 is the structural representation that the present invention realizes the preferred embodiment two of image transmission system, and as shown in Figure 5, this image transmission system comprises:
Receiving element 50, for the definition running parameter of mobile terminal receive transmission;
Processing unit 51, for according to described definition running parameter, extracting pixel from complete image data, utilize the pixel of extracting to generate the 3rd image data;
Transmitting element 52, for sending to described mobile terminal by described the 3rd image data.
Wherein, described processing unit 51, comprising from complete image data, extracting pixel according to described definition running parameter:
Described definition running parameter is converted into to binary data, and described binary data is traveled through to high-order order according to low level;
When the l bit data traversed is 0, continue traversal; When the l bit data traversed is 1, obtains the coordinate that needs the pixel of extracting in complete image data, and determine according to the coordinate obtained the pixel retained in complete image data;
In complete image data, take out other pixels except the pixel retained.
Wherein, in the complete image data of described acquisition, need the coordinate of the pixel of extracting, comprising:
Since 0 with 2 k-lFor the interval value, obtain abscissa x, described abscissa x forms abscissa set X; The span of described x is less than or equal to the width of described complete image data;
Since 0 with 2 k-lFor the interval value, obtain ordinate y, described ordinate y forms the ordinate set; The span of described y is less than or equal to the height of described complete image data;
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, x ∈ X and y ∈ Y;
Coordinate to described pixel screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
Technical scheme of the present invention has following technique effect:
The image data that mobile terminal will be received merges and generates the image data that definition is higher with the image data of having received, the image data of the high definition therefore obtained is to obtain on the basis of image data of the low definition that formerly obtains, do not abandon the image data first obtained, reduced the waste of network traffics, and the image data of mobile terminal request is different from the image data of having received, image data and the existing image data newly received are merged, just can obtain than the image data of current demonstration image data more clearly, not all to repeat to transmit identical image data at every turn, save data traffic and bandwidth, improve efficiency of transmission and the display efficiency of image data, and, when receiving the request of Client-initiated Image Display, mobile terminal is just to server request image data more clearly, therefore mobile terminal can select to determine whether obtaining the more image data of high definition according to the user, so, for the picture that the user does not need or do not pay close attention to, mobile terminal needn't continue to obtain from server the image data of high definition, save bandwidth and data traffic, reduce the impact on other transfer of data.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (14)

1. a picture transmission method, is characterized in that, the method comprises:
When mobile terminal received the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generated the definition running parameter;
Described mobile terminal sends to server by described definition running parameter;
The described server of described mobile terminal reception from complete image data, extracting pixel, utilizes the 3rd image data of the pixel generation of extracting according to described definition running parameter;
The 3rd image data that described mobile terminal will be received and described second picture data merge, and generate described the first image data.
2. method according to claim 1, is characterized in that, the second definition of the second picture data of described the first definition according to the first image data to be shown and current demonstration generates the definition running parameter, comprising:
Utilize the first definition of the first image data to be shown to deduct the second definition of the second picture data of current demonstration, obtain described definition running parameter.
3. method according to claim 2, is characterized in that, the 3rd image data that described mobile terminal will be received and described second picture data merge, and generate described the first image data, comprising:
Described mobile terminal obtains binary data according to described definition running parameter, and described binary data is traveled through to high-order order according to low level;
The l bit data that described mobile terminal traverses is 0 o'clock, continues traversal; The l bit data that described mobile terminal traverses is 1 o'clock, take the 0th position in the matrix of presetting to be starting point, with 2 k-lFor interval, obtain needing the abscissa of the position of filler pixels, then take the 0th position in described matrix and be starting point, with 2 k-lFor interval, obtain needing the ordinate of the position of filler pixels;
Described mobile terminal obtains the position of pixel in matrix according to described abscissa and described ordinate; Described matrix fill-in has described the 3rd image data;
Described mobile terminal starts to extract successively pixel from first pixel the pixel of receiving, and the pixel filling that will extract according to default processes pixel order is to relevant position;
Described mobile terminal removes the part be not filled in matrix, utilizes the pixel of the part be filled to form the first image data.
4. method according to claim 1, is characterized in that, the method also comprises:
Described mobile terminal shows described the first image data;
After described mobile terminal receives the Image Display request again, judge the first definition of described the first image data;
When described the first definition is less than the definition of complete image data, send picture transmission request to server.
5. a picture transmission method, is characterized in that, the method comprises:
The definition running parameter that the server mobile terminal receive sends;
Described server from complete image data, extracting pixel, utilizes the pixel of extracting to generate the 3rd image data according to described definition running parameter;
Described server sends to described mobile terminal by described the 3rd image data.
6. method according to claim 5, is characterized in that, described server, comprising from complete image data, extracting pixel according to described definition running parameter:
Described server is converted into binary data by described definition running parameter, and described binary data is traveled through to high-order order according to low level;
When the l bit data traversed when described server was 0, described server continued traversal; When the l bit data traversed when described server was 1, described server obtained the coordinate that needs the pixel of extracting in complete image data, and determined according to the coordinate obtained the pixel retained in complete image data;
Described server takes out other pixels except the pixel retained in complete image data.
7. method according to claim 6, is characterized in that, described server obtains the coordinate that needs the pixel of extracting in complete image data, comprising:
Since 0 with 2 k-lFor the interval value, obtain abscissa x, described abscissa x forms abscissa set X; The span of described x is less than or equal to the width of described complete image data;
Since 0 with 2 k-lFor the interval value, obtain ordinate y, described ordinate y forms the ordinate set; The span of described y is less than or equal to the height of described complete image data;
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, x ∈ X and y ∈ Y;
Coordinate to described pixel screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
8. an image transmission system, is characterized in that, this system comprises:
Generation unit, for when receiving the request of Client-initiated Image Display, the second definition according to the second picture data of the first definition of the first image data to be shown and current demonstration, generate the definition running parameter;
Transmitting element, for sending to server by described definition running parameter;
Receiving element, extract pixel according to described definition running parameter from complete image data for receiving described server, utilizes the 3rd image data of the pixel generation of extracting;
Processing unit, merge for the 3rd image data and the described second picture data that will receive, generates described the first image data.
9. system according to claim 8, is characterized in that, described generation unit, according to the second definition of the second picture data of the first definition of the first image data to be shown and current demonstration, generates the definition running parameter, comprising:
Utilize the first definition of the first image data to be shown to deduct the second definition of the second picture data of current demonstration, obtain described definition running parameter.
10. system according to claim 9, is characterized in that, the 3rd image data that described processing unit will be received and described second picture data merge, and generate described the first image data, comprising:
According to described definition running parameter, obtain binary data, and described binary data is traveled through to high-order order according to low level;
The l bit data traversed is 0 o'clock, continues traversal; The l bit data traversed is 1 o'clock, take the 0th position in the matrix of presetting to be starting point, with 2 k-lFor interval, obtain needing the abscissa of the position of filler pixels, then take the 0th position in described matrix and be starting point, with 2 k-lFor interval, obtain needing the ordinate of the position of filler pixels;
According to described abscissa and described ordinate, obtain the position of pixel in matrix; Described matrix fill-in has described the 3rd image data;
From first pixel the pixel of receiving, start to extract successively pixel, and the pixel filling that will extract according to default processes pixel order is to relevant position;
Remove the part be not filled in matrix, utilize the pixel of the part be filled to form the first image data.
11. system according to claim 8, is characterized in that,
This system also comprises: display unit, be used to showing described the first image data;
Described generation unit, also for after again receiving the Image Display request, judge the first definition of described the first image data;
Transmitting element, also when when described generation unit, judging the first definition and be less than the definition of complete image data, send picture transmission request to described server.
12. an image transmission system, is characterized in that, this system comprises:
Receiving element, for the definition running parameter of mobile terminal receive transmission;
Processing unit, for according to described definition running parameter, extracting pixel from complete image data, utilize the pixel of extracting to generate the 3rd image data;
Transmitting element, for sending to described mobile terminal by described the 3rd image data.
13. system according to claim 12, is characterized in that, described processing unit, comprising from complete image data, extracting pixel according to described definition running parameter:
Described definition running parameter is converted into to binary data, and described binary data is traveled through to high-order order according to low level;
When the l bit data traversed is 0, continue traversal; When the l bit data traversed is 1, obtains the coordinate that needs the pixel of extracting in complete image data, and determine according to the coordinate obtained the pixel retained in complete image data;
In complete image data, take out other pixels except the pixel retained.
14. system according to claim 13, is characterized in that, in the complete image data of described acquisition, needs the coordinate of the pixel of extracting, and comprising:
Since 0 with 2 k-lFor the interval value, obtain abscissa x, described abscissa x forms abscissa set X; The span of described x is less than or equal to the width of described complete image data;
Since 0 with 2 k-lFor the interval value, obtain ordinate y, described ordinate y forms the ordinate set; The span of described y is less than or equal to the height of described complete image data;
According to the abscissa set X={x} and the ordinate set Y={y} that determine, obtain the coordinate (x, y) of pixel, x ∈ X and y ∈ Y;
Coordinate to described pixel screens, and removing x can be by 2 K-l+1Divide exactly and y can be by 2 K-l+1The coordinate of dividing exactly.
CN201310277179.0A 2013-07-03 2013-07-03 A kind of picture transmission method and system Active CN103414742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310277179.0A CN103414742B (en) 2013-07-03 2013-07-03 A kind of picture transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310277179.0A CN103414742B (en) 2013-07-03 2013-07-03 A kind of picture transmission method and system

Publications (2)

Publication Number Publication Date
CN103414742A true CN103414742A (en) 2013-11-27
CN103414742B CN103414742B (en) 2016-12-28

Family

ID=49607728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310277179.0A Active CN103414742B (en) 2013-07-03 2013-07-03 A kind of picture transmission method and system

Country Status (1)

Country Link
CN (1) CN103414742B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127824A (en) * 2016-07-14 2016-11-16 北京京东尚科信息技术有限公司 Image encoding/decoding device and method
CN112242946A (en) * 2019-07-16 2021-01-19 沃兹艾普公司 Method and system for transmitting images in chunks
US11646983B1 (en) 2019-07-16 2023-05-09 Whatsapp Llc Methods and systems for transmitting an image with thumbnail data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990013966A1 (en) * 1989-05-05 1990-11-15 Motorola, Inc. Partial information transmission for data base inquiry
EP0689342A2 (en) * 1994-06-21 1995-12-27 Canon Kabushiki Kaisha Image information transmitting method and apparatus
CN1225218A (en) * 1996-07-16 1999-08-04 爱立信公司 Method for transmitting superimposed image data in a radio frequency communication system
CN1225775A (en) * 1996-07-16 1999-08-11 艾利森公司 Method for transmitting multiresolution image data in radio frequency communications system
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990013966A1 (en) * 1989-05-05 1990-11-15 Motorola, Inc. Partial information transmission for data base inquiry
EP0689342A2 (en) * 1994-06-21 1995-12-27 Canon Kabushiki Kaisha Image information transmitting method and apparatus
CN1225218A (en) * 1996-07-16 1999-08-04 爱立信公司 Method for transmitting superimposed image data in a radio frequency communication system
CN1225775A (en) * 1996-07-16 1999-08-11 艾利森公司 Method for transmitting multiresolution image data in radio frequency communications system
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127824A (en) * 2016-07-14 2016-11-16 北京京东尚科信息技术有限公司 Image encoding/decoding device and method
CN106127824B (en) * 2016-07-14 2019-07-02 北京京东尚科信息技术有限公司 Image encoding/decoding device and method
CN112242946A (en) * 2019-07-16 2021-01-19 沃兹艾普公司 Method and system for transmitting images in chunks
US11646983B1 (en) 2019-07-16 2023-05-09 Whatsapp Llc Methods and systems for transmitting an image with thumbnail data

Also Published As

Publication number Publication date
CN103414742B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103514241B (en) picture loading method and system
CN105022731B (en) A kind of method of map vector tile caching
CN102340536A (en) Method and device for searching points of interest
CN103095684A (en) Method obtaining attention user aggregate information, device and system
CN103414742A (en) Image transmission method and system
CN104052809A (en) Distribution control method and device for web testing
CN111815738A (en) Map construction method and device
CN110598058A (en) Evidence storing and processing method, device, equipment and medium of judicial chain
CN114418551A (en) Bill processing method and device, electronic equipment and storage medium
CN115546331A (en) Data rendering method and device, electronic equipment and computer readable medium
CN107784085B (en) Data list exporting method and terminal thereof
CN103414743B (en) A kind of picture transmission method and system
CN104052992A (en) Image processing method and electronic equipment
CN101626310B (en) Method, device and system for transmitting service information in trunking environment
EP3119044B1 (en) Page insertion method and device
CN103036688A (en) Accounting management method of cloud storage service used by users
CN105975572B (en) Webpage display process and device
CN102289479A (en) Method, device and equipment for determining image showing mode and showing image
JP5563545B2 (en) Information processing apparatus and method
CN105389308A (en) Display processing method and device for web pages
CN109474696B (en) Network service method, device, electronic equipment and readable storage medium
CN111078219A (en) Page display method, device and system, electronic equipment and storage medium
CN105162691A (en) Group management method for vehicle-mounted terminals, server and vehicle-mounted terminal
CN106156169B (en) Discrete data processing method and device
WO2013178055A1 (en) Method and system for accessing micro-blog album and micro-blog client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant