Automatic drawing method

The automatic drawing method addresses inefficiencies in AI tools by enabling real-time, flexible, and intuitive graphic adjustments through mouse and voice inputs, generating high-quality LaTeX-integrated graphics for academic documents.

CN119248158AInactive Publication Date: 2025-01-03SUZHOU YEYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411140801.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing AI-based automated drawing tools require complex interaction steps, lack real-time feedback, have inaccurate natural language processing, insufficient operational flexibility, and cannot integrate with advanced typesetting systems, leading to inefficient and cumbersome user experiences.

Method used

An automatic drawing method using AI and natural language processing that allows users to mark points with a mouse and keyboard, input instructions through text or voice, and receive real-time adjustments and feedback, generating graphics in LaTeX syntax for integration into documents.

Benefits of technology

Simplifies operations, enhances efficiency, improves flexibility and accuracy of graphic adjustments, and produces high-quality graphics suitable for academic documents, reducing user burden and increasing satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248158A_ABST
    Figure CN119248158A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic drawing method which comprises the following steps: S1, a user moves through a mouse and clicks a keyboard to mark a base point on a screen, and AI tracks the position of the mouse; s2, inputting a natural language instruction by a user; s3, the AI analyzes a natural language instruction input by the user, corresponding graphic elements are placed on the mark points according to the instruction, attributes of the graphic elements are configured, and the attributes are displayed on the mark points; s4, the user adjusts the graph through a further natural language instruction, wherein the adjustment content comprises graph position movement, graph attribute modification, graph element addition, graph element deletion and graph element connection; s5, the AI updates and displays the graph adjusted by the user in real time; and S6, the AI presents the generated graph in a LaTeX grammar form, and compiles the graph into an image file. According to the automatic drawing method based on the AI and the natural language processing technology, the operation steps are simplified, the drawing efficiency is improved, and the user experience is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic drawing, and in particular to an automatic drawing method. Background Art

[0002] In existing drawing tools, users usually need to draw various graphic elements manually, including Microsoft PowerPoint, Adobe Illustrator, and AutoCAD. A common feature of these tools is that users need to use input devices such as mouse and keyboard to gradually complete the creation, adjustment, and connection of graphics. Although this manual operation meets the needs of users to a certain extent, its operation process is complicated and cumbersome, especially when it is necessary to draw complex graphics or frequently modify graphics, the user experience is poor and the efficiency is low.

[0003] In recent years, with the development of artificial intelligence (AI) technology, some AI-based automated drawing tools have emerged. These tools use natural language processing (NLP) technology to allow users to input instructions through text or voice, and let AI automatically generate graphics according to the instructions. This method simplifies the drawing process to a certain extent and improves user experience and efficiency. For example, users can input natural language instructions such as "place a red circle in the upper left corner" to let AI automatically generate the corresponding graphics at the specified location. However, existing AI-based automated drawing tools still have some problems and limitations.

[0004] 1. Complex interaction steps: Existing AI drawing tools often require users to gradually input multiple instructions to complete the generation and adjustment of graphics. Although this step-by-step input method can achieve more complex graphics generation, users need to constantly interact with the system, and the whole process is still cumbersome and time-consuming. This interaction method is particularly inconvenient when users need to frequently adjust graphics.

[0005] 2. Lack of real-time feedback: Existing AI drawing tools usually generate graphics only after the user enters the command, and the feedback to the user's adjustment command is slow. This means that the user cannot see the changes in the graphics immediately, and needs to repeatedly enter commands during the adjustment process and wait for the system to generate new graphics. This interactive mode without real-time feedback reduces the user experience and operation efficiency.

[0006] 3. Inaccurate natural language processing: Although existing AI drawing tools use NLP technology to understand users’ natural language instructions, due to the limitations of NLP technology, the system’s understanding and parsing accuracy of complex instructions is not high, and misunderstandings are prone to occur, resulting in the generated graphics not meeting user expectations. In particular, when users use multi-level, complex structured instructions, the existing system’s parsing capabilities are insufficient.

[0007] 4. Insufficient operational flexibility: Existing AI drawing tools lack flexibility when processing natural language commands input by users. For example, users may want to adjust the position or shape of a graphic through voice commands, but existing systems can often only process predefined fixed commands and cannot flexibly respond to users' diverse needs.

[0008] 5. Lack of advanced typesetting functions: The graphics generated by existing AI drawing tools are usually independent image files, which lack the ability to integrate with advanced typesetting systems (such as LaTeX). This causes users to manually typeset when they need to embed graphics into complex documents, increasing the complexity and workload of the operation.

[0009] Therefore, how to provide an automatic drawing method is a problem that those skilled in the art need to solve urgently. Summary of the invention

