CN104899060B - A kind of picture loading processing method and apparatus - Google Patents

A kind of picture loading processing method and apparatus Download PDF

Info

Publication number
CN104899060B
CN104899060B CN201510260780.8A CN201510260780A CN104899060B CN 104899060 B CN104899060 B CN 104899060B CN 201510260780 A CN201510260780 A CN 201510260780A CN 104899060 B CN104899060 B CN 104899060B
Authority
CN
China
Prior art keywords
picture
information
character area
data block
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.)
Expired - Fee Related
Application number
CN201510260780.8A
Other languages
Chinese (zh)
Other versions
CN104899060A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of picture loading processing method and apparatus.This method includes:The download request that client is sent is received, download request includes the identification information of picture;If it is determined that the picture corresponding with identification information includes text information, it is determined that character area corresponding with text information;Split picture and obtain multiple data blocks, display sequence according to each data block of the sequential write mark in character area identifies, and coordinate information of each data block on picture in character area is determined, generation includes display sequence mark and the display information of coordinate information corresponding relation;The header file information and display information of the dimension of picture comprising picture are sent to client, so that client generation and the dimension of picture identical painting canvas, according to each data block of the display information according to sequential write on the painting canvas in preferential loading character area.It is achieved thereby that according to the sequential write of word preferentially Load Image on text information.

Description

