CN115509474A - Title display method, title display device, storage medium and electronic equipment - Google Patents

Title display method, title display device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115509474A
CN115509474A CN202110631291.4A CN202110631291A CN115509474A CN 115509474 A CN115509474 A CN 115509474A CN 202110631291 A CN202110631291 A CN 202110631291A CN 115509474 A CN115509474 A CN 115509474A
Authority
CN
China
Prior art keywords
image
color
mark
pixel point
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110631291.4A
Other languages
Chinese (zh)
Inventor
潘潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110631291.4A priority Critical patent/CN115509474A/en
Publication of CN115509474A publication Critical patent/CN115509474A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a title display method, a title display device, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a first image; wherein the first image is a color image comprising a title and a written mark; determining a pixel point where the writing mark is located according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark; replacing the color value of the pixel point where the writing mark is located with the 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. According to the embodiment of the application, the writing marks can be removed, the subjects are reserved, and then when the ink screen displays the ink screen, the writing marks with different gray colors can be prevented from being displayed on the subjects or on the periphery of the subjects, and interference is reduced.

Description

Topic display method, device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of testing of touch screens, in particular to a title display method, a title display device, a storage medium and electronic equipment.
Background
When a student does a topic in a book or a problem book, the student usually marks a key point or marks a topic answering process on the topic or around the topic by using a red or blue pen. In the process of implementing the invention, the inventor finds that at least the following problems exist in the traditional technology: when the photo is taken and the question is recorded and displayed on the ink screen, because of the physical characteristics of the ink screen, the displayed photo only presents black and white and different gray colors, and because the question presents a plurality of different gray colors at the periphery of the question, the question and the writing mark are mixed together, thereby causing interference to the question recognition.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a topic display method, a device, a storage medium and electronic equipment, which have the advantages of removing writing marks, retaining topics and reducing topic identification interference.
According to a first aspect of embodiments of the present application, there is provided a title display method, including the steps of:
acquiring a first image; wherein the first image is a color image comprising a title and a written mark;
determining a pixel point where the writing mark is located according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark;
replacing the color value of the pixel point where the writing mark is located with the 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.
According to a second aspect of embodiments of the present application, there is provided a title display device, including:
the first image acquisition module is used for acquiring a first image; wherein the first image is a color image comprising a title and a written mark;
the pixel point determining module is used for determining pixel points of the writing marks according to the color marks corresponding to the pixel points of the first image and preset writing mark color marks;
the second image acquisition module is used for replacing the color value of the pixel point where the writing mark is located with the background color value of the first image in the first image to obtain a second image;
and the display module is used for outputting the second image to an ink screen for display.
According to a third aspect of embodiments herein, there is provided an electronic device comprising a processor and a memory; the memory stores a computer program adapted to be loaded by the processor and to perform the title displaying method as described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the title display method as described above.
The embodiment of the application is according to the colour sign that the pixel point of first image corresponds and the sign of the mark colour of writing of predetermineeing confirm write the pixel point at mark place, and then will write the colour value replacement of the pixel point at mark place for the background colour value of first image, thereby get rid of write the mark and remain the title, and then when the ink screen shows, can avoid on the title or the peripheral mark of writing that shows different grey scale colours of title, reduce the interference.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a title display method according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for determining a pixel point where a written mark is located according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of a title display apparatus according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a pixel determination module according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as the case may be.
Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Please refer to fig. 1, which is a schematic block diagram illustrating an application environment of a title display method according to an embodiment of the present application. As shown in fig. 1, an application environment of the title display method includes a title display device; the title display device can be a computer, a mobile phone, a tablet computer, an interactive tablet, an ink screen device and the like; that is, the title display device may be a device other than the ink screen device, and sends the first image including the title and the writing mark to the ink screen for display after processing the first image; the title display device may also be an ink screen device itself, which may process and display the first image including the title and written marks directly.
The ink screen display title device can comprise one or more processing cores, can realize the application title display method in a pure software mode, and can also realize the application title display method in a mode of combining software and hardware, for example, the ink screen display title device can be realized in a hardware mode of at least one of digital signal processing, a field programmable gate array and a programmable logic array; one or a combination of a central processing unit, an image processor, a modem and the like can be integrated. The processor unit may run an application program for the title display method, and the application program may be presented in a form adapted to the processing unit, for example, an APP application program, and in some examples, may also be presented in a form of, for example, a system plug-in, a web plug-in, and the like.
Example 1
The title display method provided by the embodiment of the present application will be described in detail below with reference to fig. 1 and 2.
Referring to fig. 1, a title display method provided in an embodiment of the present application includes the following steps:
step S110: acquiring a first image; wherein the first image is a color image including a title and a written mark.
The first image may be a color image captured by an image capture device, and the image capture device may be a digital camera or a mobile phone. The first image can be a color image obtained by shooting a paper subject text or an electronic subject text on a display device, wherein the paper subject text or the electronic subject on the display device displays a subject and a writing mark on the subject or on the periphery of the subject, and the colors of the subject and the writing mark are different. In one embodiment, the first image is an image obtained by shooting a paper theme text, where the paper theme text includes a theme and red, green, or blue writing marks on or around the theme, where a background of the paper theme text may be white, a color of the theme may be black, and the theme may be a printed font or a handwritten font; for example, the paper topic text can be a student book or problem book with printed black topics on the book or problem book and a process of answering topics with accents or marks marked with red, green, or blue pens on or around the topics when students do their questions.
Step S120: and determining the pixel point of the writing mark according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark.
The color identifier is used to identify a unique identification color, which may be represented in the form of a character, for example, a red color identifier may be R, a green color identifier may be G, a blue color identifier may be B, and the like. Because the color corresponding to the title and the writing mark is different, and the color identification corresponding to the title and the writing mark is also different, and through presetting the color identification of the writing mark, the color identification corresponding to the pixel point of the first image is compared with the preset color identification of the writing mark, and the pixel point where the writing mark is positioned can be quickly and conveniently determined.
Step S130: and in the first image, replacing the color value of the pixel point where the writing mark is located with the background color value of the first image to obtain a second image.
The color value of the pixel point where the writing mark is located is replaced by the background color value of the first image, and then the writing mark is removed to reserve the title, so that when an ink screen displays, the writing mark with different gray colors on the title or around the title can be avoided, and interference is reduced.
Step S140: and outputting the second image to an ink screen for display.
The embodiment of the application is according to the colour sign that the pixel point of first image corresponds and the sign of the mark colour of writing of predetermineeing confirm write the pixel point at mark place, and then will write the colour value replacement of the pixel point at mark place for the background colour value of first image, thereby get rid of write the mark and remain the title, and then when the ink screen shows, can avoid on the title or the peripheral mark of writing that shows different grey scale colours of title, reduce the interference.
Referring to fig. 2, in an embodiment, the determining, according to the color identifier corresponding to the pixel point of the first image and the preset writing mark color identifier in step S120, the determining the pixel point where the writing mark is located includes:
step S121: traversing color values corresponding to all pixel points in the first image; the color values include a red primary color value, a green primary color value, and a blue primary color value.
The color value corresponding to each pixel point in the first image may be represented by an RGB value, where the RGB value is data formed by different proportions of three primary colors, namely, red (Red), green (Green), and Blue (Blue), in one pixel point, that is, the RGB value is a combination of a Red primary color value, a Green primary color value, and a Blue primary color value, and the Red primary color value, the Green primary color value, and the Blue primary color value are different in combination value, and the displayed color is also different. For example, RGB (255 ) is white, (0, 255, 0) is green, and (0, 255) is blue.
Step S122: and when the value obtained by subtracting the preset threshold value from one of the primary color values is larger than the other two primary color values, determining the primary color identifier where the one of the primary color values is located as the color identifier corresponding to the pixel point.
In the field of computers, in RGB values of color values corresponding to pixel points, combinations of red, green and blue primary color values are different, and corresponding colors are also recognized to be different, but in actual use, the RGB values are different and may also be considered to be the same color, for example, for a computer, (0, 255) and (25, 112) represent different colors, but in actual use, human eyes can recognize and a person can recognize the two colors as blue, for example, in an application scene, because students have different writing strengths, paper qualities are different, pen and paper functions are different, camera parameter reasons for shooting a writing mark of a subject, and the like, when the same blue pen or different types of blue pens are used to write the mark on the subject, the corresponding RGB values are different, but in actual use, the writing marks formed in the scene can all be considered as blue and are all colors to be removed. The inventor finds out in the process of implementing the invention that: in the color value RGB value, because the RGB value is data formed by different ratios of three primary colors of Red (Red), green (Green) and Blue (Blue) in one pixel point, when one of the primary color values is still greater than the other two primary color values after subtracting a preset threshold value, it is indicated that the ratio of one of the primary color values in the pixel point is large, and then the primary color identifier where the primary color value is located can be determined as the color identifier corresponding to the pixel point, so that the practical situation can be adapted, and the color in practical use can be identified as much as possible. For example, if the red primary color of the RGB value is identified as R, the green primary color is identified as G, and the blue primary color is identified as B, the red primary color value, the green primary color value, and the blue primary color value of the RGB value of one pixel point are respectively R1, G1, and B1, the preset threshold value is M, and if B1-M > R1 and B1-M > G1, the color of the pixel point is the primary color identification B where the blue primary color value is located, that is, the color identification of the pixel point is the blue identification B. Optionally, different thresholds may be set according to different requirements, so as to achieve more accurate or looser color determination.
Step S123: and if the color identifier corresponding to the pixel point is a preset writing mark color identifier, determining the pixel point as the pixel point where the writing mark is located.
Optionally, the primary color identifiers corresponding to the red primary color value, the green primary color value, and the blue primary color value in the color values are respectively: red marks, green marks and blue marks; the color mark corresponding to the written mark comprises one or more of the following parts: red marks, green marks and blue marks; the preset color identification comprises one or more of the following: red, green and blue logos. In one embodiment, the preset color mark is identical to the color mark corresponding to the writing mark; that is, all written marks are recognized and removed. In another embodiment, the preset color of the written mark is not identical to the color identifier corresponding to the written mark, that is, the preset color mark identification is different from the color identifier corresponding to the written mark, and the preset color mark identification is one or more of the color identifiers corresponding to the written mark; at this time, a part of the written mark is recognized and removed. In some application scenarios, when students write marks on the subject, different operations may be used to write marks in different colors, for example, when drawing key points on the subject, the students may use red marks; during the process of writing the problem solving, the blue mark may be used, so that when the key point of the drawing needs to be reserved and the problem solving process is removed, the blue mark can be removed and the red mark can be reserved, that is, the preset color of the writing mark is set as the blue mark. In a specific implementation, after the first image is acquired, a selection prompt box may pop up to prompt a user to preset a writing mark color identifier.
In one embodiment, before traversing the color values corresponding to all the pixel points in the first image in step S121, the method further includes: and performing image enhancement processing on the first image. By performing image enhancement processing on the first image, the color in the first image is clearer, white is whiter, and black is blacker, so that the edge of the font and the boundary of the paper on the first image become very clear, and the background color of the paper also becomes pure white.
Optionally, the performing image enhancement processing on the first image includes: and carrying out contrast enhancement processing on the first image. By carrying out contrast enhancement processing on the first image, the color level of each pixel point in the first image can be increased, so that the written marks can be conveniently identified, and meanwhile, when the processed image is displayed on an ink screen, black and white contrast can be formed, so that the display definition is improved.
In an embodiment, in step S123, replacing, in the first image, a color value of a pixel point where the writing mark is located with a background color value of the first image to obtain a second image, where the method includes: and in the first image, acquiring the coordinates of a pixel point where the writing mark is located, and replacing the color value stored on the coordinates of the pixel point with the background color value of the first image. Through indexing the coordinates of the pixel points, the color values stored in the coordinates of the pixel points are replaced by the background color values of the first image, and therefore color replacement can be rapidly and conveniently carried out. Optionally, if the color value of the background of the first image is white (255,255,255), the color value of the coordinate of the pixel where the writing mark is located is also replaced by (255,255,255), so that the replaced writing mark is displayed on the ink screen in the same white state as the background, and further the writing mark cannot be seen on the ink screen, thereby avoiding displaying the writing mark with different gray colors on the title or around the title, and reducing interference.
Example 2
The following is an example of the apparatus of the present application, which may be used to perform the method of example 1 of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, please refer to the contents of the method in embodiment 1 of the present application.
Referring to fig. 3, a title display device 200 disclosed in the embodiment of the present application includes:
a first image obtaining module 210, configured to obtain a first image; the first image is a color image comprising a title and a writing mark;
a pixel point determining module 220, configured to determine a pixel point where the writing mark is located according to a color identifier corresponding to a pixel point of the first image and a preset color identifier of the writing mark;
a second image obtaining module 230, configured to replace, in the first image, a color value of a pixel where the writing mark is located with a background color value of the first image, so as to obtain a second image;
and a display module 240, configured to output the second image to an ink screen for display.
The embodiment of the application is according to the colour sign that the pixel point of first image corresponds and the sign of the mark colour of writing of predetermineeing confirm write the pixel point at mark place, and then will write the colour value replacement of the pixel point at mark place for the background colour value of first image, thereby get rid of write the mark and remain the title, and then when the ink screen shows, can avoid on the title or the peripheral mark of writing that shows different grey scale colours of title, reduce the interference.
Referring to fig. 4, in an embodiment, the pixel point determining module 220 includes:
a color value obtaining module 221, configured to traverse color values corresponding to all pixel points in the first image; the color values include a red primary color value, a green primary color value, and a blue primary color value.
And a color identifier determining module 222, configured to determine, when a value obtained by subtracting the preset threshold from one of the primary color values is greater than the other two primary color values, the primary color identifier where the one of the primary color values is located as the color identifier corresponding to the pixel point.
And the pixel point determining module 223 for determining the pixel point as the pixel point where the writing mark is located if the color mark corresponding to the pixel point is the preset color mark of the writing mark.
In an embodiment, the pixel point determining module 220 further includes an image enhancement module, and the image enhancement module is configured to perform image enhancement processing on the first image. The image enhancement module is configured to perform image enhancement processing on the first image, and includes: and carrying out contrast enhancement processing on the first image. By carrying out contrast enhancement processing on the first image, the color level of each pixel point in the first image can be increased, the written mark can be conveniently identified, and meanwhile, when the processed image is displayed on an ink screen, black and white contrast can be formed, and the display definition is improved.
In an embodiment, the second image obtaining module 230 is configured to replace, in the first image, a color value of a pixel where the written mark is located with a background color value of the first image, and when obtaining the second image, the second image obtaining module is configured to: and in the first image, acquiring the coordinates of a pixel point where the writing mark is located, and replacing the color value stored on the coordinates of the pixel point with the background color value of the first image. Through the index the coordinate of pixel, and then with the colour value replacement of storing on the coordinate of pixel is the background colour value of first image to the realization swiftly carries out the colour replacement.
Example 3
The following is an embodiment of the apparatus of the present application, which may be used to perform the method of embodiment 1 of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, please refer to the contents of the method in embodiment 1 of the present application.
Referring to fig. 5, the present application further provides an electronic device 300, where the electronic device 300 may be a computer, a mobile phone, a tablet computer, an interactive tablet, an ink screen device, and the like, and in an embodiment of the present application, the electronic device 300 may include: at least one processor 310, at least one memory 320, at least one network interface 330, a user interface 340, and at least one communication bus 350.
The user interface 330 is mainly used for providing an input interface for a user to obtain data input by the user. Optionally, the user interface 330 may further include a standard wired interface, a wireless interface; the user interface can be a display terminal and/or a camera terminal; the display terminal can be a display screen, the display screen can comprise a display layer and a touch layer, and the display layer is used for displaying data processed by the processor; the touch layer may include: a capacitive screen, an electromagnetic screen, an infrared screen, or the like, and in general, the touch layer may receive a touch operation or a writing operation input by a user through a finger or an input device.
The network interface 330 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Wherein the communication bus 340 is used for realizing connection communication among the components.
The processor 310 may include one or more processing cores, among others. The processor 310, using various interfaces and lines connecting various parts throughout the electronic device 300, performs various functions of the electronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 320 and invoking data stored in the memory 320. Optionally, the processor 310 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 310 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 310, but may be implemented by a single chip.
The Memory 320 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 320 includes a non-transitory computer-readable medium. The memory 320 may be used to store instructions, programs, code, sets of codes, or sets of instructions. 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 a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 320 may optionally be at least one storage device located remotely from the processor 310. As shown in fig. 5, the memory 320, which is a kind of computer storage medium, may include an operating system, a network communication module, and a user therein.
The processor 310 may be configured to invoke an application program of the title display method stored in the memory 320, and specifically perform the following operations: acquiring a first image; wherein the first image is a color image comprising a title and a written mark; determining a pixel point where the writing mark is located according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark; replacing the color value of the pixel point where the writing mark is located with the 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.
The embodiment of the application is according to the colour sign that the pixel point of first image corresponds and the sign of the mark colour of writing of predetermineeing confirm write the pixel point at mark place, and then will write the colour value replacement of the pixel point at mark place for the background colour value of first image, thereby get rid of write the mark and remain the title, and then when the ink screen shows, can avoid on the title or the peripheral mark of writing that shows different grey scale colours of title, reduce the interference.
In one embodiment, the processor 310 can be configured to invoke an application program of the title display method stored in the memory 320, and specifically perform the following operations: traversing color values corresponding to all pixel points in the first image; the color values comprise a red primary color value, a green primary color value, and a blue primary color value; when the value obtained by subtracting the preset threshold value from one of the primary color values is larger than the other two primary color values, determining the primary color identifier where the one of the primary color values is located as the color identifier corresponding to the pixel point; and if the color identifier corresponding to the pixel point is a preset writing mark color identifier, determining the pixel point as the pixel point where the writing mark is located.
In an embodiment, the processor 310 may be configured to invoke an application program of the title display method stored in the memory 320, and before executing the operation of traversing color values corresponding to all pixel points in the first image, specifically execute the following operations: and performing image enhancement processing on the first image. When the image enhancement processing is performed on the first image, the following operations are performed: and carrying out contrast enhancement processing on the first image. By carrying out contrast enhancement processing on the first image, the color level of each pixel point in the first image can be increased, so that the written marks can be conveniently identified, and meanwhile, when the processed image is displayed on an ink screen, black and white contrast can be formed, so that the display definition is improved.
In an embodiment, the processor 310 may be configured to invoke an application program of the title display method stored in the memory 320, execute the following operation when, in the first image, replacing the color value of the pixel point where the written mark is located with the background color value of the first image, and obtain the second image: in the first image, obtaining the coordinates of the pixel point where the writing mark is located, and replacing the color value stored on the coordinates of the pixel point with the background color value of the first image. Through indexing the coordinates of the pixel points, the color values stored in the coordinates of the pixel points are replaced by the background color values of the first image, and therefore color replacement can be rapidly and conveniently carried out.
Example 4
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the instructions are suitable for being loaded by a processor and executing the method steps in embodiment 1, and for a specific execution process, reference may be made to the specific description shown in embodiment 1, which is not described herein again. The device where the storage medium is located can be an electronic device such as a personal computer, a notebook computer, a smart phone and a tablet computer.
For the apparatus embodiment, since it substantially corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described device embodiments are merely illustrative, and the components described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of 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 technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A title display method is characterized by comprising the following steps:
acquiring a first image; wherein the first image is a color image comprising a title and a written mark;
determining a pixel point where the writing mark is located according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark;
replacing the color value of the pixel point where the writing mark is located with the 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.
2. The title display method according to claim 1,
the determining the pixel point where the writing mark is located according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark comprises:
traversing color values corresponding to all pixel points in the first image; the color values comprise a red primary color value, a green primary color value, and a blue primary color value;
when the value obtained by subtracting the preset threshold value from one of the primary color values is larger than the other two primary color values, determining the primary color identifier where the one of the primary color values is located as the color identifier corresponding to the pixel point;
and if the color identification corresponding to the pixel point is a preset writing mark color identification, determining the pixel point as the pixel point where the writing mark is located.
3. The title display method according to claim 2,
the preset color mark is the same as the color mark corresponding to the writing mark; alternatively, the first and second electrodes may be,
the preset color mark identification is different from the color identification corresponding to the writing mark, and the color mark identification is preset to be one or more of the color identifications corresponding to the writing mark.
4. The title display method according to claim 2,
the primary color identifiers corresponding to the red primary color value, the green primary color value and the blue primary color value in the color values are respectively: red marks, green marks and blue marks; the color identification corresponding to the written mark comprises one or more of the following: red marks, green marks and blue marks; the preset color identification comprises one or more of the following: red, green and blue logos.
5. The title display method according to claim 2,
before traversing the color values corresponding to all the pixel points in the first image, the method further includes: and carrying out image enhancement processing on the first image.
6. The title display method according to claim 5,
the image enhancement processing on the first image comprises the following steps: and performing contrast enhancement processing on the first image.
7. The title display method according to any one of claims 1 to 6,
in the first image, replacing the color value of the pixel point where the writing mark is located with the background color value of the first image to obtain a second image, including:
in the first image, obtaining the coordinates of the pixel point where the writing mark is located, and replacing the color value stored on the coordinates of the pixel point with the background color value of the first image.
8. A title display device, comprising:
the first image acquisition module is used for acquiring a first image; wherein the first image is a color image comprising a title and a written mark;
the pixel point determining module is used for determining the pixel point of the writing mark according to the color mark corresponding to the pixel point of the first image and a preset writing mark color mark;
the second image acquisition module is used for replacing the color value of the pixel point where the writing mark is located in the first image with the background color value of the first image to obtain a second image;
and the display module is used for outputting the second image to an ink screen for display.
9. 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 to execute the title display method according to any one of claims 1 to 7.
10. A computer-readable storage medium on which a computer program is stored, the computer program being characterized by implementing a title display method according to any one of claims 1 to 7 when executed by a processor.
CN202110631291.4A 2021-06-07 2021-06-07 Title display method, title display device, storage medium and electronic equipment Pending CN115509474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110631291.4A CN115509474A (en) 2021-06-07 2021-06-07 Title display method, title display device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110631291.4A CN115509474A (en) 2021-06-07 2021-06-07 Title display method, title display device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115509474A true CN115509474A (en) 2022-12-23

