Title display method, device, storage medium, and electronic device

By identifying and replacing the colors of writing marks in the ink screen's color image, the problem of mixed questions and marks was solved, achieving clear question display.

CN115509474BActive Publication Date: 2026-05-08GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Filing Date
2021-06-07
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

When displaying a photographed question on an e-ink screen, the question and written markings are mixed together, causing recognition interference.

Method used

By acquiring a color image, iterating through the color values ​​of pixels, identifying the written marks and replacing their color values ​​with the background color, while preserving the title display.

Benefits of technology

It effectively removes writing marks on the e-ink screen, reduces recognition interference, and improves the clarity of the displayed questions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115509474B_ABST
    Figure CN115509474B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a question display method and device, a storage medium and an electronic device, wherein the method comprises: obtaining a first image; wherein the first image is a color image comprising a question and a writing mark; determining a pixel point where the writing mark is located according to a color identifier corresponding to the pixel point of the first image and a preset writing mark color identifier; replacing a color value of the pixel point where the writing mark is located with a background color value of the first image in the first image to obtain a second image; and outputting the second image to an ink screen for display. Embodiments of the present application can remove the writing mark while retaining the question, thereby avoiding displaying the writing mark with different gray colors on or around the question when displaying on the ink screen, and reducing interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of touchscreen testing, and in particular to a question display method, apparatus, storage medium, and electronic device. Background Technology

[0002] When students work on problems in books or exercise books, they usually use red or blue pens to mark important points or the solution process on or around the problems. In developing this invention, the inventors discovered that traditional techniques have at least the following problems: When a problem is photographed and displayed on an e-ink screen, due to the physical characteristics of the screen, the displayed image only shows black and white and different shades of gray. Since the problem itself appears in various shades of gray around it, the problem and the written markings become mixed together, interfering with problem identification. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this application provides a question display method, apparatus, storage medium, and electronic device, which has the advantages of removing written marks while retaining questions and reducing interference with question recognition.

[0004] According to a first aspect of the embodiments of this application, a method for displaying questions is provided, comprising the following steps:

[0005] Acquire a first image; wherein the first image is a color image including the title and writing marks;

[0006] Iterate through the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color values, green primary color values, and blue primary color values;

[0007] When the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the primary color value is determined as the color identifier corresponding to the pixel.

[0008] If the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located;

[0009] In the first image, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image to obtain the second image;

[0010] The second image is output to the e-ink screen for display.

[0011] According to a second aspect of the embodiments of this application, a question display device is provided, comprising:

[0012] A first image acquisition module is used to acquire a first image; wherein the first image is a color image including a title and writing marks;

[0013] A pixel determination module is used to traverse the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color values, green primary color values, and blue primary color values; when the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the one primary color value is determined as the color identifier corresponding to the pixel; if the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located;

[0014] The second image acquisition module is used to replace the color value of the pixel where the writing mark is located with the background color value of the first image in the first image to obtain the second image;

[0015] The display module is used to output the second image to an e-ink screen for display.

[0016] According to a third aspect of the embodiments of this application, an electronic device is provided, including a processor and a memory; the memory stores a computer program adapted to be loaded by the processor and executed as described above in the question display method.

[0017] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the question display method as described above.

[0018] In this embodiment, the pixel where the writing mark is located is determined based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier. Then, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image, thereby removing the writing mark and retaining the question. Thus, when displayed on an e-ink screen, it can avoid displaying writing marks of different grayscale colors on or around the question, reducing interference.

[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.

[0020] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating a title display method according to one embodiment of this application;

[0023] Figure 2 This is a flowchart illustrating a method for determining the pixel where a writing mark is located, as shown in one embodiment of this application;

[0024] Figure 3 This is a schematic block diagram illustrating a title display device according to one embodiment of this application;

[0025] Figure 4 This is a schematic block diagram illustrating a pixel determination module according to an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of the structure of an electronic device according to one embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0028] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0029] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0030] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0031] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0032] Please see Figure 1 This is a schematic block diagram illustrating the application environment of the title display method shown in the embodiments of this application. For example... Figure 1 As shown, the application environment of the question display method includes a question display device; the question display device can specifically be a computer, mobile phone, tablet computer, interactive flat panel, and e-ink screen device, etc.; that is, the question display device can be a device other than an e-ink screen device, which processes the first image including the question and writing marks and sends it to the e-ink screen for display; the question display device can also be the e-ink screen device itself, which can process the first image including the question and writing marks and display it directly.

