Intelligent conflict detection and collaborative optimization system and method for industrial and art design
By introducing conflict credibility assessment and iterative optimization modules in arts and craft design, the detection accuracy problems caused by design sketch differences are solved, and the accuracy and efficiency improvement of intelligent conflict detection and collaborative optimization in arts and crafts design is achieved.
Patent Information
- Application Number
- CN202510507124.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-04-21
AI Technical Summary
In the prior art, arts and craft design fails to effectively consider the differences in design sketches during the intelligent conflict detection and collaborative optimization process, resulting in reduced detection accuracy and conflicts or inconsistencies in optimization strategies, affecting design quality and efficiency.
By introducing the conflict credibility assessment module, position judgment module, dimension judgment module and iterative optimization module, the conflict credibility assessment parameters of the design sketch and the element information of the user's demand chart are used to adjust the element position and dimension, and the adjustment plan is judged through the iterative optimization module until the termination condition is met.
It improves the accuracy and efficiency of intelligent conflict detection and collaborative optimization in arts and crafts design, ensures the matching of design sketches and user demand maps and design quality, and reduces repeated modifications and waste of computing resources.
Smart Images

Figure CN120339049A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical digital data processing, and particularly to an intelligent conflict detection and collaborative optimization system and method for arts and crafts design. Background Art
[0002] In modern arts and crafts design, the design complexity is constantly increasing, and the factors that designers need to consider are also becoming more diverse. For example, in aspects such as product appearance design, material selection, and process implementation, the coordination and collaboration between different disciplines and fields are very crucial. However, with the continuous enrichment and change of design content, potential conflict problems in design are becoming increasingly prominent, which may lead to designs not meeting actual production requirements, unreasonable processes, and even affecting the quality and production cost of the final product. By means of intelligent and automated methods, potential conflicts are identified at the initial stage of design, problems are feedback in real time, and optimization solutions are provided, thereby improving the efficiency and quality of arts and crafts design.
[0003] In the prior art, by using algorithms and rules to perform real-time analysis on design data, potential conflicts (such as problems with the combination of shapes, colors, materials, etc.) are discovered. Based on the detection results, optimization algorithms (such as genetic algorithms, particle swarm optimization, etc.) are used to improve the design scheme to achieve the balance and optimization among multiple design factors.
[0004] For example, the automatic design optimization method for arts and crafts based on intelligent data announced in the invention patent announcement with the publication number of CN119002867B includes: obtaining user demand input data; performing part-of-speech analysis on the user demand input data to generate user demand input part-of-speech data; using the user demand input part-of-speech data to perform sentence segmentation on the user demand input data to generate user demand input sentences; performing design creative description parsing on the user demand input sentences to obtain a creative description keyword cloud map; obtaining an arts and crafts database; based on the arts and crafts database, performing initial arts and crafts atlas design on the user demand input sentences to obtain an initial arts and crafts demand diagram; and performing simulation iteration replacement on the initial arts and crafts demand diagram according to the creative description keyword cloud map to obtain a first updated arts and crafts demand diagram.
[0005] For example, a method and system for automatically generating brand graphic creativity based on AIGC disclosed in a patent application with the publication number: CN119203277A, including: Step S1, inputting brand requirement information into an AI model and outputting multiple creative content directions; Step S2, generating preliminary design sketches for each creative content direction through the AI model; Step S3, after confirming the creative content directions and the corresponding preliminary design sketches, performing batch image generation and material expansion through the AI model; Step S4, automatically scoring the batch-generated images and the expanded materials, and screening out high-quality creative images; Step S5, after confirming the high-quality creative images, performing fine adjustment and optimization on the selected creative images, and finally generating a graphic creative design drawing.
[0006] However, in the process of implementing the inventive technical solution in the embodiments of the present application, it is found that the above technology has at least the following technical problems:
[0007] In the prior art, since the design sketches may not be clear and standardized enough, it is difficult to identify and locate each element, resulting in a reduction in the accuracy of conflict detection in arts and crafts design. When integrating optimization strategies, there may be conflicts or incoordination between different strategies, resulting in the inability to effectively implement the optimization strategy or new problems occurring after implementation. There is a problem that the differences in design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of arts and crafts design. Summary of the Invention
[0008] The embodiments of the present application provide an intelligent conflict detection and collaborative optimization system and method for arts and crafts design, which solve the problem that the differences in design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of arts and crafts design in the prior art, and achieve an improvement in the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0009] The embodiment of the present application provides an intelligent conflict detection and collaborative optimization system for arts and crafts design, including: a conflict credibility evaluation module, a position judgment module, a size judgment module, and an iterative optimization module; wherein, the conflict credibility evaluation module is used to number the elements in the design sketch, establish a coordinate system according to the design sketch, evaluate the conflict credibility according to the conflict credibility evaluation parameters of the design sketch, and judge whether to optimize the design sketch, and the conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; the position judgment module is used to register the design sketch and the user requirement diagram, number the user requirement diagram according to the numbers in the design sketch, establish a coordinate system according to the user requirement diagram, and judge whether to adjust the element position based on the midline-element center distance of each element in the user requirement diagram and the midline-element center distance of the corresponding element in the design sketch, and the element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; the size judgment module is used to judge whether to adjust the element size based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch, and the element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement diagram; the iterative optimization module is used to perform parallel processing on the element optimization of the user requirement diagram, and input the iterative arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function after each iteration, and judge whether to accept the adjustment plan of the current iteration based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration until the iteration termination condition is met.
[0010] The embodiments of the present application provide an intelligent conflict detection and collaborative optimization method for arts and crafts design, including: S1, numbering the elements in the design sketch, establishing a coordinate system according to the design sketch, and evaluating the conflict credibility according to the conflict credibility evaluation parameters of the design sketch to determine whether to optimize the design sketch. The conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; S2, registering the design sketch and the user requirement diagram, numbering the user requirement diagram accordingly according to the numbers in the design sketch, and establishing a coordinate system according to the user requirement diagram. Based on the distance between the midline and the element center of each element in the user requirement diagram and the distance between the midline and the element center of the corresponding element in the design sketch, determine whether to adjust the element position. The element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; S3, based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch, determine whether to adjust the element size. The element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement diagram; S4, perform parallel processing on the element optimization of the user requirement diagram, and input the coordinated evaluation parameters of the arts and crafts design after each iteration into the coordinated evaluation function of the arts and crafts design. Based on the current coordinated evaluation result of the arts and crafts design and the coordinated evaluation result of the previous iteration, determine whether to accept the adjustment plan of the current iteration until the iteration termination condition is met.
[0011] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0012] 1. Optimize the design sketch through the conflict credibility evaluation parameters of the design sketch, then respectively adjust the element position and size based on the distance between the midline and the element center and the pixel area of the corresponding elements in the user requirement diagram and the design sketch. Finally, judge the adjustment plan based on the coordinated evaluation results of the arts and crafts design in two iterations, thereby improving the accuracy of arts and crafts design, and further improving the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design, effectively solving the problem that the differences in design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of arts and crafts design in the prior art.
[0013] 2. Obtain the first sketch credibility coefficient through the line break length ratio, the standard deviation of the line pixel width after de-uniting, and the standard deviation of the element center interval distance in the main body of the handicraft. Then, obtain the second sketch credibility coefficient according to the sketch resolution and the preset sketch resolution. Finally, obtain the conflict credibility evaluation result through the comparison process of the first sketch credibility coefficient and the second sketch credibility coefficient, thereby quantitatively evaluating the credibility of the design sketch, and further improving the generation efficiency of the user requirement diagram.
[0014] 3. The sum of the preset pixel areas of all adjacent two elements is processed to obtain the total overlapping area, and then the total overlapping area contrast coefficient, the size ratio coordination contrast coefficient, and the image detail clarity coefficient are obtained according to the coordination evaluation parameters of the arts and crafts design. Finally, the weight of the coordination evaluation result of the arts and crafts design is introduced to process the total overlapping area contrast coefficient, the size ratio coordination contrast coefficient, and the image detail clarity coefficient to obtain the coordination evaluation result of the arts and crafts design, so as to quantitatively evaluate the design quality of the user requirement diagram, and then realize the optimization of the user requirement diagram design. Brief Description of the Drawings
[0015] Figure 1 It is a schematic structural diagram of an intelligent conflict detection and collaborative optimization system for arts and crafts design provided by an embodiment of the present application;
[0016] Figure 2 It is a flowchart of an intelligent conflict detection and collaborative optimization method for arts and crafts design provided by an embodiment of the present application. Detailed Embodiment
[0017] By providing an intelligent conflict detection and collaborative optimization system and method for arts and crafts design, the embodiment of the present application solves the problem that the differences in design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of arts and crafts design in the prior art. Whether to optimize the design sketch is judged through the conflict credibility evaluation parameter of the design sketch, and then whether to adjust the element position and element size is judged respectively based on the midline-element center distance and pixel area of the corresponding elements in the user requirement diagram and the design sketch. Finally, whether to accept the adjustment plan of the current iteration is judged based on the coordination evaluation results of the arts and crafts design in two adjacent iterations, realizing the improvement of the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0018] The technical solution in the embodiment of the present application is to solve the problem that the differences in design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of arts and crafts design. The general idea is as follows:
[0019] The design sketch is optimized through the conflict credibility evaluation parameter of the design sketch, and then the element position and size are adjusted respectively based on the midline-element center distance and pixel area of the corresponding elements in the user requirement diagram and the design sketch. Finally, the adjustment plan is judged based on the coordination evaluation results of the arts and crafts design in two adjacent iterations, achieving the effect of improving the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0020] In order to better understand the above technical solution, the above technical solution will be described in detail below in combination with the specification drawings and specific embodiments.
[0021] Such asFigure 1 As shown in the figure, it is a schematic structural diagram of an intelligent conflict detection and collaborative optimization system for arts and crafts design provided by an embodiment of the present application. The intelligent conflict detection and collaborative optimization system for arts and crafts design provided by an embodiment of the present application includes: a conflict credibility evaluation module, a position judgment module, a size judgment module, and an iterative optimization module; among them, the conflict credibility evaluation module is used to number the elements in the design sketch, establish a coordinate system according to the design sketch, perform conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch, and judge whether to optimize the design sketch. The conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; the position judgment module is used to register the design sketch and the user requirement diagram, number the user requirement diagram according to the numbers in the design sketch, establish a coordinate system according to the user requirement diagram, and judge whether to adjust the element position based on the center line-element center distance of each element in the user requirement diagram and the center line-element center distance of the corresponding element in the design sketch. The element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; the size judgment module is used to judge whether to adjust the element size based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch. The element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement diagram; the iterative optimization module is used to perform parallel processing on the element optimization of the user requirement diagram, and input the iterative arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function after each iteration, and judge whether to accept the adjustment plan of the current iteration based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration until the iteration termination condition is met.
[0022] In this embodiment, the central axis of the handicraft in the design sketch and the user requirement diagram is used as the y-axis respectively, and the vertical center line from the top to the bottom of the handicraft is used as the x-axis to establish a coordinate system.
[0023] In arts and crafts design, since the design sketch may not be clear and standard enough, it is difficult to identify and locate each element, resulting in a decrease in the accuracy of conflict detection in arts and crafts design; by introducing conflict credibility evaluation parameters and a design conflict credibility evaluation method, the present application quantitatively evaluates the credibility of the design sketch, so as to be able to timely discover problems existing in the sketch, such as unclear lines and blurred elements, and then take corresponding measures for improvement, improve the image quality of the design sketch, provide a better basis for subsequent design work, and further avoid frequent modifications and intelligent conflict detection errors caused by sketch problems in the subsequent design process, saving time and cost, and realizing the improvement of the accuracy of intelligent conflict detection and design efficiency in arts and crafts design.
[0024] Due to reasons such as the drawing process or measurement errors, the positions of elements may not match. Through precise image registration and position judgment methods, the positions of elements can be automatically detected and adjusted, ensuring that the positions of elements in the user's required drawing are consistent with the user's requirements, improving the accuracy of element positions in handicraft art design, and solving the technical problem of mismatched element positions. By comparing the pixel areas of elements in the design sketch and the user's required drawing and determining whether size adjustment is needed, it can ensure that the sizes of elements in the user's required drawing are consistent with the user's requirements, avoiding design problems caused by inappropriate sizes.
[0025] Due to conflicts or incoordination between different optimization strategies, the optimization measures cannot be effectively implemented. In this application, through parallel processing of element optimization in the iterative optimization module and adaptive setting of iterative termination conditions for the user's required drawing, the collaborative optimization time in handicraft art design is shortened, the optimization efficiency of collaborative optimization in handicraft art design is improved, and the technical problem of excessive time consumption in the optimization process is effectively solved.
[0026] Furthermore, the specific method for conflict credibility evaluation based on the conflict credibility evaluation parameters of the design sketch is as follows: Determine whether the starting and ending points of each element contour in the design sketch are the same. If they are the same, record the line break length ratio as 0. Otherwise, use the dilation operation in morphological operations to fill the line break part in the element contour to obtain the complete line length, and perform deviation comparison processing based on the filled line length and the line length to obtain the line break length ratio, that is, DUAN. Determine whether the number of elements contained in the handicraft main body is greater than 1. If the number of elements contained in the handicraft main body is greater than 1, introduce the second sketch fuzzy weight, the third sketch fuzzy weight, and the fourth sketch fuzzy weight to perform weighted coupling processing on the line break length ratio, the standard deviation of the line pixel width after de-uniting, and the standard deviation of the element center spacing distance in the handicraft main body to obtain the first sketch credibility coefficient, that is, M2*DUAN + M3*KDB + M4*ZXJ. Otherwise, introduce the second sketch fuzzy weight and the third sketch fuzzy weight to perform weighted coupling processing on the line break length ratio and the standard deviation of the line pixel width after de-uniting to obtain the first sketch credibility coefficient, that is, M2*DUAN + M3*KDB. The handicraft main body refers to the element with the largest pixel area among all handicraft elements. After comparing the sketch resolution with the preset sketch resolution obtained from the preset database, introduce the first sketch fuzzy weight for weighting to obtain the second sketch credibility coefficient, that is, Compare the first sketch credibility coefficient and the second sketch credibility coefficient to obtain the conflict credibility evaluation result, which is used to quantitatively evaluate the credibility of the design sketch.
[0027] Among them, the specific limiting expression of the conflict credibility evaluation result is:
[0028]
[0029] In the formula, CM represents the conflict credibility evaluation result, CMX represents the first sketch credibility coefficient, FEN represents the sketch resolution, FEN0 represents the preset sketch resolution, and M1 represents the first sketch blur weight;
[0030] Specifically, the specific limitation expression of the first sketch credibility coefficient is:
[0031]
[0032] In the formula, DUAN represents the line break length ratio, KDB represents the standard deviation of the line pixel width, ZXJ represents the standard deviation of the element center spacing distance, M2 represents the second sketch blur weight, M3 represents the third sketch blur weight, M4 represents the fourth sketch blur weight, and zys represents the number of elements included in the handicraft main body.
[0033] In this embodiment, an element represents a component of a handicraft in a design sketch and a user requirement diagram. For example, the handle of a purple clay teapot, a pattern, etc. are set according to a preset person; an element contour represents the line formed by the edge of the element, which is used to define the boundary of the element; the handicraft body represents the element with the largest area among all elements. If there are multiple elements with the same area, the element containing the most elements is defined as the handicraft body; by performing edge detection and contour extraction algorithms (such as Canny operator, Sobel operator, etc.) on the design sketch, the edge pixel points of the element contour are determined, and then the coordinates of the first and last edge pixel points are found as the starting and ending coordinates; by performing edge detection and contour extraction algorithms (such as Canny operator, Sobel operator, etc.) on the design sketch, the edge pixel points of all element contours are determined, and the number of pixel points of the element contour is counted to obtain the original line length; after performing morphological dilation operation, the number of pixel points of all element contours is counted again along the contour edge to obtain the complete line length after filling; when calculating the line break length ratio, the elements with different starting and ending points of the element contour are marked and fed back to the user for break confirmation. If the user confirms that it belongs to a line break, the broken part of the element is included in the line break length ratio, otherwise the broken part is not calculated; the line pixel width is obtained by counting the number of pixels perpendicular to the line direction of the line; the standard deviation of the line pixel width is used to describe the degree of change of the line width; when there are no multiple elements in the handicraft body, there is no need to calculate the element center spacing distance; the center position of the element is determined by calculating the geometric center (such as the centroid) of each element, and the distance between the center positions of two adjacent elements is measured to obtain the element center spacing distance; the standard deviation of the element center spacing distance in the handicraft body is used to describe the degree of uniformity of the distribution of elements; the sketch resolution is obtained from the image attributes of the design sketch; the preset sketch resolution is set according to the preset person.
[0034] In this algorithm, the conflict credibility evaluation result is obtained by processing multiple independent variables (sketch resolution, line break length ratio, standard deviation of line pixel width, standard deviation of element center spacing distance). There is an interaction relationship among these independent variables; when the sketch resolution is lower, it may lead to the loss of detailed information in the design sketch, may cause incorrect recognition of the starting and ending points of the element contour in the design sketch, and thus lead to an increase in the line break length ratio; the lower the sketch resolution, due to the limited number of pixels, the change in the line width may be relatively smooth, resulting in a smaller standard deviation of the line pixel width; the lower the sketch resolution, it may affect the calculation accuracy of the standard deviation of the element center spacing distance; the larger the line break length ratio, it means that there may be changes in the line pixel width, which may lead to an increase in the standard deviation of the line pixel width; the larger the standard deviation of the line pixel width, which may cause changes in the element center spacing distance and affect the standard deviation of the element center spacing distance.
[0035] The first sketch fuzzy weight, the second sketch fuzzy weight, the third sketch fuzzy weight, and the fourth sketch fuzzy weight are obtained from a preset database. The first sketch fuzzy weight represents the degree of influence of the sketch resolution on the conflict credibility evaluation result. The second sketch fuzzy weight represents the degree of influence of the line break length ratio on the conflict credibility evaluation result. The third sketch fuzzy weight represents the degree of influence of the standard deviation of the line pixel width on the conflict credibility evaluation result. The fourth sketch fuzzy weight represents the degree of influence of the standard deviation of the element center spacing distance on the conflict credibility evaluation result. The sum of the four is 1. For example, the sketch resolution forms a mapping set with the preset first sketch fuzzy weight, and the real-time sketch resolution is input into the mapping set to obtain the corresponding first sketch fuzzy weight. The line break length ratio forms a mapping set with the preset second sketch fuzzy weight, and the real-time line break length ratio is input into the mapping set to obtain the corresponding second sketch fuzzy weight. The standard deviation of the line pixel width forms a mapping set with the preset third sketch fuzzy weight, and the real-time standard deviation of the line pixel width is input into the mapping set to obtain the corresponding third sketch fuzzy weight. The standard deviation of the element center spacing distance forms a mapping set with the preset fourth sketch fuzzy weight, and the real-time standard deviation of the element center spacing distance is input into the mapping set to obtain the corresponding fourth sketch fuzzy weight. The mapping relationship therein can be one-to-one or many-to-one.
[0036] Through the above steps, the credibility of the design sketch is quantitatively evaluated, providing a basis for the subsequent optimization of the design sketch, thereby avoiding repeated modifications caused by incorrect recognition of the design sketch in the future, and improving the efficiency of generating the user requirement diagram. By selectively calculating the element center spacing distance, the computing resources in the intelligent conflict detection system for arts and crafts design are saved.
[0037] Further, the specific process for determining whether to optimize the design sketch is as follows: B1. Determine whether the conflict credibility evaluation result is less than the preset conflict credibility threshold obtained from the preset database. If the conflict credibility evaluation result is less than the preset conflict credibility threshold obtained from the preset database, perform design sketch sharpening and then execute B2; otherwise, do not optimize the design sketch. B2. Determine whether the conflict credibility evaluation result obtained after design sketch sharpening is less than the preset conflict credibility threshold obtained from the preset database. If the conflict credibility evaluation result obtained after design sketch sharpening is less than the preset conflict credibility threshold obtained from the preset database, perform line pixel width adjustment and then execute B3; otherwise, end the design sketch optimization. B3. If the conflict credibility evaluation result obtained after line pixel width adjustment is less than the preset conflict credibility threshold obtained from the preset database, execute B4; otherwise, end the design sketch optimization. B4. If the number of elements included in the handicraft main body is greater than 1, perform element center spacing adjustment and then execute B5; otherwise, prompt the user to obtain a new design sketch. B5. Determine whether the conflict credibility evaluation result obtained after element center spacing adjustment is less than the preset conflict credibility threshold obtained from the preset database. If the conflict credibility evaluation result obtained after element center spacing adjustment is less than the preset conflict credibility threshold obtained from the preset database, prompt the user to obtain a new design sketch; otherwise, end the design sketch optimization. The design sketch optimization includes design sketch sharpening, line pixel width adjustment, and element center spacing adjustment.
[0038] In this embodiment, the preset conflict credibility threshold is represented by the average value of the conflict credibility evaluation results. When there are no multiple elements in the handicraft main body, there is no need to perform element center spacing adjustment.
[0039] By automatically judging the credibility of the design sketch and gradually performing optimization operations such as sharpening and line pixel width adjustment, the clarity and line uniformity of the sketch are achieved. Since there are multiple elements in the handicraft main body, there may be a problem of multi-element overlap. Therefore, by adjusting the element center spacing, the rationality of the element layout is improved, the design sketch is more accurately identified, providing a high-quality basis for subsequent handicraft design, and thus the efficiency and accuracy of the design sketch optimization process are achieved.
[0040] Further, the specific process for design sketch sharpening is as follows: Perform noise reduction processing on the design sketch; input the conflict credibility evaluation result and the sketch resolution into the sharpening mapping set to obtain the sketch sharpness, and sharpen the design sketch according to the sketch sharpness. The sharpening mapping set is a set representing the mapping relationship between the conflict credibility evaluation result, the sketch resolution, and the sketch sharpness obtained from the preset database.
[0041] Specifically, the specific process of adjusting the line pixel width is as follows: input the conflict credibility evaluation result, the standard deviation of the line pixel width, and the average value of the line pixel width into the line pixel width mapping set to obtain the adjusted line pixel width. The line pixel width mapping set is a set of mapping relationships representing the conflict credibility evaluation result, the standard deviation of the line pixel width, the average value of the line pixel width, and the line pixel width, which is obtained from a preset database; make a judgment based on the line pixel width in the design sketch and the adjusted line pixel width. If the line pixel width in the design sketch is greater than the adjusted line pixel width, erode the corresponding line through the erosion operation in morphological operations until the line pixel width in the design sketch is equal to the adjusted line pixel width. If the line pixel width in the design sketch is less than the adjusted line pixel width, dilate the corresponding line through the dilation operation in morphological operations until the line pixel width in the design sketch is equal to the adjusted line pixel width. Otherwise, no adjustment is made to the line pixel width.
[0042] Specifically, the specific process of adjusting the element center spacing is as follows: input the conflict credibility evaluation result, the standard deviation of the element center spacing of the handicraft body, the number of elements included in the handicraft body, and the maximum perimeter of the handicraft body into the element spacing mapping set to obtain the element center spacing, and adjust the positions of the elements in the handicraft body according to the element center spacing. The element spacing mapping set is a set of mapping relationships representing the conflict credibility evaluation result, the standard deviation of the element center spacing of the handicraft body, the number of elements included in the handicraft body, the maximum perimeter of the handicraft body, and the element center spacing, which is obtained from a preset database.
[0043] In this embodiment, noise reduction is performed through filtering methods in image processing, such as Gaussian filtering, mean filtering, etc.; the design sketch is sharpened through sharpening algorithms, such as convolution sharpening, Laplace sharpening, etc.; the erosion operation reduces the line pixel width by removing some pixels at the line edge; the dilation operation increases the line pixel width by changing some background pixels at the line edge into line pixels; the positions of the elements are moved so that the distance between the centers of two adjacent elements reaches the element center spacing; the average value of the line pixel widths of all lines is calculated through an average value operation; the number of elements included in the handicraft body is obtained through image recognition and counting; the maximum perimeter of the handicraft body is represented by the maximum length of the boundary contour of the handicraft body.
[0044] By sharpening the design sketches, the problems such as unclear lines and blurred edges are effectively solved, and the credibility of the design sketches is improved; by noise reduction processing and adjustment of the sharpness, the relationship between the sharpening effect and the noise influence is balanced, ensuring the improvement of the quality of the sharpened design sketches; when the main body of the handicraft contains multiple elements, by adjusting the center spacing distance between the elements, the layout of the elements is made more reasonable and beautiful, solving the problems of visual crowding or looseness caused by unreasonable spacing between the elements.
[0045] Further, based on the midline-element center distance of each element in the user demand diagram and the midline-element center distance of the corresponding element in the design sketch, it is judged whether to adjust the element position. The specific process is as follows: A1, record the abscissa corresponding to the center of each element as the midline-element center distance of the corresponding element; A2, judge whether the midline-element center distance of the user demand diagram is equal to the midline-element center distance of the design sketch. If the midline-element center distance of the user demand diagram is less than the midline-element center distance of the design sketch, then execute A3. If the midline-element center distance of the user demand diagram is greater than the midline-element center distance of the design sketch, then execute A4. Otherwise, do not adjust the element position; A3, judge whether the midline-element center distance comparison coefficients of any two elements are equal. If the midline-element center distance comparison coefficients of any two elements in the user demand diagram and the design sketch are equal, it means that the user demand diagram and the design sketch are in a proportional amplification relationship and no adjustment is made. Otherwise, based on the element-boundary distance of the corresponding element and the moving distance of the corresponding element, it is judged whether to adjust the element position. The midline-element center distance comparison coefficient is obtained by comparing the midline-element center distance of each element in the user demand diagram and the midline-element center distance of the corresponding element in the design sketch; A4, judge whether the midline-element center distance comparison coefficients of any two elements are equal. If the midline-element center distance comparison coefficients of any two elements in the user demand diagram and the design sketch are equal, it means that the user demand diagram and the design sketch are in a proportional reduction relationship and no adjustment is made. Otherwise, translate the corresponding element in the user demand diagram until the midline-element center distance of the user demand diagram is equal to the midline-element center distance of the design sketch.
[0046] Specifically, it is determined whether to adjust the element position based on the element-boundary distance of the corresponding element and the moving distance of the corresponding element. The specific process is as follows: Determine whether the element-boundary distance of the corresponding element is less than the moving distance of the corresponding element; if the element-boundary distance of the corresponding element is not less than the moving distance of the corresponding element, translate the corresponding element in the user requirement diagram until the center line-element center distance of the corresponding element in the user requirement diagram is equal to the center line-element center distance of the corresponding element in the design sketch; if the element-boundary distance of the corresponding element is less than the moving distance of the corresponding element, adjust the element size. If the element-boundary distance after the element size adjustment of the corresponding element is not less than the moving distance after the element size adjustment of the corresponding element, translate the corresponding element in the user requirement diagram until the center line-element center distance after the element size adjustment of the corresponding element in the user requirement diagram is equal to the center line-element center distance after the element size adjustment of the corresponding element in the design sketch, otherwise give feedback.
[0047] In this embodiment, the element-boundary distance represents the distance from the element to the boundary of the user requirement diagram parallel to the y-axis; the moving distance is obtained by performing an absolute value operation after performing a difference operation on the center line-element center distance of the user requirement diagram and the center line-element center distance of the design sketch.
[0048] By precisely comparing and adjusting the position relationship of elements in the user requirement diagram and the design sketch, it can ensure that the arts and crafts design better meets the user's needs, improves the quality and accuracy of the arts and crafts design, and improves the user's satisfaction; when the user requirement diagram and the design sketch are in a proportional scaling relationship, the adjustment of the element position is achieved by adjusting the element size, thus saving computing resources and improving the efficiency of the collaborative optimization system in the arts and crafts design.
[0049] By judging the element-boundary distance and the moving distance, it ensures that the element is adjusted within a reasonable area to avoid visual disharmony or operational inconvenience; when the element-boundary distance is less than the moving distance, it may be because the arts and crafts in the user requirement diagram are in a proportional enlargement relationship with the design sketch, and direct translation may cause the element to exceed the boundary, so the element size needs to be adjusted; through the position adjustment and size adjustment of the element, the collaborative optimization of position conflict and size conflict in the arts and crafts design is achieved.
[0050] Further, based on the pixel areas of the elements in the user requirement diagram and the pixel areas of the corresponding elements in the design sketch, it is determined whether to adjust the element sizes. The specific process is as follows: Judge according to the pixel areas of the elements in the user requirement diagram and the pixel areas of the corresponding elements in the design sketch; if the pixel area of each element in the user requirement diagram is smaller than the pixel area of the corresponding element in the design sketch, then enlarge the corresponding element in the user requirement diagram according to the size adjustment ratio, and the size adjustment ratio is obtained through deviation comparison processing of the pixel areas of the elements in the user requirement diagram and the pixel areas of the corresponding elements in the design sketch; if the pixel area of each element in the user requirement diagram is larger than the pixel area of the corresponding element in the design sketch, then reduce the corresponding element in the user requirement diagram according to the size adjustment ratio, otherwise no adjustment is made.
[0051] In this embodiment, the pixel area is obtained through image processing software; the specific calculation formula for the size adjustment ratio is where XSM represents the pixel area of the corresponding element in the design sketch, and XSM ′ represents the pixel area of the corresponding element in the user requirement diagram.
[0052] By automatically adjusting the element sizes in the design sketch, the design accuracy and overall coordination of the user requirement diagram are ensured, the working efficiency and accuracy of the collaborative optimization system in arts and crafts design are improved, and it is ensured that the user requirement diagram better meets the user's expectations.
[0053] Further, the specific method for obtaining the coordination evaluation function of arts and crafts design is as follows: After deviation processing of the sum of the preset pixel areas of all adjacent two elements and the actual pixel areas of the corresponding two elements, coupling processing is performed to obtain the total overlapping area; deviation comparison processing is performed on the total overlapping area and the preset total overlapping area obtained from the preset database to obtain the total overlapping area comparison coefficient, that is After deviation comparison processing of the size ratio coordination coefficient and the preset size ratio coordination coefficient obtained from the preset database, absolute value processing is performed to obtain the size ratio coordination comparison coefficient, that is After inverse deviation comparison processing of the image detail clarity and the preset image detail clarity obtained from the preset database, the image detail clarity coefficient is obtained, that is The weight of the coordination evaluation result of arts and crafts design is introduced to perform weighted coupling processing on the total overlapping area comparison coefficient, the size ratio coordination comparison coefficient, and the image detail clarity coefficient to obtain the coordination evaluation result of arts and crafts design.
[0054] Among them, the specific limit expression of the coordination evaluation result of arts and crafts design is:
[0055]
[0056] Where m is the number of iteration times, m = 1, 2, … M - 1, M represents the total number of iterations, f(SY m ) represents the coordinated evaluation result of the arts and crafts design for the m-th iteration, represents the total overlapping area of the handicraft elements in the user requirement diagram for the m-th iteration, represents the size ratio coordination coefficient of the handicraft in the user requirement diagram for the m-th iteration, represents the image detail clarity of the handicraft in the user requirement diagram for the m-th iteration, SY 1.0 represents the preset total overlapping area, SY 2.0 represents the preset size ratio coordination coefficient, SY 3.0 represents the preset image detail clarity, represents the weight of the first coordinated evaluation result of the arts and crafts design for the m-th iteration, represents the weight of the second coordinated evaluation result of the arts and crafts design for the m-th iteration, represents the weight of the third coordinated evaluation result of the arts and crafts design for the m-th iteration.
[0057] In this embodiment, the preset total overlapping area is set according to the preset personnel, and is preferably set to a data close to 0, for example, 0.1; the preset size ratio coordination coefficient is set according to the preset personnel, for example, it can be set to the golden ratio; the preset image detail clarity is set according to the preset personnel; the image detail clarity is represented by the amplitude of the gradient value of each pixel in the user requirement diagram; the size ratio coordination coefficient is obtained by calculating the ratio of the height and width of the handicraft in the user requirement diagram; the specific formula for the total overlapping area is: Where, represents the total overlapping area for the m-th iteration, represents the pixel area of the a-th element for the m-th iteration, represents the preset pixel area of the a-th element for the m-th iteration; here, the pixel area represents the pixel area of the corresponding element obtained from the user requirement diagram after adjusting the element position and size.
[0058] According to the type of handicraft, the coordinated evaluation parameters of the arts and crafts design can be selectively changed. For example, in the art design of purple clay teapots, the image detail clarity can be changed to the angle of the teapot spout; in the art design of jade articles, the image detail clarity can be changed to the smoothness of the lines, etc. The smoothness of the lines is represented by the standard deviation of the curvature radius of the outer contour lines of the jade article.
[0059] In this algorithm, the coordinated evaluation result of arts and crafts design is obtained by processing multiple independent variables (dimension ratio coordination coefficient, total overlapping area, image detail clarity). There are mutual influence relationships among these independent variables. If the dimension ratio coordination coefficient is closer to the preset value, the positions of elements are usually more reasonable and the total overlapping area is smaller. The larger the total overlapping area, the more blurred the image details, thus reducing the image detail clarity. Designs with dimension ratio coordination coefficients closer to the preset value can usually place each element in a suitable position and size, thus avoiding overlap or compression and ensuring greater image detail clarity.
[0060] The weights of the first coordinated evaluation result of arts and crafts design, the second coordinated evaluation result of arts and crafts design, the third coordinated evaluation result of arts and crafts design, and the fourth coordinated evaluation result of arts and crafts design are obtained from a preset database. The weight of the first coordinated evaluation result of arts and crafts design represents the influence degree of the total overlapping area on the coordinated evaluation result of arts and crafts design. The weight of the second coordinated evaluation result of arts and crafts design represents the influence degree of the dimension ratio coordination coefficient on the coordinated evaluation result of arts and crafts design. The weight of the third coordinated evaluation result of arts and crafts design represents the influence degree of the image detail clarity on the coordinated evaluation result of arts and crafts design. The sum of the three is 1. For example, the total overlapping area and the preset weight of the first coordinated evaluation result of arts and crafts design form a first coordination mapping set. Inputting the real-time total overlapping area into the first coordination mapping set obtains the corresponding weight of the first coordinated evaluation result of arts and crafts design. The dimension ratio coordination coefficient and the preset weight of the second coordinated evaluation result of arts and crafts design form a second coordination mapping set. Inputting the real-time dimension ratio coordination coefficient into the second coordination mapping set obtains the corresponding weight of the second coordinated evaluation result of arts and crafts design. The image detail clarity and the preset weight of the third coordinated evaluation result of arts and crafts design form a third coordination mapping set. Inputting the real-time image detail clarity into the third coordination mapping set obtains the corresponding weight of the third coordinated evaluation result of arts and crafts design. The mapping relationships therein can be one-to-one or many-to-one relationships.
[0061] After adjusting the positions and sizes of elements in the user requirement diagram, a rough adjustment of each element in the process design diagram is achieved, but the relationships between elements may not be perfectly matched yet. This application quantifies the evaluation of the design quality of the user requirement diagram, avoids the influence of a single factor on the evaluation result, and thus achieves the effect of optimizing the design of the user requirement diagram through iterative optimization using the simulated annealing algorithm.
[0062] Further, based on the current coordination evaluation result of arts and crafts design and the coordination evaluation result of the previous iteration, it is determined whether to accept the adjustment plan of the current iteration. The specific process is as follows: The total overlapping area and the total number of elements of the handicraft are input into the annealing temperature mapping set to obtain the initial annealing temperature. The annealing temperature mapping set represents the mapping relationship between the total overlapping area and the total number of elements of the handicraft and the initial annealing temperature; The initial coordination evaluation parameters of arts and crafts design are input into the specific constraint expression of the coordination evaluation result of arts and crafts design to obtain the initial coordination evaluation result of arts and crafts design; Any element in the handicraft is adjusted to obtain the coordination evaluation parameters of the first iteration of arts and crafts design, and the coordination evaluation parameters of the first iteration of arts and crafts design are input into the specific constraint expression of the coordination evaluation result of arts and crafts design to obtain the coordination evaluation result of the first iteration of arts and crafts design; It is judged whether the deviation coefficient of the coordination evaluation result of arts and crafts design is greater than 0. If the deviation coefficient of the coordination evaluation result of arts and crafts design is greater than 0, iterative optimization is directly performed based on the adjustment plan of the first iteration until the iterative termination condition is met. Otherwise, it is judged whether to perform iterative optimization based on the adjustment plan of the first iteration according to the conflict optimization coefficient. The deviation coefficient of the coordination evaluation result of arts and crafts design is obtained through deviation processing of the coordination evaluation result of the first iteration of arts and crafts design and the initial coordination evaluation result of arts and crafts design; The conflict optimization coefficient is obtained through conflict optimization processing after comparing and processing the deviation coefficient of the coordination evaluation result of arts and crafts design and the current annealing temperature; It is judged whether to perform iterative optimization based on the adjustment plan of the first iteration according to the conflict optimization coefficient. If iterative optimization is not performed based on the adjustment plan of the first iteration, iterative optimization is performed based on the initial coordination evaluation parameters of arts and crafts design.
[0063] Specifically, the specific process for judging whether the iterative termination condition is met is as follows: It is judged whether the annealing temperature is greater than the preset minimum annealing temperature. If the annealing temperature is not greater than the preset minimum annealing temperature, the iteration is terminated. Otherwise, it is judged whether the number of iterations is equal to the preset maximum number of iterations; If the number of iterations is equal to the preset maximum number of iterations, the iteration is terminated. Otherwise, it is judged whether the deviation coefficient of the coordination evaluation result of arts and crafts design is less than the preset deviation threshold of the coordination evaluation result of arts and crafts design. The preset maximum number of iterations is obtained by inputting the calculation time, CPU benchmark speed, and total memory capacity of the initial coordination evaluation result of arts and crafts design into the iteration number mapping set. The iteration number mapping set is a set obtained from the preset database, representing the mapping relationship between the calculation time, CPU benchmark speed, and total memory capacity of the initial coordination evaluation result of arts and crafts design and the preset maximum number of iterations; If the deviation coefficient of the coordination evaluation result of arts and crafts design is less than the preset deviation threshold of the coordination evaluation result of arts and crafts design, the iteration is terminated. Otherwise, the iteration continues.
[0064] In this embodiment, the specific formula for the deviation coefficient of the coordination evaluation result of arts and crafts design is g(f(SYm+1 )) = f(SY m+1 ) - f(SY m ), where g(f(SY m+1 )) represents the deviation coefficient of the coordination evaluation result of the arts and crafts design for the (m + 1)-th iteration, f(SY m+1 ) represents the coordination evaluation result of the current iteration of the arts and crafts design for the (m + 1)-th iteration, and f(SY m ) represents the coordination evaluation result of the arts and crafts design for the m-th iteration; according to the conflict optimization coefficient (i.e., where g(f(SY m+1 )) represents the deviation coefficient of the coordination evaluation result of the arts and crafts design, and t new represents the annealing temperature of the current iteration) to determine whether to perform iterative optimization based on the adjustment scheme of the first iteration: generate a random number between 0 and 1. If the random number is not greater than the conflict optimization coefficient, accept the new solution; the update of the temperature adapts to the cooling function (i.e., t new = t old α , where t new represents the annealing temperature of the current iteration, t old represents the annealing temperature of the previous iteration, and α represents the cooling coefficient). Usually, the exponential decay form is used, and the annealing temperature decreases with the increase of the iteration times. The cooling coefficient is set according to the above-mentioned personnel and is usually 0.9 or 0.95. For example, it can be set to 0.9; the preset minimum annealing temperature is set according to the preset personnel. For example, it is set according to the preset ratio (such as 0.01) of the initial annealing temperature; the preset deviation threshold of the coordination evaluation result of the arts and crafts design can be set according to the size of the coordination evaluation result of the arts and crafts design. For example, it is set according to 0.01 times of the current coordination evaluation result of the arts and crafts design; the calculation time of the initial coordination evaluation result of the arts and crafts design is represented by the time difference experienced from the input of the recorded parameters to the completion of the evaluation; the CPU benchmark speed is obtained through the detailed information of the CPU stored in the system; the total memory capacity is obtained through the detailed information of the memory stored in the system.
[0065] Judge whether to accept the adjustment scheme according to the annealing temperature and the conflict optimization coefficient, avoid the simulated annealing algorithm falling into the local optimum, and ensure that sufficient search can be carried out within the entire solution space; gradually reduce the annealing temperature to make the search gradually shift from extensive exploration to fine optimization, ensuring that it finally converges to a suitable solution; dynamically control the search process through the fitness deviation coefficient and the conflict optimization coefficient, so that the algorithm can adaptively explore and develop, avoiding the shortening of the search process resulting in the inability to obtain the optimal adjustment scheme; adaptively optimize according to the complexity and actual situation of the arts and crafts design by adjusting the annealing temperature, fitness, and iteration times parameters to achieve the improvement of the collaborative optimization effect.
[0066] As Figure 2 shown, it is a flowchart of an intelligent conflict detection and collaborative optimization method for arts and crafts design provided by an embodiment of the present application. The intelligent conflict detection and collaborative optimization method for arts and crafts design provided by an embodiment of the present application includes: S1, conflict credibility evaluation: number the elements in the design sketch, establish a coordinate system according to the design sketch, and perform conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch to determine whether to optimize the design sketch. The conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; S2, position judgment: register the design sketch and the user requirement diagram, number the user requirement diagram according to the numbers in the design sketch, establish a coordinate system according to the user requirement diagram, and judge whether to adjust the element positions based on the midline-element center distance of each element in the user requirement diagram and the midline-element center distance of the corresponding element in the design sketch. The element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; S3, size judgment: judge whether to adjust the element sizes based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch. The element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement diagram; S4, iterative optimization: perform parallel processing on the element optimization of the user requirement diagram, and input the iterative arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function after each iteration. Judge whether to accept the adjustment plan of the current iteration based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration until the iteration termination condition is met.
[0067] In this embodiment, parallel processing means that in the process of optimizing the elements of the user requirement diagram, parallel processing is used to process multiple element optimization tasks; all the above comparison processes represent the ratio of two data, all deviation processes represent the difference between two data, and all deviation comparison processes represent the ratio operation of the difference between the data and the preset value and the preset value.
[0068] By obtaining relevant design resources from a pre-built arts and crafts database, which includes various arts and crafts design templates, images, patterns, and related design elements; using the arts and crafts database to match the user requirement input statements with the design resources in the database through relational mapping to generate arts and crafts relational mapping data; classifying the arts and crafts relational mapping data to obtain arts and crafts relational mapping classification data; dividing the arts and crafts relational mapping classification data into a model training set and a model test set; training a model on the model training set through a random forest algorithm to generate an arts and crafts training model; testing the training model using the model test set to obtain an arts and crafts dispersion model; importing the user requirement input statements into the arts and crafts dispersion model for initial modeling to obtain an initial arts and crafts requirement diagram; using Natural Language Processing (NLP) technology to perform part-of-speech tagging on the text data input by the user, identifying different parts of speech such as nouns, verbs, adjectives, etc., and generating corresponding part-of-speech data, specifically using NLP libraries (such as Natural Language Toolkit (NLTK), spaCy) for part-of-speech analysis; according to the part-of-speech data, segment the user input text according to grammar rules to extract complete sentences, specifically using the sentence segmentation function in the NLP library; perform semantic analysis on the segmented sentences, extract the key descriptive words and phrases, and generate a keyword cloud diagram to highlight the core creative elements in the user requirements, specifically using the Term Frequency-Inverse Document Frequency (TF-IDF) algorithm or other keyword extraction methods, and generating the keyword cloud diagram can use tools such as the WordCloud library; according to the generated creative description keyword cloud diagram, identify the key elements and creative descriptions in the user requirements; use the creative description keyword cloud diagram to perform correlation analysis on each part of the initial arts and crafts requirement diagram to generate arts and crafts part correlation data; based on the arts and crafts part correlation data, edit and display each part through the creative description keyword cloud diagram to obtain arts and crafts design part editing and display data; use the arts and crafts design part editing and display data to perform simulation iteration and replacement on the initial arts and crafts requirement diagram to generate a user requirement diagram.
[0069] Through the above steps, the accurate docking of the user requirement diagram and the design sketch is achieved, ensuring the correct position and size of the elements. Through the conflict assessment and iterative optimization process, the design accuracy and efficiency of the user requirement diagram are improved, and at the same time, the coordination and aesthetic consistency of the final user requirement diagram are ensured, thereby improving the design quality of the user requirement diagram, and further achieving the improvement of the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0070] In summary, in the embodiments of the present application, the design sketch is optimized by designing the conflict credibility evaluation parameters of the sketch, and then the element position and size are adjusted respectively based on the center line-element center distance and pixel area of the corresponding elements in the user requirement diagram and the design sketch. Finally, the adjustment scheme is judged based on the coordination evaluation results of the industrial art design in two iterations, thereby improving the precision of the industrial art design, and further improving the accuracy of intelligent conflict detection and collaborative optimization in the industrial art design, effectively solving the problem that the differences in the design sketches are not considered in the process of intelligent conflict detection and collaborative optimization of the industrial art design in the prior art.
[0071] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0072] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in Figure 1 one or more of the processes or multiple processes and / or blocks Figure 1 one or more of the blocks or multiple blocks.
[0073] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including an instruction device, and the instruction device realizes the functions specified in Figure 1 one or more of the processes or multiple processes and / or blocks Figure 1 one or more of the blocks or multiple blocks.
[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide for realizing the functions in Figure 1 one or more of the processes or multiple processes and / or blocksFigure 1 Steps of functions specified in one or more boxes.
[0075] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.
[0076] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. An intelligent conflict detection and collaborative optimization system for arts and crafts design, characterized in that, Including: A conflict credibility evaluation module, a position judgment module, a size judgment module, and an iterative optimization module; Among them, the conflict credibility evaluation module is used to number the elements in the design sketch, establish a coordinate system according to the design sketch, perform conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch, and judge whether to optimize the design sketch. The conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; The position judgment module is used to register the design sketch and the user requirement drawing, number the user requirement drawing according to the numbers in the design sketch, establish a coordinate system according to the user requirement drawing, and judge whether to adjust the element position based on the midline-element center distance of each element in the user requirement drawing and the midline-element center distance of the corresponding element in the design sketch. The element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement drawing; The size judgment module is used to judge whether to adjust the element size based on the pixel area of each element in the user requirement drawing and the pixel area of the corresponding element in the design sketch. The element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement drawing; The iterative optimization module is used to perform parallel processing on the element optimization of the user requirement drawing, and input the iterative industrial art design coordination evaluation parameters into the industrial art design coordination evaluation function after each iteration, and judge whether to accept the adjustment plan of the current iteration based on the current industrial art design coordination evaluation result and the industrial art design coordination evaluation result of the previous iteration until the iteration termination condition is met.
2. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, wherein: The specific method for performing conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch is as follows: Judge whether the starting point and the ending point of the contour of each element in the design sketch are the same. If they are the same, record the line break length ratio as 0. Otherwise, use the dilation operation in morphological operations to fill the line break part in the element contour to obtain the complete line length, and perform deviation comparison processing based on the filled line length and the line length to obtain the line break length ratio; If the number of elements included in the main body of the handicraft is greater than 1, introduce the second sketch fuzzy weight, the third sketch fuzzy weight, and the fourth sketch fuzzy weight to perform weighted coupling processing on the line break length ratio, the standard deviation of the line pixel width after de-unifying, and the standard deviation of the element center interval distance in the main body of the handicraft to obtain the first sketch credibility coefficient. Otherwise, introduce the second sketch fuzzy weight and the third sketch fuzzy weight to perform weighted coupling processing on the line break length ratio and the standard deviation of the line pixel width after de-unifying to obtain the first sketch credibility coefficient. The main body of the handicraft refers to the element with the largest pixel area among all handicraft elements; After performing comparison processing based on the sketch resolution and the preset sketch resolution obtained from the preset database, introduce the first sketch fuzzy weight for weighting to obtain the second sketch credibility coefficient; Perform comparison processing based on the first sketch credibility coefficient and the second sketch credibility coefficient to obtain the conflict credibility evaluation result. The conflict credibility evaluation result is used to quantitatively evaluate the credibility of the design sketch.
3. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 2, characterized in that: The specific process for determining whether to optimize the design sketch is as follows: B1. If the conflict credibility evaluation result is less than the preset conflict credibility threshold obtained from the preset database, perform design sketch sharpening and then execute B2; otherwise, do not optimize the design sketch. B2. If the conflict credibility evaluation result obtained after design sketch sharpening is less than the preset conflict credibility threshold obtained from the preset database, perform line pixel width adjustment and then execute B3; otherwise, end the design sketch optimization. B3. If the conflict credibility evaluation result obtained after line pixel width adjustment is less than the preset conflict credibility threshold obtained from the preset database, execute B4; otherwise, end the design sketch optimization. B4. If the number of elements contained in the handicraft body is greater than 1, perform element center spacing adjustment and then execute B5; otherwise, prompt the user to obtain a new design sketch. B5. If the conflict credibility evaluation result obtained after element center spacing adjustment is less than the preset conflict credibility threshold obtained from the preset database, prompt the user to obtain a new design sketch; otherwise, end the design sketch optimization. The design sketch optimization includes design sketch sharpening, line pixel width adjustment, and element center spacing adjustment.
4. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 3, characterized in that: The specific process for design sketch sharpening is as follows: Perform noise reduction processing on the design sketch. Input the conflict credibility evaluation result and sketch resolution into the sharpening mapping set to obtain the sketch sharpness, and sharpen the design sketch according to the sketch sharpness. The sharpening mapping set represents the mapping relationship between the conflict credibility evaluation result, sketch resolution, and sketch sharpness. The specific process for line pixel width adjustment is as follows: Input the conflict credibility evaluation result, line pixel width standard deviation, and line pixel width average value into the line pixel width mapping set to obtain the adjusted line pixel width. The line pixel width mapping set represents the mapping relationship between the conflict credibility evaluation result, line pixel width standard deviation, line pixel width average value, and line pixel width. If the line pixel width in the design sketch is greater than the adjusted line pixel width, erode the corresponding line through the erosion operation in morphological operations until the line pixel width in the design sketch is equal to the adjusted line pixel width; if the line pixel width in the design sketch is less than the adjusted line pixel width, dilate the corresponding line through the dilation operation in morphological operations until the line pixel width in the design sketch is equal to the adjusted line pixel width; otherwise, do not perform line pixel width adjustment. The specific process for element center spacing adjustment is as follows: Input the conflict credibility evaluation result, element center spacing standard deviation of the handicraft body, number of elements contained in the handicraft body, and maximum perimeter of the handicraft body into the element spacing mapping set to obtain the element center spacing, and adjust the positions of the elements in the handicraft body according to the element center spacing. The element spacing mapping set represents the mapping relationship between the conflict credibility evaluation result, element center spacing standard deviation of the handicraft body, number of elements contained in the handicraft body, maximum perimeter of the handicraft body, and element center spacing.
5. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, wherein: It is determined whether to adjust the element position based on the midline-element center distance of each element in the user requirement diagram and the midline-element center distance of the corresponding element in the design sketch. The specific process is as follows: A1. Record the abscissa corresponding to the center of each element as the midline-element center distance of the corresponding element; A2. If the midline-element center distance of the user requirement diagram is less than the midline-element center distance of the design sketch, execute A3. If the midline-element center distance of the user requirement diagram is greater than the midline-element center distance of the design sketch, execute A4. Otherwise, do not adjust the element position; A3. If the midline-element center distance comparison coefficients of any two elements in the user requirement diagram and the design sketch are equal, it means that the user requirement diagram and the design sketch are in a proportional magnification relationship and no adjustment is made. Otherwise, it is determined whether to adjust the element position based on the element-boundary distance of the corresponding element and the moving distance of the corresponding element. The midline-element center distance comparison coefficient is obtained through the comparison process of the midline-element center distance of each element in the user requirement diagram and the midline-element center distance of the corresponding element in the design sketch; A4. If the midline-element center distance comparison coefficients of any two elements in the user requirement diagram and the design sketch are equal, it means that the user requirement diagram and the design sketch are in a proportional reduction relationship and no adjustment is made. Otherwise, translate the corresponding element in the user requirement diagram until the midline-element center distance of the user requirement diagram is equal to the midline-element center distance of the design sketch.
6. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 5, wherein: It is determined whether to adjust the element position based on the element-boundary distance of the corresponding element and the moving distance of the corresponding element. The specific process is as follows: Judge whether the element-boundary distance of the corresponding element is less than the moving distance of the corresponding element. The element-boundary distance represents the minimum distance from the element to the user requirement diagram; If the element-boundary distance of the corresponding element is not less than the moving distance of the corresponding element, translate the corresponding element in the user requirement diagram until the midline-element center distance of the corresponding element in the user requirement diagram is equal to the midline-element center distance of the corresponding element in the design sketch; If the element-boundary distance of the corresponding element is less than the moving distance of the corresponding element, adjust the element size. If the element-boundary distance after the element size adjustment of the corresponding element is not less than the moving distance after the element size adjustment of the corresponding element, translate the corresponding element in the user requirement diagram until the midline-element center distance after the element size adjustment of the corresponding element in the user requirement diagram is equal to the midline-element center distance after the element size adjustment of the corresponding element in the design sketch. Otherwise, give feedback.
7. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 6, characterized in that: It is determined whether to adjust the element size based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch. The specific process is as follows: Judge according to the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch; If the pixel area of each element in the user requirement diagram is smaller than the pixel area of the corresponding element in the design sketch, the corresponding element in the user requirement diagram is enlarged according to the size adjustment ratio, and the size adjustment ratio is obtained by comparing the deviation between the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch; If the pixel area of each element in the user requirement diagram is larger than the pixel area of the corresponding element in the design sketch, the corresponding element in the user requirement diagram is reduced according to the size adjustment ratio; otherwise, no adjustment is made.
8. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, wherein: The specific method for obtaining the coordination evaluation function of arts and crafts design is as follows: After deviation processing of the sum of the preset pixel areas of all adjacent two elements and the actual pixel areas of the corresponding two elements, coupling processing is performed to obtain the total overlapping area; The deviation comparison coefficient of the total overlapping area is obtained by comparing the deviation between the total overlapping area and the preset total overlapping area obtained from the preset database; After deviation comparison processing of the size ratio coordination coefficient and the preset size ratio coordination coefficient obtained from the preset database, absolute value processing is performed to obtain the size ratio coordination comparison coefficient; The image detail clarity coefficient is obtained by performing inverse deviation comparison processing on the image detail clarity and the preset image detail clarity obtained from the preset database; The weights of the total overlapping area comparison coefficient, the size ratio coordination comparison coefficient, and the image detail clarity coefficient are assigned by introducing the weight of the coordination evaluation result of arts and crafts design, and then coupling processing is performed to obtain the coordination evaluation result of arts and crafts design.
9. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, characterized in that: Based on the current coordination evaluation result of arts and crafts design and the coordination evaluation result of the previous iteration, it is determined whether to accept the adjustment plan of the current iteration. The specific process is as follows: The total overlapping area and the total number of elements of the handicraft are input into the annealing temperature mapping set to obtain the initial annealing temperature, and the annealing temperature mapping set represents the mapping relationship between the total overlapping area and the total number of elements of the handicraft and the initial annealing temperature; The initial coordination evaluation parameters of arts and crafts design are input into the specific constraint expression of the coordination evaluation result of arts and crafts design to obtain the initial coordination evaluation result of arts and crafts design; After adjusting any element in the handicraft, the coordination evaluation parameters of the first iteration of arts and crafts design are obtained, and the coordination evaluation parameters of the first iteration of arts and crafts design are input into the specific constraint expression of the coordination evaluation result of arts and crafts design to obtain the coordination evaluation result of the first iteration of arts and crafts design; If the deviation coefficient of the coordination evaluation result of arts and crafts design is greater than 0, iterative optimization is directly performed based on the adjustment plan of the first iteration until the iteration termination condition is met; otherwise, it is determined whether to perform iterative optimization based on the adjustment plan of the first iteration according to the conflict optimization coefficient. The deviation coefficient of the coordination evaluation result of arts and crafts design is obtained by performing deviation processing on the coordination evaluation result of the first iteration of arts and crafts design and the initial coordination evaluation result of arts and crafts design; The conflict optimization coefficient is obtained by performing conflict optimization processing after comparing the deviation coefficient of the coordination evaluation result of arts and crafts design and the current annealing temperature; Determine whether to perform iterative optimization based on the adjustment scheme of the first iteration according to the conflict optimization coefficient. If not, perform iterative optimization until the iterative termination condition is met based on the initial coordinated evaluation parameters of the arts and crafts design, until the iterative termination condition is met; The specific process for meeting the iterative termination condition is as follows: Judge whether the annealing temperature is greater than the preset minimum annealing temperature. If the annealing temperature is not greater than the preset minimum annealing temperature, terminate the iteration; otherwise, judge whether the number of iterations is equal to the preset maximum number of iterations; If the number of iterations is equal to the preset maximum number of iterations, terminate the iteration; otherwise, judge whether the deviation coefficient of the coordinated evaluation result of the arts and crafts design is less than the preset deviation threshold of the coordinated evaluation result of the arts and crafts design. The preset maximum number of iterations is obtained by inputting the calculation time of the initial coordinated evaluation result of the arts and crafts design, the CPU benchmark speed, and the total memory capacity into the iteration number mapping set. The iteration number mapping set represents the mapping relationship between the calculation time of the initial coordinated evaluation result of the arts and crafts design, the CPU benchmark speed, the total memory capacity, and the preset maximum number of iterations; If the deviation coefficient of the coordinated evaluation result of the arts and crafts design is less than the preset deviation threshold of the coordinated evaluation result of the arts and crafts design, terminate the iteration; otherwise, continue the iteration.
10. An intelligent conflict detection and collaborative optimization method for arts and crafts design, characterized in that It includes the following steps: S1, Number the elements in the design sketch, establish a coordinate system according to the design sketch, and perform conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch to judge whether to optimize the design sketch. The conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; S2, Register the design sketch and the user requirement diagram, number the user requirement diagram according to the numbers in the design sketch, establish a coordinate system according to the user requirement diagram, and judge whether to adjust the element positions based on the midline-element center distance of each element in the user requirement diagram and the midline-element center distance of the corresponding element in the design sketch. The element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; S3, Judge whether to adjust the element sizes based on the pixel area of each element in the user requirement diagram and the pixel area of the corresponding element in the design sketch. The element size adjustment is used to adjust the size conflict of the corresponding elements in the design sketch and the user requirement diagram; S4, Perform parallel processing on the element optimization of the user requirement diagram, and input the iterative coordinated evaluation parameters of the arts and crafts design into the coordinated evaluation function of the arts and crafts design after each iteration. Judge whether to accept the adjustment scheme of the current iteration based on the current coordinated evaluation result of the arts and crafts design and the coordinated evaluation result of the previous iteration until the iterative termination condition is met.
Citation Information
Patent Citations
Automatic design optimization method of arts and crafts based on intelligent data
CN119002867B
Automatic brand plane originality generation method and system based on AIGC
CN119203277A
Art and craft automatic design optimization method based on intelligent data
CN119002867A
System and method for handling assets for fabrication
US20210200913A1
Method and system of assembly design
US9785727B1