CN115831061B - Ink screen display method, device, terminal equipment and storage medium - Google Patents

Ink screen display method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115831061B
CN115831061B CN202211013409.8A CN202211013409A CN115831061B CN 115831061 B CN115831061 B CN 115831061B CN 202211013409 A CN202211013409 A CN 202211013409A CN 115831061 B CN115831061 B CN 115831061B
Authority
CN
China
Prior art keywords
bitmap
sub
ink screen
image
pixel value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211013409.8A
Other languages
Chinese (zh)
Other versions
CN115831061A (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.)
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 CN202211013409.8A priority Critical patent/CN115831061B/en
Publication of CN115831061A publication Critical patent/CN115831061A/en
Application granted granted Critical
Publication of CN115831061B publication Critical patent/CN115831061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses an ink screen display method, an ink screen display device, terminal screen equipment and a storage medium, wherein the ink screen display method comprises the following steps: acquiring an image bitmap to be displayed on an ink screen, wherein the image bitmap is an image bitmap corresponding to a page which is formed by combining characters and/or pictures and presents information in a static mode; extracting a picture region sub-bitmap from the document image bitmap; error diffusion based on at least 3-order dithering is carried out on the extracted sub-bitmap of the picture area, so that an optimized sub-bitmap is obtained; replacing the optimized sub-bitmap to the position of a corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap; and displaying the target display bitmap to the ink screen. Through error diffusion based on at least 3-order dithering on the picture part in the document, the optimized sub-bitmap is obtained and then is replaced into the target display bitmap for display, so that the picture content is displayed more finely, the saw teeth during text display are reduced, and the display experience of the whole electronic book is improved.

Description