[0033] The e-ink display device for displaying questions may include one or more processing cores. It can implement the question display method of this application through pure software or through a combination of hardware and software. For example, it can be implemented using at least one hardware form selected from digital signal processing, field-programmable gate arrays, and programmable logic arrays. It can integrate one or more of a central processing unit, an image processor, and a modem. The processor unit can run an application program for the question display method. The application program can be presented in a form adapted to the processing unit, such as an APP application. In some examples, it can also be presented in the form of a system plugin, a web page plugin, etc.

[0034] Example 1

[0035] The following will be combined with the appendix Figure 1 and Figure 2 The title display method provided in the embodiments of this application will be described in detail.

[0036] Please see Figure 1 The title display method provided in this application includes the following steps:

[0037] Step S110: Obtain a first image; wherein the first image is a color image including the title and writing marks.

[0038] The first image can be a color image captured by an image acquisition device, such as a digital camera or mobile phone. The first image can be a color image obtained by photographing printed question text or a color image obtained by photographing electronic question text on a display device. The printed question text or the electronic question on the display device displays the question and written markings on or around the question, with the question and the written markings being different colors. In one embodiment, the first image is an image obtained by photographing printed question text, which includes the question and red, green, or blue written markings on or around the question. The background of the printed question text can be white, the question color can be black, and the question can be printed or handwritten. For example, the printed question text can be a student's textbook or exercise book, with printed black questions and key points or marked solutions marked by the student in red, green, or blue pens on or around the questions.

[0039] Step S120: Determine the pixel where the writing mark is located based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier.

[0040] The color identifier is used to uniquely identify the color and can be represented by a character, such as R for red, G for green, and B for blue. Since the title and the writing mark correspond to different colors, their corresponding color identifiers are also different. By pre-setting the writing mark color identifier, and then comparing the color identifier of the pixel in the first image with the pre-set writing mark color identifier, the pixel where the writing mark is located can be quickly determined.

[0041] Step S130: In the first image, replace the color value of the pixel where the writing mark is located with the background color value of the first image to obtain the second image.

[0042] The color value of the pixel where the writing mark is located is replaced with the background color value of the first image, thereby removing the writing mark and retaining the title. This avoids displaying writing marks of different grayscale colors on or around the title when displaying on an e-ink screen, reducing interference.

[0043] Step S140: Output the second image to the e-ink screen for display.

[0044] In this embodiment, the pixel where the writing mark is located is determined based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier. Then, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image, thereby removing the writing mark and retaining the question. Thus, when displayed on an e-ink screen, it can avoid displaying writing marks of different grayscale colors on or around the question, reducing interference.

[0045] Please see Figure 2 In one embodiment, step S120, which involves determining the pixel where the writing mark is located based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier, includes:

[0046] Step S121: Traverse the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color value, green primary color value and blue primary color value.

[0047] In this first image, the color value corresponding to each pixel can be represented by RGB values. RGB values ​​are formed by the different proportions of the three primary colors—red, green, and blue—within a single pixel. That is, RGB values ​​are combinations of red, green, and blue primary color values, and different combinations of these values ​​result in different colors. For example, RGB(255,255,255) represents white, (0,255,0) represents green, and (0,0,255) represents blue.

[0048] Step S122: When the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the primary color value is determined as the color identifier corresponding to the pixel.

