Intelligent painting auxiliary system based on color recognition

By designing an intelligent auxiliary system based on color recognition in the intelligent painting assistance system, the problems of color selection error and low efficiency in painting are solved, and higher color switching accuracy and painting efficiency are achieved.

CN119516033AInactive Publication Date: 2025-02-25TONGLIAO VOCATIONAL COLLEGE (TONGLIAO BRANCH OF INNER MONGOLIA TV UNIVERSITY)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411526248.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the process of electronic reproduction based on sample drawings, there are many color areas. When the painter selects the colors corresponding to the color areas of the sample drawings in the color classification module, errors may be generated or the accuracy of color switching and painting efficiency may be reduced.

Method used

Design an intelligent painting assistance system based on color recognition, including sample diagram storage module, painting analysis module and color switching module. By storing sample drawings and their color characteristics, the system determines the stress position of the painting brush, matches the corresponding color area, and accurately judges and performs color switching based on the painting completion representation coefficients and historical data.

Benefits of technology

Improve the accuracy of color switching and painting efficiency, and reduce the problem of painting inaccuracy caused by color selection errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516033A_ABST
    Figure CN119516033A_ABST
Patent Text Reader

Abstract

The invention relates to the field of painting assistance, in particular to an intelligent painting assistance system based on color recognition, and the system is provided with a sample picture storage module which is used for storing sample pictures and color features corresponding to color regions of the sample pictures; the drawing analysis module is connected with the sample picture storage module and used for determining the stress position of a drawing pen on the digital panel, matching a corresponding sample picture color area based on the stress position and calling RGB corresponding to the sample picture color area to determine the filling color of the drawing pen so as to fill the actual drawing area of the digital panel; and the color switching module is respectively connected with the sample picture storage module and the drawing analysis module, and comprises a switching determination unit used for judging a suspected color switching moment and a verification unit used for responding to a judgment result of the switching determination unit. The color switching judgment is accurately made in advance, and the drawing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of painting assistance, and in particular to an intelligent painting assistance system based on color recognition. Background Art

[0002] With the rapid development of computer technology, computer processing power, storage capacity and transmission speed have been greatly improved, providing a solid foundation for the emergence of intelligent painting assistance systems. Computer technology enables computers to process more complex image data, enabling painters to draw paintings that are closer to sample pictures and more consistent in color.

[0003] Chinese patent application publication number: CN113378706A, discloses a drawing system for assisting children in observing plants and learning biodiversity, which includes a plant identification learning system and a children's sketching and painting system; the plant identification learning system is used to identify the photographed plant photos, present the plant name and related biodiversity knowledge in a set area of ​​the display interface and play them through voice; the children's sketching and painting system is used to convert the photographed plant photos into outline drawings, and compare the plant photos with the colors of the drawing area when the children draw biological characteristics, and provide information feedback and display on the interface; the plant identification learning system includes a plant image recognition module and a plant knowledge retrieval module; the children's sketching and painting system includes a plant outline drawing generation module and an intelligent auxiliary painting module.

[0004] However, there are still the following problems in the prior art:

[0005] In a large number of processes for electronic reproduction based on sample pictures, there are numerous color areas. When filling each color, it is not considered that the painter needs to select the color corresponding to the color area of ​​the sample picture in the color classification module. Different methods of color selection will have certain corresponding influences. For example, selection by naked eyes may produce errors, or absorbing the RGB of the color area of ​​the sample picture will also produce a certain selection and determination time, thereby reducing the accuracy of color switching and the efficiency of painting. Summary of the invention

[0006] To this end, the present invention provides an intelligent painting assistance system based on color recognition, which is used to overcome the problem in the prior art that, in a large number of processes for electronic reproduction based on sample pictures, there are numerous color areas, and when filling each color, it is not considered that the painter needs to select the color corresponding to the color area of ​​the sample picture in the color classification module. Different methods of color selection will have certain corresponding influences, thereby reducing the accuracy of color switching and the efficiency of painting.

[0007] To achieve the above object, the present invention provides an intelligent painting assistance system based on color recognition, which includes:

[0008] A sample picture storage module, used for storing sample pictures and color features corresponding to the color regions of each sample picture, wherein the color features include RGB of the color regions of each sample picture and a coordinate set of the color regions of the sample pictures;

[0009] A painting analysis module connected to the sample image storage module, used to determine the force position of the painting pen on the digital tablet, match the corresponding sample image color area based on the force position, call the RGB corresponding to the sample image color area to determine the filling color of the painting pen, so as to fill the actual painting area of ​​the digital tablet;

