CN104899060A - Picture loading processing method and apparatus - Google Patents

Picture loading processing method and apparatus Download PDF

Info

Publication number
CN104899060A
CN104899060A CN201510260780.8A CN201510260780A CN104899060A CN 104899060 A CN104899060 A CN 104899060A CN 201510260780 A CN201510260780 A CN 201510260780A CN 104899060 A CN104899060 A CN 104899060A
Authority
CN
China
Prior art keywords
picture
information
data block
character area
display
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
CN201510260780.8A
Other languages
Chinese (zh)
Other versions
CN104899060B (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.)
TVM Beijing Education Technology Co Ltd
Original Assignee
TVM Beijing Education 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 TVM Beijing Education Technology Co Ltd filed Critical TVM Beijing Education Technology Co Ltd
Priority to CN201510260780.8A priority Critical patent/CN104899060B/en
Publication of CN104899060A publication Critical patent/CN104899060A/en
Application granted granted Critical
Publication of CN104899060B publication Critical patent/CN104899060B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a picture loading processing method and apparatus. The method comprises: receiving a download request sent by a client, the download request comprising identification information of a picture; if it is determined that the picture corresponding to the identification information comprises text information, determining a text region corresponding to the text information; segmenting the picture to obtain a plurality of data blocks, and marking a display sequence identifier of each of the data blocks in a text region according to a write sequence, determining coordinates information of each of the data blocks in the text region in the picture, and generating display information comprising a correspondence relationship between the display sequence identifier and the coordinates information; sending header file information comprising a picture size of the picture, and display information to the client, such that the client generates a canvas whose size is the same as the picture size, and takes precedence to load each of the data blocks in the text region on the canvas based on the write sequence according to the display information. According to the present invention, text information on the picture is preferentially loaded according to the write sequence of the text.

Description