A kind of picture loading processing method and apparatus
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of picture loading processing method and apparatus.
Background technology
With the fast development of information technology and the variation of Information Sharing mode, the need of download and transmission based on picture Ask increasing, because picture and text information is big compared to data volume, being particularly some includes big figures of writings and image content Piece, the time by network transmission to terminal is long, and user needs wait to be lot more time to see complete picture.
In the prior art, comparing the picture loading technique of main flow is progressive download image data and shows picture line by line, , can not information content on quick obtaining picture but user just starts to can only see the part on picture top in the case where network is poor Larger text information.
The content of the invention
The embodiment of the present invention provides a kind of picture loading processing method and apparatus, for realizing the sequential write according to word Text information on preferentially Loading Image, for the bottleneck period of picture loading, the loading for improving text information in picture is fast Degree, allows users to the text information that information content is larger on quick obtaining picture, improves Consumer's Experience.
A kind of picture loading processing method, comprises the following steps:
The download request that client is sent is received, the download request includes the identification information of picture;
It is determined that whether the picture corresponding with the identification information includes text information, if, it is determined that believe with the word Character area corresponding to breath;
Split the picture and obtain multiple data blocks, each data in the character area are marked according to sequential write The display sequence mark of block, and coordinate information of each data block on the picture in the character area is determined, generate Display information including display sequence mark with coordinate information corresponding relation;
The header file information of the dimension of picture comprising the picture and the display information are sent to the client, so that The client generation and the dimension of picture identical painting canvas, and during the multiple data block is received, according to institute State display information and each data block in the character area is preferentially loaded on the painting canvas according to sequential write.
The picture loading processing method that the present embodiment provides, if judging to know that the picture downloaded needed for client includes word Information, it is determined that character area corresponding with text information, segmentation picture obtain multiple data blocks, exist according to sequential write mark The display sequence mark of each data block in character area, and determine seat of each data block on picture in character area Information is marked, generation includes display sequence mark and the display information of coordinate information corresponding relation;Sent to client and include picture The header file information and display information of size so that client generation with the dimension of picture identical painting canvas, and receive with During multiple data blocks corresponding to picture, the word is preferentially loaded on painting canvas according to sequential write according to display information Each data block in region.It is achieved thereby that according to the sequential write of word preferentially Load Image on text information, for The bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to believe on quick obtaining picture The larger text information of breath amount, improves Consumer's Experience.
Preferably, it is described to determine whether the picture corresponding with the identification information includes text information, including:
Obtain the characteristic information in the picture;
Identify whether the characteristic information is text information according to property data base;Wherein, the property data base includes Sample characteristics information corresponding with the text information.
The picture loading processing method that the present embodiment provides, it is special by sample corresponding with text information in property data base Reference breath is matched with the characteristic information extracted from picture, to judge whether include text information in picture, is realized pair The quick detection of text information whether is carried in picture, improves the treatment effeciency with the loading of word picture.
Preferably, determination character area corresponding with the text information, including:
Whether the smoothness that zone boundary corresponding with the text information is detected based on image boundary track algorithm is reached Default threshold value;
If judgement knows that the smoothness reaches the threshold value, zone boundary corresponding with the text information is made For the character area;
If judgement knows that the smoothness is not reaching to the threshold value, it is determined that corresponding with the zone boundary smooth Region, and using the smooth region as the character area.
The picture loading processing method that the present embodiment provides, by based in the detection of image boundary track algorithm and picture Whether the smoothness of zone boundary corresponding to text information reaches default threshold value, with character area corresponding to determination, realizes Character area in picture is accurately positioned, is easy to carry out the dividing processing of data block, improves the place with the loading of word picture Manage efficiency.
Preferably, the segmentation picture obtains multiple data blocks, including:
Determine that the character area occupies ratio in the picture according to the dimension of picture;
Default cut size table is searched according to the ratio of occupying, obtains and occupies the corresponding unit of ratio with described Size;
Multiple data blocks are obtained according to picture described in the unit sized divisions.
The picture loading processing method that the present embodiment provides, obtained by default cut size table and schemed with character area Piece occupies unit size corresponding to ratio, and further according to the unit sized divisions, the picture obtains multiple data blocks, Realize and the appropriateness of character area in picture is split, obtain the data block of matching, ensure that word loads accurate in picture Degree and efficiency.
Preferably, it is described to the client send comprising dimension of picture header file information and the display information it Afterwards, it is further comprising the steps of:
The each data block sent to the client first in the character area is identified according to the display sequence, then Send the data block in remaining non-legible region.
The picture loading processing method that the present embodiment provides, is marked by server according to the data block to character area Display sequence identify to client first send character area in each data block, retransmit remaining non-legible region Data block, further increasing client according to the sequential write of word preferentially Load Image on text information efficiency, For the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quick obtaining picture The larger text information of upper information content, improves Consumer's Experience.
A kind of picture loading processing method, comprises the following steps:
Download request is sent to server, the download request includes:The identification information of picture;
The header file information corresponding with the identification information, comprising dimension of picture that the server is sent is received, with And display information, wherein, the display information includes display sequence mark and the corresponding relation of coordinate information, the display sequence Row mark is the mark to each data block progress in character area on the picture, the coordinate information according to sequential write It is the coordinate on the picture of each data block in the character area;
Generation and the dimension of picture identical painting canvas, and receiving the corresponding with the picture of the server transmission During multiple data blocks, the display information acquisition is searched successively according to the order of display sequence mark and is shown with described Show coordinate information corresponding to sequence identifier, and corresponding position loading shows with described on the painting canvas according to the coordinate information Show data block corresponding to sequence identifier.
The picture loading processing method that the present embodiment provides, the picture for the picture to be downloaded that client the reception server is sent Size and display information, wherein, display information includes display sequence mark and the corresponding relation of coordinate information, the display sequence Row mark is the mark carried out according to sequential write to each data block in character area on the picture, and coordinate information is institute The coordinate on the picture of each data block in character area, client generation and dimension of picture identical painting canvas are stated, And the reception server send multiple data blocks corresponding with picture during, according to display sequence mark order successively Search display information obtain and the corresponding coordinate information of display sequence mark, and according to coordinate information on painting canvas corresponding position Loading and the corresponding data block of display sequence mark.It is achieved thereby that according to the sequential write of word preferentially Load Image on text Word information, for the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quickly obtain The text information that information content is larger on picture is taken, improves Consumer's Experience.
A kind of picture loading processing device, including:
First receiving module, for receiving the download request of client transmission, the download request includes the mark of picture Information;
Whether locating module, the picture for determining corresponding with the identification information include text information, if, it is determined that Character area corresponding with the text information;
Split module, multiple data blocks are obtained for splitting the picture;
Processing module, the display sequence mark for each data block according to sequential write mark in the character area Know, and determine coordinate information of each data block on the picture in the character area, generation includes display sequence mark Know the display information with coordinate information corresponding relation;
Respond module, for sending the header file information comprising dimension of picture and the display information to the client, So that the client generation and the dimension of picture identical painting canvas, and during the multiple data block is received, root Each data block in the character area is preferentially loaded on the painting canvas according to sequential write according to the display information.
The picture loading processing device that the present embodiment provides, if judging to know that the picture downloaded needed for client includes word Information, it is determined that character area corresponding with text information, segmentation picture obtain multiple data blocks, exist according to sequential write mark The display sequence mark of each data block in character area, and determine seat of each data block on picture in character area Information is marked, generation includes display sequence mark and the display information of coordinate information corresponding relation;Sent to client and include picture The header file information and display information of size so that client generation with the dimension of picture identical painting canvas, and receive with During multiple data blocks corresponding to picture, the word is preferentially loaded on painting canvas according to sequential write according to display information Each data block in region.It is achieved thereby that according to the sequential write of word preferentially Load Image on text information, for The bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to believe on quick obtaining picture The larger text information of breath amount, improves Consumer's Experience.
Preferably, the locating module, including:
Acquiring unit, for obtaining the characteristic information in the picture;
Matching unit, for identifying whether the characteristic information is text information according to property data base;Wherein, the spy Sign database includes sample characteristics information corresponding with the text information;
Detection unit, for detecting the flat of zone boundary corresponding with the text information based on image boundary track algorithm Whether slippery reaches default threshold value;
First determining unit, if for judging to know that the smoothness reaches the threshold value, it will believe with the word Zone boundary corresponding to breath is as the character area;If judgement knows that the smoothness is not reaching to the threshold value, really Fixed smooth region corresponding with the zone boundary, and using the smooth region as the character area.
The picture loading processing device that the present embodiment provides, it is special by sample corresponding with text information in property data base Reference breath is matched with the characteristic information extracted from picture, to judge whether include text information in picture, is realized pair The quick detection of text information whether is carried in picture, improves the treatment effeciency with the loading of word picture, and by based on figure Whether the smoothness that zone boundary corresponding with the text information in picture is detected as edge following algorithm reaches default thresholding Value, with character area corresponding to determination, realizes and character area in picture is accurately positioned, and is easy to carry out the segmentation of data block Processing, improve the treatment effeciency with the loading of word picture.
Preferably, the segmentation module, including:
Second determining unit, for determining occupation ratio of the character area in the picture according to the dimension of picture Example;
Query unit, default cut size table is searched for occupying ratio according to, obtains and occupies ratio with described Corresponding unit size;
Division unit, for obtaining multiple data blocks according to picture described in the unit sized divisions.
The picture loading processing device that the present embodiment provides, obtained by default cut size table and schemed with character area Piece occupies unit size corresponding to ratio, and further according to the unit sized divisions, the picture obtains multiple data blocks, Realize and the appropriateness of character area in picture is split, obtain the data block of matching, ensure that word loads accurate in picture Degree and efficiency.
Preferably, described device also includes:
Sending module, sent for being identified according to the display sequence to the client first in the character area Each data block, sending the data block in remaining non-legible region.
The picture loading processing device that the present embodiment provides, is marked by server according to the data block to character area Display sequence identify to client first send character area in each data block, retransmit remaining non-legible region Data block, further increasing client according to the sequential write of word preferentially Load Image on text information efficiency, For the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quick obtaining picture The larger text information of upper information content, improves Consumer's Experience.
A kind of picture loading processing device, including:
Request module, for sending download request to server, the download request includes:The identification information of picture;
Second receiving module, for receive that the server sends it is corresponding with the identification information, comprising picture chi Very little header file information, and display information, wherein, it is corresponding with coordinate information that the display information includes display sequence mark Relation, the display sequence mark is that each data block in character area on the picture is carried out according to sequential write Mark, the coordinate information is the coordinate on the picture of each data block in the character area;
Display module, for generate with the dimension of picture identical painting canvas, and receive that the server sends with During multiple data blocks corresponding to the picture, the order identified according to the display sequence searches the display letter successively Breath obtain and the corresponding coordinate information of display sequence mark, and according to the coordinate information on the painting canvas corresponding position Put loading and the corresponding data block of display sequence mark.Other features and advantages of the present invention will in the following description Illustrate, also, partly become apparent from specification, or understood by implementing the present invention.The purpose of the present invention With other advantages can by specifically noted structure in the specification, claims and accompanying drawing write realizing and Obtain.
The picture loading processing device that the present embodiment provides, the picture for the picture to be downloaded that client the reception server is sent Size and display information, wherein, display information includes display sequence mark and the corresponding relation of coordinate information, the display sequence Row mark is the mark carried out according to sequential write to each data block in character area on the picture, and coordinate information is institute The coordinate on the picture of each data block in character area, client generation and dimension of picture identical painting canvas are stated, And the reception server send multiple data blocks corresponding with picture during, according to display sequence mark order successively Search display information obtain and the corresponding coordinate information of display sequence mark, and according to coordinate information on painting canvas corresponding position Loading and the corresponding data block of display sequence mark.It is achieved thereby that according to the sequential write of word preferentially Load Image on text Word information, for the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quickly obtain The text information that information content is larger on picture is taken, improves Consumer's Experience.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the picture loading processing method of the embodiment of the present invention one;
Fig. 2 is the flow chart of the picture loading processing method of the embodiment of the present invention two;
Fig. 3 is the flow chart of the picture loading processing method of the embodiment of the present invention three;
Fig. 4 is the flow chart of the picture loading processing method of the embodiment of the present invention four;
Fig. 5 is the flow chart 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
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is the flow chart of the picture loading processing method of the embodiment of the present invention one, as shown in figure 1, the present embodiment is with this Picture loading processing method is configured as in server to illustrate.The picture loading processing method can include following several Step:
Step 101, the download request that client is sent is received, the download request includes the identification information of picture;
When user needs download pictures, download request is sent by user end to server, the download request includes; The identification information of picture to be downloaded, server carry out the mark letter that parsing obtains picture to be downloaded to the download request received Breath.
Step 102, it is determined that whether the picture corresponding with the identification information includes text information, if, it is determined that with institute State character area corresponding to text information;
Server obtains the picture corresponding with the identification information, identifies the content on the picture, judges in the image content Whether text information is included, text information is included in the image content if judging to know, it is determined that corresponding with the text information Character area.
Step 103, split the picture and obtain multiple data blocks, according to sequential write mark in the character area The display sequence mark of each data block, and determine coordinate letter of each data block in the character area on the picture Breath, generation include display sequence mark and the display information of coordinate information corresponding relation;
First, server carries out segmentation to picture and obtains multiple data blocks, it is determined that the number corresponding to above-mentioned character area It is marked according to block, and to these data blocks corresponding with character area, specifically mark mode is the writing according to word , or from left to right, the display sequence of each data block in the character area is marked to identify, Display sequence is identified for indicating display order of the client to the data block of character area.
Then, using the horizontal and vertical reference axis of the picture as reference coordinate axle, every number in the character area is determined According to coordinate information of the block on the picture, to represent position of the data block on the picture, coordinate information can include:Number According to lateral coordinates and longitudinal coordinate of the block on the picture.
According to the display sequence mark and coordinate information of each data block in character area, generate includes showing sequence server Row mark and the display information of coordinate information corresponding relation.
Step 104, the header file information of the dimension of picture comprising the picture and the display are sent to the client Information, so that client generation and the dimension of picture identical painting canvas, and in the process for receiving the multiple data block In, each data in the character area are preferentially loaded on the painting canvas according to sequential write according to the display information Block.
Server to client send comprising picture to be downloaded dimension of picture header file information and with character area Display information corresponding to data block.First, client carries out parsing to the header file information received and obtains picture to be downloaded Dimension of picture, and generate and the dimension of picture identical painting canvas.
Then, client server is sent according to the display information being previously received, it is corresponding with picture to be downloaded Data block is loaded.Specifically loading procedure is:Due in display information display sequence mark be server side in advance by Each data block in character area is marked according to the sequential write of word, for indicating client to word in picture The display order of the data block in region, therefore, display sequence mark of the client in display information, sent out from server Lookup and the corresponding data block of display sequence mark in the data block sent, the data block is had been received by if judging to know, from Acquisition and the corresponding coordinate information of display sequence mark in display information, that is, obtain coordinate letter of the data block on picture Breath, and is carried on painting canvas position corresponding with coordinate information by the data block, so as to client according to the display information according to The sequential write of word preferentially loads each data block in character area on painting canvas in character area, is preferentially shown to user Text information on picture.
The picture loading processing method that the present embodiment provides, if judging to know that the picture downloaded needed for client includes word Information, it is determined that character area corresponding with text information, segmentation picture obtain multiple data blocks, exist according to sequential write mark The display sequence mark of each data block in character area, and determine seat of each data block on picture in character area Information is marked, generation includes display sequence mark and the display information of coordinate information corresponding relation;Sent to client and include picture The header file information and display information of size so that client generation with the dimension of picture identical painting canvas, and receive with During multiple data blocks corresponding to picture, the word is preferentially loaded on painting canvas according to sequential write according to display information Each data block in region.It is achieved thereby that according to the sequential write of word preferentially Load Image on text information, for The bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to believe on quick obtaining picture The larger text information of breath amount, improves Consumer's Experience.
Fig. 2 is the flow chart of the picture loading processing method of the embodiment of the present invention two, in the base of above-mentioned embodiment illustrated in fig. 1 On plinth, as shown in Fig. 2 determining whether the picture corresponding with the identification information includes the specific reality of text information in step 102 Now mode is:
Step 201, the characteristic information in picture is obtained;
The characteristic information in picture to be downloaded is extracted, for example, this feature information includes:Local binary patterns LBPH is special Sign, grey level histogram feature, or histogram of gradients feature, it can be selected according to using needs.
Step 202, identify whether the characteristic information is text information according to property data base;Wherein, the characteristic Include sample characteristics information corresponding with the text information according to storehouse.
Sample characteristics information corresponding with text information in property data base is entered with the characteristic information extracted from picture Row matching, if the match is successful, judgement, which is known, includes text information in picture;If it fails to match, judgement is known in picture not Include text information.
The picture loading processing method that the present embodiment provides, it is special by sample corresponding with text information in property data base Reference breath is matched with the characteristic information extracted from picture, to judge whether include text information in picture, is realized pair The quick detection of text information whether is carried in picture, improves the treatment effeciency with the loading of word picture.
Fig. 3 is the flow chart of the picture loading processing method of the embodiment of the present invention three, in the base of above-mentioned embodiment illustrated in fig. 1 On plinth, as shown in figure 3, the specific implementation that character area corresponding with the text information is determined in step 102 is:
Step 301, the flat of zone boundary corresponding with the text information in picture is detected based on image boundary track algorithm Whether slippery reaches default threshold value;
If server judges to know text information in picture be present, first, obtained and be somebody's turn to do by image boundary track algorithm The smoothness of zone boundary corresponding to text information.For example, image boundary track algorithm includes the image side based on two-value Boundary's track algorithm, and image boundary track algorithm based on small echo etc., it can be selected according to reality using needs.
Then, judge whether the smoothness of the character area reaches default threshold value, it should be noted that different figures As edge following algorithm is preset with different threshold values, therefore, according to the algorithm of use by the smoothness of acquisition and corresponding door Limit value is compared.
Step 302, will area corresponding with the text information if judging to know that the smoothness reaches the threshold value Domain border is as the character area, if judging to know that the smoothness is not reaching to the threshold value, it is determined that with the area Smooth region corresponding to the border of domain, and using the smooth region as the character area.
When judgement knows that the smoothness of zone boundary corresponding with the text information reaches default threshold value, then illustrate Zone boundary easily carries out dividing processing, directly will zone boundary corresponding with text information as first position region.
When judgement knows that the smoothness of zone boundary corresponding with the text information is not reaching to default threshold value, then Illustrate that zone boundary is not easy to carry out dividing processing, can be determined according to default compensating parameter corresponding with zone boundary smooth Region, and then using smooth region as character area.
The picture loading processing method that the present embodiment provides, by based in the detection of image boundary track algorithm and picture Whether the smoothness of zone boundary corresponding to text information reaches default threshold value, with character area corresponding to determination, realizes Character area in picture is accurately positioned, is easy to carry out the dividing processing of data block, improves the place with the loading of word picture Manage efficiency.
Fig. 4 is the flow chart of the picture loading processing method of the embodiment of the present invention four, in the base of above-mentioned embodiment illustrated in fig. 1 On plinth, as shown in figure 4, the specific implementation that the segmentation picture described in step 103 obtains multiple data blocks is:
Step 401, determine that character area occupies ratio in the picture in picture according to dimension of picture;
Server obtains character area in picture and occupies ratio in the picture, specifically, can be according to dimension of picture The area of picture is obtained, using the ratio of character area area and picture area as occupying ratio.
Step 402, default cut size table is searched according to the ratio of occupying, obtained and described to occupy ratio corresponding Unit size;
For server according in picture to be downloaded, character area occupies ratio in the picture, searches point prestored Cut size table, obtain and occupy the corresponding unit size of ratio with this.The cut size table prestored includes word Region is in the corresponding relation for occupying ratio and unit size of the picture, illustration:If character area is in the picture Occupy that ratio is small, corresponding unit size is also small, if character area occupies that ratio is big in the picture, corresponding list Position cut size is also big, so as to according to appropriate segmentation is carried out to character area, ensure in the case where character area is small, Effectively segmentation can also be carried out to character area and obtains multiple data blocks, also will not be to word in the case where character area is big Region transitions are split, but appropriateness segmentation obtains appropriate number of data block.
Step 403, multiple data blocks are obtained according to picture described in the unit sized divisions.
The picture loading processing method that the present embodiment provides, obtained by default cut size table and schemed with character area Piece occupies unit size corresponding to ratio, and further according to the unit sized divisions, the picture obtains multiple data blocks, Realize and the appropriateness of character area in picture is split, obtain the data block of matching, ensure that word loads accurate in picture Degree and efficiency.
In the embodiment of the present invention five, on the basis of any illustrated embodiments of above-mentioned Fig. 1 to Fig. 4, after step 104, It is further comprising the steps of:
The each data block sent to the client first in the character area is identified according to the display sequence, then Send the data block in remaining non-legible region.
The picture loading processing method that the present embodiment provides, is marked by server according to the data block to character area Display sequence identify to client first send character area in each data block, retransmit remaining non-legible region Data block, further increasing client according to the sequential write of word preferentially Load Image on text information efficiency, For the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quick obtaining picture The larger text information of upper information content, improves Consumer's Experience.
Fig. 5 be the embodiment of the present invention six picture loading processing method flow chart, the present embodiment with the picture loading at Reason method is configured as in client to illustrate.The picture loading processing method can include the following steps:
Step 501, download request is sent to server, the download request includes:The identification information of picture;
When user needs download pictures, download request is sent by user end to server, the download request includes; The identification information of picture to be downloaded.
Step 502, the header file corresponding with the identification information, comprising dimension of picture that the server is sent is received Information, and display information, wherein, the display information includes display sequence mark and the corresponding relation of coordinate information, institute It is the mark carried out according to sequential write to each data block in character area on the picture to state display sequence mark, described Coordinate information is the coordinate on the picture of each data block in the character area;
Server carries out segmentation to the picture that client request is downloaded and obtains multiple data blocks, it is determined that with above-mentioned character area Corresponding data block, and mark the display sequence of each data block in the character area according to the sequential write of word Mark, and coordinate information of each data block on the picture in the character area is determined, generation includes display sequence mark Know the display information with coordinate information corresponding relation.
Server to client send comprising picture to be downloaded dimension of picture header file information and with character area Display information corresponding to data block.
Step 503, generation and the dimension of picture identical painting canvas, and in the reception server transmission and the figure During multiple data blocks corresponding to piece, the order identified according to the display sequence searches the display information acquisition successively With the corresponding coordinate information of display sequence mark, and corresponding position loads on the painting canvas according to the coordinate information With the corresponding data block of display sequence mark.
First, client carries out the dimension of picture that parsing obtains picture to be downloaded to the header file information received, and raw Into with the dimension of picture identical painting canvas.
Then, client server is sent according to the display information being previously received, it is corresponding with picture to be downloaded Data block is loaded.Specifically loading procedure is:Due in display information display sequence mark be server side in advance by Each data block in character area is marked according to the sequential write of word, for indicating client to word in picture The display order of the data block in region, therefore, display sequence mark of the client in display information, sent out from server Lookup and the corresponding data block of display sequence mark in the data block sent, the data block is had been received by if judging to know, from Acquisition and the corresponding coordinate information of display sequence mark in display information, that is, obtain coordinate letter of the data block on picture Breath, and is carried on painting canvas position corresponding with coordinate information by the data block, so as to client according to the display information according to The sequential write of word preferentially loads each data block in character area on painting canvas in character area, is preferentially shown to user Text information on picture.
The picture loading processing method that the present embodiment provides, the picture for the picture to be downloaded that client the reception server is sent Size and display information, wherein, display information includes display sequence mark and the corresponding relation of coordinate information, the display sequence Row mark is the mark carried out according to sequential write to each data block in character area on the picture, and coordinate information is institute The coordinate on the picture of each data block in character area, client generation and dimension of picture identical painting canvas are stated, And the reception server send multiple data blocks corresponding with picture during, according to display sequence mark order successively Search display information obtain and the corresponding coordinate information of display sequence mark, and according to coordinate information on painting canvas corresponding position Loading and the corresponding data block of display sequence mark.It is achieved thereby that according to the sequential write of word preferentially Load Image on text Word information, for the bottleneck period of picture loading, the loading velocity of text information in picture is improved, allows users to quickly obtain The text information that information content is larger on picture is taken, improves 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 fig. 6, the present embodiment Device can be server, then the device includes:First receiving module 11, locating module 12, segmentation module 13, processing module 14 and respond module 15, wherein,
First receiving module 11, for receiving the download request of client transmission, the download request includes the mark of picture Know information;Locating module 12, whether the picture for determining corresponding with the identification information includes text information, if so, then true Fixed character area corresponding with the text information;Split module 13, multiple data blocks are obtained for splitting the picture;Processing Module 14, the display sequence for each data block according to sequential write mark in the character area identifies, and determines Coordinate information of each data block on the picture in the character area, generation include display sequence mark and believed with coordinate Cease the display information of corresponding relation;Respond module 15, for sending the header file information for including dimension of picture to the client With the display information, so that the client generates and the dimension of picture identical painting canvas, and the multiple number is being received During according to block, preferentially loaded in the character area on the painting canvas according to sequential write according to the display information Each data block.
The picture loading processing device of the present embodiment can perform the technical side of the picture loading processing method shown in Fig. 1 Case, its realization principle and effect are similar, and here is omitted.
Fig. 7 is the structural representation of the picture loading processing device of the embodiment of the present invention eight, in above-mentioned embodiment illustrated in fig. 6 On the basis of, as shown in fig. 7, locating module 12, including:Acquiring unit 121, matching unit 122, detection unit 123 and first Determining unit 124, wherein,
Acquiring unit 121, for obtaining the characteristic information in the picture;Matching unit 122, for according to characteristic Storehouse identifies whether the characteristic information is text information;Wherein, the property data base includes corresponding with the text information Sample characteristics information;Detection unit 123, for detecting region corresponding with the text information based on image boundary track algorithm Whether the smoothness on border reaches default threshold value;First determining unit 124, if for judging to know that the smoothness reaches The threshold value, then will zone boundary corresponding with the text information as the character area;If judgement is known described flat Slippery is not reaching to the threshold value, it is determined that smooth region corresponding with the zone boundary, and the smooth region is made For the character area.
The picture loading processing device of the present embodiment can perform the skill of the picture loading processing method shown in Fig. 2 and Fig. 3 Art scheme, its realization principle and effect are similar, and here is omitted.
Fig. 8 is the structural representation of the picture loading processing device of the embodiment of the present invention nine, in above-mentioned embodiment illustrated in fig. 6 On the basis of, as shown in figure 8, segmentation module 13 includes:Second determining unit 131, query unit 132 and division unit 133, its In, the second determining unit 131, for determining that the character area occupies ratio in the picture according to the dimension of picture; Query unit 132, default cut size table is searched for occupying ratio according to, obtained and described to occupy ratio corresponding Unit size;Division unit 133, for obtaining multiple data blocks according to picture described in the unit sized divisions.
The picture loading processing device of the present embodiment can perform the technical side of the picture loading processing method shown in Fig. 4 Case, its realization principle and effect are similar, and here is omitted.
Fig. 9 is the structural representation of the picture loading processing device of the embodiment of the present invention ten, in any institutes of above-mentioned Fig. 6-Fig. 8 On the basis of showing embodiment, as shown in figure 9, described device also includes:
Sending module 16, sent for being identified according to the display sequence to the client first in the character area Each data block, sending the data block in remaining non-legible region.
The picture loading processing device of the present embodiment can perform the skill of the picture loading processing method shown in embodiment five Art scheme, its realization principle and effect are similar, and here is omitted.
Figure 10 is the structural representation of the picture loading processing device of the embodiment of the present invention 11, as shown in Figure 10, this reality The device for applying example can be client, and the device includes:Request module 21, the second receiving module 22 and display module 23;Wherein,
Request module 21, for sending download request to server, the download request includes:The identification information of picture; Second receiving module 22, the head corresponding with the identification information, comprising dimension of picture sent for receiving the server Fileinfo, and display information, wherein, the display information includes display sequence mark and the corresponding relation of coordinate information , the display sequence mark is the mark carried out according to sequential write to each data block in character area on the picture Note, the coordinate information is the coordinate on the picture of each data block in the character area;Display module 23, use In generation and the dimension of picture identical painting canvas, and in the more numbers corresponding with the picture for receiving the server transmission During according to block, the order identified according to the display sequence searches the display information acquisition and the display sequence successively Coordinate information corresponding to mark, and corresponding position loads and the display sequence on the painting canvas according to the coordinate information Data block corresponding to mark.
The picture loading processing device of the present embodiment can perform the technical side of the picture loading processing method shown in Fig. 5 Case, its realization principle and effect are similar, and here is omitted.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (8)

  1. A kind of 1. picture loading processing method, it is characterised in that comprise the following steps:
    The download request that client is sent is received, the download request includes the identification information of picture;
    It is determined that whether the picture corresponding with the identification information includes text information, if, it is determined that with the text information pair The character area answered;
    Split the picture and obtain multiple data blocks, according to each data block of the sequential write mark in the character area Display sequence identifies, and determines coordinate information of each data block on the picture in the character area, and generation includes Display sequence identifies the display information with coordinate information corresponding relation;
    The header file information of the dimension of picture comprising the picture and the display information are sent to the client, so that described Client generates and the dimension of picture identical painting canvas, and during the multiple data block is received, according to described aobvious Show that information preferentially loads on the painting canvas each data block in the character area according to sequential write;
    It is described to determine whether the picture corresponding with the identification information includes text information, including:
    Obtain the characteristic information in the picture;
    Identify whether the characteristic information is text information according to property data base;Wherein, the property data base includes and institute State sample characteristics information corresponding to text information;
    It is described to determine corresponding with text information character area, including:
    Whether the smoothness that zone boundary corresponding with the text information is detected based on image boundary track algorithm reaches default Threshold value;
    If judge know that the smoothness reaches the threshold value, will zone boundary corresponding with the text information as institute State character area;
    If judgement knows that the smoothness is not reaching to the threshold value, it is determined that smooth area corresponding with the zone boundary Domain, and using the smooth region as the character area.
  2. 2. picture loading processing method according to claim 1, it is characterised in that the segmentation picture obtains multiple Data block, including:
    Determine that the character area occupies ratio in the picture according to the dimension of picture;
    Default cut size table is searched according to the ratio of occupying, obtains and occupies the corresponding unit chi of ratio with described It is very little;
    Multiple data blocks are obtained according to picture described in the unit sized divisions.
  3. 3. according to any described picture loading processing methods of claim 1-2, it is characterised in that described to the client It is further comprising the steps of after sending the header file information comprising dimension of picture and the display information:
    The each data block sent to the client first in the character area is identified according to the display sequence, is retransmited The data block in remaining non-legible region.
  4. A kind of 4. picture loading processing method, it is characterised in that comprise the following steps:
    Download request is sent to server, the download request includes:The identification information of picture;
    Receive the header file information corresponding with the identification information, comprising dimension of picture that the server is sent, Yi Jixian Show information, wherein, the display information includes display sequence mark and the corresponding relation of coordinate information, the display sequence mark Knowledge is the mark carried out according to sequential write to each data block in character area on the picture, and the coordinate information is institute State the coordinate on the picture of each data block in character area;
    Generation and the dimension of picture identical painting canvas, and receiving the corresponding with the picture multiple of the server transmission During data block, the order identified according to the display sequence searches the display information acquisition and the display sequence successively Coordinate information corresponding to row mark, and corresponding position loads and the display sequence on the painting canvas according to the coordinate information Data block corresponding to row mark.
  5. A kind of 5. picture loading processing device, it is characterised in that including:
    First receiving module, for receiving the download request of client transmission, the download request includes the identification information of picture;
    Whether locating module, the picture for determining corresponding with the identification information include text information, if, it is determined that with institute State character area corresponding to text information;
    Split module, multiple data blocks are obtained for splitting the picture;
    Processing module, the display sequence for each data block according to sequential write mark in the character area identify, And determine coordinate information of each data block on the picture in the character area, generation include display sequence mark and The display information of coordinate information corresponding relation;
    Respond module, for sending the header file information comprising dimension of picture and the display information to the client, so that The client generation and the dimension of picture identical painting canvas, and during the multiple data block is received, according to institute State display information and each data block in the character area is preferentially loaded on the painting canvas according to sequential write;
    The locating module, including:
    Acquiring unit, for obtaining the characteristic information in the picture;
    Matching unit, for identifying whether the characteristic information is text information according to property data base;Wherein, the characteristic Include sample characteristics information corresponding with the text information according to storehouse;
    Detection unit, for detecting the smoothness of zone boundary corresponding with the text information based on image boundary track algorithm Whether default threshold value is reached;
    First determining unit, if for judging to know that the smoothness reaches the threshold value, will be with the text information pair The zone boundary answered is as the character area;If judgement knows that the smoothness is not reaching to the threshold value, it is determined that with Smooth region corresponding to the zone boundary, and using the smooth region as the character area.
  6. 6. picture loading processing device according to claim 5, it is characterised in that the segmentation module, including:
    Second determining unit, for determining that the character area occupies ratio in the picture according to the dimension of picture;
    Query unit, default cut size table is searched for occupying ratio according to, obtained and described to occupy ratio corresponding Unit size;
    Division unit, for obtaining multiple data blocks according to picture described in the unit sized divisions.
  7. 7. according to any described picture loading processing devices of claim 5-6, it is characterised in that described device also includes:
    Sending module, it is each into the client first transmission character area for being identified according to the display sequence Data block, sending the data block in remaining non-legible region.
  8. A kind of 8. picture loading processing device, it is characterised in that including:
    Request module, for sending download request to server, the download request includes:The identification information of picture;
    Second receiving module, for receiving the corresponding with the identification information, comprising dimension of picture of the server transmission Header file information, and display information, wherein, the display information includes display sequence mark and the corresponding relation of coordinate information , the display sequence mark is the mark carried out according to sequential write to each data block in character area on the picture Note, the coordinate information is the coordinate on the picture of each data block in the character area;
    Display module, for generate with the dimension of picture identical painting canvas, and receive that the server sends with it is described During multiple data blocks corresponding to picture, the display information is searched successively according to the order of display sequence mark and is obtained Take with the corresponding coordinate information of display sequence mark, and corresponding position adds on the painting canvas according to the coordinate information Carry and the corresponding data block of display sequence mark.
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 CN104899060A (en) 2015-09-09
CN104899060B true 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)

