CN113033173A - Streaming document picture loading method and device, electronic equipment and storage medium - Google Patents

Streaming document picture loading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113033173A
CN113033173A CN202110452631.7A CN202110452631A CN113033173A CN 113033173 A CN113033173 A CN 113033173A CN 202110452631 A CN202110452631 A CN 202110452631A CN 113033173 A CN113033173 A CN 113033173A
Authority
CN
China
Prior art keywords
picture
bitmap
information
relative path
rendering
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.)
Pending
Application number
CN202110452631.7A
Other languages
Chinese (zh)
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.)
ONYX INTERNATIONAL Inc
Original Assignee
ONYX INTERNATIONAL Inc
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 ONYX INTERNATIONAL Inc filed Critical ONYX INTERNATIONAL Inc
Priority to CN202110452631.7A priority Critical patent/CN113033173A/en
Publication of CN113033173A publication Critical patent/CN113033173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a streaming document picture loading method and device, electronic equipment and a storage medium, which are used for solving the technical problem that the loading consumes long time to cause page turning and blocking because the same picture is repeatedly processed in the conventional picture loading mode. The method comprises the following steps: when a picture is detected in a page of a streaming document, acquiring a picture relative path of the picture; judging whether picture information corresponding to the picture relative path exists in a preset information cache or not; if so, extracting the picture information, and calculating the typesetting coordinate information of the picture according to the picture information; acquiring a bitmap of the picture; and rendering the bitmap to a preset rendering image according to the typesetting coordinate information.

Description