A kind of picture loading processing method and apparatus
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of picture loading processing method and apparatus.
Background technology
Along with the fast development of infotech and the variation of Information Sharing mode, based on the download of picture and the demand of transmission increasing, due to picture and text information, to compare data volume large, more particularly comprise the large picture of writings and image content, long to the time of terminal by Internet Transmission, user needs to wait for and just can see complete picture for a long time.
In prior art, relatively the picture loading technique of main flow is progressive download image data and Shows Picture line by line, but user has just started the part can only seeing picture top when network is poor, cannot quantity of information is larger on quick obtaining picture Word message.
Summary of the invention
The embodiment of the present invention provides a kind of picture loading processing method and apparatus, for the Word message on realizing preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
A kind of picture loading processing method, comprises the following steps:
Receive the download request that client sends, described download request comprises the identification information of picture;
Determine whether the picture corresponding with described identification information comprises Word message, if so, then determine the character area corresponding with described Word message;
Split described picture and obtain multiple data block, the display sequence mark of each data block in described character area is marked at according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation;
Send to described client and comprise the header file information of the dimension of picture of described picture and described display information, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
The picture loading processing method that the present embodiment provides, know that if judge the required picture downloaded of client comprises Word message, then determine the character area corresponding with Word message, segmentation picture obtains multiple data block, the display sequence mark of each data block in character area is marked at according to sequential write, and determine the coordinate information of each data block on picture in character area, generate the display information comprising display sequence mark and coordinate information corresponding relation; The header file information and the display information that comprise dimension of picture is sent to client, the painting canvas identical with described dimension of picture is generated to make client, and in the process receiving the multiple data blocks corresponding with picture, according to display information according to sequential write preferential each data block loaded in described character area on painting canvas.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Preferably, describedly determine whether the picture corresponding with described identification information comprises Word message, comprising:
Obtain the characteristic information in described picture;
According to property data base identification, whether characteristic information is Word message; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message.
The picture loading processing method that the present embodiment provides, mated with the characteristic information extracted from picture by sample characteristics information corresponding with Word message in property data base, judge whether comprise Word message in picture, achieving the quick detection to whether carrying Word message in picture, improve the treatment effeciency that band word picture loads.
Preferably, describedly determine the character area corresponding with described Word message, comprising:
Whether the smoothness detecting the zone boundary corresponding with described Word message based on image boundary track algorithm reaches default threshold value;
If judge know that described smoothness reaches described threshold value, then using the zone boundary corresponding with described Word message as described character area;
Know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
The picture loading processing method that the present embodiment provides, default threshold value whether is reached by the smoothness detecting the zone boundary corresponding with the Word message in picture based on image boundary track algorithm, to determine corresponding character area, achieve the accurate location to character area in picture, be easy to the dividing processing of carrying out data block, improve the treatment effeciency that band word picture loads.
Preferably, the described picture of described segmentation obtains multiple data block, comprising:
Determine that described character area occupies ratio at described picture according to described dimension of picture;
Search default cut size table according to described ratio of occupying, obtain and occupy unit size corresponding to ratio with described;
Multiple data block is obtained according to picture described in described unit sized divisions.
The picture loading processing method that the present embodiment provides, obtained by the cut size table preset and occupy unit size corresponding to ratio with character area at picture, multiple data block is obtained again according to this this picture of unit sized divisions, achieve and the appropriateness of character area in picture is split, obtain the data block of coupling, ensure that degree of accuracy and efficiency that in picture, word loads.
Preferably, described to send the header file information and described display information comprising dimension of picture to described client after, further comprising the steps of:
To send each data block in described character area according to described display sequence mark to described client first, then send the data block in remaining non-legible region.
The picture loading processing method that the present embodiment provides, identify to each data block in client first transmission character area by server according to the display sequence marked the data block of character area, send the data block in remaining non-legible region again, further increasing client preferentially Load Image according to the sequential write of word on the efficiency of Word message, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
A kind of picture loading processing method, comprises the following steps:
Send download request to server, described download request comprises: the identification information of picture;
Receive the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area;
Generate the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.
The picture loading processing method that the present embodiment provides, the dimension of picture of the picture to be downloaded that client reception server sends and display information, wherein, display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, coordinate information is the coordinate on described picture of each data block in described character area, client generates the painting canvas identical with dimension of picture, and in the process of the multiple data blocks corresponding with picture of reception server transmission, search display acquisition of information successively according to the order of display sequence mark and identify corresponding coordinate information with display sequence, and the position loading corresponding on painting canvas according to coordinate information identifies corresponding data block with display sequence.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
A kind of picture loading processing device, comprising:
First receiver module, for receiving the download request that client sends, described download request comprises the identification information of picture;
Locating module, for determining whether the picture corresponding with described identification information comprises Word message, if so, then determines the character area corresponding with described Word message;
Segmentation module, obtains multiple data block for splitting described picture;
Processing module, for being marked at the display sequence mark of each data block in described character area according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation;
Respond module, the header file information of dimension of picture and described display information is comprised for sending to described client, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
The picture loading processing device that the present embodiment provides, know that if judge the required picture downloaded of client comprises Word message, then determine the character area corresponding with Word message, segmentation picture obtains multiple data block, the display sequence mark of each data block in character area is marked at according to sequential write, and determine the coordinate information of each data block on picture in character area, generate the display information comprising display sequence mark and coordinate information corresponding relation; The header file information and the display information that comprise dimension of picture is sent to client, the painting canvas identical with described dimension of picture is generated to make client, and in the process receiving the multiple data blocks corresponding with picture, according to display information according to sequential write preferential each data block loaded in described character area on painting canvas.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Preferably, described locating module, comprising:
Acquiring unit, for obtaining the characteristic information in described picture;
Whether matching unit is Word message for characteristic information according to property data base identification; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message;
Whether detecting unit, reach default threshold value for the smoothness detecting the zone boundary corresponding with described Word message based on image boundary track algorithm;
First determining unit, if for judge know that described smoothness reaches described threshold value, then using the zone boundary corresponding with described Word message as described character area; Know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
The picture loading processing device that the present embodiment provides, mated with the characteristic information extracted from picture by sample characteristics information corresponding with Word message in property data base, judge whether comprise Word message in picture, achieve the quick detection to whether carrying Word message in picture, improve the treatment effeciency that band word picture loads, and whether reach default threshold value by the smoothness detecting the zone boundary corresponding with the Word message in picture based on image boundary track algorithm, to determine corresponding character area, achieve the accurate location to character area in picture, be easy to the dividing processing of carrying out data block, improve the treatment effeciency that band word picture loads.
Preferably, described segmentation module, comprising:
Second determining unit, for determining that according to described dimension of picture described character area occupies ratio at described picture;
Query unit, searches default cut size table for occupying ratio described in basis, obtains and occupies unit size corresponding to ratio with described;
Division unit, for obtaining multiple data block according to picture described in described unit sized divisions.
The picture loading processing device that the present embodiment provides, obtained by the cut size table preset and occupy unit size corresponding to ratio with character area at picture, multiple data block is obtained again according to this this picture of unit sized divisions, achieve and the appropriateness of character area in picture is split, obtain the data block of coupling, ensure that degree of accuracy and efficiency that in picture, word loads.
Preferably, described device also comprises:
Sending module, for send each data block in described character area to described client first according to described display sequence mark, is sending the data block in remaining non-legible region.
The picture loading processing device that the present embodiment provides, identify to each data block in client first transmission character area by server according to the display sequence marked the data block of character area, send the data block in remaining non-legible region again, further increasing client preferentially Load Image according to the sequential write of word on the efficiency of Word message, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
A kind of picture loading processing device, comprising:
Request module, for sending download request to server, described download request comprises: the identification information of picture;
Second receiver module, for receiving the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area;
Display module, for generating the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
The picture loading processing device that the present embodiment provides, the dimension of picture of the picture to be downloaded that client reception server sends and display information, wherein, display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, coordinate information is the coordinate on described picture of each data block in described character area, client generates the painting canvas identical with dimension of picture, and in the process of the multiple data blocks corresponding with picture of reception server transmission, search display acquisition of information successively according to the order of display sequence mark and identify corresponding coordinate information with display sequence, and the position loading corresponding on painting canvas according to coordinate information identifies corresponding data block with display sequence.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the picture loading processing method of the embodiment of the present invention one;
Fig. 2 is the process flow diagram of the picture loading processing method of the embodiment of the present invention two;
Fig. 3 is the process flow diagram of the picture loading processing method of the embodiment of the present invention three;
Fig. 4 is the process flow diagram of the picture loading processing method of the embodiment of the present invention four;
Fig. 5 is the process flow diagram of the picture loading processing method of the embodiment of the present invention six;
Fig. 6 is the structural representation of the picture loading processing device of the embodiment of the present invention seven;
Fig. 7 is the structural representation of the picture loading processing device of the embodiment of the present invention eight;
Fig. 8 is the structural representation of the picture loading processing device of the embodiment of the present invention nine;
Fig. 9 is the structural representation of the picture loading processing device of the embodiment of the present invention ten;
Figure 10 is the structural representation of the picture loading processing device of the embodiment of the present invention 11.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the process flow diagram of the picture loading processing method of the embodiment of the present invention one, and as shown in Figure 1, the present embodiment is configured to illustrate in server with this picture loading processing method.This picture loading processing method can comprise following several step:
Step 101, receive the download request that client sends, described download request comprises the identification information of picture;
When user needs download pictures, send download request by user end to server, this download request comprises; The identification information of picture to be downloaded, server carries out the download request received resolving the identification information obtaining picture to be downloaded.
Step 102, determines whether the picture corresponding with described identification information comprises Word message, if so, then determines the character area corresponding with described Word message;
Server obtains the picture corresponding with this identification information, identifies the content on this picture, judges whether comprise Word message in this image content, knows in this image content and comprises Word message, then determine the character area corresponding with this Word message if judge.
Step 103, split described picture and obtain multiple data block, the display sequence mark of each data block in described character area is marked at according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation;
First, server carries out segmentation to picture and obtains multiple data block, determine and the data block corresponding to above-mentioned character area, and the data block corresponding with character area to these marks, mark mode is the sequential write according to word particularly, such as from top to bottom, or from left to right, be marked at the display sequence mark of each data block in this character area, display sequence mark is used to indicate the DISPLAY ORDER of client to the data block of character area.
Then, with the horizontal and vertical coordinate axis of this picture for reference coordinate axle, determine the coordinate information of each data block on this picture in this character area, in order to represent the position of this data block on this picture, coordinate information can comprise: the lateral coordinates of data block on this picture and longitudinal coordinate.
Server, according to the display sequence mark of data block each in character area and coordinate information, generates the display information comprising display sequence mark and coordinate information corresponding relation.
Step 104, send to described client and comprise the header file information of the dimension of picture of described picture and described display information, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
Server sends to client and comprises the header file information of the dimension of picture of picture to be downloaded and the display information corresponding with data block in character area.First, client carries out the header file information received resolving the dimension of picture obtaining picture to be downloaded, and generates the painting canvas identical with this dimension of picture.
Then, client according to the display information received in advance, server is sent, the data block corresponding with picture to be downloaded load.Concrete loading procedure is: because the display sequence mark in display information is that server side marks each data block in character area according to the sequential write of word in advance, be used to indicate the DISPLAY ORDER of client to the data block of character area in picture, therefore, client is according to the display sequence mark in display information, search from the data block that server has sent and identify corresponding data block with display sequence, know if judge and receive this data block, then obtain from display information and identify corresponding coordinate information with this display sequence, namely the coordinate information of this data block on picture is obtained, and this data block is carried in position corresponding with coordinate information on painting canvas, thus client is according to sequential write on painting canvas the preferential each data block that load character area in of this display information according to word in character area, Word message on preferentially Showing Picture to user.
The picture loading processing method that the present embodiment provides, know that if judge the required picture downloaded of client comprises Word message, then determine the character area corresponding with Word message, segmentation picture obtains multiple data block, the display sequence mark of each data block in character area is marked at according to sequential write, and determine the coordinate information of each data block on picture in character area, generate the display information comprising display sequence mark and coordinate information corresponding relation; The header file information and the display information that comprise dimension of picture is sent to client, the painting canvas identical with described dimension of picture is generated to make client, and in the process receiving the multiple data blocks corresponding with picture, according to display information according to sequential write preferential each data block loaded in described character area on painting canvas.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Fig. 2 is the process flow diagram of the picture loading processing method of the embodiment of the present invention two, on above-mentioned basis embodiment illustrated in fig. 1, as shown in Figure 2, determines that the specific implementation whether picture corresponding with described identification information comprises Word message is in step 102:
Step 201, obtains the characteristic information in picture;
Extract the characteristic information in picture to be downloaded, illustrate, this characteristic information comprises: local binary patterns LBPH feature, grey level histogram feature, or histogram of gradients feature, can select according to application needs.
Step 202, according to property data base identification, whether characteristic information is Word message; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message.
Sample characteristics information corresponding with Word message in property data base is mated with the characteristic information extracted from picture, if the match is successful, then judges to know in picture and comprise Word message; If it fails to match, then judge to know in picture and do not comprise Word message.
The picture loading processing method that the present embodiment provides, mated with the characteristic information extracted from picture by sample characteristics information corresponding with Word message in property data base, judge whether comprise Word message in picture, achieving the quick detection to whether carrying Word message in picture, improve the treatment effeciency that band word picture loads.
Fig. 3 is the process flow diagram of the picture loading processing method of the embodiment of the present invention three, on above-mentioned basis embodiment illustrated in fig. 1, as shown in Figure 3, determines that the specific implementation of the character area corresponding with described Word message is in step 102:
Step 301, whether the smoothness detecting the zone boundary corresponding with the Word message in picture based on image boundary track algorithm reaches default threshold value;
If server judges to know in picture to there is Word message, first, obtained the smoothness of the zone boundary corresponding with this Word message by image boundary track algorithm.Illustrate, image boundary track algorithm comprises the image boundary track algorithm based on two-value, and based on the image boundary track algorithm etc. of small echo, can need select according to the application of reality.
Then, judge whether the smoothness of this character area reaches default threshold value, it should be noted that different image boundary track algorithms is preset with different threshold values, therefore, the smoothness of acquisition compares with corresponding threshold value by the algorithm according to adopting.
Step 302, know that described smoothness reaches described threshold value if judge, then using the zone boundary corresponding with described Word message as described character area, know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
When judging to know the threshold value that the smoothness of the zone boundary corresponding with this Word message reaches default, then dividing processing is easily carried out in declare area border, directly using the zone boundary corresponding with Word message as primary importance region.
When judging to know that the smoothness of the zone boundary corresponding with this Word message does not reach default threshold value, then declare area border is not easy to carry out dividing processing, the smooth region corresponding with zone boundary can be determined according to the compensating parameter preset, and then using smooth region as character area.
The picture loading processing method that the present embodiment provides, default threshold value whether is reached by the smoothness detecting the zone boundary corresponding with the Word message in picture based on image boundary track algorithm, to determine corresponding character area, achieve the accurate location to character area in picture, be easy to the dividing processing of carrying out data block, improve the treatment effeciency that band word picture loads.
Fig. 4 is the process flow diagram of the picture loading processing method of the embodiment of the present invention four, and on above-mentioned basis embodiment illustrated in fig. 1, as shown in Figure 4, splitting the specific implementation that described picture obtains multiple data block described in step 103 is:
Step 401, occupies ratio according to character area in dimension of picture determination picture at described picture;
Server obtains character area in picture and occupy ratio in this picture, concrete, can obtain the area of picture according to dimension of picture, using the ratio of character area area and picture area as occupying ratio.
Step 402, searches default cut size table according to described ratio of occupying, and obtains and occupies unit size corresponding to ratio with described;
Server is according in picture to be downloaded, and character area occupies ratio in this picture, searches the cut size table prestored, and obtains and occupies unit size corresponding to ratio with this.The cut size table that this prestores includes the corresponding relation that occupy ratio and unit size of character area at this picture, illustrate: if character area this picture to occupy ratio little, corresponding unit size is also little, if character area this picture to occupy ratio large, corresponding unit size is also large, thus can according to segmentation character area being carried out to appropriateness, ensure when character area is little, also can carry out effectively segmentation to character area and obtain multiple data block, when character area is large, also can not to character area over-segmentation, but appropriateness segmentation obtains the data block of suitable quantity.
Step 403, obtains multiple data block according to picture described in described unit sized divisions.
The picture loading processing method that the present embodiment provides, obtained by the cut size table preset and occupy unit size corresponding to ratio with character area at picture, multiple data block is obtained again according to this this picture of unit sized divisions, achieve and the appropriateness of character area in picture is split, obtain the data block of coupling, ensure that degree of accuracy and efficiency that in picture, word loads.
In the embodiment of the present invention five, on the basis of the arbitrary illustrated embodiment of above-mentioned Fig. 1 to Fig. 4, after step 104, further comprising the steps of:
To send each data block in described character area according to described display sequence mark to described client first, then send the data block in remaining non-legible region.
The picture loading processing method that the present embodiment provides, identify to each data block in client first transmission character area by server according to the display sequence marked the data block of character area, send the data block in remaining non-legible region again, further increasing client preferentially Load Image according to the sequential write of word on the efficiency of Word message, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Fig. 5 is the process flow diagram of the picture loading processing method of the embodiment of the present invention six, and the present embodiment is configured to illustrate in client with this picture loading processing method.This picture loading processing method can comprise following several step:
Step 501, send download request to server, described download request comprises: the identification information of picture;
When user needs download pictures, send download request by user end to server, this download request comprises; The identification information of picture to be downloaded.
Step 502, receive the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area;
Server carries out segmentation to the picture that client-requested is downloaded and obtains multiple data block, determine and the data block corresponding to above-mentioned character area, and the display sequence mark of each data block in this character area is marked at according to the sequential write of word, and the coordinate information of each data block on this picture determining in this character area, generate the display information comprising display sequence mark and coordinate information corresponding relation.
Server sends to client and comprises the header file information of the dimension of picture of picture to be downloaded and the display information corresponding with data block in character area.
Step 503, generate the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.
First, client carries out the header file information received resolving the dimension of picture obtaining picture to be downloaded, and generates the painting canvas identical with this dimension of picture.
Then, client according to the display information received in advance, server is sent, the data block corresponding with picture to be downloaded load.Concrete loading procedure is: because the display sequence mark in display information is that server side marks each data block in character area according to the sequential write of word in advance, be used to indicate the DISPLAY ORDER of client to the data block of character area in picture, therefore, client is according to the display sequence mark in display information, search from the data block that server has sent and identify corresponding data block with display sequence, know if judge and receive this data block, then obtain from display information and identify corresponding coordinate information with this display sequence, namely the coordinate information of this data block on picture is obtained, and this data block is carried in position corresponding with coordinate information on painting canvas, thus client is according to sequential write on painting canvas the preferential each data block that load character area in of this display information according to word in character area, Word message on preferentially Showing Picture to user.
The picture loading processing method that the present embodiment provides, the dimension of picture of the picture to be downloaded that client reception server sends and display information, wherein, display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, coordinate information is the coordinate on described picture of each data block in described character area, client generates the painting canvas identical with dimension of picture, and in the process of the multiple data blocks corresponding with picture of reception server transmission, search display acquisition of information successively according to the order of display sequence mark and identify corresponding coordinate information with display sequence, and the position loading corresponding on painting canvas according to coordinate information identifies corresponding data block with display sequence.Thus achieve the Word message on preferentially Loading Image according to the sequential write of word, for the bottleneck period that picture loads, improve the loading velocity of Word message in picture, enable the Word message that on user's quick obtaining picture, quantity of information is larger, improve Consumer's Experience.
Fig. 6 is the structural representation of the picture loading processing device of the embodiment of the present invention seven, as shown in Figure 6, the device of the present embodiment can be server, then this device comprises: the first receiver module 11, locating module 12, segmentation module 13, processing module 14 and respond module 15, wherein
First receiver module 11, for receiving the download request that client sends, described download request comprises the identification information of picture; Locating module 12, for determining whether the picture corresponding with described identification information comprises Word message, if so, then determines the character area corresponding with described Word message; Segmentation module 13, obtains multiple data block for splitting described picture; Processing module 14, for being marked at the display sequence mark of each data block in described character area according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation; Respond module 15, the header file information of dimension of picture and described display information is comprised for sending to described client, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
The picture loading processing device of the present embodiment can perform the technical scheme of the picture loading processing method shown in Fig. 1, and it realizes principle and effect is similar, repeats no more herein.
Fig. 7 is the structural representation of the picture loading processing device of the embodiment of the present invention eight, on above-mentioned basis embodiment illustrated in fig. 6, as shown in Figure 7, locating module 12, comprise: acquiring unit 121, matching unit 122, detecting unit 123 and the first determining unit 124, wherein
Acquiring unit 121, for obtaining the characteristic information in described picture; Whether matching unit 122 is Word message for characteristic information according to property data base identification; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message; Whether detecting unit 123, reach default threshold value for the smoothness detecting the zone boundary corresponding with described Word message based on image boundary track algorithm; First determining unit 124, if for judge know that described smoothness reaches described threshold value, then using the zone boundary corresponding with described Word message as described character area; Know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
The picture loading processing device of the present embodiment can perform the technical scheme of the picture loading processing method shown in Fig. 2 and Fig. 3, and it realizes principle and effect is similar, repeats no more herein.
Fig. 8 is the structural representation of the picture loading processing device of the embodiment of the present invention nine, on above-mentioned basis embodiment illustrated in fig. 6, as shown in Figure 8, segmentation module 13 comprises: the second determining unit 131, query unit 132 and division unit 133, wherein, second determining unit 131, for determining that according to described dimension of picture described character area occupies ratio at described picture; Query unit 132, searches default cut size table for occupying ratio described in basis, obtains and occupies unit size corresponding to ratio with described; Division unit 133, for obtaining multiple data block according to picture described in described unit sized divisions.
The picture loading processing device of the present embodiment can perform the technical scheme of the picture loading processing method shown in Fig. 4, and it realizes principle and effect is similar, repeats no more herein.
Fig. 9 is the structural representation of the picture loading processing device of the embodiment of the present invention ten, and on the basis of the arbitrary illustrated embodiment of above-mentioned Fig. 6-Fig. 8, as shown in Figure 9, described device also comprises:
Sending module 16, for send each data block in described character area to described client first according to described display sequence mark, is sending the data block in remaining non-legible region.
The picture loading processing device of the present embodiment can perform the technical scheme of the picture loading processing method shown in embodiment five, and it realizes principle and effect is similar, repeats no more herein.
Figure 10 is the structural representation of the picture loading processing device of the embodiment of the present invention 11, and as shown in Figure 10, the device of the present embodiment can be client, and this device comprises: request module 21, second receiver module 22 and display module 23; Wherein,
Request module 21, for sending download request to server, described download request comprises: the identification information of picture; Second receiver module 22, for receiving the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area; Display module 23, for generating the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.
The picture loading processing device of the present embodiment can perform the technical scheme of the picture loading processing method shown in Fig. 5, and it realizes principle and effect is similar, repeats no more herein.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a picture loading processing method, is characterized in that, comprises the following steps:
Receive the download request that client sends, described download request comprises the identification information of picture;
Determine whether the picture corresponding with described identification information comprises Word message, if so, then determine the character area corresponding with described Word message;
Split described picture and obtain multiple data block, the display sequence mark of each data block in described character area is marked at according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation;
Send to described client and comprise the header file information of the dimension of picture of described picture and described display information, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
2. picture loading processing method according to claim 1, is characterized in that,
Describedly determine whether the picture corresponding with described identification information comprises Word message, comprising:
Obtain the characteristic information in described picture;
According to property data base identification, whether characteristic information is Word message; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message;
Describedly determine the character area corresponding with described Word message, comprising:
Whether the smoothness detecting the zone boundary corresponding with described Word message based on image boundary track algorithm reaches default threshold value;
If judge know that described smoothness reaches described threshold value, then using the zone boundary corresponding with described Word message as described character area;
Know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
3. picture loading processing method according to claim 1, is characterized in that, the described picture of described segmentation obtains multiple data block, comprising:
Determine that described character area occupies ratio at described picture according to described dimension of picture;
Search default cut size table according to described ratio of occupying, obtain and occupy unit size corresponding to ratio with described;
Multiple data block is obtained according to picture described in described unit sized divisions.
4., according to the arbitrary described picture loading processing method of claim 1-3, it is characterized in that, described to send the header file information and described display information comprising dimension of picture to described client after, further comprising the steps of:
To send each data block in described character area according to described display sequence mark to described client first, then send the data block in remaining non-legible region.
5. a picture loading processing method, is characterized in that, comprises the following steps:
Send download request to server, described download request comprises: the identification information of picture;
Receive the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area;
Generate the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.
6. a picture loading processing device, is characterized in that, comprising:
First receiver module, for receiving the download request that client sends, described download request comprises the identification information of picture;
Locating module, for determining whether the picture corresponding with described identification information comprises Word message, if so, then determines the character area corresponding with described Word message;
Segmentation module, obtains multiple data block for splitting described picture;
Processing module, for being marked at the display sequence mark of each data block in described character area according to sequential write, and determine the coordinate information of each data block on described picture in described character area, generate the display information comprising display sequence mark and coordinate information corresponding relation;
Respond module, the header file information of dimension of picture and described display information is comprised for sending to described client, the painting canvas identical with described dimension of picture is generated to make described client, and in the process receiving described multiple data block, according to described display information according to sequential write preferential each data block loaded in described character area on described painting canvas.
7. picture loading processing device according to claim 6, it is characterized in that, described locating module, comprising:
Acquiring unit, for obtaining the characteristic information in described picture;
Whether matching unit is Word message for characteristic information according to property data base identification; Wherein, described property data base comprises the sample characteristics information corresponding with described Word message;
Whether detecting unit, reach default threshold value for the smoothness detecting the zone boundary corresponding with described Word message based on image boundary track algorithm;
First determining unit, if for judge know that described smoothness reaches described threshold value, then using the zone boundary corresponding with described Word message as described character area; Know that described smoothness does not reach described threshold value if judge, then determine the smooth region corresponding with described zone boundary, and using described smooth region as described character area.
8. picture loading processing device according to claim 6, is characterized in that, described segmentation module, comprising:
Second determining unit, for determining that according to described dimension of picture described character area occupies ratio at described picture;
Query unit, searches default cut size table for occupying ratio described in basis, obtains and occupies unit size corresponding to ratio with described;
Division unit, for obtaining multiple data block according to picture described in described unit sized divisions.
9., according to the arbitrary described picture loading processing device of claim 6-8, it is characterized in that, described device also comprises:
Sending module, for send each data block in described character area to described client first according to described display sequence mark, is sending the data block in remaining non-legible region.
10. a picture loading processing device, is characterized in that, comprising:
Request module, for sending download request to server, described download request comprises: the identification information of picture;
Second receiver module, for receiving the header file information that is corresponding with described identification information, that comprise dimension of picture that described server sends, and display information, wherein, described display information comprises the corresponding relation of display sequence mark and coordinate information, described display sequence mark is the mark carried out each data block in character area on described picture according to sequential write, and described coordinate information is the coordinate on described picture of each data block in described character area;
Display module, for generating the painting canvas identical with described dimension of picture, and in the process receiving the multiple data blocks corresponding with described picture that described server sends, the order identified according to described display sequence is searched described display acquisition of information successively and is identified corresponding coordinate information with described display sequence, and the position loading corresponding on described painting canvas according to described coordinate information identifies corresponding data block with described display sequence.
CN201510260780.8A 2015-05-20 2015-05-20 A kind of picture loading processing method and apparatus Expired - Fee Related CN104899060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510260780.8A CN104899060B (en) 2015-05-20 2015-05-20 A kind of picture loading processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510260780.8A CN104899060B (en) 2015-05-20 2015-05-20 A kind of picture loading processing method and apparatus

