CN109697739B - Reverse color display method of handwriting reading equipment and handwriting reading equipment - Google Patents
Reverse color display method of handwriting reading equipment and handwriting reading equipment Download PDFInfo
- Publication number
- CN109697739B CN109697739B CN201811591002.7A CN201811591002A CN109697739B CN 109697739 B CN109697739 B CN 109697739B CN 201811591002 A CN201811591002 A CN 201811591002A CN 109697739 B CN109697739 B CN 109697739B
- Authority
- CN
- China
- Prior art keywords
- displayed
- color processing
- reverse color
- data
- state
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/02—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
- G06F15/025—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
- G06F15/0291—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/046—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Electromagnetism (AREA)
- Human Computer Interaction (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a reverse color display method of a handwriting reading device and the handwriting reading device, the method is realized based on a driving program of a system layer of the handwriting reading device, and comprises the following steps: receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data; inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed; and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying. By adopting the mode, the image layer data to be displayed obtained after the image layers are combined is directly subjected to the reverse color processing by utilizing the driving program on the system layer, the reverse color processing is not required to be performed on the image layer data of each image layer, the complexity and the operation amount of the reverse color processing can be reduced, the efficiency of the reverse color processing is improved, and the problem of difficulty increase of the reverse color processing caused by inconsistent image layer data formats can be avoided.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a reverse color display method of a handwriting reading device.
Background
The inverse color processing of a picture is realized by substantially inverting the colors of the picture and performing inverse color processing on picture data, for example, by inverting the R, G, B color component values of a color image, and if the quantization level of the colors is 256, the R, G, B component value of the new picture is 255 minus the R, G, B component value of the original picture.
For the existing handwriting reading equipment based on the electronic ink screen, the reverse color display of the screen image is realized in an application layer. After the application layer obtains the layer data of a plurality of layers, performing reverse color processing on the layer data of each layer respectively, and then transmitting the layer data of each layer subjected to the reverse color processing to the system layer; and the system layer combines all the image layers, and outputs the combined image data to the electronic ink screen for display.
However, in the process of implementing the present invention, the inventors found that at least the following defects exist in the prior art: the existing reverse color processing method is to perform reverse color processing when drawing a picture, and needs to perform reverse color calculation on each pixel point in each layer, so that the calculation amount is large and the efficiency is low; secondly, when the data formats of the layer data of each layer are inconsistent, the color components of the color values of various formats need to be extracted respectively, and the color values of one pixel point can be synthesized after the color components are subjected to reverse color calculation respectively, so that the logic complexity of the reverse color processing can be further increased.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide an inverse color display method of a handwriting reading apparatus and a handwriting reading apparatus that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for displaying an inverse color of a handwriting reading device, the method being implemented based on a driver at a system layer of the handwriting reading device, and the method including:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
According to another aspect of the present invention, there is provided a handwriting reading apparatus comprising: the electronic ink screen, the electromagnetic plate, the processor, the memory, the communication interface and the communication bus are communicated with each other through the communication bus;
the electromagnetic board is used for detecting a handwriting operation instruction generated by the electromagnetic pen on the electronic ink screen, the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the following operations:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
According to the reverse color display method of the handwriting reading equipment and the handwriting reading equipment provided by the invention, the method is realized based on a driving program of a system layer of the handwriting reading equipment, and specifically comprises the following steps: receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data; inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed; and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying. By adopting the method, the image data to be displayed obtained after merging the image layer data of each image layer by utilizing the driving program on the system layer is subjected to reverse color processing, and the image layer data of each image layer is not required to be subjected to reverse color processing respectively.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for displaying an inverse color of a handwriting reading device, in accordance with one embodiment of the present invention;
FIG. 2 is a flow chart illustrating a reverse color display method of a handwriting reading device according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a handwriting reading device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a reverse display method of a handwriting reading device according to an embodiment of the present invention, wherein the method is implemented based on a driver at a system layer of the handwriting reading device. As shown in fig. 1, the method includes:
step S101, receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data.
In the invention, a driver is designed in a system layer of the handwriting reading equipment, and the driver is used for completing the processes of layer combination, reverse color processing on the to-be-displayed picture data obtained by layer combination and the like.
After receiving the layer data of each layer transmitted by the application layer, the driver combines the layer data of each layer together to form the picture data to be displayed. The application layer can transfer the layer data of each layer through a related interface provided by a calling driver. And outputting the data of the picture to be displayed to the electronic ink screen to display the picture to be displayed.
And S102, inquiring the state of the reverse color processing switch, and if the state of the reverse color processing switch is in an opening state, performing reverse color processing on the picture data to be displayed.
The state of the reverse color processing switch can be set according to a state setting instruction transmitted by the application layer, and the application layer calls a related interface transmission state setting instruction provided by the driving program. For example, when receiving an on-state setting instruction transmitted by the application layer, the driver sets the light-on state of the reverse color processing to the on state. That is, the reverse color processing on-off state may be set by the user on the handwriting reading device side in a specific application.
And inquiring the state of the reverse color processing switch by the driver, and if the state of the reverse color processing switch is an open state, performing reverse color processing on the image layer data of each image layer to be displayed, which is obtained after merging the image layer data of each image layer. Therefore, the method of the invention directly performs the inverse color processing on the to-be-displayed picture data obtained after the layers are combined, that is, the layers are combined first, and then the image data obtained by combining are subjected to the inverse color processing, while the prior art performs the inverse color processing on each layer first and then combines, so that compared with the prior art, the method of the invention can obtain smaller computation and complexity to a great extent, and the difficulty of processing logic is relatively smaller because the data format of the to-be-displayed picture data is unique.
And step S103, outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
The data format of the image data to be displayed after the reverse color processing is consistent with the format of the data required by the hardware of the electronic ink screen, and the image data to be displayed after the reverse color processing is directly output to the electronic ink screen, so that the reverse color image corresponding to the image to be displayed can be displayed, and the effect of performing reverse color display on the image to be displayed is achieved. The method of the embodiment directly outputs the image data to be displayed, which is subjected to the reverse color processing, to the electronic ink screen for display by using the driving program, without writing the image data to be displayed, which is subjected to the reverse color processing, into the cache first, and then reading the image data from the cache and outputting the image data to the electronic ink screen for display, so that the operations of reading and writing the memory can be reduced, and the efficiency of the reverse color display is further improved.
According to the reverse color display method of the handwriting reading device provided by the embodiment, the method is realized based on a driving program of a system layer of the handwriting reading device, and comprises the steps of firstly, receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain picture data to be displayed; secondly, inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed; and finally, outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying. By adopting the method, the image layer data of each image layer is merged by the driving program at the system layer to obtain the image data to be displayed, compared with the prior art, the method does not need to perform the reverse color processing on the image layer data of each image layer, can reduce the complexity and the operation amount of the reverse color processing and improve the efficiency of the reverse color processing, and can avoid the problem of difficulty increase of the reverse color processing caused by the inconsistency of the image layer data because the data format of the image data to be displayed is unique; meanwhile, the image data to be displayed after the reverse color processing is directly output to an electronic display screen for displaying by using a driving program, so that the operation of reading and writing the memory can be reduced; therefore, the method of the embodiment is implemented based on the driver, and optimizes the reverse color processing process on one hand and the picture display process on the other hand.
Fig. 2 is a flowchart illustrating a reverse display method of a handwriting reading device according to another embodiment of the present invention, wherein the method is implemented based on a driver at a system layer of the handwriting reading device. As shown in fig. 2, the method includes:
step S201, receiving layer data of each layer transmitted by the application layer, merging the layer data of each layer to obtain to-be-displayed picture data, and storing the to-be-displayed picture data in the cache.
In the invention, the mode of combining the layer data of each layer into the picture data to be displayed by the driver is similar to the mode of synthesizing pictures in the prior art. In specific implementation, the processing of the layer data of each layer by the driver may include other optimization processing besides the merging processing, and a person skilled in the art may add the function of the driver according to actual needs.
After the image data to be displayed is obtained through combination, the image data to be displayed is stored into the cache by the driving program, so that the image data to be displayed can be read from the cache in the subsequent processing process.
Step S202, inquiring the state of the reverse color processing switch, and reading out the picture data to be displayed from the cache if the state of the reverse color processing switch is in an on state.
And inquiring the state of the reverse color processing switch by the driver, and reading the picture data to be displayed from the cache when the state of the reverse color processing switch is inquired to be the opening state.
In this embodiment, the driver may further provide an inverse color processing switch state reading interface to the application layer, so that the application layer queries the inverse color processing switch state. Specifically, the driver provides a reverse color processing switch state reading interface for the application layer, and returns switch state reading information to the application layer according to a calling request of the application layer to the reverse color processing switch state reading interface so that the application layer can present the switch state to a user. For example, for a user on the handwriting reading device side, if the user needs to know the current reverse color processing switch state, the triggering operation of querying the processing switch state is executed, when the application layer detects the triggering operation, the application layer calls a reverse color processing switch state reading interface provided by the driver to obtain the current reverse color processing switch state, and the application layer presents the obtained reverse color processing switch state on the handwriting reading device.
Furthermore, the driver can also provide a reverse color processing switch state setting interface for the application layer, the application layer calls the reverse color processing switch state setting interface to transmit switch state setting information to the driver, and the driver sets the reverse color processing switch state according to the received switch state setting information. For example, for a user on the handwriting reading device side, if the user needs to turn on the reverse color processing switch, the turn-on trigger operation of the reverse color processing switch is executed, when the application layer detects the turn-on trigger operation, the reverse color processing switch state setting interface provided by the driver is called to transmit setting information for turning on the reverse color processing switch to the driver, and the driver turns on the reverse color processing switch according to the setting information for turning on the reverse color processing switch.
Step S203, the color data of each pixel point in the image data to be displayed is subjected to reverse color calculation, the color data of each pixel point is updated according to the reverse color calculation result, and the reverse color processing of the image data to be displayed is completed.
The step is to perform inverse color processing on the image data to be displayed, perform inverse color calculation on the color data of each pixel point in the image data to be displayed, and perform inverse color calculation on the color data of the pixel points respectively. For example, for the image data to be displayed in the RGB888 format, the R component data, the G component data, and the B component data of each pixel point in the image data to be displayed are subjected to inverse color calculation. Suppose that the hexadecimal color codes (color data) of 4 pixels in the image data to be displayed are respectively: 0x000000, 0x000000 and 0x000000, can know according to the color code that this 4 pixel originally shows for black, do respectively after carrying out the reverse color calculation to the color code of this 4 pixel: 0xfffffff, 0xfffffff and 0xfffffff, the color codes of the 4 pixel points are respectively updated as: 0xfffffff, 0xfffff and 0xfffffff, and according to the color code after the reverse color calculation, the 4 pixel points can be known to be displayed as white after the reverse color processing. The above example illustrates the reverse color processing method by taking black to white as an example, but the present invention is not limited to the case of converting black to white, and the present invention is applicable to reverse color processing for any color.
According to the scheme of the invention, the picture data in the RGBA format can be subjected to reverse color processing, namely the color data of each pixel point in the picture data to be displayed comprises transparency data. Specifically, when the image data of the image to be displayed in the RGBA format is subjected to the reverse color processing, the transparency data of each pixel point is kept unchanged. That is, if each pixel point in the image data to be displayed has transparency data, the transparency data of each pixel point is kept unchanged after the reverse color processing. For example, the color data of a pixel is specifically: 0x000000ff, where "ff" is transparency data, and the color data of the pixel after the inverse color processing is specifically: 0 xffffffff.
When the picture corresponding to the picture data to be displayed is a true color picture, performing reverse color processing on the color data of each pixel point in the picture data to be displayed. When the picture corresponding to the picture data to be displayed is a pseudo-color picture (color picture with a palette), the data in the bitmap is only an index value in the corresponding palette, and the data corresponding to the palette is inverted to form new palette data, while the bitmap data is not changed, so that the color development processing of the pseudo-color picture can be completed. In addition, when the reverse color processing is carried out, elements such as pictures, characters and the like contained in the picture data to be displayed are not changed at all.
And step S204, outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
And directly outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying, thereby realizing the reverse color display of the image to be displayed.
In the above embodiment, in step S201, the picture data to be displayed is stored in the cache; in step S202, if it is necessary to perform a color reversal process, directly reading the image data to be displayed from the buffer memory; after the image data to be displayed is subjected to the reverse color processing in step S203, the image data to be displayed after the reverse color processing is output to the electronic ink screen for displaying by directly using step S204. Therefore, the above embodiment directly performs the reverse color processing to output to the electronic ink screen when refreshing the screen, and the image data to be displayed after the reverse color processing does not need to be written into the cache and then output to the electronic ink screen, thereby greatly improving the processing efficiency.
The present invention is not limited to the above embodiment, and in another alternative embodiment, two caches may be opened up: the display device comprises a first cache and a second cache, wherein the first cache is used for storing picture data to be displayed, and the second cache is used for storing the picture data to be displayed after the reverse color processing. The first cache and the second cache may be two different caches, or two different cache spaces in the same cache, which is not limited in the present invention.
Then, in step S202, after the image data to be displayed is obtained, the image data to be displayed is stored in the first cache; step S203 specifically includes: if the state of the reverse color processing switch is in an opening state, reading the picture data to be displayed from the first cache, performing reverse color processing on the picture data to be displayed, and storing the picture data to be displayed after the reverse color processing in a second cache; step S204 specifically includes: and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying. The method stores the image data to be displayed and the image data to be displayed after the reverse color processing separately, and distinguishes the two image data.
In addition, if there is only one buffer, after the image data to be displayed is read from the buffer and the reverse color processing is completed, the image data to be displayed after the reverse color processing may also be stored in the buffer, and an identifier is set for the image data to be displayed after the reverse color processing, where the identifier indicates that the image data is subjected to the reverse color processing, which is not limited by the present invention.
In the other embodiment, instead of directly performing the reverse color processing to output the image data to the electronic ink screen when the screen is refreshed, the image data to be displayed after the reverse color processing is rewritten to the buffer before the screen is refreshed, and the image data to be displayed after the reverse color processing is taken out from the buffer when the screen is refreshed to output the image data to the electronic ink screen for display. Relatively speaking, this embodiment requires a higher amount of computation, and loses a part of the cache read efficiency, but the stability of this embodiment is better.
In practical applications, the application layer may transmit an update instruction to the driver when detecting a display update operation, and the driver executes the method according to the received update instruction. Of course, the present invention is not limited thereto.
Therefore, in the method of the embodiment, by designing a driver at a system layer of the handwriting reading device, and using the driver to complete layer combination and perform inverse color processing on the image data to be displayed obtained by combining the layer data of each layer, compared with the prior art that the image data of each layer is subjected to inverse color processing respectively, and then the image data subjected to inverse color processing are combined to form the final image data to be displayed, the complexity and the computation amount of the inverse color processing can be greatly reduced, and the efficiency of the inverse color processing is improved; meanwhile, the mode is that the image data to be displayed obtained by combining the image layers is subjected to reverse color processing, and the problem that the difficulty of reverse color processing is increased due to the fact that the formats of the image layer data are inconsistent can be solved due to the fact that the data formats of the image data to be displayed are single.
The embodiment of the application provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the reverse color display method of the handwriting reading device in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
In an alternative, the executable instructions may be specifically configured to cause the processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a cache;
and if the reverse color processing switch is in an on state, reading the picture data to be displayed from the cache, and performing reverse color processing on the picture data to be displayed.
In an alternative, the executable instructions may be specifically configured to cause the processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a first cache;
if the reverse color processing switch state is the opening state, reading out the picture data to be displayed from the first cache, and performing reverse color processing on the picture data to be displayed; storing the image data to be displayed after the color reversal processing into a second cache;
and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
In an alternative, the executable instructions may be specifically configured to cause the processor to:
and performing reverse color calculation on the color data of each pixel point in the image data to be displayed, and updating the color data of each pixel point according to a reverse color calculation result.
In an optional manner, if each pixel point in the image data to be displayed has transparency data, the transparency data of each pixel point is kept unchanged after the reverse color processing.
In an alternative, the executable instructions may be specifically configured to cause the processor to:
and acquiring the switch state setting information transmitted by the application layer calling the reverse color processing switch state setting interface, and setting the reverse color processing switch state according to the switch state setting information.
In an alternative, the executable instructions may be specifically configured to cause the processor to:
and returning the switch state reading information to the application layer according to the calling request of the application layer to the reverse color processing switch state reading interface so as to present the switch state to the user for the application layer.
Fig. 3 is a schematic structural diagram of a handwriting reading device according to an embodiment of the present invention, and the embodiment of the present invention is not limited to the specific implementation of the handwriting reading device.
As shown in fig. 3, the handwriting reading apparatus may include: electronic ink screen 301, electromagnetic board 303, processor 302, communication Interface 304, memory 306, and communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the above-described embodiment of the reverse color display method of the handwriting reading apparatus.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit (asic), or one or more Integrated circuits configured to implement an embodiment of the present invention. The handwriting reading device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain to-be-displayed picture data;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
In an alternative manner, the program 310 may be further configured to cause the processor 302 to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a cache;
and if the reverse color processing switch is in an on state, reading the picture data to be displayed from the cache, and performing reverse color processing on the picture data to be displayed.
In an alternative manner, the program 310 may be further configured to cause the processor 302 to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a first cache;
if the reverse color processing switch state is the opening state, reading out the picture data to be displayed from the first cache, and performing reverse color processing on the picture data to be displayed; storing the image data to be displayed after the color reversal processing into a second cache;
and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
In an alternative manner, the program 310 may be further configured to cause the processor 302 to:
and performing reverse color calculation on the color data of each pixel point in the image data to be displayed, and updating the color data of each pixel point according to a reverse color calculation result.
In an optional manner, if each pixel point in the image data to be displayed has transparency data, the transparency data of each pixel point is kept unchanged after the reverse color processing.
In an alternative manner, the program 310 may be further configured to cause the processor 302 to:
and acquiring the switch state setting information transmitted by the application layer calling the reverse color processing switch state setting interface, and setting the reverse color processing switch state according to the switch state setting information.
In an alternative manner, the program 310 may be further configured to cause the processor 302 to:
and returning the switch state reading information to the application layer according to the calling request of the application layer to the reverse color processing switch state reading interface so as to present the switch state to the user for the application layer.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Claims (21)
1. A reverse color display method of a handwriting reading device, the method is realized based on a driver at a system layer of the handwriting reading device, and comprises the following steps:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain picture data to be displayed;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying; and the data format of the image data to be displayed after the reverse color processing is consistent with the format of the data required by the electronic ink screen hardware.
2. The method of claim 1, wherein after the obtaining picture data to be displayed, the method further comprises: storing the picture data to be displayed into a cache;
if the reverse color processing switch state is an on state, performing reverse color processing on the to-be-displayed picture data further comprises: and if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from the cache, and performing reverse color processing on the picture data to be displayed.
3. The method of claim 1, wherein after the obtaining picture data to be displayed, the method further comprises: storing the picture data to be displayed into a first cache;
if the reverse color processing switch state is an on state, performing reverse color processing on the to-be-displayed picture data further comprises: if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from a first cache, and performing reverse color processing on the picture data to be displayed; storing the image data to be displayed after the color reversal processing into a second cache;
the step of outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying further comprises the following steps: and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
4. The method according to any one of claims 1-3, wherein the inverse color processing the picture data to be displayed further comprises:
and performing reverse color calculation on the color data of each pixel point in the image data to be displayed, and updating the color data of each pixel point according to a reverse color calculation result.
5. The method according to claim 4, wherein if each pixel point in the image data to be displayed has transparency data, the transparency data of each pixel point is kept unchanged after the reverse color processing.
6. The method of any of claims 1-3, wherein the driver provides an inverse color process switch state setting interface to an application layer;
the method further comprises the following steps: and acquiring the switch state setting information transmitted by the application layer calling the reverse color processing switch state setting interface, and setting the reverse color processing switch state according to the switch state setting information.
7. The method of any of claims 1-3, wherein the driver provides an inverse color processing switch state reading interface to an application layer;
the method further comprises the following steps: and returning the switch state reading information to the application layer according to the calling request of the application layer to the reverse color processing switch state reading interface so as to present the switch state to the user by the application layer.
8. A handwriting reading apparatus comprising: the electronic ink screen, the electromagnetic plate, the processor, the memory, the communication interface and the communication bus are communicated with each other through the communication bus;
the electromagnetic board is used for detecting a handwriting operation instruction generated by an electromagnetic pen on the electronic ink screen, and the memory is used for storing at least one executable instruction which causes the processor to execute the following operations:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain picture data to be displayed;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying; and the data format of the image data to be displayed after the reverse color processing is consistent with the format of the data required by the electronic ink screen hardware.
9. The handwriting reading device of claim 8, said executable instructions further causing said processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a cache;
and if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from the cache, and performing reverse color processing on the picture data to be displayed.
10. The handwriting reading device of claim 8, said executable instructions further causing said processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a first cache;
if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from a first cache, and performing reverse color processing on the picture data to be displayed; storing the image data to be displayed after the color reversal processing into a second cache;
and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
11. The handwriting reading device of any of claims 8-10, said executable instructions further causing said processor to:
and performing reverse color calculation on the color data of each pixel point in the image data to be displayed, and updating the color data of each pixel point according to a reverse color calculation result.
12. The handwriting reading apparatus of claim 11, if each pixel point in said to-be-displayed picture data has transparency data, the transparency data of each pixel point is kept unchanged after the reverse color processing.
13. The handwriting reading device of any of claims 8-10, said executable instructions further causing said processor to:
and acquiring the switch state setting information transmitted by the application layer calling the reverse color processing switch state setting interface, and setting the reverse color processing switch state according to the switch state setting information.
14. The handwriting reading device of any of claims 8-10, said executable instructions further causing said processor to:
and returning the switch state reading information to the application layer according to the calling request of the application layer to the reverse color processing switch state reading interface so as to present the switch state to the user by the application layer.
15. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving layer data of each layer transmitted by an application layer, and merging the layer data of each layer to obtain picture data to be displayed;
inquiring the state of a reverse color processing switch, and if the state of the reverse color processing switch is an opening state, performing reverse color processing on the picture data to be displayed;
outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying; and the data format of the image data to be displayed after the reverse color processing is consistent with the format of the data required by the electronic ink screen hardware.
16. The computer storage medium of claim 15, the executable instructions further causing the processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a cache;
and if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from the cache, and performing reverse color processing on the picture data to be displayed.
17. The computer storage medium of claim 15, the executable instructions further causing the processor to:
after the picture data to be displayed are obtained, storing the picture data to be displayed into a first cache;
if the state of the reverse color processing switch is an opening state, reading the picture data to be displayed from a first cache, and performing reverse color processing on the picture data to be displayed; storing the image data to be displayed after the color reversal processing into a second cache;
and reading the image data to be displayed after the reverse color processing from the second cache, and outputting the image data to be displayed after the reverse color processing to an electronic ink screen for displaying.
18. The computer storage medium of any of claims 15-17, the executable instructions further causing the processor to:
and performing reverse color calculation on the color data of each pixel point in the image data to be displayed, and updating the color data of each pixel point according to a reverse color calculation result.
19. The computer storage medium of claim 18, wherein if each pixel in the to-be-displayed picture data has transparency data, the transparency data of each pixel is kept unchanged after the reverse color processing.
20. The computer storage medium of any of claims 15-17, the executable instructions further causing the processor to:
and acquiring the switch state setting information transmitted by the application layer calling the reverse color processing switch state setting interface, and setting the reverse color processing switch state according to the switch state setting information.
21. The computer storage medium of any of claims 15-17, the executable instructions further causing the processor to:
and returning the switch state reading information to the application layer according to the calling request of the application layer to the reverse color processing switch state reading interface so as to present the switch state to the user by the application layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811591002.7A CN109697739B (en) | 2018-12-25 | 2018-12-25 | Reverse color display method of handwriting reading equipment and handwriting reading equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811591002.7A CN109697739B (en) | 2018-12-25 | 2018-12-25 | Reverse color display method of handwriting reading equipment and handwriting reading equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109697739A CN109697739A (en) | 2019-04-30 |
CN109697739B true CN109697739B (en) | 2020-01-21 |
Family
ID=66231935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811591002.7A Active CN109697739B (en) | 2018-12-25 | 2018-12-25 | Reverse color display method of handwriting reading equipment and handwriting reading equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697739B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110570380B (en) * | 2019-09-12 | 2022-04-08 | 京东方科技集团股份有限公司 | Image processing method and device for electronic ink screen and electronic ink screen |
CN112783584B (en) * | 2019-11-07 | 2023-04-14 | 合肥杰发科技有限公司 | Layer display method and device of terminal system, vehicle equipment and storage device |
CN111161683B (en) | 2020-01-03 | 2021-05-18 | 京东方科技集团股份有限公司 | Image processing method, image processor and display device |
CN111813492B (en) * | 2020-08-19 | 2024-05-03 | 深圳市欢太科技有限公司 | Display method and device for quick application, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123076A (en) * | 2006-08-10 | 2008-02-13 | 精工爱普生株式会社 | Image data processing device, image display device, and driving video data generating method |
CN103425452A (en) * | 2013-08-06 | 2013-12-04 | 广东欧珀移动通信有限公司 | Multi-layer overlapping display method and device for mobile terminal |
CN108153505A (en) * | 2017-12-26 | 2018-06-12 | 掌阅科技股份有限公司 | Display methods, electronic equipment and the computer storage media of handwriting input content |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS597373A (en) * | 1982-07-05 | 1984-01-14 | Ricoh Co Ltd | Color electrophotographic method |
JPS60100104A (en) * | 1984-10-11 | 1985-06-04 | Hitachi Ltd | Solid-state color image pickup element |
KR100524590B1 (en) * | 2000-08-04 | 2005-11-01 | 박규진 | Reading apparatus and method using display device |
JP6303816B2 (en) * | 2014-05-28 | 2018-04-04 | 富士ゼロックス株式会社 | Image processing apparatus and program |
CN104392054B (en) * | 2014-11-27 | 2018-11-23 | 西华大学 | A kind of ellipse optical attenuator design method |
CN108322789B (en) * | 2018-01-18 | 2021-01-08 | 北京奇艺世纪科技有限公司 | Network picture display method and device and mobile terminal |
CN108762597B (en) * | 2018-06-13 | 2019-09-24 | 掌阅科技股份有限公司 | The method for drafting and E-book reader of E-book reader handwriting |
-
2018
- 2018-12-25 CN CN201811591002.7A patent/CN109697739B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123076A (en) * | 2006-08-10 | 2008-02-13 | 精工爱普生株式会社 | Image data processing device, image display device, and driving video data generating method |
CN103425452A (en) * | 2013-08-06 | 2013-12-04 | 广东欧珀移动通信有限公司 | Multi-layer overlapping display method and device for mobile terminal |
CN108153505A (en) * | 2017-12-26 | 2018-06-12 | 掌阅科技股份有限公司 | Display methods, electronic equipment and the computer storage media of handwriting input content |
Also Published As
Publication number | Publication date |
---|---|
CN109697739A (en) | 2019-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109697739B (en) | Reverse color display method of handwriting reading equipment and handwriting reading equipment | |
CN110703978B (en) | Information display method, reader, and computer storage medium | |
US7009624B2 (en) | Shape processor | |
US20080030510A1 (en) | Multi-GPU rendering system | |
US11127369B2 (en) | Method of synthesizing RGBA layers for mobile field sequential display, display device, electronic device and computer readable storage medium using the same | |
KR20040062564A (en) | Systems and methods for generating visual representations of graphical data and digital document processing | |
CN110235176B (en) | Image processing method and device, data transmission method and device and storage medium | |
JP5183286B2 (en) | Character display device | |
US10026151B2 (en) | Head-up display warping controller | |
CN108228074B (en) | Display control method, display system, electronic device, and computer-readable medium | |
CN103390260A (en) | Method and device for image processing | |
GB2524047A (en) | Improvements in and relating to rendering of graphics on a display device | |
CN111881104A (en) | NFS server, data writing method and device thereof, and storage medium | |
CN109065001B (en) | Image down-sampling method and device, terminal equipment and medium | |
CN112463598A (en) | Pressure measurement method and device, electronic equipment and readable storage medium | |
CN112309341A (en) | Electronic device for blending layers of image data | |
CN114697555B (en) | Image processing method, device, equipment and storage medium | |
CN115829846A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
JP2005322233A (en) | Memory efficient method and apparatus for compression encoding large overlaid camera image | |
US20060170708A1 (en) | Circuits for processing encoded image data using reduced external memory access and methods of operating the same | |
JP2005266792A (en) | Memory efficient method and apparatus for displaying large overlaid camera image | |
KR20210068593A (en) | Method and apparatus for HDR hardware processor inline to hardware encoder and decoder | |
US20240212214A1 (en) | Decoder, image processing device, and operating method of the image processing device | |
CN112073726B (en) | Compression method and device, computer readable storage medium and electronic device | |
US11227026B2 (en) | Information processing apparatus, web application program non-transitory computer readable recording medium that records, and information processing system |
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 |