Ink screen display method, device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of display, in particular to an ink screen display method, an ink screen display device, terminal equipment and a storage medium.
Background
The surface of the electronic ink screen is adhered with a plurality of tiny microcapsules, and pigment particles with different charges are encapsulated in the microcapsules. In the initial state, different pigment particles are suspended in the microcapsule, when an electric field in a certain direction is applied, the corresponding pigment particles are pushed to the top, the microcapsule can display different colors, and the microcapsules with different colors form various characters and patterns, so that the display effect can be maintained after power is off. The display of the electronic ink screen can be regarded as the result of physical entity arrangement forming, and based on the display process, the electronic ink screen is generally characterized by energy saving and eye protection.
Based on the characteristics of the electronic ink screen, an important product form of applying the electronic ink screen is an ink screen electronic book reader, which is special equipment for reading electronic books, and can achieve the visual effect of reading paper books. However, the basic display principle of the electronic ink screen determines that the display color is not rich enough and the display of the complex picture is not fine and smooth enough. For example, when the electronic ink screen displays 256-level images, the phenomenon of color lump or color band is serious, the phenomenon of color lump or color band is generally relieved by simulating 256-level images with black and white 2-level images in the prior art, but the gray scale is not obvious enough, and the black is directly transited to white; and the whole display picture is subjected to 2-order simulation, saw teeth exist when characters are displayed, strokes are displayed roughly, and the whole display experience of the electronic book is not friendly enough.
Disclosure of Invention
The invention provides an ink screen display method, an ink screen display device, terminal equipment and a storage medium, which are used for solving the technical problem that the whole display experience of an electronic book in the prior art is not friendly enough.
In a first aspect, an embodiment of the present invention provides an ink screen display method, including:
acquiring an image bitmap to be displayed on an ink screen, wherein the image bitmap is an image bitmap corresponding to a page which is formed by combining characters and/or pictures and presents information in a static mode;
extracting a picture region sub-bitmap from the image bitmap;
performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap;
replacing the optimized sub-bitmap to the position of a corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap;
and displaying the target display bitmap to the ink screen.
Further, obtaining an image bitmap to be displayed on the ink screen includes:
receiving page display operation at a document view window displayed on an ink screen;
responding to the page display operation, and acquiring page content corresponding to the page display operation in a document;
and generating an image bitmap according to the page content.
Further, the extracting the picture region sub-bitmap from the image bitmap includes:
acquiring position information of a picture area in the page content according to layout information of the page content;
and extracting bitmap data of the position information in the image bitmap mapping area according to the position information and the proportional relation between the page content and the image bitmap to generate a picture area sub-bitmap.
Further, the extracting the image region sub-bitmap from the image bitmap further includes:
if the acquisition of the layout information from the page content fails, carrying out content identification on the image bitmap, and acquiring the position information of the picture area in the image bitmap.
Further, the performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture area to obtain an optimized sub-bitmap includes:
sequentially generating an optimized pixel value of each pixel and error diffusion values of downward and right pixels in the sub-bitmap of the picture area from left to right in sequence from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference value of the synthesized pixel value minus the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
Further, the initial pixel value corresponds to a pixel that is either solid white or solid black, and the optimized pixel value remains at the initial pixel value.
Further, the synthesized pixel value is constrained to be within a range of [0,255 ].
In a second aspect, an embodiment of the present invention provides an ink screen display device, including:
the bitmap acquisition unit is used for acquiring an image bitmap to be displayed on the ink screen, wherein the image bitmap is an image bitmap corresponding to a page which is formed by combining characters and/or pictures and presents information in a static mode;
a picture extraction unit for extracting a picture region sub-bitmap from the image bitmap;
the image optimization unit is used for performing error diffusion based on at least 3-order dithering on the extracted image region sub-bitmap to obtain an optimized sub-bitmap;
a picture replacing unit, configured to replace the optimized sub-bitmap to a position of a corresponding picture region sub-bitmap in the image bitmap, to obtain a target display bitmap;
and the bitmap display unit is used for displaying the target display bitmap to the ink screen.
Further, the bitmap acquisition unit includes:
the operation receiving module is used for receiving page display operation in a document view window displayed by the ink screen;
the content acquisition module is used for responding to the page display operation and acquiring page content corresponding to the page display operation in the document;
and the bitmap generation module is used for generating an image bitmap according to the page content.
Further, the picture extraction unit includes:
the position information acquisition module is used for acquiring the position information of the picture area in the page content according to the layout information of the page content;
and the bitmap data extraction module is used for extracting bitmap data of the position information in the image bitmap mapping area to generate a picture area sub-bitmap according to the position information and the proportional relation between the page content and the image bitmap.
Further, the picture extraction unit further includes:
and the content identification module is used for carrying out content identification on the image bitmap if the acquisition of the page information from the page content fails, and acquiring the position information of the picture area in the image bitmap.
Further, the picture optimizing unit includes:
the error processing module is used for sequentially generating an optimized pixel value of each pixel in the sub-bitmap of the picture area and error diffusion values of the pixels below and right in sequence from left to right from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference value of the synthesized pixel value minus the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
Further, the initial pixel value corresponds to a pixel that is either solid white or solid black, and the optimized pixel value remains at the initial pixel value.
Further, the synthesized pixel value is constrained to be within a range of [0,255 ].
In a third aspect, an embodiment of the present invention provides a terminal device, including:
an ink screen;
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the terminal device is caused to implement the ink screen display method according to any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the ink screen display method according to any one of the first aspects.
The method, the device, the terminal equipment and the storage medium for the ink screen document are characterized in that in the method for displaying the ink screen, an image bitmap to be displayed on the ink screen is obtained, wherein the image bitmap is an image bitmap corresponding to a page which is formed by combining characters and/or pictures and presents information in a static mode; extracting a picture region sub-bitmap from the image bitmap; performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap; replacing the optimized sub-bitmap to the position of a corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap; and displaying the target display bitmap to the ink screen. Through error diffusion based on at least 3-order dithering on the picture part in the document, the optimized sub-bitmap is obtained and then is replaced into the target display bitmap for display, so that the picture content is displayed more finely, the saw teeth during text display are reduced, and the display experience of the whole electronic book is improved.
Drawings
FIG. 1 is a flowchart of an ink screen display method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a picture region sub-bitmap and a text region sub-bitmap in an image bitmap according to an embodiment of the present invention;
FIG. 3 is a graph showing the comparison of the display effect of a picture area in the ink screen display method according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of an ink screen display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not of limitation. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be noted that, for the sake of brevity, this specification is not exhaustive of all of the alternative embodiments, and after reading this specification, one skilled in the art will appreciate that any combination of features may constitute an alternative embodiment as long as the features do not contradict each other.
The following describes various embodiments of the present invention in detail.
Fig. 1 is a flowchart of an ink screen display method according to an embodiment of the present invention. The ink screen display method is used for terminal equipment, in particular for terminal equipment using an ink screen for display, and as shown in fig. 1, the ink screen display method comprises the steps of S110-S115:
step S110: and acquiring an image bitmap to be displayed on the ink screen.
In the display process of the terminal equipment, a processor of the terminal equipment generates a display picture according to an interface component of a currently running program, and the display picture mainly refers to an interface of a program for reading an electronic document, namely a document view window. According to the operation of a user, the running program or the document page content in the running program changes, and the document page content with changed display picture presentation is correspondingly required to be regenerated. For different programs or different document pages, different components and color combination modes exist respectively, and the display picture formed by the display pictures is a picture with rich and various colors, namely, the frame picture data corresponds to a picture which generally carries rich color contents. In this scheme, any page that presents information in a static manner, formed in text or pictures or a combination of both, is considered a document page.
The electronic document aimed in the scheme can be electronic book documents (such as PDF, epub, mobi, azw, doc and the like) with various formats, picture files (such as jpg, png, webp and the like) with various formats, various programs for typesetting and rendering the electronic document can also be called typesetting engines, and the typesetting engines are used for loading data of the electronic document and rendering page bitmaps during the display process of the electronic document, and in the process, the rendered bitmap cache can be obtained from a view window, and bitmaps can be obtained by analysis from the picture files.
In a specific implementation, the obtaining of the image bitmap may be performed after the document view window receives the page display operation. That is, step S110 may include steps S111 to S113:
step S111: a page display operation is received at a document view window displayed on the ink screen.
The page display operation may be operations of opening an electronic document, sliding the electronic document up and down, turning pages back and forth, and the like, and may specifically be completed through gestures or controls.
Step S112: and responding to the page display operation, and acquiring page content corresponding to the page display operation in the document.
The page display operation can cause the display content of the electronic document to change, and the corresponding content to be displayed in the electronic document is obtained in response to the page display operation.
Step S113: and generating an image bitmap according to the page content.
When the ink screen is displayed, imaging is realized by driving pigment particles to adjust positions through an electric field, the colors of the configurable pigment particles are limited, the imaging effect of rich colors cannot be realized, and for the black-and-white ink screen aiming at the scheme, gray images can only be displayed based on the black-and-white pigment particles. Therefore, in order to achieve normal display of the ink screen, a grayscale page image needs to be generated from the color page image, that is, the image bitmap is a grayscale bitmap. The data recorded in the electronic document may be color, corresponding to the image data in which the pixels in the generated page are recorded in RGB form. The conversion from RGB to gray bitmap can be specifically performed by the following formula: gray= (red x 11+green x 16+blue x 5)/32.
Step S120: and extracting a picture region sub-bitmap from the image bitmap.
The scheme mainly aims at a picture part in an image bitmap, and the picture part is extracted to obtain a picture region sub-bitmap. The sub-bitmap of the picture area can be used for acquiring the position information of the picture area in the page content according to the layout information of the page content; and extracting bitmap data of the position information in the image bitmap mapping area according to the position information and the proportional relation between the page content and the image bitmap to generate a picture area sub-bitmap. When the extraction is specifically performed, the text region sub-bitmaps can also be extracted, and each sub-bitmap can be multiple.
If no picture position information is recorded in the layout information, namely the acquisition of the layout information from the page content fails, carrying out content identification on the image bitmap, and acquiring the position information of the picture area in the image bitmap.
As shown in fig. 2, an image bitmap 10 generated when one page in the instruction book of the use of the aragonite ink screen product is displayed is shown, and in the image bitmap 10, the number of the picture area sub-bitmap 11 and the text area sub-bitmap 12 is 1. The picture area sub-bitmap 11 is not strictly separated from the text, and at this time, part of the text can be reserved in the picture area sub-bitmap 11, for example, the book name of the electronic book, the text identifier of the function control in the function field, and the like.
The position information corresponding to the picture area sub-bitmap and the text area sub-bitmap can be represented by rectangular coordinates (left, upper, right and lower), and pixels inside a rectangle surrounded by four sides form the picture area sub-bitmap or the text area sub-bitmap.
Step S130: and performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap.
In the actual extraction process, according to different actual contents, the image bitmap may be composed of characters, wherein the image bitmap cannot be extracted, and the image bitmap is processed and displayed according to the pure character content. And if the picture area sub-bitmap is extracted, performing error diffusion based on at least 3-order dithering on the picture area sub-bitmap to obtain an optimized sub-bitmap. For example, 4 th and 8 th order jitter error diffusion is performed.
In a specific error diffusion process, sequentially generating an optimized pixel value of each pixel in the sub-bitmap of the picture area and error diffusion values of the pixels below and right in sequence from left to right from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference value of the synthesized pixel value minus the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
At least 3-order quantization 256 refers to quantizing an initial pixel value that is originally a value of 0 to 255 to a value in a 3-to-higher-order gray scale table. In a specific quantization process, the gray value is gray1, the quantization bit width is bit, the quantization step length is step, the offset bit number is shift, the maximum gray scale number is gray2 after quantization, and then the corresponding gray scale quantization formula is:
8-bit=shifter
(1 < < bit) -1=granycale (left shift by a specified number of bits)
255/grancicale = step (/ is a rounding operation)
(gray 1> > shift) ×step=gray 2 (shift right by a specified number of bits by bit operation).
Based on the above quantization procedure, for example, bit is 3, shifter is 8-3=5, step is (1 < < 3) -1=7, step is 255/7=36 (rounded), step 1 is 33, step 2 is (33 > > 5) ×36=36, step 1 is 37, and step 2 is (37 > > 5) ×36=36. The specific 8-order quantized 256 gray-scale table is: [0,36,72,108,144,180,216,255]. Corresponding to gray values of 0-255, 0-31 quantizes to 0, 32-63 quantizes to 36, 64-95 quantizes to 72, 96-127 quantizes to 108, 128-159 quantizes to 144, 160-191 quantizes to 180, 192-223 quantizes to 216, and 224-255 quantizes to 255.
For the first pixel, no error diffusion value is diffused to the first pixel, and the first pixel value is directly quantized to be more than 3 steps. For other pixels quantization based on the integrated pixel value is required. For example, the new pixel value after 33 quantization is 36, and the new pixel value after 37 quantization is 36. The error diffusion value is half the difference of the integrated pixel value minus the optimized pixel value, for example, the pixel value of the first pixel is 33, the corresponding error diffusion value is (33-36)/2= -1.5, and the integer is-1. If the initial pixel value of the next pixel is 60, the integrated pixel value is 60+ (-1) =59, the new pixel value corresponding to the 8-order quantization is 36, the corresponding error diffusion value is (59-36)/2=11.5, and the integer is 11. If a pixel is the last pixel of a row, the error diffusion value corresponds to only diffusion down.
In a specific implementation, when the initial pixel value corresponds to a pure white or pure black pixel, the optimized pixel value is maintained as the initial pixel value. The display of pure white or pure black is kept, which is equivalent to the calculation of error diffusion value not carried out on the pixel points, the original display of pure white or pure black is kept, the gray transition between black and white is avoided when the display of tables, border lines and the like is avoided, and the visual effect of new noise adding points is avoided.
In addition, the synthesized pixel value is constrained to be within a range of [0,255 ]. The pixels are prevented from being converted from black to white or from white to black.
It should be noted that, the above only describes the processing procedure for one image region sub-bitmap, if a plurality of image region sub-bitmaps are extracted from one image bitmap, the optimization processing is performed as described above.
Step S140: and replacing the optimized sub-bitmap to the position of the corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap.
For an electronic document, the page content mainly comprises characters and pictures, the structure composition is simpler, the characters can be displayed normally in a scene mainly based on reading, and in the scheme, on the basis of the original problems, the optimized sub-bitmap corresponding to the pictures is replaced to the corresponding positions, so that a better display effect can be obtained on the problems and the pictures at the same time.
Step S150: and displaying the target display bitmap to the ink screen.
The implementation of displaying the target display bitmap (i.e., an explicit frame data) to the electronic ink screen via waveform data is already implemented in the prior art, and will not be repeated here.
Based on the above implementation procedure, fig. 3 may be compared, wherein the upper left corner is the original image, the upper right corner is the effect of 16-level gray scale display not being optimized, the lower left corner is the effect of 2-level display, and the lower right corner is the effect of implementing the 8-level gray scale display of this embodiment to be optimized. The upper left corner is the effect displayed in the liquid crystal screen, and the ink screen cannot achieve the effect after processing in the scheme, but the lower right corner is the effect after processing, and the display in the ink screen is obvious due to the display effect of other processing.
In addition, the specific processing of the display method in this solution may be that when the reading application is applied to process the view window, the corresponding picture area is obtained according to the document structure before the image bitmap is generated, and after the processing procedure in step S110-step S140 in this solution is completed, the target display bitmap is given to the system layer, and the system layer displays the target display bitmap on the basis of the target display bitmap. Or the reading application gives the structural information of the page to be displayed and the specific page data to the system layer, and the system layer executes the steps S110-S50 to finish the final display.
In the ink screen display method, an image bitmap to be displayed on the ink screen is obtained; extracting a picture region sub-bitmap from the image bitmap; performing error diffusion based on 8-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap; replacing the optimized sub-bitmap to the position of a corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap; and displaying the target display bitmap to the ink screen. The image part in the document is subjected to error diffusion based on 8-order dithering, so that the optimized sub-bitmap is obtained and then is replaced into the target display bitmap for display, the image content is displayed more finely, the saw teeth during text display are reduced, and the display experience of the whole electronic book is improved.
Fig. 4 is a schematic structural diagram of an ink screen display device according to an embodiment of the present invention. Referring to fig. 4, the ink screen display device includes a bitmap acquisition unit 210, a picture extraction unit 220, a picture optimization unit 230, a picture replacement unit 240, and a bitmap display unit 250.
The bitmap obtaining unit 210 is configured to obtain an image bitmap to be displayed on the ink screen, where the image bitmap is a bitmap corresponding to a page formed by combining text and/or pictures and presenting information in a static manner; a picture extracting unit 220 for extracting a picture region sub-bitmap from the image bitmap; a picture optimization unit 230, configured to perform error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region, to obtain an optimized sub-bitmap; a picture replacing unit 240, configured to replace the optimized sub-bitmap to a position of a corresponding picture region sub-bitmap in the image bitmap, to obtain a target display bitmap; and a bitmap display unit 250 for displaying the target display bitmap to the ink screen.
On the basis of the above embodiment, the bitmap acquiring unit 210 includes:
the operation receiving module is used for receiving page display operation in a document view window displayed by the ink screen;
the content acquisition module is used for responding to the page display operation and acquiring page content corresponding to the page display operation in the document;
and the bitmap generation module is used for generating an image bitmap according to the page content.
On the basis of the above embodiment, the picture extraction unit 220 includes:
the position information acquisition module is used for acquiring the position information of the picture area in the page content according to the layout information of the page content;
and the bitmap data extraction module is used for extracting bitmap data of the position information in the image bitmap mapping area to generate a picture area sub-bitmap according to the position information and the proportional relation between the page content and the image bitmap.
On the basis of the above embodiment, the picture extraction unit 220 further includes:
and the content identification module is used for carrying out content identification on the image bitmap if the acquisition of the page information from the page content fails, and acquiring the position information of the picture area in the image bitmap.
On the basis of the above embodiment, the picture optimizing unit 230 includes:
the error processing module is used for sequentially generating an optimized pixel value of each pixel in the sub-bitmap of the picture area and error diffusion values of the pixels below and right in sequence from left to right from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference between the synthesized pixel value and the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
On the basis of the above embodiment, the initial pixel value corresponds to a pixel of pure white or pure black, and the optimized pixel value is maintained as the initial pixel value.
On the basis of the above embodiment, the synthesized pixel value is constrained to be within the range of [0,255 ].
The ink screen display device provided by the embodiment of the invention is contained in the terminal equipment, can be used for executing any ink screen display method provided by the embodiment, and has corresponding functions and beneficial effects.
It should be noted that, in the embodiment of the ink screen display device, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device includes a processor 310, a memory 320, an input means 330, an output means 340, and a communication means 350; the number of processors 310 in the terminal device may be one or more, one processor 310 being taken as an example in fig. 5; the processor 310, memory 320, input means 330, output means 340 and communication means 350 in the terminal device may be connected by a bus or other means, for example by a bus connection in fig. 5.
The memory 320 is a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the ink screen display method in the embodiment of the present invention (for example, the bitmap acquisition unit 210, the picture extraction unit 220, the picture optimization unit 230, the picture replacement unit 240, and the bitmap display unit 250 in the ink screen display device). The processor 310 executes various functional applications of the terminal device and data processing by running software programs, instructions and modules stored in the memory 320, i.e., implements the ink screen display method described above.
Memory 320 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal device, etc. In addition, memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 320 may further include memory located remotely from processor 310, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 330 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. The output device 340 in this embodiment is an ink screen, and may further include a sound output device or other display device.
The terminal equipment comprises the ink screen display device, can be used for executing any ink screen display method, and has corresponding functions and beneficial effects.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, realizes the related operations in the ink screen display method provided in any embodiment of the application, and has corresponding functions and beneficial effects.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application 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. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. An ink screen display method, comprising:
acquiring an image bitmap to be displayed on an ink screen, wherein the image bitmap is a bitmap corresponding to a page for displaying information in a static mode, which is formed by combining characters and/or pictures;
extracting a picture region sub-bitmap from the image bitmap;
performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap;
replacing the optimized sub-bitmap to the position of a corresponding picture area sub-bitmap in the image bitmap to obtain a target display bitmap;
displaying the target display bitmap to the ink screen;
the performing error diffusion based on at least 3-order dithering on the extracted sub-bitmap of the picture region to obtain an optimized sub-bitmap includes:
sequentially generating an optimized pixel value of each pixel and error diffusion values of downward and right pixels in the sub-bitmap of the picture area from left to right in sequence from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference value of the synthesized pixel value minus the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
2. The method for displaying an ink screen according to claim 1, wherein the obtaining an image bitmap to be displayed on the ink screen comprises:
receiving page display operation at a document view window displayed on an ink screen;
responding to the page display operation, and acquiring page content corresponding to the page display operation in a document;
and generating an image bitmap according to the page content.
3. The ink screen display method of claim 2, wherein the extracting a picture region sub-bitmap from the image bitmap comprises:
acquiring position information of a picture area in the page content according to layout information of the page content;
and extracting bitmap data of the position information in the image bitmap mapping area according to the position information and the proportional relation between the page content and the image bitmap to generate a picture area sub-bitmap.
4. The ink screen display method of claim 3, wherein the extracting a picture region sub-bitmap from the image bitmap further comprises:
if the acquisition of the layout information from the page content fails, carrying out content identification on the image bitmap, and acquiring the position information of the picture area in the image bitmap.
5. The ink screen display method of claim 1, wherein the initial pixel value corresponds to a solid white or solid black pixel, and the optimized pixel value is maintained at the initial pixel value.
6. The ink screen display method of claim 1, wherein the composite pixel value is constrained to be within a range of [0,255 ].
7. An ink screen display device, comprising:
the bitmap acquisition unit is used for acquiring an image bitmap to be displayed on the ink screen, wherein the image bitmap is an image bitmap corresponding to a page which is formed by combining characters and/or pictures and presents information in a static mode;
a picture extraction unit for extracting a picture region sub-bitmap from the image bitmap;
the image optimization unit is used for performing error diffusion based on at least 3-order dithering on the extracted image region sub-bitmap to obtain an optimized sub-bitmap;
a picture replacing unit, configured to replace the optimized sub-bitmap to a position of a corresponding picture region sub-bitmap in the image bitmap, to obtain a target display bitmap;
a bitmap display unit configured to display the target display bitmap to the ink screen;
wherein, the picture optimizing unit includes:
the error processing module is used for sequentially generating an optimized pixel value of each pixel in the sub-bitmap of the picture area and error diffusion values of the pixels below and right in sequence from left to right from top to bottom, and obtaining an optimized sub-bitmap according to the optimized pixel values;
wherein the optimized pixel value of each pixel is obtained by quantizing 256 gray values of at least 3 steps through a synthesized pixel value, the error diffusion value is half of the difference value of the synthesized pixel value minus the optimized pixel value, and the synthesized pixel value is the sum of the initial pixel value and the error diffusion value.
8. A terminal device, comprising:
an ink screen;
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the terminal device is caused to implement the ink screen display method as claimed in any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the ink screen display method according to any one of claims 1 to 6.
CN202211013409.8A 2022-08-23 2022-08-23 Ink screen display method, device, terminal equipment and storage medium Active CN115831061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211013409.8A CN115831061B (en) 2022-08-23 2022-08-23 Ink screen display method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211013409.8A CN115831061B (en) 2022-08-23 2022-08-23 Ink screen display method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115831061A CN115831061A (en) 2023-03-21
CN115831061B true CN115831061B (en) 2023-07-28