Publications (2)

Publication Number Publication Date
CN104899060A true CN104899060A (en) 2015-09-09
CN104899060B CN104899060B (en) 2017-12-15

Family

ID=54031738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510260780.8A Expired - Fee Related CN104899060B (en) 2015-05-20 2015-05-20 A kind of picture loading processing method and apparatus

Country Status (1)

Country Link
CN (1) CN104899060B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302576A (en) * 2015-11-26 2016-02-03 中山大学 Method and system for generating user guide based on APP updating
CN105763891A (en) * 2016-02-22 2016-07-13 Tcl集团股份有限公司 Television program channel recommending method, smart television and server
CN107402973A (en) * 2017-06-29 2017-11-28 努比亚技术有限公司 Picture upload, loading method, upper transmission terminal, server and storage medium
WO2018040964A1 (en) * 2016-08-30 2018-03-08 阿里巴巴集团控股有限公司 Network image loading method, device and system
CN108133455A (en) * 2017-12-01 2018-06-08 天脉聚源(北京)科技有限公司 The display methods and device of user's name in poster image
CN109711396A (en) * 2018-11-12 2019-05-03 平安科技(深圳)有限公司 Generation method, device, equipment and the readable storage medium storing program for executing of OCR training sample
CN110209457A (en) * 2019-06-04 2019-09-06 深圳云里物里科技股份有限公司 Applied to the font rendering methods of electronics price tag, system and electronic equipment and medium
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
CN111079758A (en) * 2019-07-11 2020-04-28 广东小天才科技有限公司 Method for determining writing sequence in dictation process and terminal equipment
CN111339459A (en) * 2018-12-18 2020-06-26 北京京东尚科信息技术有限公司 Information processing method, server, terminal and computer storage medium
CN111400254A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 File display method and equipment
CN113973096A (en) * 2020-07-23 2022-01-25 腾讯科技(深圳)有限公司 Data processing method and sending terminal
CN115578681A (en) * 2022-11-15 2023-01-06 成都智元汇信息技术股份有限公司 Method and system for advancing parcel identification based on column data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256595A (en) * 2008-03-26 2008-09-03 北京航空航天大学 Method for exhibiting multidimensional space data based on SOA structure
CN101777066A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Web page rendering and browsing system for mobile communication equipment terminals and application method thereof
CN102591954A (en) * 2011-12-29 2012-07-18 深圳Tcl新技术有限公司 Method, device and terminal for loading data for browser
US20120240063A1 (en) * 2011-03-18 2012-09-20 International Business Machines Corporation Web site sectioning for mobile web browser usability
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103514241A (en) * 2012-12-07 2014-01-15 Tcl集团股份有限公司 Image loading method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256595A (en) * 2008-03-26 2008-09-03 北京航空航天大学 Method for exhibiting multidimensional space data based on SOA structure
CN101777066A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Web page rendering and browsing system for mobile communication equipment terminals and application method thereof
US20120240063A1 (en) * 2011-03-18 2012-09-20 International Business Machines Corporation Web site sectioning for mobile web browser usability
CN102591954A (en) * 2011-12-29 2012-07-18 深圳Tcl新技术有限公司 Method, device and terminal for loading data for browser
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103514241A (en) * 2012-12-07 2014-01-15 Tcl集团股份有限公司 Image loading method and system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302576B (en) * 2015-11-26 2018-12-21 中山大学 A kind of users' guidebook generation method and system updated based on APP
CN105302576A (en) * 2015-11-26 2016-02-03 中山大学 Method and system for generating user guide based on APP updating
CN105763891A (en) * 2016-02-22 2016-07-13 Tcl集团股份有限公司 Television program channel recommending method, smart television and server
WO2018040964A1 (en) * 2016-08-30 2018-03-08 阿里巴巴集团控股有限公司 Network image loading method, device and system
CN107402973A (en) * 2017-06-29 2017-11-28 努比亚技术有限公司 Picture upload, loading method, upper transmission terminal, server and storage medium
CN108133455A (en) * 2017-12-01 2018-06-08 天脉聚源(北京)科技有限公司 The display methods and device of user's name in poster image
WO2020098078A1 (en) * 2018-11-12 2020-05-22 平安科技(深圳)有限公司 Method and apparatus for generating ocr training sample, device and readable storage medium
CN109711396A (en) * 2018-11-12 2019-05-03 平安科技(深圳)有限公司 Generation method, device, equipment and the readable storage medium storing program for executing of OCR training sample
CN111339459A (en) * 2018-12-18 2020-06-26 北京京东尚科信息技术有限公司 Information processing method, server, terminal and computer storage medium
CN111400254A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 File display method and equipment
CN111400254B (en) * 2019-01-02 2023-08-15 中国移动通信有限公司研究院 File display method and device
CN110209457A (en) * 2019-06-04 2019-09-06 深圳云里物里科技股份有限公司 Applied to the font rendering methods of electronics price tag, system and electronic equipment and medium
CN111079758A (en) * 2019-07-11 2020-04-28 广东小天才科技有限公司 Method for determining writing sequence in dictation process and terminal equipment
CN111079758B (en) * 2019-07-11 2023-10-31 广东小天才科技有限公司 Method for determining writing sequence in dictation process and terminal equipment
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
CN113973096A (en) * 2020-07-23 2022-01-25 腾讯科技(深圳)有限公司 Data processing method and sending terminal
CN115578681A (en) * 2022-11-15 2023-01-06 成都智元汇信息技术股份有限公司 Method and system for advancing parcel identification based on column data
CN115578681B (en) * 2022-11-15 2023-03-10 成都智元汇信息技术股份有限公司 Method and system for advancing parcel identification based on column data

