CN103414743B - A kind of picture transmission method and system - Google Patents

A kind of picture transmission method and system Download PDF

Info

Publication number
CN103414743B
CN103414743B CN201310277419.7A CN201310277419A CN103414743B CN 103414743 B CN103414743 B CN 103414743B CN 201310277419 A CN201310277419 A CN 201310277419A CN 103414743 B CN103414743 B CN 103414743B
Authority
CN
China
Prior art keywords
image data
picture
pixel
required parameter
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310277419.7A
Other languages
Chinese (zh)
Other versions
CN103414743A (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 CN201310277419.7A priority Critical patent/CN103414743B/en
Publication of CN103414743A publication Critical patent/CN103414743A/en
Application granted granted Critical
Publication of CN103414743B publication Critical patent/CN103414743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of picture transmission method, including: according to the picture size preset, it is thus achieved that at least two picture required parameter;Described at least two picture required parameter is sent to server by least two link, so that described server obtains at least two image data according to described picture required parameter;The described at least two image data that described server sends is received by the link of described at least two;Described at least two image data is merged, it is thus achieved that new image data;The present invention also provides for a kind of image transmission system.The technical scheme provided according to the present invention, to improve the efficiency of transmission of server and terminal room image data.

Description

A kind of picture transmission method and system
[technical field]
The present invention relates to internet, applications field, particularly relate to a kind of picture transmission method and system.
[background technology]
At present, in terminal, the picture of display by server transport to terminal, main transmission means is all: terminal is led to Cross between server one and link the request sending acquisition picture to server, then receive server and returned by this link The image data returned.
But, the definition of the image data of current terminal request is the highest, the data of the image data of fine definition Amount is the biggest, and when network condition is bad, such as network speed relatively slow, unstable networks etc., the efficiency of transmission of image data compares Low, cause terminal cannot show image data.
[summary of the invention]
The invention provides a kind of picture transmission method and system, to improve the transmission of server and terminal room image data Efficiency.
The concrete technical scheme of the present invention is as follows:
The present invention provides a kind of picture transmission method, including:
According to the picture size preset, it is thus achieved that at least two picture required parameter;
Described at least two picture required parameter is sent to server by least two link, so that described service Device obtains at least two image data according to described picture required parameter;
The described at least two image data that described server sends is received by the link of described at least two;
Described at least two image data is merged, it is thus achieved that new image data.
In said method, described picture size is 2M×2NSquare, wherein, M is equal to the power table diagram leaf length with 2 The numerical value of Shi Suoshu power, N is equal to the numerical value of described power during the power table diagram sheet width with 2;
Described picture required parameter R=(2l, k), 1≤k≤min (M, N), 0≤l≤k-1, and l is integer.
In said method, described by the merging of described at least two image data, it is thus achieved that new image data, including:
According to the picture required parameter that each described image data is corresponding, it is thus achieved that binary data;
Described binary data is traveled through to high-order order according to low level;
If the l bit data traversed is 0, continue traversal;If the l bit data traversed is 1, with in default matrix 0th position is starting point, with 2k-lFor interval, it is thus achieved that need the abscissa of the position of filler pixels, then with the in described matrix the 0th Individual position is starting point, with 2k-lFor interval, it is thus achieved that need the vertical coordinate of the position of filler pixels;
The position in a matrix of the pixel in described image data is obtained according to described abscissa and described vertical coordinate;Described The image data that matrix has been received by for instruction;
First pixel from the pixel received starts to extract successively pixel, and will according to the pixel processing order preset The pixel filling extracted is to relevant position;
Remove the part not being filled in matrix, utilize the image data that the pixel composition of the part being filled is new.
The present invention also provides for a kind of picture transmission method, including:
Receive at least two picture required parameter that terminal is received and sent, each described picture request ginseng by least two chain Number obtains according to the picture size preset for described terminal;
At least two image data is obtained according to described at least two picture required parameter;
By described at least two image data, it is sent to described terminal by the link of described at least two.
In said method, described according to described at least two picture required parameter obtain at least two image data, including:
According to each described picture required parameter, it is thus achieved that binary data;
Described binary data is traveled through to high-order order according to low level;
If the l bit data traversed is 0, continue traversal;If the l bit data traversed is 1, it is thus achieved that complete picture Data need the coordinate of the pixel extracted, and determines the pixel retained in complete image data according to the coordinate obtained;
Other pixels in addition to taking out the pixel except retaining in complete image data.
In said method, the image data that described acquisition is complete needs the coordinate of the pixel extracted, including:
Start from 0 with 2k-lFor interval value, obtain abscissa x, described abscissa x and form abscissa set X;Described x's Span is less than or equal to the width of described complete image data;
Start from 0 with 2k-lFor interval value, obtain vertical coordinate y, described vertical coordinate y and form vertical coordinate set;Described y's Span is less than or equal to the height of described complete image data;
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, obtain pixel coordinate (x, y), x ∈ X And y ∈ Y;
Screening the coordinate of described pixel, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
The present invention also provides for a kind of image transmission system, including:
First processing unit, for according to the picture size preset, it is thus achieved that at least two picture required parameter;
Transmitting element, for described at least two picture required parameter is sent to server by least two link, So that described server obtains at least two image data according to described picture required parameter;
Second processing unit, for receiving, by the link of described at least two, the described at least two that described server sends Image data;
3rd processing unit, for merging described at least two image data, it is thus achieved that new image data.
In said system, described picture size is 2M×2NSquare, wherein, M is equal to the power table diagram leaf length with 2 The numerical value of Shi Suoshu power, N is equal to the numerical value of described power during the power table diagram sheet width with 2;
Described picture required parameter R=(2l, k), 1≤k≤min (M, N), 0≤l≤k-1, and l is integer.
In said system, described 3rd processing unit farther includes:
Data processing module, for the picture required parameter corresponding according to each described image data, it is thus achieved that binary number According to;
Spider module, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module, when the l bit data for traversing is 0, continues traversal;The l bit data traversed is 1 Time, the 0th in default matrix position is as starting point, with 2k-lFor interval, it is thus achieved that need the abscissa of the position of filler pixels, Again with the 0th position in described matrix as starting point, with 2k-lFor interval, it is thus achieved that need the vertical coordinate of the position of filler pixels;
Position acquisition module, exists for the pixel obtained in described image data according to described abscissa and described vertical coordinate Position in matrix;The image data that described matrix has been received by for instruction;
Processes pixel module, starts to extract successively pixel for first pixel from the pixel received, and according to pre- If pixel processing order by extract pixel filling to relevant position;
Picture acquisition module, removes the part not being filled in matrix, and the pixel composition utilizing the part being filled is new Image data.
The present invention also provides for a kind of image transmission system, including:
Receive unit, for receiving at least two picture required parameter that terminal is received and sent by least two chain, each Described picture required parameter is that described terminal obtains according to the picture size preset;
Processing unit, for obtaining at least two image data according to described at least two picture required parameter;
Transmitting element, for by described at least two image data, being sent to described end by the link of described at least two End.
In said system, described processing unit farther includes:
Data processing module, for according to each described picture required parameter, it is thus achieved that binary data;
Spider module, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module, for when the l bit data traversed is 0, continues traversal;When the l figure place traversed According to during for 1, it is thus achieved that complete image data needs the coordinate of the pixel extracted, and determines complete figure according to the coordinate obtained The pixel retained in sheet data;
Processes pixel module, other pixels in addition to taking out the pixel except retaining in complete image data.
In said system, described coordinate obtaining module obtains the coordinate of the pixel needing extraction in complete image data, Including:
Start from 0 with 2k-lFor interval value, obtain abscissa x, described abscissa x and form abscissa set X;Described x's Span is less than or equal to the width of described complete image data;
Start from 0 with 2k-lFor interval value, obtain vertical coordinate y, described vertical coordinate y and form vertical coordinate set;Described y's Span is less than or equal to the height of described complete image data;
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, obtain pixel coordinate (x, y), x ∈ X And y ∈ Y;
Screening the coordinate of described pixel, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
As can be seen from the above technical solutions, what the present invention provided has the advantages that
Terminal is connected by least two set up, and asks the different piece of complete image data, when from service simultaneously When device obtains image data, image data display preferentially received, when there being follow-up image data to arrive, then by this arrival Image data merge with the image data received, it is thus achieved that the higher image data of definition, finally when obtain all of During image data, terminal, by obtaining and showing complete image data, so, when network condition is bad, can improve picture The efficiency of transmission of data, it is ensured that terminal can demonstrate complete image data in time.
[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.
[detailed description of the invention]
The basic thought of the present invention is: according to the picture size preset, it is thus achieved that at least two picture required parameter;By described At least two picture required parameter is sent to server, so that described server is according to described picture by least two link Required parameter obtains at least two image data;By described at least two link receive described server send described at least Two image datas;Described at least two image data is merged, it is thus achieved that new image data.
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.
The present invention provides a kind of picture transmission method, is that the present invention realizes the processing method of terminal in picture transmission method, Fig. 1 is the schematic flow sheet that the present invention realizes the preferred embodiment one of picture transmission method, as it is shown in figure 1, the preferred embodiment Comprise the following steps:
Step S101, according to the picture size preset, it is thus achieved that at least two picture required parameter;By described at least two figure Sheet required parameter is sent to server, so that described server obtains according to described picture required parameter by least two link Obtain at least two image data.
Concrete, after user enters the interface of display picture of terminal, the picture shown by terminal will be browsed to, such as fruit dot Hit this picture shown in interface, then it represents that user asks to obtain the picture of fine definition, and terminal will be received for currently The picture display request of the image data of display;Wherein, the image data of display can be the picture in news, the street in map Picture etc. in scape picture or Search Results.
When terminal is received for the picture display request of certain image data, according to the picture size preset, generate at least Two picture required parameter R, described picture required parameter R=(2l,k);Wherein, described picture size refers to currently displaying The size of the image data of fine definition that image data is corresponding, described picture size is 2M×2NSquare, 1≤k≤ Min (M, N), wherein, picture size is equal to length width of picture and the width height of picture, wherein, length width etc. In 2M, width height is equal to 2N, this M is equal to the numerical value of described power during the power table diagram leaf length with 2, and N is equal to the power table with 2 The numerical value of described power during diagram sheet width.Such as, M is equal to 10, and N is equal to 11, then min (M, N)=10, k can take in 1 to 10 Any one integer, such as k are equal to 5.
In this preferred embodiment, the value of k needs to pre-set, and for same image data, each picture request ginseng In number R, the value of k is identical;Picture required parameter R=(2l, k) in, 0≤l≤k-1, and l is integer, therefore, generation is at least Two picture required parameters include: R=(1, k), R=(2, k), R=(4, k) ..., R=(2k-2, k), R=(2k-1,k);Terminal The number of the picture required parameter generated is equal to k, and for same image data, l in k the picture required parameter that terminal generates Value different, in each picture required parameter, the value of l is unique;Picture required parameter is for indicating in complete image data The data of different piece, and the data of every part do not have overlap, to realize asking complete picture by multiple links simultaneously The different piece of data rather than obtain the different portions in complete image data by the repeatedly request of same link Point.
Terminal, after generating at least two picture required parameter R, needs the http setting up between at least two and server Link, and linked by this at least two http, at least two picture required parameter R of generation is sent to server, is sending out While sending picture required parameter R, in addition it is also necessary to send the mark of the image data asked.Wherein, each http link is only used In sending a picture required parameter, the quantity of the http hence set up link is equal in k, the i.e. present invention, and the picture of generation please The quantity asking the http link of the quantity of parameter R, foundation is equal to k.Wherein, receiving and sending picture by least two http chain please The method seeking parameter is: terminal to server sends at least two request, and each request includes the URL address of server, picture Required parameter and the mark of image data, the picture required parameter i.e. received and sent with the l+1 http chain is R=(2l,k)。
In the present invention, the picture required parameter R sent to server is decimal data, and this decimal data can convert For binary data, i.e. represent asked image data, such as, 11 by binary data ... the binary data table of 11 Show complete image data, 00 ... 1 ... the l position of the binary data of 00 is 1, other are all 0 years old, then asked The pixel of image data is the 1/2 of complete image datak-l, it may be assumed that for picture required parameter R=(2l, k), by 2lIt is converted into After binary data, according to low level in binary data to high-order order, the value of l-1 position is 1, and the value of remaining is 0, its In, in binary data, low level is to Far Left by the rightmost of data sequence to high-order order;In picture required parameter R K represent 2lThe data amount check in the binary data obtained is converted by decimal data, if 2lConverted by decimal data and obtain The number of the binary data obtained less than k, then utilizes 0 to fill a high position for binary data.
Such as, the k preset is equal to 5, and the http that terminal is set up between 5 with server links, and generates 5 picture request ginsengs Number, wherein, the picture required parameter received and sent by the l+1 http chain is as shown in table 1:
Table 1
1st http link (l=0) R=(20, 5)=(00001,5)
2nd http link (l=1) R=(21, 5)=(00010,5)
3rd http link (l=2) R=(22, 5)=(00100,5)
4th http link (l=3) R=(23, 5)=(01000,5)
5th http link (l=4) R=(24, 5)=(10000,5)
Step S102, receives, by the link of described at least two, the described at least two picture number that described server sends According to.
Step S103, merges described at least two image data, it is thus achieved that new image data.
Concrete, terminal receives at least two image data by least two link set up from server, and terminal will The image data preferentially received is shown to user, and after receiving new image data, by this image data with have shown that Image data merges, it is thus achieved that the higher image data of definition, and after receiving all of image data, terminal is by complete for display Image data.
Owing to terminal first receives the image data of the pixel composition indicated by the picture required parameter that l value is minimum, work as end When end receives the image data of the composition of the pixel indicated by picture required parameter of l=0 from the 1st link, create one 2M ×2NMatrix Mt, the image data that this is obtained by terminal is filled into the relevant position of this matrix, and filling process services exactly Device extracts the inverse process of pixel, i.e. according to this picture required parameter R, it is thus achieved that binary data, then according to low level is to high-order Order binary data is traveled through, when the l bit data traversed is 0, continue traversal, the l bit data traversed When being 1, need filler pixels in matrix Mt, during filler pixels, first with the 0th position in matrix Mt as starting point, with 2k-lFor Every determining the abscissa of the position needing filler pixels, then with the 0th position in matrix Mt as starting point, with 2k-lDetermine for interval Need the vertical coordinate of the position of filler pixels, so that it is determined that the position that pixel is in matrix Mt, by that analogy, it is thus achieved that all pixels Position in matrix Mt;When terminal receives what the pixel indicated by the picture required parameter of l=1 formed from the 2nd link During image data, utilize above-mentioned identical filling process, this image data is filled into the relevant position of matrix, it is achieved will be from two The merging treatment of the image data that individual chain receives;The definition of the new image data that merging treatment obtains is more than appointing of receiving The definition that one image data is corresponding, the new image data that terminal demonstration obtains after merging.
Terminal often receives an image data and is just merged with the image data having shown that by this image data, it is thus achieved that clear Spending higher image data, and show the image data of this acquisition, therefore the definition of the image data of terminal demonstration gradually increases Add, until definition reaches maximum,
Such as, it is 000 when terminal obtains definition ... 00100 ... 0 (front j position is 0, and middle i-th bit is 1, last k-j-i Position be 0) image data I2Time, by image data I2It is 000 with the definition received before ... 01000 ... 0 (front j position is 0, the I-1 position is 1, and rear k-j-i+1 position is 0) image data I1Merging, generating definition is 000 ... 01100 ... 0 (front j position is 0, The i-th-1 and i-th bit are 1, and rear k-j-i position is 0) image data I3;Merging method is: enter according to the two of picture required parameter Data 000 processed ... 01000 ... 0, it is thus achieved that image data I1In all pixels position in matrix Mt, then by image data I1 In all pixel fillings in matrix Mt;Again according to the binary data 000 of picture required parameter ... 00100 ... 0, it is thus achieved that picture Data I2In all pixels position in matrix Mt, by image data I2In all pixel fillings in matrix Mt, finally go Fall the part not being filled in matrix Mt, utilize the pixel of the part having been filled with to generate image data I3
The present invention also provides for a kind of picture transmission method, is that the present invention realizes the process side of server in picture transmission method Method, Fig. 2 is the schematic flow sheet that the present invention realizes the preferred embodiment two of picture transmission method, as in figure 2 it is shown, this is preferable to carry out Example comprises the following steps:
Step S201, receives at least two picture required parameter that terminal is received and sent by least two chain, each described Picture required parameter is that described terminal obtains according to the picture size preset.
Step S202, obtains at least two image data according to described at least two picture required parameter.
Concrete, at least two picture required parameter received from terminal, server is according to each picture request ginseng Number obtains the image data that this picture required parameter is corresponding, it is thus achieved that the method for image data is:
Firstly, since terminal is in order to reduce the flow that picture required parameter is consumed, the picture required parameter R of transmission is ten Binary data, therefore, server is converted into binary data firstly the need of by picture required parameter R;Such as, picture required parameter R=(4,5), server obtains R=(00100,5) after R=(4,5) is converted to binary data.
Then, server obtains the complete picture number of correspondence in data base according to the mark of the image data received According to, described complete image data refers to the image data of the definition maximum that in data base, this mark of preservation is corresponding;Institute State image data and refer to the pixel of picture.
Then, the binary data obtained according to picture required parameter R, according to low level to high-order order, is entered by server Row traversal, if the l bit data traversed is 0, then continues traversal;If the l bit data traversed is 1, then need from Obtain extraction pixel in complete image data, before extracting pixel, need first to determine the abscissa set of pixel, it may be assumed that
Abscissa set X={x}, wherein, x=2k-l× T, T=0,1,2 ..., J, 2M-1< 2k-l× J < 2M-1;Represent: Numerical value x in abscissa set X is to start to take from 0, and each value is spaced apart 2k-l, and span is less than or equal to complete The width of image data.
Determine the vertical coordinate set of pixel again, it may be assumed that
Vertical coordinate set Y={y}, wherein, y=2k-l× T, T=0,1,2 ..., J, 2N-1< 2k-l× J < 2N-1;Represent: Numerical value y in vertical coordinate set Y is to start to take from 0, and each value is spaced apart 2k-l, and span is less than or equal to complete The height of image data.
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, it is thus achieved that and the coordinate of pixel (x, y), its In, x ∈ X and y ∈ Y, represent that the coordinate of described pixel is all combined result of x and y;The coordinate of the pixel of described acquisition is entered Row filter, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
Finally, server is after traveling through binary data, and the coordinate of the pixel that foundation determines is at complete picture Data retain the pixel of these coordinate positions, the pixel of other positions is taken out, obtain photo current according to the pixel retained Image data corresponding to required parameter R.
The two or more image data obtained according to two or more picture required parameter R is sent to terminal by server;This In, can all configure pixel processing order at server and terminal in advance, so, server can be according to default processes pixel The order pixel to extracting is queued up, and the pixel obtained after queuing up is sent to terminal, and so, terminal can be according to identical pixel Processing sequence by pixel filling to specify position;Such as, pixel processing order can be to queue up according to the sequencing of traversal, right Different pixels under same traversal order, can rank according to the order that abscissa is ascending, for abscissa Identical pixel, can rank according to the order that vertical coordinate is ascending.
It should be noted that the binary system obtained for indicating picture required parameter to convert due to l in picture required parameter R In data, numerical value is the data bit of 1, will be after picture required parameter is converted into binary data, according to low level to high-order suitable Sequence, in this binary data, the value of l-1 position is 1, and therefore the value of l is the biggest, represents 2k-lValue the least, then the pixel extracted is more Many, thus the pixel of the server image data that is sent to terminal is the most, therefore causes terminal to receive the speed of image data The slowest, so generally, terminal preferentially receives what server sent, is obtained according to the picture required parameter R that l is minimum Image data, therefore the order of the image data that terminal receives according to l in picture required parameter R corresponding to image data by little to Big order, thus ensure that terminal can be according to the image data received, the image data that display resolution is the highest.
Step S203, by described at least two image data, is sent to described terminal by the link of described at least two.
Concrete, after server at least two picture required parameter, for the most each picture required parameter, all can obtain This image data indicated by picture required parameter, the image data that then will obtain, by sending the chain of picture required parameter Connecing, be sent to terminal, therefore, server at least obtains two image datas, and is sent to terminal, often by least two link The image data that individual chain receives and sends, is based on the image data obtained from the picture required parameter that this link receives;This is the most real Executing in example, this server process each picture required parameter is independent, and therefore, each between terminal with server links Being all separate, the mark of corresponding each image data, a link is served only for transmitting a picture required parameter and depending on The image data obtained according to this picture required parameter.
Embodiment
Fig. 3 is the schematic diagram that the present invention realizes the embodiment of picture transmission method, as it is shown on figure 3, terminal is by 3 links Three picture required parameters, i.e. R=(1,3), R=(2,3) and R=(4,3) is sent to server;Then terminal is subsequently received clothes The image data of picture required parameter R=(1,3) correspondence that business device sends, image data corresponding for R=(2,3) and R=(4,3) Corresponding image data, terminal first by image data corresponding for picture required parameter R=(1,3) and picture required parameter R=(2, 3) corresponding image data merges, it is thus achieved that the image data of definition r=(3,3);Then, the picture request ginseng being successfully received Image data and the image data of definition r=(3,3) that number R=(4,3) is corresponding merge, it is thus achieved that the figure of definition r=(7,3) Sheet data, the image data of this definition r=(7,3) is the image data that definition is the highest.
For realizing said method, the present invention also provides for a kind of image transmission system, and this system is positioned at terminal, and Fig. 4 is this The structural representation of the bright preferred embodiment one realizing image transmission system, as shown in Figure 4, this system includes:
First processing unit 40, for according to the picture size preset, it is thus achieved that at least two picture required parameter;
Transmitting element 41, for being sent to service by described at least two picture required parameter by least two link Device, so that described server obtains at least two image data according to described picture required parameter;
Second processing unit 42, for by described in the link reception described server transmission of described at least two at least two Individual image data;
3rd processing unit 43, for merging described at least two image data, it is thus achieved that new image data.
Wherein, described picture size is 2M×2NSquare, wherein, M equal to 2 power table diagram leaf length time described in The numerical value of power, N is equal to the numerical value of described power during the power table diagram sheet width with 2;
Described picture required parameter R=(2l, k), 1≤k≤min (M, N), 0≤l≤k-1, and l is integer.
Wherein, described 3rd processing unit 43 farther includes:
Data processing module 430, for the picture required parameter corresponding according to each described image data, it is thus achieved that binary system Data;
Spider module 431, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module 432, when the l bit data for traversing is 0, continues traversal;The l bit data traversed When being 1, the 0th in default matrix position is as starting point, with 2k-lFor interval, it is thus achieved that need the horizontal seat of the position of filler pixels Mark, then with the 0th position in described matrix as starting point, with 2k-lFor interval, it is thus achieved that need the vertical coordinate of the position of filler pixels;
Position acquisition module 433, for obtaining the picture in described image data according to described abscissa and described vertical coordinate Element position in a matrix;The image data that described matrix has been received by for instruction;
Processes pixel module 434, starts to extract successively pixel, and foundation for first pixel from the pixel received Preset pixel processing order by extract pixel filling to relevant position;
Picture acquisition module 435, removes the part not being filled in matrix, and the pixel composition utilizing the part being filled is new Image data.
Invention also provides for a kind of image transmission system, and this system is positioned at server, and Fig. 5 is that the present invention realizes picture transfer system The structural representation of the preferred embodiment two of system, as it is shown in figure 5, this system includes:
Receive unit 50, for receiving at least two picture required parameter that terminal is received and sent by least two chain, often Individual described picture required parameter is that described terminal obtains according to the picture size preset;
Processing unit 51, for obtaining at least two image data according to described at least two picture required parameter;
Transmitting element 52, for by described at least two image data, being sent to described by the link of described at least two Terminal.
Wherein, described processing unit 51 farther includes:
Data processing module 510, for according to each described picture required parameter, it is thus achieved that binary data;
Spider module 511, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module 512, for when the l bit data traversed is 0, continues traversal;When the l position traversed When data are 1, it is thus achieved that complete image data needs the coordinate of the pixel extracted, and determines complete according to the coordinate obtained The pixel retained in image data;
Processes pixel module 513, other pictures in addition to taking out the pixel except retaining in complete image data Element.
Wherein, described coordinate obtaining module 512 obtains the coordinate of the pixel needing extraction in complete image data, bag Include:
Start from 0 with 2k-lFor interval value, obtain abscissa x, described abscissa x and form abscissa set X;Described x's Span is less than or equal to the width of described complete image data;
Start from 0 with 2k-lFor interval value, obtain vertical coordinate y, described vertical coordinate y and form vertical coordinate set;Described y's Span is less than or equal to the height of described complete image data;
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, obtain pixel coordinate (x, y), x ∈ X And y ∈ Y;
Screening the coordinate of described pixel, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
Technical scheme has following technical effect that
1, terminal is connected by least two set up, and asks the different piece of complete image data, when from clothes simultaneously When business device obtains image data, image data display preferentially received, when there being follow-up image data to arrive, then arrives this The image data come merges with the image data received, it is thus achieved that the higher image data of definition, finally all when obtaining Image data time, terminal by obtain and show complete image data, so, when network condition is bad, figure can be improved The efficiency of transmission of sheet data, it is ensured that terminal can demonstrate complete image data in time.
2, the image data received is merged generation definition higher picture number by terminal with the image data received It is to obtain on the basis of the image data of the low definition formerly obtained according to, the image data of the fine definition therefore obtained, Do not abandon the image data first obtained, reduce the waste of network traffics, and the image data of terminal request is with The image data received is different, is merged with existing image data by the image data newly received, it is possible to obtain more aobvious than current The image data that the image data that shows is apparent, is not to repeat to transmit identical image data every time, save data traffic and Bandwidth.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvement etc. done, within should be included in the scope of protection of the invention.

Claims (10)

1. a picture transmission method, it is characterised in that the method includes:
According to the picture size preset, it is thus achieved that at least two picture required parameter;Wherein, described picture size is 2M×2NSquare Pixel, M is equal to the numerical value of described power during the power table diagram leaf length with 2, and N is equal to described power during the power table diagram sheet width with 2 Numerical value, the most described picture required parameter R=(2l, k), 1≤k≤min (M, N), k are the number of picture required parameter, 0≤l ≤ k-1 and l are integer, and the l value in each picture required parameter is different;
Described at least two picture required parameter is sent to server, so that described server depends on by least two link At least two image data is obtained according to described picture required parameter;
The described at least two image data that described server sends is received by the link of described at least two;
Described at least two image data is merged, it is thus achieved that new image data.
Method the most according to claim 1, it is characterised in that described by the merging of described at least two image data, it is thus achieved that New image data, including:
According to the picture required parameter that each described image data is corresponding, it is thus achieved that binary data;
Described binary data is traveled through to high-order order according to low level;
If the l bit data traversed is 0, continue traversal;If the l bit data traversed is 1, with the in default matrix the 0th Individual position is starting point, with 2k-lFor interval, it is thus achieved that need the abscissa of the position of filler pixels, then with the in described matrix the 0th position It is set to starting point, with 2k-lFor interval, it is thus achieved that need the vertical coordinate of the position of filler pixels;
The position in a matrix of the pixel in described image data is obtained according to described abscissa and described vertical coordinate;Described matrix The image data having been received by for instruction;
First pixel from the pixel received starts to extract successively pixel, and will extract according to the pixel processing order preset Pixel filling to relevant position;
Remove the part not being filled in matrix, utilize the image data that the pixel composition of the part being filled is new.
3. a picture transmission method, it is characterised in that the method includes:
Receiving at least two picture required parameter that terminal is received and sent by least two chain, wherein, the picture size preset is 2M ×2NSquare, M is equal to the numerical value of described power during the power table diagram leaf length with 2, and N is equal to the power table diagram sheet width with 2 The numerical value of Shi Suoshu power, the most described picture required parameter R=(2l, k), 1≤k≤min (M, N), k are the individual of picture required parameter Number, 0≤l≤k-1 and l is integer, and the l value in each picture required parameter is different;
At least two image data is obtained according to described at least two picture required parameter;
By described at least two image data, it is sent to described terminal by the link of described at least two.
Method the most according to claim 3, it is characterised in that described according to the acquisition of described at least two picture required parameter At least two image data, including:
According to each described picture required parameter, it is thus achieved that binary data;
Described binary data is traveled through to high-order order according to low level;
If the l bit data traversed is 0, continue traversal;If the l bit data traversed is 1, it is thus achieved that complete image data The coordinate of the middle pixel needing to extract, and the pixel retained in complete image data is determined according to the coordinate obtained;
Other pixels in addition to taking out the pixel except retaining in complete image data.
Method the most according to claim 4, it is characterised in that need the picture extracted in the image data that described acquisition is complete The coordinate of element, including:
Start from 0 with 2k-lFor interval value, obtain abscissa x, described abscissa x and form abscissa set X;The value of described x Scope is less than or equal to the width of described complete image data;
Start from 0 with 2k-lFor interval value, obtain vertical coordinate y, described vertical coordinate y and form vertical coordinate set;The value of described y Scope is less than or equal to the height of described complete image data;
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, obtain pixel coordinate (x, y), x ∈ X and y ∈Y;
Screening the coordinate of described pixel, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
6. an image transmission system, it is characterised in that this system includes:
First processing unit, for according to the picture size preset, it is thus achieved that at least two picture required parameter;Wherein, described figure Sheet size is 2M×2NSquare, M is equal to the numerical value of described power during the power table diagram leaf length with 2, and N is equal to showing with the power table of 2 The numerical value of described power during picture width, the most described picture required parameter R=(2l, k), 1≤k≤min (M, N), k are picture request The number of parameter, 0≤l≤k-1 and l is integer, and the l value in each picture required parameter is different;
Transmitting element, for described at least two picture required parameter is sent to server by least two link, so that Obtain described server and obtain at least two image data according to described picture required parameter;
Second processing unit, for receiving, by the link of described at least two, the described at least two picture that described server sends Data;
3rd processing unit, for merging described at least two image data, it is thus achieved that new image data.
System the most according to claim 6, it is characterised in that described 3rd processing unit farther includes:
Data processing module, for the picture required parameter corresponding according to each described image data, it is thus achieved that binary data;
Spider module, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module, when the l bit data for traversing is 0, continues traversal;When the l bit data traversed is 1, The 0th in default matrix position is as starting point, with 2k-lFor interval, it is thus achieved that need the abscissa of the position of filler pixels, then with In described matrix, the 0th position is starting point, with 2k-lFor interval, it is thus achieved that need the vertical coordinate of the position of filler pixels;
Position acquisition module, for obtaining the pixel in described image data at matrix according to described abscissa and described vertical coordinate In position;The image data that described matrix has been received by for instruction;
Processes pixel module, start to extract successively pixel for first pixel from the pixel received, and according to presetting Pixel processing order by extract pixel filling to relevant position;
Picture acquisition module, removes the part not being filled in matrix, utilizes the picture that the pixel composition of the part being filled is new Data.
8. an image transmission system, it is characterised in that this system includes:
Receive unit, for receiving at least two picture required parameter that terminal is received and sent by least two chain, wherein, preset Picture size be 2M×2NSquare, M is equal to the numerical value of described power during the power table diagram leaf length with 2, and N is equal to the power with 2 The numerical value of described power, the most described picture required parameter R=(2 when representing picture widthl, k), 1≤k≤min (M, N), k are picture The number of required parameter, 0≤l≤k-1 and l is integer, and the l value in each picture required parameter is different;
Processing unit, for obtaining at least two image data according to described at least two picture required parameter;
Transmitting element, for by described at least two image data, being sent to described terminal by the link of described at least two.
System the most according to claim 8, it is characterised in that described processing unit farther includes:
Data processing module, for according to each described picture required parameter, it is thus achieved that binary data;
Spider module, for traveling through described binary data to high-order order according to low level;
Coordinate obtaining module, for when the l bit data traversed is 0, continues traversal;When the l bit data traversed is 1 Time, it is thus achieved that complete image data needs the coordinate of the pixel extracted, and determines complete picture number according to the coordinate obtained Pixel according to middle reservation;
Processes pixel module, other pixels in addition to taking out the pixel except retaining in complete image data.
System the most according to claim 9, it is characterised in that described coordinate obtaining module obtains complete image data The coordinate of the middle pixel needing to extract, including:
Start from 0 with 2k-lFor interval value, obtain abscissa x, described abscissa x and form abscissa set X;The value of described x Scope is less than or equal to the width of described complete image data;
Start from 0 with 2k-lFor interval value, obtain vertical coordinate y, described vertical coordinate y and form vertical coordinate set;The value of described y Scope is less than or equal to the height of described complete image data;
According to the abscissa set X={x} that determines and vertical coordinate set Y={y}, obtain pixel coordinate (x, y), x ∈ X and y ∈Y;
Screening the coordinate of described pixel, removing x can be by 2k-l+1Divide exactly and y can be by 2k-l+1The coordinate divided exactly.
CN201310277419.7A 2013-07-03 2013-07-03 A kind of picture transmission method and system Active CN103414743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310277419.7A CN103414743B (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
CN201310277419.7A CN103414743B (en) 2013-07-03 2013-07-03 A kind of picture transmission method and system

Publications (2)

Publication Number Publication Date
CN103414743A CN103414743A (en) 2013-11-27
CN103414743B true CN103414743B (en) 2016-12-28

Family

ID=49607729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310277419.7A Active CN103414743B (en) 2013-07-03 2013-07-03 A kind of picture transmission method and system

Country Status (1)

Country Link
CN (1) CN103414743B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027538A (en) * 2016-05-30 2016-10-12 东软集团股份有限公司 Method and device for loading picture, and method and device for sending picture resource
CN108133384A (en) * 2016-12-01 2018-06-08 腾讯科技(深圳)有限公司 A kind of content pages generation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668192A (en) * 2008-09-04 2010-03-10 新奥特(北京)视频技术有限公司 Method for transmitting images with large data volume in real time based on C/S mode
CN102932430A (en) * 2012-10-11 2013-02-13 北京小米科技有限责任公司 Method, device and system for connecting terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5335632B2 (en) * 2009-09-14 2013-11-06 富士フイルム株式会社 Web page browsing system, server, web page browsing method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668192A (en) * 2008-09-04 2010-03-10 新奥特(北京)视频技术有限公司 Method for transmitting images with large data volume in real time based on C/S mode
CN102932430A (en) * 2012-10-11 2013-02-13 北京小米科技有限责任公司 Method, device and system for connecting terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
空间矢量信息渐进传输研究与实现;杨素悦;《计算机工程》;20120731;第38卷(第13期);第266-269页 *

Also Published As

Publication number Publication date
CN103414743A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
EP3334174A1 (en) Method and device for multi-viewpoint video transmission
CN103514241B (en) picture loading method and system
CN103024598B (en) Obtain method and device that Internet video plays fluency
CN103888317B (en) A kind of unrelated network redundancy flow removing method of agreement
CN104010228B (en) A kind of apparatus and method of peer media stream for the adjust automatically based on level
CN102340536A (en) Method and device for searching points of interest
CN103095684A (en) Method obtaining attention user aggregate information, device and system
CN103986763A (en) Vector data stream transmission method and system oriented to Web visualization
CN106302230B (en) A kind of data transmission method and device
CN106254259B (en) A kind of method and device of flow control
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
CN104615765A (en) Data processing method and data processing device for browsing internet records of mobile subscribers
CN103414743B (en) A kind of picture transmission method and system
CN103414742B (en) A kind of picture transmission method and system
CN103793496A (en) Processing method and system of tile images
CN104463368B (en) For the method and apparatus for the value for determining order
CN114253710A (en) Processing method of computing request, intelligent terminal, cloud server, equipment and medium
CN103780621A (en) Sharing method and system of remote desktop
CN102802041A (en) Implement method for intelligent streaming media server supporting a plurality of real-time dynamic data sources
CN106776614A (en) The display methods and device of sharing platform
CN105117401A (en) Method, device and system for parallel transmission of pictures
CN105608128A (en) Path planning based streetscape video generation method and apparatus
CN105992280A (en) Method and device for data processing
CN103618746A (en) Pushed instruction-based communication method for client server
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