[0049] In the field of computer science, different combinations of red, green, and blue primary color values ​​in the RGB color values ​​corresponding to pixels will result in different colors being identified. However, in practical applications, different RGB values ​​may still be considered the same color. For example, for a computer, (0,0,255) and (25,25,112) represent different colors. However, in practical applications, based on human vision and conventional human perception, both of these colors can be considered blue. For instance, in one application scenario, due to differences in writing pressure, paper quality, pen and paper usage, and camera parameters used to photograph the writing marks on the questions, the corresponding RGB values ​​will differ when using the same blue pen or different types of blue pens to write marks on the questions. However, in practical applications, the writing marks formed in the above scenarios can all be considered blue and are colors that need to be removed. In the process of developing this invention, the inventors discovered that in RGB color values, since the RGB values ​​are formed by the different proportions of the three primary colors—red, green, and blue—within a pixel, if the value of one primary color, after subtracting a preset threshold, is still greater than the other two primary color values, it indicates that the proportion of that primary color value in the pixel is large. Therefore, the primary color identifier corresponding to that primary color value can be determined as the color identifier of the pixel, thus adapting to practical applications and identifying colors as accurately as possible. For example, if the primary color identifier for red in the RGB values ​​is R, for green is G, and for blue is B, and the RGB values ​​of a pixel are R1, G1, and B1 respectively, and the preset threshold is M, if B1-M>R1 and B1-M>G1, then the color of the pixel is the primary color identifier B, i.e., the color identifier of the pixel is blue. Optionally, different thresholds can be set according to different needs to achieve more precise or more lenient color determination.

[0050] Step S123: If the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located.

[0051] Optionally, the primary color values ​​for red, green, and blue in the color values ​​correspond to the primary color identifiers as follows: red, green, and blue, respectively; the color identifier corresponding to the writing mark includes one or more of the following: red, green, and blue; the preset color identifier includes one or more of the following: red, green, and blue. In one embodiment, the preset color identifier is exactly the same as the color identifier corresponding to the writing mark; that is, all writing marks are identified and removed. In another embodiment, the preset writing mark color is not exactly the same as the color identifier corresponding to the writing mark; that is, the preset color identifier is different from the color identifier corresponding to the writing mark, and the preset color identifier is one or more of the color identifiers corresponding to the writing mark; in this case, some writing marks are identified and removed. In some application scenarios, students may use different colors for marking on questions for different operations. For example, they might use red to highlight key points and blue to write out solutions. Therefore, when it's necessary to retain the highlighted points and remove the solution process, the blue markings can be removed while keeping the red markings. In other words, the preset writing mark color can be set to blue. Specifically, after acquiring the first image, a selection prompt can pop up to remind the user to preset the writing mark color.

[0052] In one embodiment, before traversing the color values ​​corresponding to all pixels in the first image in step S121, the method further includes: performing image enhancement processing on the first image. By performing image enhancement processing on the first image, the colors in the first image become more vivid, thereby making whites whiter and blacks blacker, thus making the edges of the text and the paper boundaries on the first image very clear, and the background color of the paper also becomes pure white.

[0053] Optionally, the image enhancement processing of the first image includes: performing contrast enhancement processing on the first image. By performing contrast enhancement processing on the first image, the color levels of each pixel in the first image can be increased, making it easier to identify writing marks. At the same time, when the processed image is displayed on the e-ink screen, it can form a black-and-white contrast, improving the clarity of the display.

[0054] In one embodiment, step S123, where the color value of the pixel containing the writing mark is replaced with the background color value of the first image to obtain a second image, includes: obtaining the coordinates of the pixel containing the writing mark in the first image, and replacing the color value stored at the coordinates of the pixel with the background color value of the first image. By indexing the coordinates of the pixel and then replacing the color value stored at the coordinates of the pixel with the background color value of the first image, color replacement can be performed quickly. Optionally, if the background color value of the first image is white, such as (255, 255, 255), then the color value at the coordinates of the pixel containing the writing mark is also replaced with (255, 255, 255), so that the replaced writing mark is displayed as white on the e-ink screen, the same as the background, and thus cannot be seen on the e-ink screen, avoiding the display of writing marks of different grayscale colors on or around the question, reducing interference.

[0055] Example 2

[0056] The following are embodiments of the apparatus of this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method described in Embodiment 1 of this application.

[0057] Please see Figure 3 The present application discloses a question display device 200, comprising:

[0058] The first image acquisition module 210 is used to acquire a first image; wherein the first image is a color image including a title and writing marks;

[0059] The pixel determination module 220 is used to determine the pixel where the writing mark is located based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier;

[0060] The second image acquisition module 230 is used to replace the color value of the pixel where the writing mark is located with the background color value of the first image in the first image to obtain the second image;

[0061] Display module 240 is used to output the second image to an e-ink screen for display.