[0010] One purpose of the present invention is to propose an automatic drawing method. The present invention simplifies the operation steps, improves drawing efficiency, enhances user experience, and provides users with an efficient, convenient, flexible and intelligent drawing method by proposing an automatic drawing method based on AI and natural language processing technology.

[0011] An automatic drawing method according to an embodiment of the present invention comprises the following steps:

[0012] S1. The user moves the mouse and clicks the keyboard to mark the base point on the screen. AI tracks the mouse position. When the user presses a keyboard key, the mouse position at that time is recorded as the mark point.

[0013] S2, the user inputs a natural language command, the input method includes text input and voice input;

[0014] S3, AI analyzes the natural language instructions input by the user, places corresponding graphic elements on the marked points according to the instructions, configures the attributes of the graphic elements, and displays them on the marked points;

[0015] S4, the user adjusts the graphic through further natural language instructions, and the adjustment content includes moving the graphic position, modifying the graphic attributes, adding graphic elements, deleting graphic elements, and connecting graphic elements;

[0016] S5, AI updates and displays the graphics adjusted by the user in real time to ensure timely feedback and display of the graphics;

[0017] S6. AI presents the generated graphics in LaTeX syntax and compiles them into image files for users to view and use.

[0018] Optionally, the shapes of the graphic elements include square, circle and diamond.

[0019] Optionally, the attributes of the graphic element include color, size, shape, label and border style.

[0020] Optionally, the voice input instructions are recognized and parsed using natural language processing technology.

[0021] Optionally, the S4 specifically includes:

[0022] S41. The user moves the graphic element through a natural language instruction. The instruction format is to move the graphic element ElementID to Direction by Distance, where ElementID represents the ID number of the graphic element, Direction represents the moving direction, and Distance represents the moving distance. The AI ​​parses the instruction and updates the position of the graphic element in real time.

[0023] S42, the user modifies the properties of the graphic element through natural language instructions, the instruction format is to change the Property of the graphic element ElementID to Value, where Property represents the attribute and Value represents the attribute value, and the AI ​​adjusts the corresponding attribute according to the instruction and updates the display in real time;

[0024] S43, the user adds a new graphic element through a natural language instruction. The instruction format is to add an ElementID to Position, where Position represents the position coordinates. AI places the new graphic element at the specified position and configures its initial attributes;

[0025] S44, the user deletes the existing graphic element through a natural language instruction, the instruction format is to delete the graphic element ElementID, and the AI ​​deletes the specified graphic element according to the instruction and updates the display;

[0026] S45, the user connects different graphic elements through natural language instructions, the instruction format is to link graphic element ElementID1 and graphic element ElementID2, and AI generates corresponding connections and displays them in the graph;

[0027] S46. After receiving each instruction from the user, AI performs semantic analysis and parsing to identify the actions and target objects in the instruction.

[0028] Optionally, the step of presenting the generated graphics in LaTeX syntax by the AI ​​includes a complete LaTeX code including all graphic elements and their attributes.

[0029] Optionally, the step of generating the image file includes providing the user with options for selecting image resolution and file format to meet the needs of different application scenarios.

[0030] Optionally, the file formats include PDF, PNG, JPG and SVG.

[0031] The beneficial effects of the present invention are:

[0032] (1) Simplified operation steps: Users move the mouse and click the keyboard to mark the base point on the screen, and AI tracks and records the marked points; users input instructions through text or voice, and AI automatically generates and adjusts the graphics according to the instructions. This method significantly simplifies the user's operation steps, avoids tedious manual operation processes, and improves drawing efficiency.

[0033] (2) Improve drawing efficiency: The AI ​​model is used to automatically generate graphics, which reduces the number of manual drawing steps for users, and directly generates the required graphic elements through natural language instructions. Compared with traditional manual drawing tools, the method of the present invention can quickly generate complex graphics and greatly improve drawing efficiency.

[0034] (3) Enhanced flexibility and accuracy of interaction: Users can make real-time adjustments through natural language commands, including moving graphic positions, modifying graphic properties, adding or deleting graphic elements, connecting graphic elements, etc. AI updates and displays the adjusted graphics in real time, ensuring instant feedback and display of the graphics. This real-time interaction method enables users to adjust graphics more flexibly and accurately to meet different drawing needs.

[0035] (4) Multi-mode input: The method of the present invention supports two input modes: text and voice. Users can choose the most suitable way to interact with AI. This diversified input method not only improves the user experience, but also increases the convenience and flexibility of operation, and is particularly suitable for different user habits and application scenarios.