Family

ID=84499787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110631291.4A Pending CN115509474A (en) 2021-06-07 2021-06-07 Title display method, title display device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115509474A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116597789A (en) * 2023-06-06 2023-08-15 广州文石信息科技有限公司 Picture display method, device and equipment of color ink screen and storage medium
CN117238253A (en) * 2023-08-07 2023-12-15 广州文石信息科技有限公司 Method, device, equipment and storage medium for displaying marks of ink screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116597789A (en) * 2023-06-06 2023-08-15 广州文石信息科技有限公司 Picture display method, device and equipment of color ink screen and storage medium
CN116597789B (en) * 2023-06-06 2024-02-23 广州文石信息科技有限公司 Picture display method, device and equipment of color ink screen and storage medium
CN117238253A (en) * 2023-08-07 2023-12-15 广州文石信息科技有限公司 Method, device, equipment and storage medium for displaying marks of ink screen
CN117238253B (en) * 2023-08-07 2024-04-30 广州文石信息科技有限公司 Method, device, equipment and storage medium for displaying marks of ink screen

Similar Documents

Publication Publication Date Title
CN115509474A (en) Title display method, title display device, storage medium and electronic equipment
CN108021671B (en) Page transparent processing method and device
CN105955754B (en) A kind of user interface character displaying method and device
CN108052565B (en) Transparent processing method and device for page
CN108304562B (en) Question searching method and device and intelligent terminal
CN109410295B (en) Color setting method, device, equipment and computer readable storage medium
CN114974148B (en) Font display enhancement method, device, equipment and storage medium for ink screen
CN104461614A (en) Method for processing theme resource and electronic device
CN108737875A (en) Image processing method and device
CN111949156A (en) Chinese character writing test method and system of writing device and writing device
CN110838154A (en) Picture processing method and device
CN108615030A (en) A kind of title consistency detecting method, device and electronic equipment
JP2006332908A (en) Color image display apparatus, color image display method, program, and recording medium
CN115831061A (en) Ink screen display method and device, terminal equipment and storage medium
CN110880164B (en) Image processing method, device, equipment and computer storage medium
CN103823651B (en) The method and electronic equipment of a kind of information processing
CN103854020A (en) Character recognition method and device
CN110533020A (en) A kind of recognition methods of text information, device and storage medium
CN111049735B (en) Group head portrait display method, device, equipment and storage medium
CN113625923A (en) Mouse processing method and device based on remote cloud desktop, storage medium and equipment
CN111107264A (en) Image processing method, image processing device, storage medium and terminal
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
CN111930461B (en) Mobile terminal APP full page graying method and device based on Android
CN111242116B (en) Screen positioning method and device
US11657511B2 (en) Heuristics-based detection of image space suitable for overlaying media content

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