Streaming document picture loading method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image loading technologies, and in particular, to a method and an apparatus for loading a streaming document image, an electronic device, and a storage medium.
Background
The streaming document refers to a document which has no fixed format and needs to be dynamically typeset according to the size of a window and a style file. The typesetting of the streaming document means that the width and height occupied by the characters and the pictures are measured and calculated from the specified character position according to the size of the window and the style file, the coordinates of the characters and the pictures in the page are calculated until the space of one page is completely used up, and the typesetting is finished. One page is the size of one window. The stream document rendering means that after typesetting, characters and pictures are sequentially loaded according to coordinates obtained by typesetting measurement, and a rendering graph is drawn.
The existing typesetting engine has simpler processing on picture loading, and the whole picture is directly loaded during typesetting.
Then, there may be some rare and special documents in the streaming document, which contain a large number of small pictures in addition to the text. When the scheme is used for typesetting, a large amount of time is usually spent on loading the pictures, so that the rendering speed is reduced, page turning is blocked, and the reading experience of a user is influenced.
Disclosure of Invention
The invention provides a streaming document picture loading method and device, electronic equipment and a storage medium, which are used for solving the technical problems that the same picture is repeatedly processed in the conventional picture loading mode, and the loading consumes long time, so that page turning is blocked.
The invention provides a method for loading streaming document pictures, which comprises the following steps:
when a picture is detected in a page of a streaming document, acquiring a picture relative path of the picture;
judging whether picture information corresponding to the picture relative path exists in a preset information cache or not;
if so, extracting the picture information, and calculating the typesetting coordinate information of the picture according to the picture information;
acquiring a bitmap of the picture;
and rendering the bitmap to a preset rendering image according to the typesetting coordinate information.
Optionally, the method further comprises:
if the picture information corresponding to the picture relative path does not exist in the information cache, acquiring metadata of the picture according to the picture relative path;
and analyzing the metadata to obtain the picture information of the picture.
Optionally, the method further comprises:
establishing a first incidence relation between the picture relative path and the picture information;
and storing the first association relation in the information cache.
Optionally, the step of obtaining the bitmap of the picture includes:
acquiring a picture rendering size of the picture;
judging whether a keyword consisting of the picture relative path and the picture rendering size in a preset bitmap cache is included;
and if so, extracting the bitmap corresponding to the keyword as the bitmap of the picture.
Optionally, the method further comprises:
if the keywords do not exist in the bitmap cache, loading complete picture data according to the picture relative path;
and analyzing the complete data of the picture by adopting the picture rendering size to obtain a bitmap of the picture.
Optionally, the method further comprises:
establishing a second incidence relation between the keywords and the bitmap;
and storing the second association relationship in the bitmap cache.
The invention also provides a streaming document and picture loading device, which comprises:
the image relative path acquisition module is used for acquiring an image relative path of an image when the image is detected in a page of the streaming document;
the first judgment module is used for judging whether picture information corresponding to the picture relative path exists in a preset information cache or not;
the typesetting coordinate information calculation module is used for extracting the picture information if the picture information exists, and calculating the typesetting coordinate information of the picture according to the picture information;
the bitmap acquisition module is used for acquiring a bitmap of the picture;
and the rendering module is used for rendering the bitmap to a preset rendering map according to the typesetting coordinate information.
Optionally, the bitmap obtaining module includes:
the picture rendering size obtaining sub-module is used for obtaining the picture rendering size of the picture;
the second judgment submodule is used for judging whether a keyword consisting of the picture relative path and the picture rendering size in a preset bitmap cache or not;
and the first bitmap acquisition sub-module is used for extracting the bitmap corresponding to the keyword as the bitmap of the picture if the bitmap is the same as the bitmap of the picture.
The invention also provides an electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the streaming document picture loading method according to any one of the above instructions in the program code.
The present invention also provides a computer-readable storage medium for storing program code for executing the streaming document picture loading method as described in any one of the above.
According to the technical scheme, the invention has the following advantages: according to the invention, the picture information is stored in the cache, so that when the same picture is repeatedly detected, the corresponding picture information can be extracted from the cache for typesetting, thereby avoiding the time for repeatedly processing the same picture to obtain the picture information, reducing the time for obtaining the picture information in the typesetting process, further reducing the total time for loading the picture, improving the fluency of page turning and enhancing the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating steps of a method for loading a streaming document picture according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for loading a streaming document picture according to another embodiment of the present invention;
fig. 3 is a block diagram of a streaming document picture loading apparatus according to an embodiment of the present invention.
Detailed Description
Taking "a Dian edition of Dian Zhitong for example, the punctuation marks in this book are all pictures, one page of characters contains a large number of punctuation marks, the punctuation marks are repeated in a large number, and according to the prior art, the punctuation marks are repeatedly loaded, thereby spending a large amount of time. Taking the first volume "first pivot on resources ", for example, there are 219 commas in this chapter, and if all are loaded, 219 comma pictures are loaded, which takes 30ms for one loading, and 6570ms for 219 loading.
In view of this, embodiments of the present invention provide a streaming document picture loading method and apparatus, an electronic device, and a storage medium, which are used to solve the technical problem that the loading consumes a long time to cause page turning and blocking because the same picture is repeatedly processed in the existing picture loading manner.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for loading a streaming document picture according to an embodiment of the present invention.
The invention provides a streaming document picture loading method, which specifically comprises the following steps:
step 101, when a picture is detected in a page of a streaming document, obtaining a picture relative path of the picture;
in practical application, in the process of reading a streaming document through a reader, when page turning is to be performed, the width and height occupied by characters and pictures need to be measured and calculated from the specified position of the streaming document, so that typesetting is performed, rendering is performed according to a typesetting result, and a page displayed after page turning is obtained.
Therefore, when a picture is detected in a page of a streaming document, it is first necessary to acquire a picture relative path that holds picture information of the picture to acquire the width and height occupied by the picture.
Step 102, judging whether picture information corresponding to a picture relative path exists in a preset information cache;
in the embodiment of the present invention, an information cache may be preset to cache the picture information of the loaded picture. When the detected picture is the loaded repeated picture, the picture information of the picture can be directly acquired in the information cache according to the relative path of the picture, and the acquisition event of the picture information is effectively reduced.
Step 103, if yes, extracting picture information, and calculating typesetting coordinate information of the picture according to the picture information;
after the picture information is extracted, the width and height information of the picture can be extracted from the picture information, the occupied space of the picture is calculated according to the width and height information, and the typesetting coordinate information of the picture, such as the coordinates of four corner points, is calculated and obtained by combining the typesetting coordinate of the last character or picture.
Step 104, acquiring a bitmap of a picture;
a bitmap, also called a dot matrix image or a raster image, is composed of single points called pixels (picture elements). The dots can be arranged and dyed differently to form a pattern. When the bitmap is enlarged, a myriad of individual squares upon which the entire image is built can be seen. The effect of enlarging the size of the bitmap is to increase the individual pixels, so that lines and shapes appear jagged. However, if it is viewed from a slightly distant position, the color and shape of the bitmap image again appear continuous. Photographs taken with a digital camera, pictures scanned by a scanner, computer screenshots, and the like all belong to bitmaps. The bitmap is characterized by representing color change and color subtle transition, and generating vivid effect.
And 105, rendering the bitmap to a preset rendering map according to the typesetting coordinate information.
After the layout coordinate information of the picture is obtained, a bitmap of the picture can be obtained, the bitmap is rendered into a preset rendering map according to the layout coordinate information, and the rendering map is projected onto a display interface after the rendering of the whole page is completed.
According to the invention, the picture information is stored in the cache, so that when the same picture is repeatedly detected, the corresponding picture information can be extracted from the cache for typesetting, thereby avoiding the time for repeatedly processing the same picture to obtain the picture information, reducing the time for obtaining the picture information in the typesetting process, further reducing the total time for loading the picture, improving the fluency of page turning and enhancing the user experience.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a method for loading a streaming document picture according to another embodiment of the present invention. The method specifically comprises the following steps:
step 201, when a picture is detected in a page of a streaming document, acquiring a picture relative path of the picture;
step 202, judging whether picture information corresponding to a picture relative path exists in a preset information cache;
step 203, if yes, extracting picture information, and calculating typesetting coordinate information of the picture according to the picture information;
in the embodiment of the present invention, the steps 201-203 are the same as the steps 101-103, and for details, reference is made to the description of the steps 101-103, which is not repeated herein.
Further, the embodiment of the present invention further includes:
if the picture information corresponding to the picture relative path does not exist in the information cache, obtaining metadata of the picture according to the picture relative path; and analyzing the metadata to obtain the picture information of the picture.
Specifically, if the picture information corresponding to the picture relative path does not exist in the information cache, the picture is represented as a first-appearing picture, at this time, the metadata of the picture is loaded according to the picture relative path, and the picture information is obtained by analyzing the metadata.
And the metadata of the picture is complete picture data of the picture stored in the picture relative path.
Further, after the picture information of the picture is obtained through the picture metadata analysis, the picture information can be stored in the information cache in the following manner.
Establishing a first incidence relation between the picture relative path and the picture information; and storing the first association relation in an information cache.
In a specific implementation, the picture relative path may be used as a keyword, the picture information is used as a value, a first association relationship between the two is established, and the picture information is cached in the information cache through the first association relationship.
Step 204, obtaining the picture rendering size of the picture;
step 205, judging whether a keyword consisting of a picture relative path and a picture rendering size is in a preset bitmap cache;
step 206, if yes, extracting a bitmap corresponding to the keyword as a bitmap of the picture;
in the embodiment of the invention, after the typesetting of the page data is finished, the bitmap of the picture can be acquired for rendering, so that the loading of the picture on the page is finished.
In order to improve the acquisition speed of the bitmap, the extracted bitmap can be cached in the bitmap storage device. When the picture detected from the page is the picture from which the bitmap has been extracted, the picture relative path and the picture rendering size of the picture can be used as keywords, and the corresponding bitmap is matched in the bitmap cache.
In the embodiment of the invention, if the key words do not exist in the bitmap cache, the complete data of the picture is loaded according to the relative path of the picture; and analyzing the complete data of the picture by adopting the picture rendering size to obtain a bitmap of the picture.
In a specific implementation, if a keyword composed of a picture relative path and a picture rendering size does not exist in the bitmap cache, the size required for representing the picture is the first occurrence, and a corresponding bitmap does not exist in the bitmap cache. At this time, the complete data of the picture can be loaded according to the relative path of the picture, and then the data is analyzed according to the rendering size of the picture, so that a corresponding bitmap is obtained.
Further, after obtaining the bitmap through the picture complete data, the bitmap may be stored in the bitmap buffer through the following steps.
Establishing a second association relation between the keywords and the bitmap; and storing the second association relationship in a bitmap cache.
In a specific implementation, the picture relative path and the picture rendering size may be used as keywords, and the picture bitmap is used as a value, so as to establish a second association relationship between the picture relative path, the picture rendering size, and the bitmap, and store the second association relationship in the bitmap cache.
It should be noted that the rendering size of the picture may be the width and the height of the picture, and is specified by the picture CSS (Cascading Style Sheets) Style; the width and height of the picture during typesetting are the original width and height of the picture obtained by analyzing the picture metadata and are the resolution of the picture file; the two are not related, and the picture rendering size determines the width and the height of the picture bitmap. The same picture may be referenced by multiple locations, and there may be different picture rendering sizes at each location. Therefore, in order to improve the rendering speed, the embodiment of the invention uses the rendering size of the picture and the relative path of the picture as keywords to store the bitmap. For example, a picture with a resolution of 720 width and 1080 height is displayed as a thumbnail image with a resolution of 360 width and 540 height on the first page, and an original image with a resolution of 720 width and 1080 width on the second page. When the original image with the width of 720 and the height of 1080 is displayed on the third page, the picture bitmap of the second page can be directly multiplexed without analyzing the picture bitmap again. However, during typesetting, only the picture information (i.e. resolution) needs to be extracted from the metadata once and stored in the information cache.
It should be noted that, because the picture bitmap occupies a large memory, the bitmap cannot be stored indefinitely. Therefore, the embodiment of the present invention adopts an LRU (Least Recently Used) algorithm to manage the picture bitmap. In one example, the bitmap cache occupancy of the picture bitmap in the memory may be set to one eighth of the memory available to the current device application, and when the occupancy reaches one eighth, the least recently used bitmap is removed from the bitmap cache. For example, assuming that the current device available memory is 512MB, the picture bitmap buffer is maximum 64MB, and when the bitmap buffer reaches the maximum value, the least recently used bitmap will be removed from the buffer according to the LRU algorithm.
And step 207, rendering the bitmap to a preset rendering map according to the typesetting coordinate information.
After the layout coordinate information of the picture is obtained, a bitmap of the picture can be obtained, the bitmap is rendered into a preset rendering map according to the layout coordinate information, and the rendering map is projected onto a display interface after the rendering of the whole page is completed.
The invention manages the picture information by using the information cache, avoids repeatedly analyzing the picture to obtain the picture information during typesetting, and improves the typesetting speed. By using bitmap caching to manage the picture bitmap, repeated parsing of picture content data and parsing of pictures during rendering are avoided, and thus the picture rendering speed is increased. By optimizing the speed of the typesetting link and the rendering link, the speed of loading the picture is improved, the phenomenon of page turning blockage is avoided, and the user experience is enhanced.
Referring to fig. 3, fig. 3 is a block diagram illustrating a structure of a streaming document and picture loading apparatus according to an embodiment of the present invention.
The invention provides a stream type document picture loading device, comprising:
a picture relative path acquiring module 301, configured to acquire a picture relative path of a picture when the picture is detected in a page of the streaming document;
a first determining module 302, configured to determine whether picture information corresponding to a picture relative path exists in a preset information cache;
a typesetting coordinate information calculation module 303, configured to, if yes, extract the picture information, and calculate typesetting coordinate information of the picture according to the picture information;
a bitmap acquisition module 304, configured to acquire a bitmap of a picture;
and a rendering module 305, configured to render the bitmap onto a preset rendering map according to the layout coordinate information.
In the embodiment of the present invention, the method further includes:
the metadata acquisition module is used for acquiring metadata of the picture according to the picture relative path if the picture information corresponding to the picture relative path does not exist in the information cache;
and the metadata analyzing module is used for analyzing the metadata to obtain the picture information of the picture.
In the embodiment of the present invention, the method further includes:
the first incidence relation establishing module is used for establishing a first incidence relation between the picture relative path and the picture information;
and the first storage module is used for storing the first association relation in the information cache.
In this embodiment of the present invention, the bitmap obtaining module 304 includes:
the picture rendering size obtaining submodule is used for obtaining the picture rendering size of the picture;
the second judgment submodule is used for judging whether the preset bitmap cache is provided with keywords consisting of the picture relative path and the picture rendering size;
and the first bitmap acquisition sub-module is used for extracting the bitmap corresponding to the keyword as the bitmap of the picture if the bitmap is the same as the bitmap of the picture.
In this embodiment of the present invention, the bitmap obtaining module 304 further includes:
the picture complete data loading sub-module is used for loading the picture complete data according to the picture relative path if the key words do not exist in the bitmap cache;
and the second bitmap acquisition sub-module is used for analyzing the complete data of the picture by adopting the picture rendering size to acquire the bitmap of the obtained picture.
In this embodiment of the present invention, the bitmap obtaining module 304 further includes:
the second incidence relation establishing submodule is used for establishing a second incidence relation between the key words and the bitmap;
and the second storage submodule is used for storing the second association relationship in the bitmap cache.
An embodiment of the present invention further provides an electronic device, where the device includes a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is used for executing the streaming document picture loading method of any embodiment of the invention according to instructions in the program codes.
The embodiment of the invention also provides a computer-readable storage medium, which is used for storing a program code, and the program code is used for executing the streaming document picture loading method of any embodiment of the invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for loading streaming document pictures is characterized by comprising the following steps:
when a picture is detected in a page of a streaming document, acquiring a picture relative path of the picture;
judging whether picture information corresponding to the picture relative path exists in a preset information cache or not;
if so, extracting the picture information, and calculating the typesetting coordinate information of the picture according to the picture information;
acquiring a bitmap of the picture;
and rendering the bitmap to a preset rendering image according to the typesetting coordinate information.
2. The method of claim 1, further comprising:
if the picture information corresponding to the picture relative path does not exist in the information cache, acquiring metadata of the picture according to the picture relative path;
and analyzing the metadata to obtain the picture information of the picture.
3. The method of claim 2, further comprising:
establishing a first incidence relation between the picture relative path and the picture information;
and storing the first association relation in the information cache.
4. The method of claim 1, wherein the step of obtaining the bitmap of the picture comprises:
acquiring a picture rendering size of the picture;
judging whether a keyword consisting of the picture relative path and the picture rendering size in a preset bitmap cache is included;
and if so, extracting the bitmap corresponding to the keyword as the bitmap of the picture.
5. The method of claim 4, further comprising:
if the keywords do not exist in the bitmap cache, loading complete picture data according to the picture relative path;
and analyzing the complete data of the picture by adopting the picture rendering size to obtain a bitmap of the picture.
6. The method of claim 5, further comprising:
establishing a second incidence relation between the keywords and the bitmap;
and storing the second association relationship in the bitmap cache.
7. A streaming document picture loading apparatus, comprising:
the image relative path acquisition module is used for acquiring an image relative path of an image when the image is detected in a page of the streaming document;
the first judgment module is used for judging whether picture information corresponding to the picture relative path exists in a preset information cache or not;
the typesetting coordinate information calculation module is used for extracting the picture information if the picture information exists, and calculating the typesetting coordinate information of the picture according to the picture information;
the bitmap acquisition module is used for acquiring a bitmap of the picture;
and the rendering module is used for rendering the bitmap to a preset rendering map according to the typesetting coordinate information.
8. The apparatus of claim 7, wherein the bitmap acquisition module comprises:
the picture rendering size obtaining sub-module is used for obtaining the picture rendering size of the picture;
the second judgment submodule is used for judging whether a keyword consisting of the picture relative path and the picture rendering size in a preset bitmap cache or not;
and the first bitmap acquisition sub-module is used for extracting the bitmap corresponding to the keyword as the bitmap of the picture if the bitmap is the same as the bitmap of the picture.
9. An electronic device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the streaming document picture loading method according to any one of claims 1 to 6 according to instructions in the program code.
10. A computer-readable storage medium for storing program code for performing the streaming document picture loading method of any one of claims 1-6.
CN202110452631.7A 2021-04-26 2021-04-26 Streaming document picture loading method and device, electronic equipment and storage medium Pending CN113033173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110452631.7A CN113033173A (en) 2021-04-26 2021-04-26 Streaming document picture loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110452631.7A CN113033173A (en) 2021-04-26 2021-04-26 Streaming document picture loading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113033173A true CN113033173A (en) 2021-06-25