[0036] (5) High-quality graphics output: AI presents the generated graphics in LaTeX syntax and compiles them into image files. This LaTeX integration method can generate high-quality graphics files, which are suitable for academic and technical document writing, ensuring the beauty and professionalism of the graphics.

[0037] (6) Reduce user burden: Users do not need to master complex coordinate and direction information, and can generate the required graphics through intuitive operations and natural language instructions. This method greatly reduces the threshold for using drawing, making it easy for even users without professional skills to use it, and improving the popularity and practicality of drawing tools.

[0038] (7) Personalized and customized graphics generation: Users can personalize graphics through further natural language instructions, such as setting the color, size, shape, label, and border style of graphic elements to meet the personalized needs of different users.

[0039] (8) Improve user experience: Through real-time feedback and instant updates, users can get instant visual feedback during the drawing process, which greatly improves the user experience and makes the drawing process smoother and more intuitive. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0041] Figure 1 A flow chart of an automatic drawing method proposed by the present invention;

[0042] Figure 2 A schematic diagram of mouse marking base points of an automatic drawing method proposed by the present invention;

[0043] Figure 3 A schematic diagram of a natural language instruction adjustment graphic of an automatic drawing method proposed by the present invention. DETAILED DESCRIPTION

[0044] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0045] refer to Figure 1-3 , an automatic drawing method, comprising the following steps:

[0046] S1. The user moves the mouse and clicks the keyboard to mark the base point on the screen. AI tracks the mouse position. When the user presses a keyboard key, the mouse position at that time is recorded as the mark point.

[0047] S2, the user inputs a natural language command, the input method includes text input and voice input;

[0048] S3, AI analyzes the natural language instructions input by the user, places corresponding graphic elements on the marked points according to the instructions, configures the attributes of the graphic elements, and displays them on the marked points;

[0049] S4, the user adjusts the graphic through further natural language instructions, and the adjustment content includes moving the graphic position, modifying the graphic attributes, adding graphic elements, deleting graphic elements, and connecting graphic elements;

[0050] S5, AI updates and displays the graphics adjusted by the user in real time to ensure timely feedback and display of the graphics;

[0051] S6. AI presents the generated graphics in LaTeX syntax and compiles them into image files for users to view and use.

[0052] In this implementation manner, the shapes of the graphic elements include squares, circles and diamonds.

[0053] In this implementation, the attributes of the graphic element include color, size, shape, label and border style.

[0054] In this implementation, the voice input instructions are recognized and analyzed using natural language processing technology.

[0055] In this implementation manner, the S4 specifically includes:

[0056] S41. The user moves the graphic element through a natural language instruction. The instruction format is to move the graphic element ElementID to Direction by Distance, where ElementID represents the ID number of the graphic element, Direction represents the moving direction, and Distance represents the moving distance. The AI ​​parses the instruction and updates the position of the graphic element in real time.

[0057] S42, the user modifies the properties of the graphic element through natural language instructions, the instruction format is to change the Property of the graphic element ElementID to Value, where Property represents the attribute and Value represents the attribute value, and the AI ​​adjusts the corresponding attribute according to the instruction and updates the display in real time;

[0058] S43, the user adds a new graphic element through a natural language instruction. The instruction format is to add an ElementID to Position, where Position represents the position coordinates. AI places the new graphic element at the specified position and configures its initial attributes;

[0059] S44, the user deletes the existing graphic element through a natural language instruction, the instruction format is to delete the graphic element ElementID, and the AI ​​deletes the specified graphic element according to the instruction and updates the display;

[0060] S45, the user connects different graphic elements through natural language instructions, the instruction format is to link graphic element ElementID1 and graphic element ElementID2, and AI generates corresponding connections and displays them in the graph;

[0061] S46. After receiving each instruction from the user, AI performs semantic analysis and parsing to identify the actions and target objects in the instruction.

[0062] In this implementation manner, the step of presenting the generated graphics by the AI ​​in the form of LaTeX syntax includes a complete LaTeX code including all graphic elements and their attributes.

[0063] In this implementation, the step of generating the image file includes providing the user with options for selecting image resolution and file format to meet the needs of different application scenarios.

[0064] In this implementation, the file formats include PDF, PNG, JPG and SVG.

[0065] Embodiment 1:

[0066] In order to verify the feasibility of the present invention in implementation, the present invention is applied to an engineering design laboratory of a certain university. In a typical engineering design project, the professor requires students to draw a complex system architecture diagram. The traditional method requires students to spend a lot of time manually drawing each component and making repeated adjustments to ensure the accuracy and aesthetics of the graphics. After the introduction of the new automatic drawing method, students can quickly generate the required graphics through simple mouse operations and natural language instructions.

