CN111813311B - Track color generation method and device, electronic equipment and readable storage medium - Google Patents

Track color generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111813311B
CN111813311B CN202010944443.1A CN202010944443A CN111813311B CN 111813311 B CN111813311 B CN 111813311B CN 202010944443 A CN202010944443 A CN 202010944443A CN 111813311 B CN111813311 B CN 111813311B
Authority
CN
China
Prior art keywords
color
track
initial
coordinate point
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010944443.1A
Other languages
Chinese (zh)
Other versions
CN111813311A (en
Inventor
李政军
陈娅芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Cloud Technology Group Co ltd
Original Assignee
Hunan New Cloudnet Technology 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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202010944443.1A priority Critical patent/CN111813311B/en
Publication of CN111813311A publication Critical patent/CN111813311A/en
Application granted granted Critical
Publication of CN111813311B publication Critical patent/CN111813311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a track color generation method, which comprises the following steps: receiving a trajectory input; determining a track coordinate point of the track input and an initial color of the track coordinate point; judging whether the initial color is similar to a predetermined candidate color; and under the condition that the initial color is similar to the candidate color, determining a target color according to the initial color, and updating the color of the track coordinate point to the target color. The embodiment of the invention also provides a track color generation device, electronic equipment and a readable storage medium. The embodiment of the invention can effectively improve the identification degree of the track and improve the track color generation effect.

Description

Track color generation method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a method and an apparatus for generating a track color, an electronic device, and a readable storage medium.
Background
As is well known, people usually have a need to write on mobile terminals, electronic whiteboards and other types of electronic devices, and accordingly, the electronic devices can generate corresponding tracks according to the writing input of users and display the tracks on a screen. In the prior art, the color of a correspondingly generated track is usually fixed and unchanged in the process of keeping writing of a user; when areas with background colors similar to the colors of the tracks exist in the screen and a user writes in the areas, the situation that the recognition degree of the corresponding generated tracks is low can occur, and the problem that the track color generation effect is poor is brought.
Disclosure of Invention
Embodiments of the present invention provide a track color generation method and apparatus, an electronic device, and a readable storage medium, so as to solve the problem in the prior art that when there are areas in a screen where a background color is similar to a color of a track, and a user writes in these areas, a situation that an identification degree of a correspondingly generated track is low occurs, resulting in a poor track color generation effect.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a track color generation method, including:
receiving a trajectory input;
determining a track coordinate point of the track input and an initial color of the track coordinate point;
judging whether the initial color is similar to a predetermined candidate color;
and under the condition that the initial color is similar to the candidate color, determining a target color according to the initial color, and updating the color of the track coordinate point to the target color.
In a second aspect, an embodiment of the present invention further provides a track color generation apparatus, including:
a receiving module for receiving a trajectory input;
the determining module is used for determining a track coordinate point of the track input and an initial color of the track coordinate point;
the judging module is used for judging whether the initial color is similar to a predetermined candidate color or not;
and the first updating module is used for determining a target color according to the initial color and updating the color of the track coordinate point to the target color under the condition that the initial color is similar to the candidate color.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method described above.
The track color generation method provided by the embodiment of the invention receives track input, determines the track coordinate point of the track input and the initial color of the track coordinate point, compares the initial color with the predetermined candidate color, judges whether the initial color and the predetermined candidate color are similar, determines the target color according to the initial color under the similar condition, and updates the color of the track coordinate point from the initial color to the target color, so that the track color can be integrally distinguished from the ground color, the condition that the track identification degree is lower due to the similarity of the two colors is avoided, the identification degree of the track is effectively improved, and the track color generation effect is improved.
Drawings
FIG. 1 is a flow chart of a method for generating track colors according to an embodiment of the present invention;
FIG. 2 is a flowchart of a track color generation method according to another embodiment of the present invention;
FIG. 3 is a flow chart of determining whether an initial color is similar to a candidate color according to an embodiment of the present invention;
FIG. 4 is a flow chart of one manner of updating the color of a coordinate point of a trajectory in an embodiment of the present invention;
FIG. 5 is a flow chart of another manner of updating the color of a coordinate point of a trajectory in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a trajectory color generation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
As shown in fig. 1, a method for generating a track color according to an embodiment of the present invention includes:
step 101, receiving track input;
step 102, determining a track coordinate point input by a track and an initial color of the track coordinate point;
103, judging whether the initial color is similar to a predetermined candidate color;
and 104, under the condition that the initial color is similar to the candidate color, determining a target color according to the initial color, and updating the color of the track coordinate point to the target color.
It is easily understood that the track input may be an input of a user on a corresponding electronic device, where the electronic device may be a device such as a mobile terminal, a computer, or an electronic whiteboard, and is not specifically limited herein; the electronic device has a screen for display, such as a touch screen or a non-touch screen. For a touch screen, a user can directly slide on the touch screen through a finger or a tool such as a brush pen to realize track input; for a non-touch screen, a user may operate an external input device, such as a mouse, a touch pad, an electronic drawing board, etc., to implement track input.
For convenience of description, the following description mainly takes a user to perform a trace input on an electronic device through a brush pen as an example, and the trace color generation method provided by the embodiment of the present invention is described.
A trajectory input necessarily has a corresponding input position, which is typically reflected as a trajectory coordinate point. Here, the trajectory coordinate point may refer to a unit generated according to a preset minimum color, such as a pixel point at a coordinate position, or a coordinate area of a certain size. In practical operation, a trajectory formed by the trajectory input may be a line including a plurality of trajectory coordinate points, and for convenience of description, if no specific description is provided, the trajectory coordinate points in this embodiment may correspond to real-time contact positions of the user with the electronic whiteboard screen during the trajectory input process.
In practical applications, the screen of the electronic whiteboard may be pre-displayed with contents such as pictures, documents, etc., so that the coordinate points of the trajectory may have corresponding initial colors, which are determined by the pre-displayed contents and may be considered as ground colors. Meanwhile, when a painting brush used by a user inputs a track on an electronic screen, the painting brush can be provided with a predetermined color, namely the candidate color; the candidate color may be a default specific color, or a color selected by the user through a brush color selection input before the trace input, and the like, which is not specifically limited herein.
In the case of obtaining the initial color and the candidate color of the trajectory coordinate point, it may be determined whether the two colors are similar, specifically, at least one of the information of the spectrum, the gray value, the RGB value, the brightness, and the like of the two colors may be used to compare the similarity, and the selection of the specific information is not limited herein.
Taking spectral information as an example, when the initial color and the candidate color both belong to the same spectral color, the two colors can be considered to be similar; taking the gray value information as an example, when the absolute value of the difference between the gray values of the initial color and the candidate color is smaller than a certain gray threshold, the two colors can be considered to be similar.
When the initial color and the candidate color are similar, if a track is generated on the screen according to the candidate color, the track color may be similar to the ground color, and the track may be difficult to recognize; therefore, the present embodiment determines the target color in this case from the initial color. The target color may be a color that is dissimilar from the initial color. For example, when the initial color and the brush color (corresponding to the above candidate color) are black, the target color may be determined to be white; for another example, when the initial color and the brush color are light, the target color may be determined to be dark, and the distinction between light and dark of the colors may be implemented by setting the brightness of the colors.
After the target color is determined, the color of the trajectory coordinate point may be updated to the target color. It is readily understood that from the operating system perspective, the tracks and the pre-displayed content may be located in the same or different windows or layers; from the viewpoint of display technology, the color of the light-emitting unit of the track coordinate point may be changed, and the specific change process is to update the initial color of the track coordinate point to the target color.
The track color generation method provided by the embodiment of the invention receives track input, determines the track coordinate point of the track input and the initial color of the track coordinate point, compares the initial color with the predetermined candidate color, judges whether the initial color and the predetermined candidate color are similar, determines the target color according to the initial color under the similar condition, and updates the color of the track coordinate point from the initial color to the target color, so that the track color can be integrally distinguished from the ground color, the condition that the track identification degree is lower due to the similarity of the two colors is avoided, the identification degree of the track is effectively improved, and the track color generation effect is improved.
As shown in fig. 2, a method for generating a track color according to another embodiment of the present invention includes:
step 201, receiving track input;
step 202, determining a track coordinate point input by a track and an initial color of the track coordinate point;
step 203, judging whether the initial color is similar to a predetermined candidate color;
and 204, under the condition that the initial color is similar to the candidate color, determining a target color according to the initial color, and updating the color of the track coordinate point to the target color.
And step 205, in the case that the initial color is not similar to the candidate color, updating the color of the track coordinate point to the candidate color.
Steps 201 to 204 correspond to steps 101 to 104 in the previous embodiment, respectively, and are not described herein again.
As described above, the candidate color may be a brush color. In this embodiment, when the base color of the position of the brush pen input on the electronic whiteboard, that is, the initial color of the trajectory coordinate point is not similar to the brush pen color, the brush pen color can be presented with a higher degree of recognition, and therefore, the color of the trajectory coordinate point can be directly updated to a candidate color, so that the process of determining the target color according to the initial color is omitted, and the trajectory color generation efficiency is improved.
Optionally, as shown in fig. 3, the determining whether the initial color is similar to a predetermined candidate color includes:
step 301, judging whether the absolute value of the difference value between the first RGB value of the initial color and the second RGB value of the candidate color is smaller than the RGB difference value threshold value;
step 302, if the absolute value of the difference between the first RGB value and the second RGB value is smaller than the RGB difference threshold, determining that the initial color is similar to the candidate color;
in step 303, if the absolute value of the difference between the first RGB value and the second RGB value is greater than or equal to the RGB difference threshold, it is determined that the initial color is not similar to the candidate color.
The RGB value is a value determined based on an RGB color mode, the RGB color mode obtains various colors by the change of three color channels of Red (Red, R), Green (Green, G) and Blue (Blue, B) and the superposition of the three color channels, the RGB represents the three color channels of Red, Green and Blue, and the value range of each color channel can be 0-255. For example, the RGB value of black may be (0, 0, 0), the RGB value of red may be (255, 0, 0), and the RGB value of green may be (0, 255, 0).
The first RGB value is the RGB value of the initial color and the second RGB value is the RGB value of the candidate color. Setting the RGB difference threshold value to (128, 0, 0), and the first RGB value to (0, 1, 2); when the second RGB value is (3, 1, 2), the absolute value of the difference between the two RGB values is (3, 0, 0), and is less than the difference threshold, it may be determined that the initial color is similar to the candidate color; when the second RGB value is (200, 1, 2), the absolute value of the difference between the two RGB values is (200, 0, 0), and is greater than the difference threshold, it can be determined that the initial color is not similar to the candidate color.
The color is represented by the specific RGB value, whether the colors are similar or not can be judged through numerical operation, and convenience of similarity judgment is improved.
Alternatively, as shown in fig. 4, in the case that the initial color is similar to the candidate color, determining the target color according to the initial color and updating the color of the trajectory coordinate point to the target color includes:
step 401, determining a third RGB value of the target color according to a sum or difference of the first RGB value and the RGB difference threshold;
and step 402, updating the color of the track coordinate point to be the target color according to the third RGB value.
The following describes the present embodiment with reference to a specific application example:
assuming that the RGB difference threshold is (128, 0, 0), when the first RGB value is (0, 1, 2), the third RGB value may be determined as a sum of the RGB difference threshold and the first RGB value, i.e., (128, 1, 2); of course, alternatively, the third RGB value may also be determined as the difference of the first RGB value and the RGB difference threshold. Considering that the value range of each color channel is within 0-255, a calculated value may be greater than 255 when the value of some color channels in the first RGB value is added with the corresponding difference threshold, and in this case, 256 may be subtracted from the calculated value; for example, when the first RGB value is (128, 0, 200), after adding this difference threshold of (128, 0, 0), the resulting third RGB value may be (0, 200). Or, when the calculated value is a negative value after subtracting the corresponding difference threshold from the values of some color channels in the first RGB values, 256 may be added to the negative value to obtain the values of the third RGB values in these color channels.
And the third RGB value, that is, the RGB value of the target color, may update the color of the trajectory coordinate point by the third RGB value when the third RGB value is determined.
According to the embodiment, the track color and the ground color at the coordinate position are different, and the phenomenon that the identification degree of some coordinate positions in the finally generated track is low is effectively avoided.
Also, in order to avoid the phenomenon that the coordinate positions in the finally generated trajectory are less distinguishable, the present invention further provides a variation of the previous embodiment, and specifically, as shown in fig. 5, where the initial color is similar to the candidate color, the determining of the target color according to the initial color and the updating of the color of the coordinate point of the trajectory to the target color includes:
step 501, determining a third RGB value of the target color according to a preset RGB value mapping relation and the first RGB value;
and 502, updating the color of the track coordinate point to be the target color according to the third RGB value.
The preset RGB value mapping relationship may be a mapping relationship between the first RGB value and the third RGB value, for example, when a value of any color channel in the first RGB value is 0 to 127, a value corresponding to the color channel in the third RGB value may be determined to be 255; when the value of any color channel in the first RGB values is 128-255, the value corresponding to the color channel in the third RGB values can be determined to be 0; if the first RGB value corresponding to a certain track point is (5, 200, 5), the third RGB value determined for the track point is (255, 0, 255). Determining a third RGB value from the first RGB value by establishing an RGB value mapping relationship
It should be noted that, in the above embodiments, the specific value mapping relationship between the specific value of the RGB difference threshold and the preset RGB value mapping relationship is only an example for convenience of description, and in practical applications, the specific value mapping relationship may be set according to needs.
Optionally, the predetermined candidate color is a preset color.
In this embodiment, the candidate color may be a default color in the electronic whiteboard or a color selected by the user, for example, a control for color selection may be displayed on the electronic whiteboard, the user may perform a selection operation on the control before performing a trajectory input on the electronic whiteboard through a brush, and the electronic whiteboard determines the preset color in response to the selection operation. When the subsequent electronic whiteboard generates the track color according to the track input of the user, the preset color can be used as a candidate color to judge the similarity with the initial color of the track coordinate point.
According to the embodiment, the generated track color can be effectively distinguished from the ground color, and the track color is kept as the preset color as far as possible, so that the requirement of a user on the personalized selection of the track color is met.
As a variation of the previous embodiment, in the present embodiment, the trajectory input includes a plurality of trajectory coordinate points; and the candidate color used for judging whether the initial color of the first track coordinate point is similar to the candidate color of the initial color of the first track coordinate point is predetermined as the updated color of the last track coordinate point, wherein the first track coordinate point is any one track coordinate point which is not the initial track coordinate point in the plurality of track coordinate points.
As described above, the trajectory formed by the trajectory input may be a line including a plurality of trajectory coordinate points, that is, the trajectory input carries the position information of the trajectory, specifically, the trajectory input includes a plurality of trajectory coordinate points; the plurality of track coordinate points can correspond to the real-time contact positions of the brush and the electronic whiteboard screen and the screen positions of which the track color updating is finished.
For the starting trajectory coordinate point of the plurality of trajectory coordinate points, the candidate color thereof may be a default color or a user-selected color, which is not specifically limited herein. Unlike the previous embodiment, in the present embodiment, there may be a change in the candidate color during the subsequent trajectory input.
Specifically, for any one of the plurality of trajectory coordinate points other than the initial trajectory coordinate point, that is, the first trajectory coordinate point, the color of the updated trajectory coordinate point is determined to correspond to the predetermined color candidate. Taking the first trajectory coordinate point as the second trajectory coordinate point in the input trajectory as an example, the last trajectory coordinate point is the initial trajectory coordinate point, and the updated color of the initial trajectory coordinate point has two conditions, one is to keep the candidate color corresponding to the initial trajectory coordinate point, and the other is to determine the target color according to the initial color, and the specific determination process is explained in detail in the above embodiment, and is not repeated here; in either case, there is a color updating process for the initial trajectory coordinate point, and the updated color can be used as a predetermined candidate color for the second trajectory coordinate point.
Combining an actual application scene, wherein the left half part of the electronic whiteboard is white, the right half part of the electronic whiteboard is black, and the color of the painting brush is pre-selected to be black; the input trajectory moves from left to right, and when entering the right half from the left part, there is a process of determining a target color (white) from an initial color (black) at the trajectory coordinate point of the boundary line, while the input trajectory continues to move to the right, a predetermined candidate color for the trajectory coordinate point of each real-time contact position is changed to white, and then the color of the trajectory coordinate point may be directly determined as a candidate color, and a process of determining the target color (white) from a predetermined black candidate color and determining the color of the trajectory coordinate point as white is omitted.
By combining the practical application scenarios, the present embodiment can effectively improve the track color generation efficiency under the condition that a large-area color block exists in the ground color.
As shown in fig. 6, an embodiment of the present invention further provides a trajectory color generation apparatus, including:
a receiving module 601, configured to receive a trajectory input;
a determining module 602, configured to determine a trajectory coordinate point of the trajectory input and an initial color of the trajectory coordinate point;
a judging module 603, configured to judge whether the initial color is similar to a predetermined candidate color;
and a first updating module 604, configured to determine a target color according to the initial color and update the color of the trajectory coordinate point to the target color if the initial color is similar to the candidate color.
Optionally, the apparatus further comprises:
and in the case that the initial color is not similar to the candidate color, updating the color of the track coordinate point to the candidate color.
Optionally, the determining module 603 includes:
a judging unit for judging whether the absolute value of the difference between the first RGB value of the initial color and the second RGB value of the candidate color is smaller than the RGB difference threshold value;
a first determination unit configured to determine that the initial color is similar to the candidate color if an absolute value of a difference between the first RGB value and the second RGB value is smaller than an RGB difference threshold;
and the second judging unit is used for judging that the initial color is not similar to the candidate color if the absolute value of the difference value of the first RGB value and the second RGB value is greater than or equal to the RGB difference value threshold.
Optionally, the first updating module 604 includes:
the first determining unit is used for determining a third RGB value of the target color according to the sum or difference of the first RGB value and the RGB difference threshold value;
and the first updating unit is used for updating the color of the track coordinate point to the target color according to the third RGB value.
Optionally, the first updating module 604 includes:
the second determining unit is used for determining a third RGB value of the target color according to the preset RGB value mapping relation and the first RGB value;
and the second updating unit is used for updating the color of the track coordinate point to the target color according to the third RGB value.
Optionally, the predetermined candidate color is a preset color.
Optionally, the trajectory input comprises a plurality of trajectory coordinate points; and the candidate color used for judging whether the initial color of the first track coordinate point is similar to the candidate color of the initial color of the first track coordinate point is predetermined as the updated color of the last track coordinate point, wherein the first track coordinate point is any one track coordinate point which is not the initial track coordinate point in the plurality of track coordinate points.
The trajectory color generation device is a device corresponding to the trajectory color generation method, and all the implementation manners in the method embodiment are applicable to the embodiment of the device, so that the same technical effects can be achieved.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the trajectory color generation method described above when executing the computer program.
Optionally, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the trajectory color generation method described above.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating a trajectory color, comprising:
receiving a trajectory input;
determining a track coordinate point of the track input and an initial color of the track coordinate point;
judging whether the initial color is similar to a predetermined candidate color;
under the condition that the initial color is similar to the candidate color, determining a target color according to the initial color, and updating the color of the track coordinate point to the target color;
wherein the initial color is determined by the content displayed in advance on the screen, and the candidate color is determined by the input color of the track input.
2. The method of claim 1, wherein after determining whether the initial color is similar to a predetermined candidate color, the method further comprises:
and updating the color of the track coordinate point to the candidate color if the initial color is not similar to the candidate color.
3. The method according to claim 1 or 2, wherein the determining whether the initial color is similar to a predetermined candidate color comprises:
judging whether the absolute value of the difference value between the first RGB value of the initial color and the second RGB value of the candidate color is smaller than an RGB difference value threshold value or not;
if the absolute value of the difference between the first RGB value and the second RGB value is less than the RGB difference threshold, determining that the initial color is similar to the candidate color;
if the absolute value of the difference between the first RGB value and the second RGB value is greater than or equal to the RGB difference threshold, then the initial color is determined to be dissimilar from the candidate color.
4. The method according to claim 3, wherein the determining a target color according to the initial color and updating the color of the locus coordinate point to the target color in the case that the initial color is similar to the candidate color comprises:
determining a third RGB value of the target color according to the sum or difference of the first RGB value and the RGB difference threshold value;
and updating the color of the track coordinate point to the target color according to the third RGB value.
5. The method according to claim 3, wherein the determining a target color according to the initial color and updating the color of the locus coordinate point to the target color in the case that the initial color is similar to the candidate color comprises:
determining a third RGB value of the target color according to a preset RGB value mapping relation and the first RGB value;
and updating the color of the track coordinate point to the target color according to the third RGB value.
6. The method according to claim 1 or 2, wherein the predetermined candidate color is a preset color.
7. The method of claim 1 or 2, wherein the trajectory input comprises a plurality of trajectory coordinate points; and the candidate color used for judging whether the candidate color is similar to the initial color of the first track coordinate point is predetermined as the updated color of the last track coordinate point, wherein the first track coordinate point is any one of the plurality of track coordinate points other than the initial track coordinate point.
8. A trajectory color generation device, comprising:
a receiving module for receiving a trajectory input;
the determining module is used for determining a track coordinate point of the track input and an initial color of the track coordinate point;
the judging module is used for judging whether the initial color is similar to a predetermined candidate color or not;
a first updating module, configured to determine a target color according to the initial color and update the color of the trajectory coordinate point to the target color when the initial color is similar to the candidate color;
wherein the initial color is determined by the content displayed in advance on the screen, and the candidate color is determined by the input color of the track input.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010944443.1A 2020-09-10 2020-09-10 Track color generation method and device, electronic equipment and readable storage medium Active CN111813311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010944443.1A CN111813311B (en) 2020-09-10 2020-09-10 Track color generation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010944443.1A CN111813311B (en) 2020-09-10 2020-09-10 Track color generation method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111813311A CN111813311A (en) 2020-10-23
CN111813311B true CN111813311B (en) 2020-12-04

Family

ID=72860042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010944443.1A Active CN111813311B (en) 2020-09-10 2020-09-10 Track color generation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111813311B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253961B (en) * 2021-06-02 2021-12-03 广州朗国电子科技股份有限公司 Electronic blackboard control method and system, electronic blackboard and readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104246673A (en) * 2012-04-26 2014-12-24 松下电器产业株式会社 Display control system, display device, and display panel
CN105446523A (en) * 2014-09-22 2016-03-30 三星电子株式会社 Method and apparatus for inputting object in electronic device
CN106598582A (en) * 2016-12-07 2017-04-26 北京奇虎科技有限公司 Mobile terminal and desk application display method and apparatus therefor
WO2020082275A1 (en) * 2018-10-24 2020-04-30 三星电子株式会社 Method and device for processing drawn content on terminal apparatus, and terminal apparatus
CN107491210B (en) * 2017-08-14 2020-06-09 广州视源电子科技股份有限公司 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6808330B1 (en) * 1999-10-25 2004-10-26 Silverbrook Research Pty Ltd Universal pen with sampler
US10921928B2 (en) * 2019-02-22 2021-02-16 Sharp Kabushiki Kaisha Input apparatus and input system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104246673A (en) * 2012-04-26 2014-12-24 松下电器产业株式会社 Display control system, display device, and display panel
CN105446523A (en) * 2014-09-22 2016-03-30 三星电子株式会社 Method and apparatus for inputting object in electronic device
CN106598582A (en) * 2016-12-07 2017-04-26 北京奇虎科技有限公司 Mobile terminal and desk application display method and apparatus therefor
CN107491210B (en) * 2017-08-14 2020-06-09 广州视源电子科技股份有限公司 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment
WO2020082275A1 (en) * 2018-10-24 2020-04-30 三星电子株式会社 Method and device for processing drawn content on terminal apparatus, and terminal apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于计算机视觉的手写字符输入;薛瑞恒;《计算机技术与应用》;20111231;第114-116页 *

Also Published As

Publication number Publication date
CN111813311A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US11301200B2 (en) Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
CN108733296B (en) Method, device and equipment for erasing handwriting
CN104375797A (en) Information processing method and electronic equipment
JP6307889B2 (en) Display device, display system, and display method
US9875565B2 (en) Information processing device, information processing system, and information processing method for sharing image and drawing information to an external terminal device
KR101058612B1 (en) Color correction method of image using multi-touch touch screen
CN109215098B (en) Handwriting erasing method and device
EP2897032A1 (en) Mobile terminal-based method for side-by-side input of information and mobile terminal
CN110070551A (en) Rendering method, device and the electronic equipment of video image
CN105022580A (en) Image display system
CN110084204A (en) Image processing method, device and electronic equipment based on target object posture
CN111813311B (en) Track color generation method and device, electronic equipment and readable storage medium
JP2016173452A (en) Projector and display control method
CN110689479A (en) Face makeup method, device, equipment and medium
CN111782131A (en) Pen point implementation method, device, equipment and readable storage medium
CN109062491A (en) The handwriting processing method and device of interactive intelligence equipment
US20110037731A1 (en) Electronic device and operating method thereof
KR101145602B1 (en) Correction method of image color using multi-touchable touch screen
JP2015165608A (en) Image processing apparatus, image processing method, image processing system, and program
CN106055263B (en) Method and system for controlling backlight setting of mobile terminal
US20130265287A1 (en) Apparatus and method to detect coordinates in a penbased display device
CN108334162B (en) Display processing method of electronic equipment and electronic equipment
JP4878955B2 (en) Switching device and touch panel calibration method
CN114863008A (en) Image processing method, image processing device, electronic equipment and storage medium
CN110333780A (en) Function triggering method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Track color generation method, device, electronic device and readable storage medium

Effective date of registration: 20210126

Granted publication date: 20201204

Pledgee: Agricultural Bank of China Limited Changsha Yuhua District sub branch

Pledgor: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

Registration number: Y2021980000747

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee after: New Cloud Technology Group Co.,Ltd.

Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.