[0010] a color switching module, which is connected to the sample image storage module and the painting analysis module respectively, and includes a switching determination unit and a verification unit,

[0011] The switching determination unit is used to determine the painting completion characterization coefficient for each actual painting area according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the digital tablet, so as to determine the suspected color switching moment;

[0012] The verification unit responds to the determination result of the switching determination unit to select a high-inclination drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, determines the force position of the drawing pen on the digital tablet in the historical data, determines the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, verifies whether color switching is required based on the maximum probability, and determines the pre-drawing area based on the probability ranking and switches the drawing pen to the filling color corresponding to the corresponding RGB.

[0013] Furthermore, the process in which the painting analysis module is used to match the sample picture color area based on the force position and call the RGB corresponding to the sample picture color area to determine the filling color includes:

[0014] To obtain the coordinates of the position where the tablet is subjected to force;

[0015] To determine the coordinate set corresponding to the coordinates;

[0016] for comparing the coordinate set with the coordinate sets of each of the sample image color regions;

[0017] If the degree of coincidence between the coordinate set and the coordinate set of the sample picture color area is equal to the coincidence threshold, the sample picture color area is matched to call the corresponding RGB to determine the filling color.

[0018] Furthermore, the process of the switching determination unit determining the painting completion characterization coefficient according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the actual painting area includes:

[0019] Calculating the ratio of the force value threshold to the force value of the actual drawing area and assigning a corresponding weight coefficient as the first drawing feature;

[0020] The ratio of the time duration of the painting pen contacting the actual painting area to the contact time threshold is calculated and a corresponding weight coefficient is assigned as the second painting feature;

[0021] The first painting feature and the second painting feature are weighted and summed to determine the painting completion representation coefficient.

[0022] Furthermore, the switching determination unit is used to determine the suspected color switching moment, including:

[0023] If the painting completion characterization coefficient is greater than or equal to the painting completion characterization coefficient threshold, the current moment is determined to be a suspected color switching moment.

[0024] Further, the verification unit is used to respond to the determination result of the switching determination unit, including:

[0025] If the current moment is a suspected color switching moment, a high-inclination drawing area is selected based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, and the force position of the drawing pen on the digital tablet in the historical data is determined to determine the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, so as to verify whether color switching is required based on the maximum probability, and determine the pre-drawing area based on the probability ranking and switch the drawing pen to the corresponding filling color corresponding to the corresponding RGB.

[0026] Furthermore, the process of the switching determination unit selecting the high tendency drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas includes:

[0027] To determine the distance between each remaining actual drawing area and the current actual drawing area;

[0028] The remaining actual drawing areas whose distance is less than the preset distance threshold are determined as high tendency drawing areas.

[0029] Furthermore, the verification unit determines the force position of the drawing pen on the digital tablet in the historical data and determines the probability ranking of the transfer from the current actual drawing area to each of the high tendency drawing areas, including:

[0030] to determine certain historical data for the sample drawing;

[0031] To determine the probability of the force position coordinates appearing in each of the high-inclination painting areas after the actual painting area is painted, and obtain a probability ranking; the probability is the ratio of the number of times the force position coordinates appear in the high-inclination painting area to the number of times they are transferred after the actual painting area is painted;

[0032] Wherein, the historical data includes the force position coordinates of the digital tablet.

[0033] Furthermore, the verification unit is used to verify whether color switching is required based on the maximum probability, including:

[0034] The maximum probability is compared with a preset probability threshold, and if the maximum probability is greater than or equal to the probability threshold, it is determined that color switching is required.

[0035] Furthermore, the verification unit is used to determine the pre-drawing area based on the probability ranking and switch the drawing pen to the filling color corresponding to the corresponding RGB, including:

[0036] Determine the high tendency drawing area corresponding to the maximum probability as the pre-drawing area;

[0037] To determine the RGB of the sample image color area corresponding to the pre-drawing area;

[0038] Used to determine the fill color that needs to be switched based on the RGB.

[0039] Furthermore, it also includes a database module for recording the force position coordinates of the painting pen during the painting process for each sample picture.

[0040] Compared with the prior art, the present invention is provided with a sample image storage module for storing sample images and color features corresponding to the color areas of each sample image; a painting analysis module, which is connected to the sample image storage module, for determining the force position of the painting pen on the digital tablet, matching the corresponding sample image color area based on the force position, calling the RGB corresponding to the sample image color area to determine the filling color of the painting pen to fill the actual painting area of ​​the digital tablet; a color switching module, which is respectively connected to the sample image storage module and the painting analysis module, including a switching determination unit for determining the suspected color switching moment and a verification unit for responding to the determination result of the switching determination unit. The present invention can make accurate color switching judgments in advance according to the actions taken by the painter on the digital tablet during the actual painting process, thereby improving the efficiency of painting.