Also Published As

Publication number Publication date
CN104899060B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN104899060A (en) Picture loading processing method and apparatus
CN103488528B (en) A kind of Quick Response Code processing method and processing device based on mobile terminal
EP3100210B1 (en) Dynamically updating a feature database that contains features corresponding to a known target object
JP6316447B2 (en) Object search method and apparatus
US8593485B1 (en) Automatic video and dense image-based geographic information matching and browsing
CN106021421B (en) method and device for accelerating webpage rendering
CN110378338A (en) A kind of text recognition method, device, electronic equipment and storage medium
US6738631B1 (en) Vision-guided model-based point-and-click interface for a wireless handheld device
EP3242225B1 (en) Method and apparatus for determining region of image to be superimposed, superimposing image and displaying image
KR20110096500A (en) Location-based communication method and system
US10614621B2 (en) Method and apparatus for presenting information
CN104811742A (en) Video data storage method and device
CN108765584A (en) Laser point cloud data collection augmentation method, apparatus and readable storage medium storing program for executing
CN105357475A (en) Video playing method and device
CN109977337B (en) Webpage design comparison method, device and equipment and readable storage medium
CN105611607B (en) It realizes the method for merging multiple WiFi and realizes the method and system of WiFi connection
CN106227893A (en) A kind of file type acquisition methods and device
CN109492607A (en) A kind of information-pushing method, information push-delivery apparatus and terminal device
CN106569805B (en) Canvas storage method, picture drawing method and equipment
CN111401228A (en) Video target labeling method and device and electronic equipment
JPWO2021173779A5 (en)
CN105279268A (en) Multi-data-source map download method
CN114911595A (en) Animation resource information processing method, device, equipment, medium and product
JPWO2021168338A5 (en)
CN107330069B (en) Multimedia data processing method and device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171215

Termination date: 20210520