Family

ID=76454572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110452631.7A Pending CN113033173A (en) 2021-04-26 2021-04-26 Streaming document picture loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113033173A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103208128A (en) * 2012-01-16 2013-07-17 腾讯科技(深圳)有限公司 Method and device for displaying picture
CN106484769A (en) * 2016-09-08 2017-03-08 深圳市彬讯科技有限公司 A kind of method of online quick access queries picture
CN110096660A (en) * 2019-04-03 2019-08-06 北京字节跳动网络技术有限公司 Method, apparatus and electronic equipment for loading page picture
CN110795030A (en) * 2019-10-11 2020-02-14 新华三大数据技术有限公司 Small file reading method and device
CN111475748A (en) * 2019-01-24 2020-07-31 阿里巴巴集团控股有限公司 Picture display method and device
CN111931095A (en) * 2020-08-26 2020-11-13 重庆帮企科技集团有限公司 Picture loading method of Android system
CN112233009A (en) * 2020-10-13 2021-01-15 广州南方卫星导航仪器有限公司 Picture rendering method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103208128A (en) * 2012-01-16 2013-07-17 腾讯科技(深圳)有限公司 Method and device for displaying picture
CN106484769A (en) * 2016-09-08 2017-03-08 深圳市彬讯科技有限公司 A kind of method of online quick access queries picture
CN111475748A (en) * 2019-01-24 2020-07-31 阿里巴巴集团控股有限公司 Picture display method and device
CN110096660A (en) * 2019-04-03 2019-08-06 北京字节跳动网络技术有限公司 Method, apparatus and electronic equipment for loading page picture
CN110795030A (en) * 2019-10-11 2020-02-14 新华三大数据技术有限公司 Small file reading method and device
CN111931095A (en) * 2020-08-26 2020-11-13 重庆帮企科技集团有限公司 Picture loading method of Android system
CN112233009A (en) * 2020-10-13 2021-01-15 广州南方卫星导航仪器有限公司 Picture rendering method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6595714B2 (en) Method and apparatus for generating a two-dimensional code image having a dynamic effect
US9881229B2 (en) Apparatus, method and program for image search
US8442324B2 (en) Method and system for displaying image based on text in image
US8265415B2 (en) Apparatus and method for transforming image in mobile device
US8515176B1 (en) Identification of text-block frames
KR20170131669A (en) Method and apparatus for generating composite image
US9734132B1 (en) Alignment and reflow of displayed character images
CN111461070B (en) Text recognition method, device, electronic equipment and storage medium
CN108989704B (en) Image generation method and device and terminal equipment
JP5182902B2 (en) Document image output device
CN114494775A (en) Video segmentation method, device, equipment and storage medium
US20140320527A1 (en) Hardware glyph cache
US10789715B2 (en) Image processing device, image processing method, and information storage medium
CN113095058B (en) Method and device for processing page turning of streaming document, electronic equipment and storage medium
CN113033173A (en) Streaming document picture loading method and device, electronic equipment and storage medium
CN112567430A (en) Image generation device, image generation method, and program
CN106776489B (en) Electronic document display method and system of display device
US20130104014A1 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium
JP4125245B2 (en) Document display method and document display apparatus
CN111709419A (en) Method, system and equipment for positioning banknote serial number and readable storage medium
CN110399581B (en) Page rendering method, equipment, storage medium and device based on machine learning
US9715624B1 (en) Document image segmentation based on pixel classification
CN116955873B (en) Method for rapidly displaying massive dynamic planar vector data on browser
JP4653445B2 (en) Handwritten information dividing device, handwritten information dividing method, handwritten information dividing program, and recording medium
US20230351781A1 (en) Line removal from an image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210625

RJ01 Rejection of invention patent application after publication