[0041] In particular, the present invention determines a painting completion characterization coefficient for each actual drawing area. For a process that requires electronic reproduction based on a sample picture, the sample picture is divided into a number of color areas based on the RGB corresponding to each color in the sample picture. In the actual reproduction painting process, the pressure value applied to the actual drawing area of ​​the digital tablet and the length of time the painting pen used by the painter contacts the digital tablet can characterize the degree of completion of the actual drawing area by the painter. The above-mentioned pressure value can reflect whether the painter is drawing the actual drawing area. At the same time, the change in pressure value can also reflect the actual drawing situation of the painter. For example, if the force value of the actual drawing area of ​​the digital tablet decreases, it may be that the painter stops drawing the actual drawing area, or it may be that the painter completes drawing the actual drawing area and starts to select other drawing areas to prepare for pre-drawing. Similarly, the length of time the painting pen contacts the digital tablet can also reflect the painter's The actual drawing situation of the painter, for example, can be analyzed through the painter's historical painting data to determine the relevant historical data of the current actual drawing area. Under normal circumstances, the time spent on the same drawing area should be the same or there should be a slight fluctuation in the duration. Therefore, the degree of completion of the actual drawing area can be determined based on the contact duration between the drawing pen and the digital tablet. If the contact duration between the drawing pen and the digital tablet is too long during the drawing of the actual drawing area, far exceeding the historical durations, it can reflect that the painter has completed the drawing of the actual drawing area, but there is a contact relationship between the drawing pen and the digital tablet. Therefore, the present application calculates the painting completion representation coefficient of the actual drawing area to provide data support for the subsequent determination of the suspected color switching moment. According to the actual drawing process of the painter, it is preliminarily determined whether color switching is suspected to be required at the current moment, providing basic support for subsequent more accurate verification.

[0042] In particular, the verification unit of the present invention responds to the determination result of the switching determination unit to perform more powerful verification on the suspected color switching moment. In actual drawing, the painter generally does not select a farther area for determining the next drawing area, and generally draws a complete figure or other object formed by connecting various closed areas. At the same time, the above-mentioned whole is composed of multiple colors. Therefore, for the determination of the next drawing area, the shortest distance between the edges of the two painting areas will not be too long for the previous actual drawing area. By performing data analysis on the force position coordinates of the painting pen when painting the same sample picture in the painter's historical data, the pre-painting area that the painting pen may perform after completing the current actual painting area is determined, and then color switching is performed in advance, thereby improving the efficiency of painting while ensuring accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A functional module diagram of an intelligent painting assistance system based on color recognition according to an embodiment of the invention;

[0044] Figure 2 A logic decision diagram for responding to a decision result of a switching determination unit according to an embodiment of the invention;

[0045] Figure 3 A logical decision diagram for selecting high tendency drawing areas for embodiments of the invention;

[0046] Figure 4 A logical decision diagram for verifying whether color switching is required according to an embodiment of the invention. DETAILED DESCRIPTION

[0047] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0049] It should be noted that, in the description of the present invention, the terms such as "on" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present invention.

[0050] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0051] See also Figures 1 to 4 As shown, Figure 1 is a functional module diagram of an intelligent painting assistance system based on color recognition according to an embodiment of the present invention, Figure 2 is a logic decision diagram in response to a decision result of a switching determination unit according to an embodiment of the present invention, Figure 3 A logical decision diagram for selecting a high tendency drawing area for an embodiment of the present invention, Figure 4 The following is a logic decision diagram for verifying whether color switching is required in an embodiment of the present invention. The intelligent painting assistance system based on color recognition in an embodiment of the present invention includes:

[0052] A sample picture storage module, used for storing sample pictures and color features corresponding to the color regions of each sample picture, wherein the color features include RGB of each color region of the sample picture and a coordinate set of the color region of the sample picture;

[0053] A painting analysis module connected to the sample image storage module, used to determine the force position of the painting pen on the digital tablet, match the corresponding sample image color area based on the force position, call the RGB corresponding to the sample image color area to determine the filling color of the painting pen, so as to fill the actual painting area of ​​the digital tablet;