[0062] In this embodiment, the pixel where the writing mark is located is determined based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier. Then, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image, thereby removing the writing mark and retaining the question. Thus, when displayed on an e-ink screen, it can avoid displaying writing marks of different grayscale colors on or around the question, reducing interference.

[0063] Please see Figure 4 In one embodiment, the pixel determination module 220 includes:

[0064] The color value acquisition module 221 is used to traverse the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color value, green primary color value and blue primary color value.

[0065] The color identifier determination module 222 is used to determine the color identifier of the primary color value as the color identifier corresponding to the pixel point when the value of one primary color value minus a preset threshold is greater than the other two primary color values.

[0066] The pixel point determination module 223 is used to determine the pixel point as the pixel point where the writing mark is located if the color identifier corresponding to the pixel point is a preset writing mark color identifier.

[0067] In one embodiment, the pixel determination module 220 further includes an image enhancement module, which is used to perform image enhancement processing on the first image. When performing image enhancement processing on the first image, the image enhancement module includes: performing contrast enhancement processing on the first image. By performing contrast enhancement processing on the first image, the color levels of each pixel in the first image can be increased, making it easier to identify writing marks. Simultaneously, when the processed image is displayed on an e-ink screen, it can create black and white contrast, improving display clarity.

[0068] In one embodiment, the second image acquisition module 230 is used to replace the color value of the pixel where the writing mark is located with the background color value of the first image in the first image. When obtaining the second image, it includes: acquiring the coordinates of the pixel where the writing mark is located in the first image, and replacing the color value stored at the coordinates of the pixel with the background color value of the first image. By indexing the coordinates of the pixel and then replacing the color value stored at the coordinates of the pixel with the background color value of the first image, a quick color replacement is achieved.

[0069] Example 3

[0070] The following are embodiments of the device described in this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the device embodiments of this application, please refer to the method described in Embodiment 1 of this application.

[0071] Please see Figure 5 This application also provides an electronic device 300, which can be a computer, mobile phone, tablet computer, interactive flat panel and e-ink screen device, etc. In the embodiments of this application, the electronic device 300 may include: at least one processor 310, at least one memory 320, at least one network interface 330, user interface 340 and at least one communication bus 350.

[0072] The user interface 330 is primarily used to provide an input interface for the user and to acquire user-input data. Optionally, the user interface 330 may also include a standard wired interface or a wireless interface; the user interface may be a display terminal and / or a camera terminal; the display terminal may be a display screen, which may include a display layer and a touch layer. The display layer is used to display data processed by the processor; the touch layer may include a capacitive screen, an electromagnetic screen, or an infrared screen, etc. Generally, the touch layer can receive touch operations or writing operations input by the user through a finger or input device.

[0073] The network interface 330 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0074] The communication bus 340 is used to enable communication between these components.

[0075] The processor 310 may include one or more processing cores. The processor 310 connects to various parts within the electronic device 300 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and by calling data stored in the memory 320. Optionally, the processor 310 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 310 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 310.

[0076] The memory 320 may include random access memory (RAM) or read-only memory. Optionally, the memory 320 may include a non-transitory computer-readable storage medium. The memory 320 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 320 may also be at least one storage device located remotely from the aforementioned processor 310. Figure 5 As shown, the memory 320, which serves as a computer storage medium, may include an operating system, a network communication module, and a user.

[0077] The processor 310 can be used to call the application program storing the question display method in the memory 320, and specifically perform the following operations: obtain a first image; wherein the first image is a color image including the question and writing marks; determine the pixel where the writing mark is located according to the color identifier corresponding to the pixel of the first image and the preset color identifier of the writing mark; in the first image, replace the color value of the pixel where the writing mark is located with the background color value of the first image to obtain a second image; output the second image to the e-ink screen for display.

[0078] In this embodiment, the pixel where the writing mark is located is determined based on the color identifier corresponding to the pixel of the first image and the preset writing mark color identifier. Then, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image, thereby removing the writing mark and retaining the question. Thus, when displayed on an e-ink screen, it can avoid displaying writing marks of different grayscale colors on or around the question, reducing interference.

