Hand drawing learning guiding method and system
By matching and segmenting hand drawings, calculating feature values, and generating analysis reports, it solves the problem of lack of automation and efficiency in hand drawing learning in the existing technology, realizes an automated learning tool suitable for the public, and improves learning efficiency and detailed evaluation.
Patent Information
- Application Number
- CN202310229304.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-03
AI Technical Summary
Existing hand-drawing learning guidance methods mainly rely on manual guidance, are difficult to adapt to the needs of amateurs and the public, and lack automated and efficient learning tools.
By obtaining hand-drawn drawings uploaded by users, matching reference images in the preset case library, using boundary lines and name tags to perform image segmentation and color value processing, calculating feature values, generating analysis reports, and evaluating the details and fidelity of hand-drawings. .
It has implemented an automated hand-drawing learning guide, which can effectively evaluate and improve the details and fidelity of hand-drawings, provide personalized learning feedback, is suitable for mass users, and improves learning efficiency.
Smart Images

Figure CN118587141A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hand-drawing evaluation, and in particular to a hand-drawing drawing learning guidance method and system. Background Art
[0002] The artistic requirements of hand-drawing are not high, and it is an exercise of existing drawing techniques. The more you practice, the more realistic the hand-drawing will be and the more complete the details will be. However, most of the existing learning guidance methods are manual guidance methods, with teachers guiding the whole process, which is almost impossible for amateurs. Therefore, how to provide a hand-drawing learning guidance system suitable for the general public is the technical problem that the present invention aims to solve. Summary of the invention
[0003] The object of the present invention is to provide a hand-drawing learning guidance method and system to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A hand-drawing learning guidance method, the method comprising:
[0006] Obtain a hand-drawn picture uploaded by a user, and match a reference image in a preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels;
[0007] Reading the name mark in the reference image, and segmenting the hand-drawn picture according to the position of the name mark; wherein, during the segmentation process, an adjustment port is opened, and adjustment information input by the user is received in real time based on the adjustment port;
[0008] The segmented hand-drawn image is compared with the reference image, and an analysis report is generated according to the comparison result.
[0009] As a further solution of the present invention: the step of receiving a hand-drawn picture containing index tags input by a user and matching a reference image in a preset case library according to the hand-drawn picture containing index tags comprises:
[0010] Obtain the hand-drawn picture uploaded by the user and its label information, and perform a first-level reduction on the preset case library according to the label information;
[0011] Locating a background area in the hand-drawn picture, and performing color value processing on the hand-drawn picture according to the background area;
[0012] Calculate the characteristic values of each case in the hand-drawn map and the narrowed case library based on the same calculation model;
[0013] The case library is subjected to secondary reduction according to the characteristic value to obtain a reference image library.
[0014] As a further solution of the present invention: the step of locating the background area in the hand-drawn picture and performing color value processing on the hand-drawn picture according to the background area comprises:
[0015] Calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture;
[0016] Traversing the elements in the matrix, comparing the elements with a preset value range, and determining a representative value of each value according to the comparison result;
[0017] Counting all representative values, determining the mode of the representative values, marking the pixel points corresponding to each representative value according to the mode, and obtaining the background area;
[0018] The background area is compared with a preset background color value to determine a correction mask, and color value processing is performed on the hand-drawn picture based on the correction mask.
[0019] As a further solution of the present invention: the step of reading the name mark in the reference image and segmenting the hand-drawn picture according to the position of the name mark comprises:
[0020] Reading a reference image, and determining the first boundary point in each direction with the midpoint of the reference image as the center;
[0021] The hand-drawn map is read, and the second boundary points in various directions are determined with the midpoint of the hand-drawn map as the center, wherein the angles in adjacent directions are preset values;
[0022] Establishing a mapping relationship between the first boundary point and the second boundary point;
[0023] Determine a mapped name identifier in the hand-drawn drawing according to the position of the name identifier relative to the first boundary point and the mapping relationship;
[0024] The hand-drawn map is segmented according to the mapping name identifier.
[0025] As a further solution of the present invention: the step of comparing the segmented hand-drawn image with the reference image and generating an analysis report according to the comparison result comprises:
[0026] Calculate the feature values of each region in the hand-drawn image and the reference image respectively based on the same calculation model;
[0027] Combining each region in the reference image according to the name identifier, and combining each region in the hand-drawn map according to the mapped name identifier; wherein the combining process is performed synchronously;
[0028] When the combined regions reach a preset number, the feature values of the regions are read, a first sample set corresponding to the reference image is established, and a second sample set corresponding to the hand-drawn image is established; the correspondence between the first sample set and the second sample set is determined by the name identifier and the mapping name identifier;
[0029] Calculating the correlation between the first sample set and the second sample set according to the trained correlation calculation model, and generating a score according to the correlation;
[0030] Count the scores corresponding to different quantities and generate an analysis report.
[0031] As a further solution of the present invention: the method further comprises:
[0032] inserting a data input port into the case library;
[0033] A reference image input by a user is received based on the data input port.
[0034] The technical solution of the present invention also provides a hand-drawn picture learning guidance system, the system comprising:
[0035] A reference image matching module is used to obtain a hand-drawn picture uploaded by a user and match a reference image in a preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels;
[0036] A segmentation module, used for reading the name mark in the reference image, and segmenting the hand-drawn picture according to the position of the name mark; wherein, during the segmentation process, an adjustment port is opened, and adjustment information input by the user is received in real time based on the adjustment port;
[0037] The comparison and analysis module is used to compare the segmented hand-drawn image with the reference image and generate an analysis report based on the comparison result.
[0038] As a further solution of the present invention: the reference image matching module includes:
[0039] A first narrowing unit is used to obtain the hand-drawn picture uploaded by the user and its label information, and perform a first-level narrowing on the preset case library according to the label information;
[0040] A color value processing unit, used to locate a background area in the hand-drawn picture, and perform color value processing on the hand-drawn picture according to the background area;
[0041] A feature analysis unit, used for calculating the feature value of each case in the hand-drawn map and the narrowed case library based on the same calculation model;
[0042] The second narrowing unit is used to perform secondary narrowing on the case library according to the characteristic value to obtain a reference image library.
[0043] As a further solution of the present invention: the color value processing unit includes:
[0044] A pixel value calculation subunit, used to calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture;
[0045] A representative value determination subunit, used to traverse the elements in the matrix, compare the elements with a preset value range, and determine the representative value of each value according to the comparison result;
[0046] A background area determination subunit is used to count all representative values, determine the mode of the representative values, mark the pixel points corresponding to each representative value according to the mode, and obtain the background area;
[0047] The correction execution subunit is used to compare the background area with a preset background color value, determine a correction mask, and perform color value processing on the hand-drawn picture based on the correction mask.
[0048] As a further solution of the present invention: the segmentation module includes:
[0049] A first point determination unit is used to read a reference image and determine a first boundary point in each direction with the midpoint of the reference image as the center;
[0050] The second point determination unit is used to read the hand-drawn map and determine the second boundary points in various directions with the midpoint of the hand-drawn map as the center, wherein the angles between adjacent directions are preset values;
[0051] A mapping establishing unit, configured to establish a mapping relationship between the first boundary point and the second boundary point;
[0052] a mapping application unit, configured to determine a mapped name identifier in the hand-drawn image according to a position of the name identifier relative to the first boundary point and the mapping relationship;
[0053] A segmentation execution unit is used to segment the hand-drawn map according to the mapping name identifier.
[0054] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention receives a hand-drawn picture input by a user, matches a reference image based on the hand-drawn picture, synchronously segments the reference image and the hand-drawn picture, and establishes a correspondence between regions; the regions are combined to generate a sample set, and the correlation coefficients between the sample sets are calculated to determine the similarity between regions of different sizes and generate a score; the present invention first breaks the whole into parts and then breaks the parts back into the whole, and the scoring is comprehensive and highly efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0056] Figure 1 A flowchart of the method for learning guidance for hand drawing.
[0057] Figure 2 This is a flowchart of the first sub-process of the hand-drawn drawing learning guidance method.
[0058] Figure 3 A flowchart of the second sub-process of the hand-drawn drawing learning guidance method.
[0059] Figure 4 The third sub-flow chart of the hand-drawing learning guidance method.
[0060] Figure 5 Hand-drawn structural block diagram of the learning guidance system. DETAILED DESCRIPTION
[0061] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0062] Example 1
[0063] Figure 1 : is a flowchart of a hand-drawing learning guidance method. In an embodiment of the present invention, a hand-drawing learning guidance method includes:
[0064] Step S100: Obtain a hand-drawn picture uploaded by a user, and match a reference image in a preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels;
[0065] The hand-drawn drawing is input by the user. When inputting the hand-drawn drawing, the user will give a simple description of the hand-drawn drawing in the form of a label, which is the index label in the above content; the index label can be used to match the reference image in the preset case library.
[0066] The matched reference image may not be unique. The reference images are displayed in sequence to obtain user operation information, which includes operations such as likes. The operation information reflects the user's preferences, and the reference image can be determined from the matched reference images based on the operation information.
[0067] Step S200: reading the name mark in the reference image, and segmenting the hand-drawn picture according to the position of the name mark; wherein, during the segmentation process, an adjustment port is opened, and adjustment information input by the user is received in real time based on the adjustment port;
[0068] The reference image is provided with a name tag, which represents the name of each area in the image, for example, which area is the face, etc.; the name tag in the reference image is read, the reference image and the received hand-drawn picture are compared, and the area is segmented in the hand-drawn picture according to the name tag; during the segmentation process, the user can input adjustment information with a higher priority through the adjustment port.
[0069] Step S300: comparing the segmented hand-drawn image with the reference image, and generating an analysis report according to the comparison result;
[0070] The hand-drawn picture and the reference image are compared based on the corresponding relationship between the name identifiers in the hand-drawn picture and the reference image, and an analysis report can be generated according to the comparison result.
[0071] Figure 2 This is a first sub-flow chart of the hand-drawn picture learning guidance method, wherein the step of receiving a hand-drawn picture containing index tags input by a user and matching a reference image in a preset case library according to the hand-drawn picture containing index tags comprises:
[0072] Step S101: obtaining a hand-drawn picture uploaded by a user and its label information, and performing a first-level reduction on a preset case library according to the label information;
[0073] The index tags are used to represent the features of hand-drawn drawings, such as existing tags such as "people" and "sports". The case library can be narrowed down based on such tags. The narrowed database is a subset of the case library. The elements in the case library are existing hand-drawn drawings.
[0074] Step S102: locating a background area in the hand-drawn picture, and performing color value processing on the hand-drawn picture according to the background area;
[0075] The technical solution of the present invention is directed to hand-painted Figure 1 It is usually black and white, that is, a grayscale image (colored images are painted); locate the background area in the hand-drawn picture (if it is a grayscale image, it is the white background area), and compare the color value of the background area in the image with the color value it should have. This can determine the impact of the environment on the hand-drawn picture during the shooting process. Eliminating this impact in the hand-drawn picture can greatly improve the accuracy of the subsequent comparison process.
[0076] Step S103: Calculate the characteristic value of each case in the hand-drawn map and the narrowed case library based on the same calculation model;
[0077] By counting the color values of all pixels according to the same preset calculation model, the characteristic values of the image can be calculated.
[0078] Step S104: performing secondary reduction on the case library according to the characteristic value to obtain a reference image library.
[0079] By comparing the eigenvalues of the hand drawing with the eigenvalues of each case, the case library can be further narrowed down to a secondary level, and finally the cases with higher similarity can be selected to obtain the reference image library.
[0080] Furthermore, the step of locating a background area in the hand-drawn picture and performing color value processing on the hand-drawn picture according to the background area includes:
[0081] Calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture;
[0082] Traversing the elements in the matrix, comparing the elements with a preset value range, and determining a representative value of each value according to the comparison result; wherein one representative value corresponds to one value range;
[0083] Counting all representative values, determining the mode of the representative values, marking the pixel points corresponding to each representative value according to the mode, and obtaining the background area;
[0084] The background area is compared with a preset background color value to determine a correction mask, and color value processing is performed on the hand-drawn picture based on the correction mask.
[0085] In an example of the technical solution of the present invention, each pixel point has a color value. These color values are calculated uniformly to obtain a single pixel value. The unified calculation process can use the existing grayscale calculation formula. The representative values of different pixel points are determined according to the range to which the pixel value belongs. This process is a fitting process for the pixel points, and the same numerical value is used to represent similar pixel points. In the hand-drawn picture, the mode of the representative value represents the representative value of the pixel points in the background area (taking the white background image as an example, the white area is the background area, and its representative value is the mode). The background area is selected according to the representative value, and the background area is compared with the theoretical background area (preset background color value) to determine the correction mask. The correction mask is used to characterize the gap between the actual image and the theoretical image. The reason for this gap is the environmental impact during shooting. The hand-drawn picture is corrected by the correction mask to eliminate the environmental impact.
[0086] Figure 3 This is a second sub-flow chart of the hand-drawn picture learning guidance method, wherein the step of reading the name mark in the reference image and segmenting the hand-drawn picture according to the position of the name mark comprises:
[0087] Step S201: reading a reference image, and determining the first boundary point in each direction with the midpoint of the reference image as the center;
[0088] Taking the center of the image as the starting point, a plurality of divergent rays are established. These rays will have an intersection with each line segment in the reference image, and the intersection is called the first boundary point.
[0089] Step S202: reading the hand-drawn map, taking the midpoint of the hand-drawn map as the center, determining the second boundary points in each direction; wherein the angles between adjacent directions are preset values;
[0090] The second boundary point is determined in the hand-drawn diagram in the same manner; wherein the angles between adjacent directions in each direction are preset values and are the same, and each ray is in a state of circular array distribution.
[0091] Step S203: establishing a mapping relationship between the first boundary point and the second boundary point;
[0092] It can be imagined that one ray corresponds to one boundary point, and the correspondence between the first boundary point and the second boundary point can be established according to the angle of the ray (the angle in the traditional angular coordinate system).
[0093] Step S204: determining a mapped name identifier in the hand-drawn image according to the position of the name identifier relative to the first boundary point and the mapping relationship;
[0094] The name marker is a name marker in a reference image. The name marker is represented by a first boundary point. Then, based on a mapping relationship between the first boundary point and the second boundary point, the name marker represented by the second boundary point can be obtained in the hand-drawn image. This is called a mapped name marker.
[0095] It is worth mentioning that the name tag is the name of a certain area. Therefore, the data structure of the name tag contains contour information and line segment information within the area. Representing the name tag by the first boundary point actually represents the contour and line segment in the name tag.
[0096] Step S205: segmenting the hand-drawn map according to the mapping name identifier;
[0097] By segmenting the hand-drawn picture by the mapping name identifier, it is possible to determine what content each area in the hand-drawn picture corresponds to.
[0098] Figure 4 This is a third sub-flow diagram of the hand-drawn picture learning guidance method, wherein the steps of comparing the segmented hand-drawn picture with the reference image and generating an analysis report according to the comparison result include:
[0099] Step S301: Calculating feature values of each region in the hand-drawn image and the reference image respectively based on the same calculation model;
[0100] The function of the same calculation model is to calculate the characteristic value of a certain area, and the calculation model in step S103 can be used. The difference between the two steps is that step S301 analyzes each area, while step 103 analyzes the entire image.
[0101] Step S302: combining the regions in the reference image according to the name identifiers, and combining the regions in the hand-drawn image according to the mapped name identifiers; wherein the combining process is performed synchronously;
[0102] Step S302 is an innovative point of the technical solution of the present invention. Based on the characteristic values calculated for each area, each area is combined. This combination is generally the splicing of adjacent areas. In this way, a large area composed of each area as a unit can be obtained. The characteristic value of the large area can be calculated from the characteristic values of each area, thereby greatly expanding the number of areas and obtaining more analysis samples.
[0103] Step S303: when the combined regions reach a preset number, read the feature value of each region, establish a first sample set corresponding to the reference image, and establish a second sample set corresponding to the hand-drawn image; the correspondence between the first sample set and the second sample set is determined by the name identifier and the mapping name identifier;
[0104] In the process of combining the areas in the reference image, it is necessary to record the name identification in real time, and a first sample set can be obtained, which contains name identification items and corresponding feature value items; in the process of combining the areas in the hand drawing, it is necessary to record the mapped name identification in real time, and a second sample set can be obtained, which contains the mapped name identification items and the corresponding feature value items; from the above content, it can be seen that there is a corresponding relationship between the name identification and the mapped name identification, so the relationship between the first sample set and the second sample set can be established.
[0105] Step S304: calculating the correlation between the first sample set and the second sample set according to the trained correlation calculation model, and generating a score according to the correlation;
[0106] By calculating the correlation coefficient between the eigenvalue item in the first sample set and the eigenvalue item in the second sample set, the similarity between the two can be obtained; the number of samples in the first sample set and the second sample set is the number of combined regions. The more regions there are, the greater the reference significance of the correlation coefficient, but the greater the difficulty of the correlation coefficient reaching 1. The value range of the correlation coefficient is [0,1].
[0107] Step S305: Count the scores corresponding to different quantities and generate an analysis report;
[0108] The specific combination process is determined by the staff. Generally, it includes a sample set that is not combined but only established by each area, and then a sample set established by the areas merged by 2×2 or 3×3, and so on; different quantities correspond to different correlation coefficients and different scores, and the analysis report is selected from a preset analysis report library based on the score; the analysis report library contains the score items as indexes.
[0109] As an example of the technical solution of the present invention, the method further includes:
[0110] inserting a data input port into the case library;
[0111] A reference image input by a user is received based on the data input port.
[0112] If the user already has a reference image that he wants to compare, he can upload the reference image through the data input port. At this time, there is no need to traverse and match from the case library.
[0113] Example 2
[0114] Figure 5 A block diagram of the composition structure of a hand drawing learning guidance system. In an embodiment of the present invention, a hand drawing learning guidance system is provided. The system 10 includes:
[0115] The reference image matching module 11 is used to obtain the hand-drawn picture uploaded by the user and match the reference image in the preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels;
[0116] The segmentation module 12 is used to read the name mark in the reference image and segment the hand-drawn picture according to the position of the name mark; wherein the adjustment port is opened during the segmentation process, and the adjustment information input by the user is received in real time based on the adjustment port;
[0117] The comparison and analysis module 13 is used to compare the segmented hand-drawn image with the reference image and generate an analysis report according to the comparison result.
[0118] The reference image matching module 11 comprises:
[0119] A first narrowing unit is used to obtain the hand-drawn picture uploaded by the user and its label information, and perform a first-level narrowing on the preset case library according to the label information;
[0120] A color value processing unit, used to locate a background area in the hand-drawn picture, and perform color value processing on the hand-drawn picture according to the background area;
[0121] A feature analysis unit, used for calculating the feature value of each case in the hand-drawn map and the narrowed case library based on the same calculation model;
[0122] The second narrowing unit is used to perform secondary narrowing on the case library according to the characteristic value to obtain a reference image library.
[0123] Wherein, the color value processing unit includes:
[0124] A pixel value calculation subunit, used to calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture;
[0125] A representative value determination subunit, used to traverse the elements in the matrix, compare the elements with a preset value range, and determine the representative value of each value according to the comparison result;
[0126] A background area determination subunit is used to count all representative values, determine the mode of the representative values, mark the pixel points corresponding to each representative value according to the mode, and obtain the background area;
[0127] The correction execution subunit is used to compare the background area with a preset background color value, determine a correction mask, and perform color value processing on the hand-drawn picture based on the correction mask.
[0128] The segmentation module 12 includes:
[0129] A first point determination unit is used to read a reference image and determine a first boundary point in each direction with the midpoint of the reference image as the center;
[0130] The second point determination unit is used to read the hand-drawn map and determine the second boundary points in various directions with the midpoint of the hand-drawn map as the center, wherein the angles between adjacent directions are preset values;
[0131] A mapping establishing unit, configured to establish a mapping relationship between the first boundary point and the second boundary point;
[0132] a mapping application unit, configured to determine a mapped name identifier in the hand-drawn image according to a position of the name identifier relative to the first boundary point and the mapping relationship;
[0133] A segmentation execution unit is used to segment the hand-drawn map according to the mapping name identifier.
[0134] The functions that can be achieved by the hand-drawing learning guidance method are all completed by a computer device, and the computer device includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The program code is loaded and executed by the one or more processors to achieve the functions of the hand-drawing learning guidance method.
[0135] The processor takes out instructions from the memory one by one, analyzes the instructions, and then completes the corresponding operations according to the instruction requirements, generating a series of control commands, so that the various parts of the computer can automatically, continuously and coordinately move to become an organic whole, realize the input of programs, the input of data, and the calculation and output of results. The arithmetic operations or logical operations generated in this process are all completed by the operator; the memory includes a read-only memory (ROM), which is used to store computer programs, and a protection device is provided outside the memory.
[0136] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0137] Those skilled in the art will understand that the description of the above service equipment is merely an example and does not constitute a limitation on the terminal equipment. It may include more or fewer components than described above, or a combination of certain components, or different components, for example, it may include input and output devices, network access devices, buses, etc.
[0138] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire user terminal.
[0139] The memory can be used to store computer programs and / or modules. The processor can realize various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as an information collection template display function, a product information release function, etc.); the data storage area can store data created according to the use of the berth status display system (such as product information collection templates corresponding to different product types, product information that different product providers need to release, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0140] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the modules / units in the above-mentioned embodiment system, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can realize the functions of the above-mentioned various system embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0141] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0142] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A hand-drawing learning guidance method, characterized in that: The method comprises: Obtain a hand-drawn picture uploaded by a user, and match a reference image in a preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels; Reading the name mark in the reference image, and segmenting the hand-drawn picture according to the position of the name mark; wherein, during the segmentation process, an adjustment port is opened, and adjustment information input by the user is received in real time based on the adjustment port; The segmented hand-drawn image is compared with the reference image, and an analysis report is generated according to the comparison result.
2. The hand-drawing learning guidance method according to claim 1 is characterized in that: The step of receiving a hand-drawn picture containing index tags input by a user and matching a reference image in a preset case library according to the hand-drawn picture containing index tags comprises: Obtain the hand-drawn picture uploaded by the user and its label information, and perform a first-level reduction on the preset case library according to the label information; Locating a background area in the hand-drawn picture, and performing color value processing on the hand-drawn picture according to the background area; Calculate the characteristic values of each case in the hand-drawn map and the narrowed case library based on the same calculation model; The case library is subjected to secondary reduction according to the characteristic value to obtain a reference image library.
3. The hand-drawing learning guidance method according to claim 2 is characterized in that: The step of locating the background area in the hand-drawn picture and performing color value processing on the hand-drawn picture according to the background area comprises: Calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture; Traversing the elements in the matrix, comparing the elements with a preset value range, and determining a representative value of each value according to the comparison result; Counting all representative values, determining the mode of the representative values, marking the pixel points corresponding to each representative value according to the mode, and obtaining the background area; The background area is compared with a preset background color value to determine a correction mask, and color value processing is performed on the hand-drawn picture based on the correction mask.
4. The hand-drawing learning guidance method according to claim 1 is characterized in that: The step of reading the name mark in the reference image and segmenting the hand-drawn picture according to the position of the name mark comprises: Reading a reference image, and determining the first boundary point in each direction with the midpoint of the reference image as the center; The hand-drawn map is read, and the second boundary points in various directions are determined with the midpoint of the hand-drawn map as the center, wherein the angles in adjacent directions are preset values; Establishing a mapping relationship between the first boundary point and the second boundary point; Determine a mapped name identifier in the hand-drawn drawing according to the position of the name identifier relative to the first boundary point and the mapping relationship; The hand-drawn map is segmented according to the mapping name identifier.
5. The hand-drawing learning guidance method according to claim 4 is characterized in that: The step of comparing the segmented hand-drawn image with the reference image and generating an analysis report according to the comparison result comprises: Calculate the feature values of each region in the hand-drawn image and the reference image respectively based on the same calculation model; Combining each region in the reference image according to the name identifier, and combining each region in the hand-drawn map according to the mapped name identifier; wherein the combining process is performed synchronously; When the combined regions reach a preset number, the feature values of the regions are read, a first sample set corresponding to the reference image is established, and a second sample set corresponding to the hand-drawn image is established; the correspondence between the first sample set and the second sample set is determined by the name identifier and the mapping name identifier; Calculating the correlation between the first sample set and the second sample set according to the trained correlation calculation model, and generating a score according to the correlation; Count the scores corresponding to different quantities and generate an analysis report.
6. The hand-drawing learning guidance method according to claim 1, characterized in that: The method further comprises: inserting a data input port into the case library; A reference image input by a user is received based on the data input port.
7. A hand-drawing learning guidance system, characterized in that: The system comprises: A reference image matching module is used to obtain a hand-drawn picture uploaded by a user and match a reference image in a preset case library; wherein the reference image contains a boundary line, and the boundary line is used to separate the reference image into sub-areas, and different sub-areas contain name labels; A segmentation module, used for reading the name mark in the reference image, and segmenting the hand-drawn picture according to the position of the name mark; wherein, during the segmentation process, an adjustment port is opened, and adjustment information input by the user is received in real time based on the adjustment port; The comparison and analysis module is used to compare the segmented hand-drawn image with the reference image and generate an analysis report based on the comparison result.
8. The hand-drawing learning guidance system according to claim 7, characterized in that: The reference image matching module comprises: A first narrowing unit is used to obtain the hand-drawn picture uploaded by the user and its label information, and perform a first-level narrowing on the preset case library according to the label information; A color value processing unit, used to locate a background area in the hand-drawn picture, and perform color value processing on the hand-drawn picture according to the background area; A feature analysis unit, used for calculating the feature value of each case in the hand-drawn map and the narrowed case library based on the same calculation model; The second narrowing unit is used to perform secondary narrowing on the case library according to the characteristic value to obtain a reference image library.
9. The hand-drawing learning guidance system according to claim 8, characterized in that: The color value processing unit comprises: A pixel value calculation subunit, used to calculate the pixel value of each pixel point in the hand-drawn picture according to a preset calculation formula to obtain a matrix corresponding to the hand-drawn picture; A representative value determination subunit, used to traverse the elements in the matrix, compare the elements with a preset value range, and determine the representative value of each value according to the comparison result; The background area determination subunit is used to count all representative values, determine the mode of the representative values, mark the pixel points corresponding to each representative value according to the mode, and obtain the background area: The correction execution subunit is used to compare the background area with a preset background color value, determine a correction mask, and perform color value processing on the hand-drawn picture based on the correction mask.
10. The hand-drawing learning guidance system according to claim 7, characterized in that: The segmentation module includes: A first point determination unit is used to read a reference image and determine a first boundary point in each direction with the midpoint of the reference image as the center; The second point determination unit is used to read the hand-drawn map and determine the second boundary points in various directions with the midpoint of the hand-drawn map as the center, wherein the angles between adjacent directions are preset values; A mapping establishing unit, configured to establish a mapping relationship between the first boundary point and the second boundary point; a mapping application unit, configured to determine a mapped name identifier in the hand-drawn image according to a position of the name identifier relative to the first boundary point and the mapping relationship; A segmentation execution unit is used to segment the hand-drawn map according to the mapping name identifier.
Citation Information
Patent Citations
Method and device for guiding drawing
CN106355973A
Drawing evaluation method and system and storage medium
CN110188600A
Drawing scoring method and device, and computer equipment
CN111985441A
Image composition quality evaluation method and device
CN113643229A
Teachable pattern scoring method
US20130322741A1