[0054] a color switching module, which is connected to the sample image storage module and the painting analysis module respectively, and includes a switching determination unit and a verification unit,

[0055] The switching determination unit is used to determine the painting completion characterization coefficient for each actual painting area according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the digital tablet, so as to determine the suspected color switching moment;

[0056] The verification unit responds to the determination result of the switching determination unit to select a high-inclination drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, determines the force position of the drawing pen on the digital tablet in the historical data, determines the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, verifies whether color switching is required based on the maximum probability, and determines the pre-drawing area based on the probability ranking and switches the drawing pen to the corresponding filling color corresponding to the corresponding RGB.

[0057] In this embodiment, the sample picture color area and the drawing area are divided according to the RGB corresponding to the color. For example, the area corresponding to a single color in the sample picture is determined as the sample picture color area.

[0058] Specifically, there is no specific limitation on the storage method of the sample pictures. For example, the sample pictures may be collected in advance, and the color features corresponding to the color regions of each sample picture are stored synchronously, which will not be described in detail.

[0059] Specifically, there is no limitation on the specific structures of the sample image storage module, the painting analysis module and the color switching module, which themselves or each unit therein can be composed of logic components or a combination of logic components, and the logic components include a field programmable processor, a computer or a microprocessor in a computer.

[0060] Specifically, the process of the painting analysis module for matching the sample picture color area based on the force position and calling the RGB corresponding to the sample picture color area to determine the filling color includes:

[0061] To obtain the coordinates of the position where the tablet is subjected to force;

[0062] To determine the coordinate set corresponding to the coordinates;

[0063] for comparing the coordinate set with the coordinate sets of each of the sample image color regions;

[0064] If the degree of coincidence between the coordinate set and the coordinate set of the sample picture color area is equal to the coincidence threshold, the sample picture color area is matched to call the corresponding RGB to determine the filling color.

[0065] It is understandable that the force position of the digital tablet refers to the position where the digital tablet is subjected to pressure, which will not be elaborated here.

[0066] It can be understood that the coordinate layout of the tablet corresponds one-to-one with the coordinate layout of the sample picture. Since the force position is a point rather than an area range, the tablet area corresponding to the force position point is determined, and the overlap between the coordinate set of the tablet area and the coordinate set of the sample picture area is compared to call RGB to determine the fill color.

[0067] The overlap threshold is 100%.

[0068] It is understandable that colors correspond to RGB values ​​one by one, and the corresponding color can be determined by obtaining the RGB value, which will not be described in detail.

[0069] Specifically, the process of the switching determination unit determining the painting completion characterization coefficient according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the actual painting area includes:

[0070] Calculating the ratio of the force value threshold to the force value of the actual drawing area and assigning a corresponding weight coefficient as the first drawing feature;

[0071] The ratio of the time duration of the painting pen contacting the actual painting area to the contact time threshold is calculated and a corresponding weight coefficient is assigned as the second painting feature;

[0072] The first painting feature and the second painting feature are weighted and summed to determine the painting completion representation coefficient.

[0073] In this embodiment, when performing weighted summation, the weight of the first painting feature is set to 0.45, and the weight of the second painting feature is set to 0.55;

[0074] The force value threshold of the actual painting area and the contact time threshold of the painting pen in the actual painting area are pre-set, and the data of the painter completing the painting several times are obtained. The historical force value data and the historical contact time data for the same actual painting area are called to solve the average force value and the average contact time. The force value threshold is set to 1.01 to 1.12 times the average force value, and the contact time threshold is set to 1.05 to 1.15 times the average contact time.

[0075] Specifically, the switching determination unit is used to determine the suspected color switching moment, including:

[0076] If the painting completion characterization coefficient is greater than or equal to the painting completion characterization coefficient threshold, the current moment is determined to be a suspected color switching moment.

[0077] The threshold of the painting completion characterization coefficient is selected in the interval [1.12,1.23].