[0079] In one embodiment, the processor 310 can be used to call the application program of the question display method stored in the memory 320, and specifically perform the following operations: traverse the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color values, green primary color values, and blue primary color values; when the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the one primary color value is determined as the color identifier corresponding to the pixel; if the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located.

[0080] In one embodiment, the processor 310 can be used to call the application program for displaying the question stored in the memory 320. Before executing the operation of traversing the color values ​​corresponding to all pixels in the first image, the processor specifically performs the following operation: image enhancement processing on the first image. The image enhancement processing on the first image includes performing the following operation: contrast enhancement processing on the first image. By performing contrast enhancement processing on the first image, the color levels of each pixel in the first image can be increased, making it easier to identify writing marks. Simultaneously, when the processed image is displayed on the e-ink screen, it can form a black-and-white contrast, improving the clarity of the display.

[0081] In one embodiment, the processor 310 can be used to call an application program storing a question display method in the memory 320. When performing the operation of replacing the color value of the pixel where the writing mark is located in the first image with the background color value of the first image to obtain a second image, the processor specifically performs the following operations: In the first image, the coordinates of the pixel where the writing mark is located are obtained, and the color value stored at the coordinates of the pixel is replaced with the background color value of the first image. By indexing the coordinates of the pixel, and then replacing the color value stored at the coordinates of the pixel with the background color value of the first image, a quick color replacement is achieved.

[0082] Example 4

[0083] This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of Embodiment 1 shown above. The specific execution process can be found in the detailed description of Embodiment 1, and will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, or tablet computer.

[0084] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0085] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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, etc.) containing computer-usable program code.

[0086] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.

[0087] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.

[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0089] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0090] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0091] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0092] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for displaying questions, characterized in that, Includes the following steps: Acquire a first image; wherein the first image is a color image including the title and writing marks; Iterate through the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color values, green primary color values, and blue primary color values; When the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the primary color value is determined as the color identifier corresponding to the pixel. If the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located; In the first image, the color value of the pixel where the writing mark is located is replaced with the background color value of the first image to obtain the second image; The second image is output to the e-ink screen for display.

2. The question display method according to claim 1, characterized in that, The preset writing mark color identifier is the same as the color identifier corresponding to the writing mark; or, The preset writing mark color identifier is different from the color identifier corresponding to the writing mark, and the preset writing mark color identifier is one or more of the color identifiers corresponding to the writing mark.

3. The question display method according to claim 1, characterized in that, The primary color values ​​for red, green, and blue correspond to the following primary color identifiers: red, green, and blue, respectively; the color identifiers corresponding to the writing marks include one or more of the following: red, green, and blue. The preset writing marker colors include one or more of the following: red, green, and blue.

4. The question display method according to claim 1, characterized in that, Before traversing the color values ​​corresponding to all pixels in the first image, the method further includes: performing image enhancement processing on the first image.

5. The question display method according to claim 4, characterized in that, The image enhancement processing of the first image includes: performing contrast enhancement processing on the first image.

6. The question display method according to any one of claims 1 to 5, characterized in that, The step of replacing the color value of the pixel containing the writing mark in the first image with the background color value of the first image to obtain the second image includes: In the first image, the coordinates of the pixel where the writing mark is located are obtained, and the color value stored at the coordinates of the pixel is replaced with the background color value of the first image.

7. A question display device, characterized in that, include: A first image acquisition module is used to acquire a first image; wherein the first image is a color image including a title and writing marks; A pixel determination module is used to traverse the color values ​​corresponding to all pixels in the first image; the color values ​​include red primary color values, green primary color values, and blue primary color values; when the value of one primary color value minus a preset threshold is greater than the other two primary color values, the primary color identifier of the one primary color value is determined as the color identifier corresponding to the pixel; if the color identifier corresponding to the pixel is a preset writing mark color identifier, the pixel is determined as the pixel where the writing mark is located; The second image acquisition module is used to replace the color value of the pixel where the writing mark is located with the background color value of the first image in the first image to obtain the second image; The display module is used to output the second image to an e-ink screen for display.

8. An electronic device comprising a display, a processor, and a memory; characterized in that, The memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 6 for displaying questions.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the question display method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for automatically obtaining test question information from database

    CN104281625A

  • Removing non-text information from a color image

    US6125200A