Families Citing this family (14)

* 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
CN105763891A (en) * 2016-02-22 2016-07-13 Tcl集团股份有限公司 Television program channel recommending method, smart television and server
CN106886549A (en) * 2016-08-30 2017-06-23 阿里巴巴集团控股有限公司 A kind of loading method of network picture, 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
CN111339459A (en) * 2018-12-18 2020-06-26 北京京东尚科信息技术有限公司 Information processing method, server, terminal and computer storage medium
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
CN111079758B (en) * 2019-07-11 2023-10-31 广东小天才科技有限公司 Method for determining writing sequence in dictation process and terminal equipment
CN110750664B (en) * 2019-10-15 2023-03-28 腾讯科技(深圳)有限公司 Picture display method and device
CN113973096B (en) * 2020-07-23 2023-06-20 腾讯科技(深圳)有限公司 Data processing method and transmitting terminal
CN115578681B (en) * 2022-11-15 2023-03-10 成都智元汇信息技术股份有限公司 Method and system for advancing parcel identification based on column data
CN117574001A (en) * 2023-10-27 2024-02-20 北京安锐卓越信息技术股份有限公司 Oversized picture loading method, device and medium

Citations (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348939B2 (en) * 2011-03-18 2016-05-24 International Business Machines Corporation Web site sectioning for mobile web browser usability

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN104899060A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104899060B (en) A kind of picture loading processing method and apparatus
CN109803180B (en) Video preview generation method and device, computer equipment and storage medium
US10311115B2 (en) Object search method and apparatus
CN109308681B (en) Image processing method and device
CN107609493A (en) Optimize the method and device of face picture Environmental Evaluation Model
CN108197618B (en) Method and device for generating human face detection model
CN106649610A (en) Image labeling method and apparatus
CN105956059A (en) Emotion recognition-based information recommendation method and apparatus
JP6780769B2 (en) Learning equipment, learning methods and learning programs
KR20110103409A (en) Image segmentation
CN103971361B (en) Image processing device and method
CN109034069A (en) Method and apparatus for generating information
CN111259772A (en) Image annotation method, device, equipment and medium
CN110418193A (en) Information-pushing method, device and equipment based on video content
CN109492607A (en) A kind of information-pushing method, information push-delivery apparatus and terminal device
CN108491845A (en) Determination, character segmentation method, device and the equipment of Character segmentation position
CN105608699A (en) Image processing method and electronic device
CN111414948A (en) Target object detection method and related device
US10192131B2 (en) Logo image indentification system
CN108536749A (en) The method for building personnel's Track View based on collision detection method
CN109740567A (en) Key point location model training method, localization method, device and equipment
CN112633341A (en) Interface testing method and device, computer equipment and storage medium
CN108921138B (en) Method and apparatus for generating information
CN103581662A (en) Video definition measuring method and system
CN114241384A (en) Continuous frame picture marking method, electronic equipment 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