[0078] The present invention determines a painting completion characterization coefficient for each actual painting area. For a process that requires electronic reproduction based on a sample picture, the sample picture is divided into a plurality of color areas based on the RGB corresponding to each color in the sample picture. In the actual reproduction painting process, the pressure value of the actual painting area of ​​the digital tablet and the length of time the painting pen used by the painter contacts the digital tablet can characterize the painter's degree of completion of the actual painting area. The above pressure value can reflect whether the painter is painting the actual painting area. At the same time, the change in pressure value can also reflect the painter's actual painting situation. For example, if the force value of the actual painting area of ​​the digital tablet decreases, it may be that the painter stops painting the actual painting area, or it may be that the painter completes the painting of the actual painting area and starts to select other painting areas to prepare for pre-drawing. Similarly, the length of time the painting pen contacts the digital tablet can also reflect the painter's The actual drawing situation, for example, can be analyzed through the painter's historical painting data to determine the relevant historical data of the current actual drawing area. Under normal circumstances, the time spent on the same drawing area should be the same or there should be a slight fluctuation in the duration. Therefore, the degree of completion of the actual drawing area can be determined according to the contact duration between the drawing pen and the digital tablet. If the contact duration between the drawing pen and the digital tablet is too long during the drawing of the actual drawing area, far exceeding the historical durations, it can reflect that the painter has completed the drawing of the actual drawing area, but there is a contact relationship between the drawing pen and the digital tablet. Therefore, the present application calculates the painting completion representation coefficient of the actual drawing area to provide data support for the subsequent determination of the suspected color switching moment. According to the actual drawing process of the painter, it is preliminarily determined whether the current moment is suspected to require color switching, providing basic support for subsequent more accurate verification.

[0079] Specifically, the verification unit is used to respond to the determination result of the switching determination unit, including:

[0080] If the current moment is a suspected color switching moment, a high-inclination drawing area is selected based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, and the force position of the drawing pen on the digital tablet in the historical data is determined to determine the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, so as to verify whether color switching is required based on the maximum probability, and determine the pre-drawing area based on the probability ranking and switch the drawing pen to the corresponding filling color corresponding to the corresponding RGB.

[0081] Specifically, the process of the switching determination unit selecting the high tendency drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas includes:

[0082] To determine the distance between each remaining actual drawing area and the current actual drawing area;

[0083] The remaining actual drawing areas whose distance is less than the preset distance threshold are determined as high tendency drawing areas.

[0084] Specifically, the preset distance threshold is pre-set, and preferably, is determined based on the maximum width of the drawing area and is set to 2 to 3 times of the drawing area.

[0085] Specifically, the verification unit determines the force position of the drawing pen on the digital tablet in the historical data and determines the probability ranking of the transfer from the current actual drawing area to each of the high tendency drawing areas, including:

[0086] to determine certain historical data for the sample drawing;

[0087] To determine the probability of the force position coordinates appearing in each of the high-inclination painting areas after the actual painting area is painted, and obtain a probability ranking; the probability is the ratio of the number of times the force position coordinates appear in the high-inclination painting area to the number of times they are transferred after the actual painting area is painted;

[0088] Wherein, the historical data includes the force position coordinates of the digital tablet.

[0089] Specifically, the verification unit is used to verify whether color switching is required based on the maximum probability, including:

[0090] The maximum probability is compared with a preset probability threshold, and if the maximum probability is greater than or equal to the probability threshold, it is determined that color switching is required.

[0091] The probability threshold needs to be selected between the interval [50%, 70%]. If the probability of switching to each high-inclination painting area in the historical data is low, it is difficult to determine whether color switching is required, so color switching is only performed when the maximum probability is greater than or equal to the probability threshold to ensure accuracy.

[0092] Specifically, the verification unit is used to determine the pre-drawing area based on the probability ranking and switch the drawing pen to the filling color corresponding to the corresponding RGB, including:

[0093] Determine the high tendency drawing area corresponding to the maximum probability as the pre-drawing area;

[0094] To determine the RGB of the sample image color area corresponding to the pre-drawing area;

[0095] Used to determine the fill color that needs to be switched based on the RGB.

[0096] The verification unit of the present invention responds to the determination result of the switching determination unit to perform more powerful verification on the suspected color switching moment. In actual drawing, the painter generally does not select an area at a longer distance to determine the next drawing area, and generally draws a complete figure or other object formed by connecting various closed areas. At the same time, the above-mentioned whole is composed of multiple colors. Therefore, for the determination of the next drawing area, the shortest distance between the edges of the two painting areas will not be too long for the previous actual drawing area. By performing data analysis on the force position coordinates of the painting pen when painting the same sample picture in the painter's historical data, the pre-painting area that the painting pen may perform after completing the current actual painting area is determined, and then color switching is performed in advance, thereby improving the efficiency of painting while ensuring accuracy.

[0097] Specifically, it also includes a database module for recording the force position coordinates of the painting pen during the painting process for each sample picture.