Family

ID=85523186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211013409.8A Active CN115831061B (en) 2022-08-23 2022-08-23 Ink screen display method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115831061B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301655B (en) * 2023-04-12 2023-11-07 深圳市英唐数码科技有限公司 Method, system and readable storage medium for loading historical note pictures
CN116597789B (en) * 2023-06-06 2024-02-23 广州文石信息科技有限公司 Picture display method, device and equipment of color ink screen and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641729A (en) * 2004-01-17 2005-07-20 深圳创维-Rgb电子有限公司 Method for improving colour PDP display capacity and display device
CN101273360B (en) * 2005-09-29 2010-05-12 英特尔公司 Error diffusion for display frame buffer saving electricity
JP5076309B2 (en) * 2005-11-30 2012-11-21 パナソニック株式会社 Error diffusion processing method
JP4795406B2 (en) * 2008-08-27 2011-10-19 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing apparatus control method, control program, and recording medium
CN111161683B (en) * 2020-01-03 2021-05-18 京东方科技集团股份有限公司 Image processing method, image processor and display device

Also Published As

Publication number Publication date
CN115831061A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN115831061B (en) Ink screen display method, device, terminal equipment and storage medium
CN110570380B (en) Image processing method and device for electronic ink screen and electronic ink screen
CN103403759B (en) Locally many grades tone mapping operations device
CN105574918B (en) A kind of material adding method, device and the terminal of 3D models
US8368969B2 (en) Methods and devices for rasterizing transparent pages
CN102549643B (en) For the treatment of for the device of view data of display panel display, display device and method thereof
CN113168684B (en) Method, system and computer readable medium for improving quality of low brightness images
CN109472839B (en) Image generation method and device, computer equipment and computer storage medium
JP6433887B2 (en) Electronic display device and driving method thereof
CN108446089B (en) Data display method and device and display
JP2008092551A (en) Image processing system and image processing method
JP5439510B2 (en) Image forming apparatus and image forming program
JP2015523593A5 (en)
US10418000B2 (en) Method and apparatus for screen capture on a display device
CN110880164B (en) Image processing method, device, equipment and computer storage medium
JPH01321578A (en) Picture display system
CN113053322B (en) Display optimization method of electronic ink screen and related device
CN117037724B (en) Picture display method, device and equipment of ink screen and storage medium
US20070058203A1 (en) System and method for generating low visibility multi-bit halftone
CN111338627B (en) Front-end webpage theme color adjustment method and device
US11217205B2 (en) Method and apparatus for rendering contents for vision accessibility
CN111930461A (en) Android-based mobile terminal APP full page graying method and device
CN116939181B (en) Image processing method, device, system, storage medium and electronic equipment
JP2012183763A (en) Printer
JP2010028819A (en) Image processing apparatus and method, and image reading apparatus

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
GR01 Patent grant
GR01 Patent grant