[0067] First, students mark the positions of various components on the screen with the mouse. For example, students move the mouse to a certain position on the screen and press a specific key on the keyboard, and this position is recorded as the base point of the component. Then, students input instructions by voice: "Place a server icon at position 1, the color is blue, and the size is 100x100 pixels." The AI ​​system places a blue server icon at the specified position according to the instructions.

[0068] Next, students continue to add other components, such as: "Place a database icon in position 2, with a green color and a size of 100x100 pixels." The AI ​​system automatically generates and displays the corresponding graphics. Students can also adjust the properties of the graphics through natural language instructions. For example, students can instruct: "Move the server icon 50 pixels to the right." The AI ​​system will update the position of the graphics in real time and display the adjusted results on the screen.

[0069] In addition, students can add lines through natural language instructions to connect different components. For example: "Use a solid line to connect the server icon and the database icon." The AI ​​system generates the corresponding lines according to the instructions and displays them in the graphics. All generated graphics are finally presented in LaTeX syntax and compiled into high-quality PDF image files for use in academic papers and reports.

[0070] During the experiment, we selected two student groups for a comparative experiment. The first student group used traditional drawing tools (such as AutoCAD), and the second student group used an automatic drawing method based on AI and natural language processing. Each group was divided into three small groups.

[0071] Table 1 Comparison of experimental data between traditional drawing method and automatic drawing method

[0072]

[0073] From the analysis of the above table, it can be seen that the automatic drawing method based on AI and natural language processing is superior to traditional drawing tools in many aspects. First, the use of the automatic drawing method significantly reduces the time spent by students in the drawing process and improves drawing efficiency. Secondly, the graphics generated by the automatic drawing method have been significantly improved in accuracy and aesthetics, ensuring the professionalism and quality of the graphics. Finally, students' satisfaction with the new method has increased significantly, indicating that the method also has obvious advantages in user experience.

[0074] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An automatic drawing method, characterized in that: The steps include: S1. The user moves the mouse and clicks the keyboard to mark the base point on the screen. AI tracks the mouse position. When the user presses a keyboard key, the mouse position at that time is recorded as the mark point. S2, the user inputs a natural language command, the input method includes text input and voice input; S3, AI analyzes the natural language instructions input by the user, places corresponding graphic elements on the marked points according to the instructions, configures the attributes of the graphic elements, and displays them on the marked points; S4, the user adjusts the graphic through further natural language instructions, and the adjustment content includes moving the graphic position, modifying the graphic attributes, adding graphic elements, deleting graphic elements, and connecting graphic elements; S5, AI updates and displays graphics adjusted by the user in real time; S6. AI presents the generated graphics in LaTeX syntax and compiles them into image files.

2. The automatic drawing method according to claim 1, characterized in that: The shapes of the graphic elements include square, circle and diamond.

3. The automatic drawing method according to claim 1, characterized in that: The attributes of the graphic element include color, size, shape, label and border style.

4. The automatic drawing method according to claim 1, characterized in that: The voice input instructions are recognized and analyzed using natural language processing technology.

5. The automatic drawing method according to claim 1, characterized in that: The S4 specifically includes: S41. The user moves the graphic element through a natural language instruction. The instruction format is to move the graphic element ElementID to Direction by Distance, where ElementID represents the ID number of the graphic element, Direction represents the moving direction, and Distance represents the moving distance. The AI ​​parses the instruction and updates the position of the graphic element in real time. S42, the user modifies the properties of the graphic element through natural language instructions, the instruction format is to change the Property of the graphic element ElementID to Value, where Property represents the attribute and Value represents the attribute value, and the AI ​​adjusts the corresponding attribute according to the instruction and updates the display in real time; S43, the user adds a new graphic element through a natural language instruction. The instruction format is to add an ElementID to Position, where Position represents the position coordinates. AI places the new graphic element at the specified position and configures its initial attributes; S44, the user deletes the existing graphic element through a natural language instruction, the instruction format is to delete the graphic element ElementID, and the AI ​​deletes the specified graphic element according to the instruction and updates the display; S45, the user connects different graphic elements through natural language instructions, the instruction format is to link graphic element ElementID1 and graphic element ElementID2, and AI generates corresponding connections and displays them in the graph; S46. After receiving each instruction from the user, AI performs semantic analysis and parsing to identify the actions and target objects in the instruction.

6. The automatic drawing method according to claim 1, characterized in that: The step of presenting the generated graphics in LaTeX syntax by the AI ​​includes complete LaTeX codes including all graphic elements and their attributes.

7. The automatic drawing method according to claim 1, characterized in that: The step of generating the image file includes providing the user with options for selecting image resolution and file format.

8. The automatic drawing method according to claim 5, characterized in that: The file formats include PDF, PNG, JPG and SVG.