[0098] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. An intelligent painting assistance system based on color recognition, characterized in that: include: A sample picture storage module, used for storing sample pictures and color features corresponding to the color regions of each sample picture, wherein the color features include RGB of the color regions of each sample picture and a coordinate set of the color regions of the sample pictures; A painting analysis module connected to the sample image storage module, used to determine the force position of the painting pen on the digital tablet, match the corresponding sample image color area based on the force position, call the RGB corresponding to the sample image color area to determine the filling color of the painting pen, so as to fill the actual painting area of ​​the digital tablet; a color switching module, which is connected to the sample image storage module and the painting analysis module respectively, and includes a switching determination unit and a verification unit, The switching determination unit is used to determine the painting completion characterization coefficient for each actual painting area according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the digital tablet, so as to determine the suspected color switching moment; The verification unit responds to the determination result of the switching determination unit to select a high-inclination drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, determines the force position of the drawing pen on the digital tablet in the historical data, determines the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, verifies whether color switching is required based on the maximum probability, and determines the pre-drawing area based on the probability ranking and switches the drawing pen to the corresponding filling color corresponding to the corresponding RGB.

2. The intelligent painting assistance system based on color recognition according to claim 1 is characterized in that: The process of the painting analysis module for matching the sample picture color area based on the force position and calling the RGB corresponding to the sample picture color area to determine the filling color includes: To obtain the coordinates of the position where the tablet is subjected to force; To determine the coordinate set corresponding to the coordinates; for comparing the coordinate set with the coordinate sets of each of the sample image color regions; If the degree of coincidence between the coordinate set and the coordinate set of the sample picture color area is equal to the coincidence threshold, the sample picture color area is matched to call the corresponding RGB to determine the filling color.

3. The intelligent painting assistance system based on color recognition according to claim 1 is characterized in that: The process of the switching determination unit determining the painting completion characterization coefficient according to the force value of the actual painting area of ​​the digital tablet and the duration of contact of the painting pen with the actual painting area includes: Calculating the ratio of the force value threshold to the force value of the actual drawing area and assigning a corresponding weight coefficient as the first drawing feature; The ratio of the time duration of the painting pen contacting the actual painting area to the contact time threshold is calculated and a corresponding weight coefficient is assigned as the second painting feature; The first painting feature and the second painting feature are weighted and summed to determine the painting completion representation coefficient.

4. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The switching determination unit is used to determine the suspected color switching moment, including: If the painting completion characterization coefficient is greater than or equal to the painting completion characterization coefficient threshold, the current moment is determined to be a suspected color switching moment.

5. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The verification unit is used to respond to the determination result of the switching determination unit, including: If the current moment is a suspected color switching moment, a high-inclination drawing area is selected based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas, and the force position of the drawing pen on the digital tablet in the historical data is determined to determine the probability ranking of the transfer from the current actual drawing area to each of the high-inclination drawing areas, so as to verify whether color switching is required based on the maximum probability, and determine the pre-drawing area based on the probability ranking and switch the drawing pen to the corresponding filling color corresponding to the corresponding RGB.

6. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The process of the switching determination unit selecting the high tendency drawing area based on the relative position relationship between the current actual drawing area and the remaining actual drawing areas includes: To determine the distance between each remaining actual drawing area and the current actual drawing area; The remaining actual drawing areas whose distance is less than the preset distance threshold are determined as high tendency drawing areas.

7. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The process of determining the force position of the drawing pen on the digital tablet in the historical data and determining the probability ranking of the transfer from the current actual drawing area to each of the high tendency drawing areas by the verification unit includes: to determine certain historical data for the sample drawing; to determine the probability of the force position coordinates appearing in each of the high-inclination drawing areas after the actual drawing area is finished drawing, and obtain a probability ranking; Wherein, the historical data includes the force position coordinates of the digital tablet.

8. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The verification unit is used to verify whether color switching is required based on the maximum probability, including: The maximum probability is compared with a preset probability threshold, and if the maximum probability is greater than or equal to the probability threshold, it is determined that color switching is required.

9. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: The verification unit is used to determine the pre-drawing area based on the probability ranking and switch the drawing pen to the filling color corresponding to the corresponding RGB, including: Determine the high tendency drawing area corresponding to the maximum probability as the pre-drawing area; To determine the RGB of the sample image color area corresponding to the pre-drawing area; Used to determine the fill color that needs to be switched based on the RGB.

10. The intelligent painting assistance system based on color recognition according to claim 1, characterized in that: It also includes a database module for recording the force position coordinates of the painting pen during the painting process for each sample picture.

Citation Information

Patent Citations

  • Drawing system for assisting children in observing plants and learning biodiversity

    CN113378706A