Intelligent conflict detection and collaborative optimization system and method for art and craft design
By evaluating the credibility of design sketches and adjusting element positions and sizes, the problem of not considering sketch differences during conflict detection and optimization in arts and crafts design is solved, and efficient and accurate intelligent conflict detection and collaborative optimization are achieved.
Patent Information
- Application Number
- CN202510507124.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-04-21
AI Technical Summary
The existing technology fails to effectively identify and locate the differences in design sketches in arts and crafts design, resulting in reduced accuracy of conflict detection, possible conflicts or inconsistencies in optimization strategies, and inability to be effectively implemented.
By introducing the conflict credibility assessment module, position judgment module and iterative optimization module, the credibility of the design sketch is evaluated, the element position and size are adjusted, and collaborative optimization is performed through the iterative optimization module until the iteration termination condition is met.
It improves the accuracy and efficiency of intelligent conflict detection and collaborative optimization in arts and crafts design, ensures that the design sketch is consistent with user needs, avoids repeated modifications, and saves time and costs.
Smart Images

Figure CN120339049B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular 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, design complexity continues to increase, and the factors designers need to consider are becoming increasingly diverse. For example, coordination and collaboration across different disciplines and fields are crucial in areas such as product design, material selection, and process implementation. However, as design content continues to expand and evolve, potential conflicts within designs are becoming increasingly prominent. This can lead to designs that don't meet actual production requirements, unreasonable processes, and even impact the quality and production costs of the final product. Intelligent and automated approaches can identify potential conflicts early in the design process, provide real-time feedback on issues, and offer optimization solutions, thereby improving the efficiency and quality of arts and crafts design.
[0003] Existing technologies use algorithms and rules to analyze design data in real time to detect potential conflicts (such as shape, color, material matching problems, etc.). Based on the detection results, optimization algorithms (such as genetic algorithms, particle swarm optimization, etc.) are used to improve the design scheme to achieve balance and optimization among multiple design factors.
[0004] For example, the invention patent announcement with announcement number: CN119002867B discloses an automatic arts and crafts design optimization method based on intelligent data, including: 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 analysis on the user demand input sentences to obtain a creative description keyword cloud map; obtaining an arts and crafts database; performing an initial arts and crafts map design on the user demand input sentences based on the arts and crafts database to obtain an initial arts and crafts demand map; performing simulated replacement of the initial arts and crafts demand map according to the creative description keyword cloud map to obtain a first arts and crafts demand update map.
[0005] For example, the patent application with publication number CN119203277A discloses a method and system for automatically generating brand graphic creativity based on AIGC, including: step S1, inputting brand demand information into the AI model and outputting multiple creative content directions; step S2, generating a preliminary design sketch for each creative content direction through the AI model; step S3, after confirming the creative content direction and the corresponding preliminary design sketch, performing batch image generation and material expansion through the AI model; step S4, automatically scoring the batch-generated images and expanded materials to screen out high-quality creative images; step S5, after confirming the high-quality creative images, fine-tuning and optimizing the selected creative images to finally generate a graphic creative design drawing.
[0006] However, in the process of implementing the technical solutions of the embodiments of the present application, the present application discovered that the above technology has at least the following technical problems:
[0007] In the existing technology, since the design sketch may not be clear and standardized, it is difficult to identify and locate each element, which reduces the accuracy of conflict detection in arts and crafts design. When integrating optimization strategies, conflicts or inconsistencies may occur between different strategies, resulting in the inability to effectively implement the optimization strategy or new problems 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 solve the problem in the prior art of not considering the differences in design sketches during intelligent conflict detection and collaborative optimization of arts and crafts design by providing an intelligent conflict detection and collaborative optimization system and method for arts and crafts design, thereby improving 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, and 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, 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 align the design sketch with the user demand map, number the user demand map according to the number in the design sketch, and establish a coordinate system according to the user demand map, based on the midline-element center distance of each element in the user demand map and the corresponding element in the design sketch The midline-element center distance is used to determine whether to adjust the element position, 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 determine 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 process the element optimization of the user requirement diagram in parallel, and input the iterated arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function after each iteration, and determine 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 embodiment of the present application provides an intelligent conflict detection and collaborative optimization method for arts and crafts design, including: S1, numbering the elements in the design sketch, and establishing a coordinate system based on the design sketch, performing conflict credibility evaluation based on the conflict credibility evaluation parameters of the design sketch, and judging whether to optimize the design sketch, wherein the conflict credibility evaluation is used to evaluate the conflict situation of the design sketch in terms of image quality; S2, aligning the design sketch with the user demand map, numbering the user demand map accordingly according to the number in the design sketch, and establishing a coordinate system based on the user demand map, judging whether to optimize the element based on the midline-element center distance of each element in the user demand map and the midline-element center distance of the corresponding element in the design sketch Position adjustment, the element position adjustment is used to adjust the position conflict of 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 corresponding elements in the design sketch and the user requirement diagram; S4, parallelize the element optimization of the user requirement diagram, and after each iteration, input the iterated arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function, and determine 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.
[0011] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0012] 1. The design sketch is optimized through the conflict credibility evaluation parameters of the design sketch. Then, the element position and size are adjusted 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 determined based on the results of the two iterative arts and crafts design coordination evaluations, 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. This effectively solves the problem in the existing technology that the differences in design sketches are not considered during the intelligent conflict detection and collaborative optimization of arts and crafts design.
[0013] 2. The first sketch credibility coefficient is obtained by calculating the ratio of line break lengths, the standard deviation of line pixel width after de-unitization, and the standard deviation of the center spacing of elements in the main body of the craft. Then, the second sketch credibility coefficient is obtained according to the sketch resolution and the preset sketch resolution. Finally, the first sketch credibility coefficient and the second sketch credibility coefficient are compared to obtain the conflict credibility assessment result, thereby quantitatively evaluating the credibility of the design sketch and improving the efficiency of generating user demand diagrams.
[0014] 3. The sum of the preset pixel areas of all adjacent elements is processed to obtain the total overlapping area, and then the parameters of arts and crafts design coordination evaluation are processed to obtain the total overlapping area contrast coefficient, size ratio coordination contrast coefficient and image detail clarity coefficient. Finally, the arts and crafts design coordination evaluation result weight is introduced to process the total overlapping area contrast coefficient, size ratio coordination contrast coefficient and image detail clarity coefficient to obtain the arts and crafts design coordination evaluation result, thereby quantitatively evaluating the design quality of the user demand diagram and optimizing the design of the user demand diagram. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of the structure of an intelligent conflict detection and collaborative optimization system for arts and crafts design provided in an embodiment of the present application;
[0016] Figure 2 A flowchart of an intelligent conflict detection and collaborative optimization method for arts and crafts design provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The embodiments of the present application solve the problem in the prior art of not considering the differences in design sketches during intelligent conflict detection and collaborative optimization of arts and crafts design by providing an intelligent conflict detection and collaborative optimization system and method for arts and crafts design. It determines whether to optimize the design sketch based on the conflict credibility evaluation parameters of the design sketch, and then determines whether to adjust the element position and element size based on the midline-element center distance and pixel area of the corresponding elements in the user requirement diagram and the design sketch respectively. Finally, it determines whether to accept the adjustment plan of the current iteration based on the arts and crafts design coordination evaluation results of two adjacent iterations, thereby improving the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0018] The technical solution in the embodiments of the present application is to solve the problem that the differences in design sketches are not considered during the intelligent conflict detection and collaborative optimization of arts and crafts design. The overall idea is as follows:
[0019] The design sketch is optimized through the conflict credibility evaluation parameters of the design sketch, and then the element position and size are adjusted 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 of two adjacent iterations, which achieves 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 with reference to the accompanying drawings and specific implementation methods.
[0021] like Figure 1 As shown, it is a structural diagram of the 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; wherein the conflict credibility evaluation module is used to number the elements in the design sketch, and 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, 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 align the design sketch with the user demand map, number the user demand map according to the number in the design sketch, and establish a coordinate system according to the user demand map, based on the various elements in the user demand map The midline-element center distance of the element and the midline-element center distance of the corresponding element in the design sketch are used to 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; the size judgment module is used to determine 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 parallel process the element optimization of the user requirement diagram, and after each iteration, the iterated arts and crafts design coordination evaluation parameters are input into the arts and crafts design coordination evaluation function, and based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration, it is determined whether to accept the adjustment plan of the current iteration until the iteration termination condition is met.
[0022] In this embodiment, a coordinate system is established with the center axis of the craft in the design sketch and the user requirement diagram as the y-axis and the vertical center line from the top to the bottom of the craft as the x-axis.
[0023] In arts and crafts design, since the design sketch may not be clear and standardized, it is difficult to identify and locate each element, which leads to a decrease in the accuracy of conflict detection in arts and crafts design. This application quantitatively evaluates the credibility of the design sketch by introducing conflict credibility evaluation parameters and design conflict credibility evaluation methods, so that problems in the sketch can be discovered in time, such as unclear lines, blurred elements, etc., so that corresponding measures can be taken to improve them, thereby improving the image quality of the design sketch and providing a better foundation for subsequent design work, thereby avoiding frequent modifications and intelligent conflict detection errors caused by sketch problems in the subsequent design process, saving time and cost, and achieving improved accuracy of intelligent conflict detection and design efficiency in arts and crafts design.
[0024] Due to reasons such as drawing process or measurement errors, element positions may not match. Through precise image registration and position judgment methods, element positions can be automatically detected and adjusted to ensure that the positions of elements in the user requirement drawing are consistent with user requirements, thereby improving the accuracy of element positions in handicraft art design and solving the technical problem of element position mismatch. By comparing the pixel areas of elements in the design sketch and the user requirement drawing, and judging whether size adjustment is needed, the size of elements in the user requirement drawing can be ensured to be consistent with user requirements, thus avoiding design problems caused by inappropriate size.
[0025] Due to the conflict or incoordination between different optimization strategies, the optimization measures cannot be effectively implemented; this application shortens the collaborative optimization time in handicraft art design and improves the optimization efficiency of collaborative optimization in handicraft art design through the parallel processing of element optimization of the user demand graph and the adaptive setting of iteration termination conditions in the iterative optimization module, effectively solving the technical problem of the optimization process taking too long.
[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 point and end point of each element outline in the design sketch are the same. If they are the same, the line break length ratio is recorded as 0; otherwise, the expansion operation in the morphological operation is used to fill the broken part of the line in the element outline to obtain the complete line length, and the deviation comparison processing is performed based on the filled line length and the line length to obtain the line break length ratio, namely DUAN; determine whether the number of elements contained in the handicraft body is greater than 1. If the number of elements contained in the handicraft body is greater than 1, the second sketch fuzzy weight, the third sketch fuzzy weight and the fourth sketch fuzzy weight are introduced to the line break length ratio and the de-unitized The standard deviation of the line pixel width and the standard deviation of the center spacing of the elements in the main body of the handicraft are weighted and coupled to obtain the first sketch credibility coefficient, that is, M2*DUAN+M3*KDB+M4*ZXJ. Otherwise, the second sketch fuzzy weight and the third sketch fuzzy weight are introduced to weight the line break length ratio and the de-unitized line pixel width standard deviation and then coupled to obtain the first sketch credibility coefficient, that is, M2*DUAN+M3*KDB. The main body of the handicraft represents 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, the first sketch fuzzy weight is introduced for weighting to obtain the second sketch credibility coefficient, that is, A conflict credibility evaluation result is obtained by comparing the first sketch credibility coefficient and the second sketch credibility coefficient. The conflict credibility evaluation result is used to quantitatively evaluate the credibility of the design sketch.
[0027] Among them, the specific restriction expression of the conflict credibility evaluation result is:
[0028]
[0029] Where CM represents the conflict credibility evaluation result, CMX represents the credibility coefficient of the first sketch, FEN represents the sketch resolution, FEN0 represents the preset sketch resolution, and M1 represents the fuzzy weight of the first sketch.
[0030] Specifically, the specific restricted expression of the first sketch credibility coefficient is:
[0031]
[0032] Where DUAN represents the line break length ratio, KDB represents the standard deviation of line pixel width, ZXJ represents the standard deviation of element center interval distance, M2 represents the second sketch fuzzy weight, M3 represents the third sketch fuzzy weight, M4 represents the fourth sketch fuzzy weight, and zys represents the number of elements contained in the artifact body.
[0033] In this embodiment, an element represents a component of a handicraft in a design sketch and a user demand diagram, such as a handle of a purple clay teapot, a pattern, etc., which is set according to a preset person; an element outline represents a line formed by the edge of an element, which is used to define the boundary of the element; a main body of the handicraft 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 main body of the handicraft; edge pixel points of the element outline are determined by performing edge detection and contour extraction algorithms (such as Canny operator, Sobel operator, etc.) on the design sketch, and then the coordinates of the first and last edge pixel points are found as the starting point and end point coordinates; edge pixel points of all element contours are determined by performing edge detection and contour extraction algorithms (such as Canny operator, Sobel operator, etc.) on the design sketch, and the number of pixel points of the element contour is counted to obtain the original line length; after performing a morphological dilation operation, all elements are counted again along the contour edge. The number of pixels in the contour is the length of the complete line 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 is 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; the line pixel width standard deviation is used to describe the degree of change in the line width; when there are no multiple elements in the main body of the handicraft, there is no need to calculate the element center spacing distance; the element center position is determined by calculating the geometric center (such as the center of mass) of each element, and the element center spacing distance is obtained by measuring the distance between the center positions of two adjacent elements; the element center spacing distance standard deviation in the main body of the handicraft is used to describe the uniformity of distribution between elements; the sketch resolution is obtained by obtaining the image properties of the design sketch; the preset sketch resolution is set according to the preset personnel.
[0034] The conflict credibility assessment results in this algorithm involve processing multiple independent variables (sketch resolution, line break length ratio, line pixel width standard deviation, and element center spacing standard deviation), and there is a mutual influence relationship between these independent variables; when the sketch resolution is lower, the detail information in the design sketch may be lost, which may lead to incorrect recognition of the starting and end points of the element contours in the design sketch, and thus lead to an increase in the line break length ratio; the lower the sketch resolution, the line width may change relatively smoothly due to the limited number of pixels, resulting in a smaller line pixel width standard deviation; the lower the sketch resolution, the more likely it is to affect the calculation accuracy of the element center spacing standard deviation; the larger the line break length ratio, the more likely it is that the line pixel width may change, which may lead to an increase in the line pixel width standard deviation; the larger the line pixel width standard deviation, the more likely it is that the element center spacing distance will change, affecting the element center spacing standard deviation.
[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 indicates the influence of the sketch resolution on the conflict credibility assessment result. The second sketch fuzzy weight indicates the influence of the line break length ratio on the conflict credibility assessment result. The third sketch fuzzy weight indicates the influence of the line pixel width standard deviation on the conflict credibility assessment result. The fourth sketch fuzzy weight indicates the influence of the element center spacing distance standard deviation on the conflict credibility assessment result. The sum of the four is 1. For example, the sketch resolution and the preset first sketch fuzzy weight form a mapping set, which converts the real-time sketch The resolution input mapping set obtains the corresponding first sketch fuzzy weight; the line break length ratio and the preset second sketch fuzzy weight form a mapping set, and the real-time line break length ratio is input into the mapping set to obtain the corresponding second sketch fuzzy weight; the line pixel width standard deviation and the preset third sketch fuzzy weight form a mapping set, and the real-time line pixel width standard deviation is input into the mapping set to obtain the corresponding third sketch fuzzy weight; the element center spacing distance standard deviation and the preset fourth sketch fuzzy weight form a mapping set, and the real-time element center spacing distance standard deviation 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, thus providing a basis for the subsequent optimization of the design sketch, thereby avoiding repeated modifications due to errors in the recognition of the design sketch, and improving the efficiency of user demand diagram generation; by selectively calculating the distance between element centers, computing resources are saved in the intelligent conflict detection system for arts and crafts design.
[0037] Furthermore, the specific process of determining whether to optimize the design sketch is as follows: B1, determining 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, then performing B2 after sharpening the design sketch, otherwise the design sketch will not be optimized; B2, determining whether the conflict credibility evaluation result obtained after sharpening the design sketch is less than the preset conflict credibility threshold obtained from the preset database. If the conflict credibility evaluation result obtained after sharpening the design sketch is less than the preset conflict credibility threshold obtained from the preset database, then performing B3 after adjusting the line pixel width, otherwise the design sketch optimization will be terminated; B3, if the conflict credibility evaluation result obtained after adjusting the line pixel width is less than the preset conflict credibility threshold obtained from the preset database, then performing B4 after adjusting the line pixel width, otherwise the design sketch optimization will be terminated; If the credibility evaluation result is less than the preset conflict credibility threshold obtained from the preset database, execute B4, otherwise terminate the design sketch optimization; B4, if the number of elements contained in the handicraft body is greater than 1, adjust the element center spacing distance and then execute B5, otherwise prompt the user to re-acquire the design sketch; B5, determine whether the conflict credibility evaluation result obtained after the element center spacing distance is adjusted is less than the preset conflict credibility threshold obtained from the preset database. If the conflict credibility evaluation result obtained after the element center spacing distance is adjusted is less than the preset conflict credibility threshold obtained from the preset database, prompt the user to re-acquire the design sketch, otherwise terminate 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 main body of the artifact, there is no need to adjust the element center spacing distance.
[0039] By automatically judging the credibility of the design sketch and gradually performing optimization operations such as sharpening and adjusting the line pixel width, the clarity of the sketch and the uniformity of the lines are achieved. Since there are multiple elements in the main body of the handicraft, there may be a problem of multiple elements overlapping. Therefore, by adjusting the distance between the center of the elements, the rationality of the element layout is improved, the design sketch is identified more accurately, and a high-quality foundation is provided for subsequent handicraft design, thereby achieving efficiency and accuracy in the design sketch optimization process.
[0040] Furthermore, the specific process of design sketch sharpening is as follows: denoising the design sketch; inputting the conflict credibility assessment result and the sketch resolution into the sharpening mapping set to obtain the sketch sharpness, and sharpening the design sketch according to the sketch sharpness. The sharpening mapping set is a set obtained from a preset database that represents the mapping relationship between the conflict credibility assessment result, the sketch resolution and the sketch sharpness.
[0041] Specifically, the specific process of line pixel width adjustment is as follows: input the conflict credibility assessment 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 is a set obtained from a preset database that represents the mapping relationship between the conflict credibility assessment result, line pixel width standard deviation, line pixel width average value and line pixel width; judge according to 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, the corresponding line will be eroded through the morphological operation 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, the corresponding line will be expanded through the morphological operation until the line pixel width in the design sketch is equal to the adjusted line pixel width. Otherwise, the line pixel width will not be adjusted.
[0042] Specifically, the specific process of adjusting the element center spacing distance is as follows: the conflict credibility assessment result, the standard deviation of the element center spacing distance of the craft body, the number of elements contained in the craft body, and the maximum perimeter of the craft body are input into the element spacing mapping set to obtain the element center spacing distance, and the element position in the craft body is adjusted according to the element center spacing distance. The element spacing mapping set is a set obtained from a preset database, which represents the mapping relationship between the conflict credibility assessment result, the standard deviation of the element center spacing distance of the craft body, the number of elements contained in the craft body, the maximum perimeter of the craft body and the element center spacing distance.
[0043] In this embodiment, noise reduction is performed using filtering methods in image processing, such as Gaussian filtering and mean filtering; the design sketch is sharpened using sharpening algorithms, such as convolution sharpening and Laplace sharpening; the erosion operation reduces the line pixel width by removing some pixels at the edge of the line; the dilation operation increases the line pixel width by converting some background pixels at the edge of the line into line pixels; the position of the elements is moved so that the distance between the centers of two adjacent elements reaches the element center spacing distance; the average line pixel width is obtained by averaging the line pixel widths of all lines; the number of elements contained in the handicraft body is obtained by image recognition and counting; and 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 sketch, the problems of unclear lines and blurred edges are effectively solved, and the reliability of the design sketch is improved; by noise reduction processing and adjustment of the sharpening degree, the relationship between the sharpening effect and the noise influence is balanced, and the quality of the sharpened design sketch is improved; when the handicraft main body contains multiple elements, by adjusting the center interval distance between the elements, the layout of the elements is more reasonable and beautiful, and the problems of visual congestion or looseness caused by unreasonable spacing between the elements are solved.
[0045] Further, whether to perform element position adjustment is judged based on the centerline-element center distance of each element in the user demand diagram and the centerline-element center distance of the corresponding element in the design sketch, and the specific process is as follows: A1, the horizontal coordinate corresponding to each element center is marked as the centerline-element center distance of the corresponding element; A2, whether the centerline-element center distance of the user demand diagram is equal to the centerline-element center distance of the design sketch is judged, if the centerline-element center distance of the user demand diagram is less than the centerline-element center distance of the design sketch, A3 is executed, if the centerline-element center distance of the user demand diagram is greater than the centerline-element center distance of the design sketch, A4 is executed, otherwise no element position adjustment is performed; A3, whether the centerline-element center distance comparison coefficients of any two elements are equal is judged, if the centerline-element center distance comparison coefficients of any two elements in the user demand diagram and the design sketch are equal, it indicates that the user demand diagram and the design sketch are in proportional enlargement relationship, no adjustment is performed, otherwise whether to perform element position adjustment is judged based on the element-boundary distance of the corresponding element and the moving distance of the corresponding element, the centerline-element center distance comparison coefficient is obtained by comparing the centerline-element center distance of each element in the user demand diagram and the centerline-element center distance of the corresponding element in the design sketch; A4, whether the centerline-element center distance comparison coefficients of any two elements are equal is judged, if the centerline-element center distance comparison coefficients of any two elements in the user demand diagram and the design sketch are equal, it indicates that the user demand diagram and the design sketch are in proportional reduction relationship, no adjustment is performed, otherwise the corresponding element in the user demand diagram is translated until the centerline-element center distance of the user demand diagram and the centerline-element center distance of the design sketch are equal.
[0046] Specifically, whether to adjust the element position is determined 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, then 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, then adjust the element size. If the element-boundary distance of the corresponding element after element size adjustment is not less than the moving distance of the corresponding element after element size adjustment, then translate the corresponding element in the user requirement diagram until the midline-element center distance of the corresponding element in the user requirement diagram after element size adjustment is equal to the midline-element center distance of the corresponding element in the design sketch after element size adjustment, otherwise feedback is given.
[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 midline-element center distance of the user requirement diagram and the midline-element center distance of the design sketch.
[0048] By accurately comparing and adjusting the positional relationship between elements in the user demand diagram and the design sketch, it is possible to ensure that the handicraft art design is more in line with user needs, improve the quality and accuracy of the handicraft art design, and improve user satisfaction; when the user demand diagram and the design sketch are in a proportional scaling relationship, the element position is adjusted by adjusting the element size, thereby saving computing resources and improving the efficiency of the collaborative optimization system in handicraft art design.
[0049] By judging the element-boundary distance and the moving distance, it is ensured that the elements are adjusted within a reasonable area to avoid visual disharmony or operational inconvenience; when the element-boundary distance is smaller than the moving distance, it may be because the handicraft in the user demand drawing is proportionally enlarged to the design sketch. 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 elements, the collaborative optimization of position conflict and size conflict in arts and crafts design is achieved.
[0050] Furthermore, 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, it is determined whether to adjust the element size. The specific process is as follows: judgment is made 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; 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 performing deviation comparison processing on 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.
[0051] In this embodiment, the pixel area is obtained by image processing software; the specific calculation formula for the size adjustment ratio is: Among them, XSM represents the pixel area of the corresponding element in the design sketch, XSM ′ Represents the pixel area of the corresponding element in the user requirement map.
[0052] By automatically adjusting the element sizes in the design sketch, the design accuracy and overall coordination of the user requirement drawing are guaranteed, the working efficiency and accuracy of the collaborative optimization system in handicraft art design are improved, and the user requirement drawing is ensured to better meet user expectations.
[0053] Furthermore, the specific method for obtaining the arts and crafts design coordination evaluation function is as follows: after performing deviation processing on the sum of the preset pixel areas of all two adjacent elements and the actual pixel areas of the corresponding two elements, a coupling process is performed to obtain the sum of the overlapping areas; the deviation comparison processing is performed on the sum of the overlapping areas and the preset sum of the overlapping areas obtained from the preset database to obtain the sum of the overlapping areas comparison coefficient, that is, The size ratio coordination coefficient is obtained by performing deviation comparison processing on the size ratio coordination coefficient and the preset size ratio coordination coefficient obtained from the preset database, and then performing absolute processing to obtain the size ratio coordination comparison coefficient, that is, The image detail clarity coefficient is obtained by performing inverse deviation comparison processing based on the image detail clarity and the preset image detail clarity obtained from the preset database, that is, The weight of arts and crafts design coordination evaluation result is introduced to empower the total overlapping area contrast coefficient, size ratio coordination contrast coefficient and image detail clarity coefficient, and then couple them to obtain the arts and crafts design coordination evaluation result.
[0054] The specific restriction expression of the coordinated evaluation results of arts and crafts design is:
[0055]
[0056] Where m is the number of iterations, m=1,2,…M-1, M represents the total number of iterations, f(SY m ) represents the result of the arts and crafts design coordination evaluation of the mth iteration, represents the sum of the overlapping areas of the artifact elements in the user requirements graph of the mth iteration, It represents the size ratio coordination coefficient of the crafts in the user demand graph of the mth iteration, represents the image detail clarity of the artifact in the user requirement graph of the mth iteration, SY 1.0 Indicates the sum of preset overlapping areas, SY 2.0 Indicates the preset size ratio coordination coefficient, SY 3.0 Indicates the preset image detail clarity. represents the weight of the first arts and crafts design coordination evaluation result of the mth iteration, represents the weight of the second arts and crafts design coordination evaluation result of the mth iteration, Represents the weight of the third arts and crafts design coordination evaluation result of the mth iteration.
[0057] In this embodiment, the preset sum of overlapping areas is set according to the preset personnel and is set as close to 0 as possible, 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 map; the size ratio coordination coefficient is obtained by performing a ratio operation on the height and width of the craft in the user requirement map; the specific formula for the sum of overlapping areas is: in, represents the sum of overlapping areas at the mth iteration, represents the pixel area of the ath element at the mth iteration, Represents the preset pixel area of the a-th element in the m-th iteration; the pixel area here represents the pixel area of the corresponding element obtained from the user requirement map after the element position and size are adjusted.
[0058] The coordination evaluation parameters of arts and crafts design can be selectively changed according to the type of arts and crafts. For example, in the art design of purple clay teapots, the clarity of image details can be changed to the angle of the spout; in the art design of jadeware, the clarity of image details can be changed to the smoothness of lines, etc. The smoothness of lines is represented by the standard deviation of the radius of curvature of the outer contour of the jadeware.
[0059] The results of arts and crafts design coordination evaluation in this algorithm involve processing multiple independent variables (size ratio coordination coefficient, total overlapping area, and image detail clarity), and there is a mutual influence relationship between these independent variables; if the size ratio coordination coefficient is closer to the preset value, the position between the elements is usually more reasonable and the total overlapping area is smaller; the larger the total overlapping area, the more blurred the image details, thereby reducing the clarity of the image details; the design with the size ratio coordination coefficient closer to the preset value can usually make each element in the appropriate position and size, thereby avoiding overlap or compression, and ensuring greater clarity of image details.
[0060] The first arts and crafts design coordination evaluation result weight, the second arts and crafts design coordination evaluation result weight, the third arts and crafts design coordination evaluation result weight and the fourth arts and crafts design coordination evaluation result weight are obtained from a preset database. The first arts and crafts design coordination evaluation result weight represents the degree of influence of the total overlapping area on the arts and crafts design coordination evaluation result. The second arts and crafts design coordination evaluation result weight represents the degree of influence of the size ratio coordination coefficient on the arts and crafts design coordination evaluation result. The third arts and crafts design coordination evaluation result weight represents the degree of influence of the image detail clarity on the arts and crafts design coordination evaluation result. The sum of the three is 1. For example, the sum of the overlapping area and the preset first arts and crafts design coordination evaluation result is 1. The evaluation result weights are adjusted to form a first coordination mapping set, and the real-time sum of overlapping areas is input into the first coordination mapping set to obtain the corresponding first arts and crafts design coordination evaluation result weight; the size ratio coordination coefficient and the preset second arts and crafts design coordination evaluation result weight are formed into a second coordination mapping set, and the real-time size ratio coordination coefficient is input into the second coordination mapping set to obtain the corresponding second arts and crafts design coordination evaluation result weight; the image detail clarity and the preset third arts and crafts design coordination evaluation result weight are formed into a third coordination mapping set, and the real-time image detail clarity is input into the third coordination mapping set to obtain the corresponding third arts and crafts design coordination evaluation result weight; the mapping relationship therein can be a one-to-one correspondence or a many-to-one relationship.
[0061] After adjusting the position and size of the elements in the user requirement diagram, the rough adjustment of the elements in the process design diagram is achieved, but the relationship between the elements may not be perfectly matched; this application quantitatively evaluates the design quality of the user requirement diagram to avoid the influence of a single factor on the evaluation results, and thus performs iterative optimization through a simulated annealing algorithm to achieve the effect of optimizing the design of the user requirement diagram.
[0062] Furthermore, based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration, it is judged whether to accept the adjustment plan of the current iteration. The specific process is as follows: the sum of the overlapping areas of the handicrafts and the total number of elements 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 sum of the overlapping areas of the handicrafts, the total number of elements and the initial annealing temperature; the initial arts and crafts design coordination evaluation parameters are input into the specific restriction expression of the arts and crafts design coordination evaluation result to obtain the initial arts and crafts design coordination evaluation result; any element in the handicraft is adjusted to obtain the arts and crafts design coordination evaluation parameters of the first iteration, and the arts and crafts design coordination evaluation parameters of the first iteration are input into the specific restriction expression of the arts and crafts design coordination evaluation result to obtain the arts and crafts design coordination evaluation result of the first iteration; judge the arts and crafts design coordination evaluation result. Whether the deviation coefficient of the art design coordination evaluation result is greater than 0. If the deviation coefficient of the arts and crafts design coordination evaluation result is greater than 0, iterative optimization is performed directly based on the adjustment plan of the first iteration until the iteration termination condition is met. Otherwise, it is determined whether iterative optimization is performed based on the adjustment plan of the first iteration according to the conflict optimization coefficient. The deviation coefficient of the arts and crafts design coordination evaluation result is obtained by performing deviation processing on the arts and crafts design coordination evaluation result of the first iteration and the initial arts and crafts design coordination evaluation result; the conflict optimization coefficient is obtained by performing conflict optimization processing after comparing the deviation coefficient of the arts and crafts design coordination evaluation result and the current annealing temperature; it is determined whether iterative optimization is performed 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 arts and crafts design coordination evaluation parameters.
[0063] Specifically, the specific process of judging whether the iteration termination conditions are met 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 arts and crafts design coordination evaluation result is less than the preset arts and crafts design coordination evaluation result deviation threshold. The preset maximum number of iterations is obtained by inputting the iteration number mapping set of the calculation time, CPU benchmark speed, and total memory capacity of the initial arts and crafts design coordination evaluation result. The iteration number mapping set is a set of mapping relationships between the calculation time, CPU benchmark speed, and total memory capacity of the initial arts and crafts design coordination evaluation result and the preset maximum number of iterations obtained from the preset database; if the deviation coefficient of the arts and crafts design coordination evaluation result is less than the preset arts and crafts design coordination evaluation result deviation threshold, terminate the iteration; otherwise, continue the iteration.
[0064] In this embodiment, the specific formula of the deviation coefficient of the arts and crafts design coordination evaluation result is g(f(SYm+1 ))=f(SY m+1 )-f(SY m ), where g(f(SY m+1 )) represents the deviation coefficient of the industrial and artistic design coordination evaluation result of the m+1th iteration, f(SY m+1 ) represents the coordination evaluation result of the arts and crafts design of the current iteration (m+1), f(SY m ) represents the result of the coordination evaluation of the arts and crafts design at the mth iteration; according to the conflict optimization coefficient (i.e. Among them, g(f(SY m+1 )) represents the deviation coefficient of the coordinated evaluation results of arts and crafts design, t new Indicates the annealing temperature of the current iteration) to determine whether to perform iterative optimization based on the adjustment plan of the first iteration: generate a random number between 0 and 1. If the random number is not greater than the conflict optimization coefficient, the new solution is accepted; the temperature update adapts to the cooling function (i.e., t new =t old α , where t new Indicates the annealing temperature of the current iteration, t old represents the annealing temperature of the previous iteration, α represents the cooling coefficient), and an exponential decay form is usually used. The annealing temperature decreases with the increase of the number of iterations. The cooling coefficient is set according to the above personnel, 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 of the initial annealing temperature (such as 0.01); the preset arts and crafts design coordination evaluation result deviation threshold can be set according to the size of the arts and crafts design coordination evaluation result, for example, it is set according to 0.01 times the current arts and crafts design coordination evaluation result; the calculation time of the initial arts and crafts design coordination evaluation result is represented by the time difference from the recorded parameter input 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] Whether to accept the adjustment plan is determined according to the annealing temperature and conflict optimization coefficient, so as to avoid the simulated annealing algorithm falling into the local optimal solution and ensure that a sufficient search can be carried out in the entire solution space; by gradually reducing the annealing temperature, the search gradually shifts from extensive exploration to fine optimization, ensuring that it eventually converges to a suitable solution; the search process is dynamically controlled by 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 and the inability to obtain the optimal adjustment plan; by adjusting the annealing temperature, fitness, and number of iterations parameters, adaptive optimization is performed according to the complexity of the handicraft art design and the actual situation, so as to achieve improved collaborative optimization effects.
[0066] like Figure 2 As shown, it is a flow chart of the 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: numbering the elements in the design sketch, and establishing a coordinate system according to the design sketch, performing conflict credibility evaluation according to the conflict credibility evaluation parameters of the design sketch, and judging 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: aligning the design sketch and the user requirement map, numbering the user requirement map according to the number in the design sketch, and establishing a coordinate system according to the user requirement map, based on the midline-element center distance of each element in the user requirement map and the distance between the center line and the center of the element in the design sketch The midline-element center distance of the corresponding element is used to 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, size judgment: 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, it is determined 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, iterative optimization: the element optimization of the user requirement diagram is processed in parallel, and after each iteration, the iterated arts and crafts design coordination evaluation parameters are input into the arts and crafts design coordination evaluation function. Based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration, it is determined whether to accept the adjustment plan of the current iteration until the iteration termination condition is met.
[0067] In this embodiment, parallel processing means that in the element optimization process of the user demand graph, parallel processing is used to process multiple element optimization tasks; all the above comparison processing represents the ratio of two data, all deviation processing represents the difference between two data, and all deviation comparison processing represents 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, matching user demand input statements with design resources in the database through relationship mapping to generate arts and crafts relationship mapping data; classifying the arts and crafts relationship mapping data to obtain arts and crafts relationship mapping classification data; dividing the arts and crafts relationship mapping classification data into a model training set and a model test set; training the model training set through a random forest algorithm to generate an arts and crafts training model; testing the training model with a model test set to obtain an arts and crafts decentralized model; importing user demand input statements into the arts and crafts decentralized model, performing initial modeling, and obtaining an initial arts and crafts demand graph; 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, and adjectives, and generating corresponding part-of-speech data, specifically using an NLP library (such as the Natural Language Toolkit (NLP)). Based on the part-of-speech data, the user-entered text is segmented into sentences according to grammatical rules to extract complete sentences. Specifically, the sentence segmentation function in the NLP library can be used; semantic analysis is performed on the segmented sentences to extract key descriptive words and phrases, and a keyword cloud map is generated to highlight the core creative elements in the user needs. Specifically, the Term Frequency-Inverse Document Frequency (TF-IDF) algorithm or other keyword extraction methods are used. Tools such as the WordCloud library can be used to generate keyword cloud maps; based on the generated creative description keyword cloud map, the key elements and creative descriptions in the user needs are identified; the creative description keyword cloud map is used to perform association analysis on the various parts in the initial arts and crafts demand map to generate arts and crafts part association data; based on the arts and crafts part association data, the various parts are edited and displayed through the creative description keyword cloud map to obtain arts and crafts design part editing and display data; the arts and crafts design part editing and display data is used to simulate the replacement of the initial arts and crafts demand map to generate a user demand map.
[0069] Through the above steps, the user requirement diagram and the design sketch are accurately connected, ensuring the correct position and size of elements. Through the conflict assessment and iterative optimization process, the design accuracy and efficiency of the user requirement diagram are improved, while the coordination and aesthetic consistency of the final user requirement diagram are guaranteed, thereby improving the design quality of the user requirement diagram and further improving the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design.
[0070] To sum up, the embodiment of the present application optimizes the design sketch through the conflict credibility evaluation parameters of the design sketch, and then adjusts the element position and size based on the midline-element center distance and pixel area of the corresponding elements in the user demand diagram and the design sketch, and finally judges the adjustment plan based on the two iterative arts and crafts design coordination evaluation results, thereby improving the arts and crafts design accuracy, and further achieving the improvement of the accuracy of intelligent conflict detection and collaborative optimization in arts and crafts design, effectively solving the problem of not considering the differences in design sketches in the process of intelligent conflict detection and collaborative optimization of arts and crafts design in the existing technology.
[0071] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0072] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0073] These computer program instructions may 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 produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 the steps of the functions specified in the one or more blocks.
[0075] While the preferred embodiments of the application have been described, additional variations and modifications can be made to the preferred embodiments by those of skill in the art once they have the benefit of the present disclosure. Therefore, the appended claims are intended to encompass within their scope all possible variations and modifications of the preferred embodiments. 1
[0076] It is apparent that those skilled in the art can make modifications and variations to the application without departing from the spirit and scope of the application. Accordingly, it is intended to include all such modifications and variations in the scope of the claims. It is therefore intended that the application be interpreted as including all such modifications and variations as fall within the scope of the claims and their equivalents.
Claims
1. Intelligent conflict detection and collaborative optimization system for arts and crafts design, characterized by: include: Conflict credibility assessment module, position judgment module, size judgment module and iterative optimization module; The conflict credibility assessment module is used to number the elements in the design sketch, establish a coordinate system based on the design sketch, perform conflict credibility assessment based on the conflict credibility assessment parameters of the design sketch, and determine whether to optimize the design sketch. The conflict credibility assessment is used to evaluate the conflict situation of the design sketch in terms of image quality; The position judgment module is used to align the design sketch and the user requirement diagram, number the user requirement diagram according to the number in the design sketch, establish a coordinate system based on 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. 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 size of each element 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 element in the design sketch and the user requirement diagram; The iterative optimization module is used to perform parallel processing on the optimization of elements of the user requirement graph, and input the iterated arts and crafts design coordination evaluation parameters into the arts and crafts design coordination evaluation function after each iteration, and determine 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; The specific method for performing conflict credibility evaluation based on the conflict credibility evaluation parameters of the design sketch is as follows: Determine whether the starting point and end point of each element outline in the design sketch are the same. If they are, the line break length ratio is recorded as 0. Otherwise, the dilation operation in the morphological operation is used to fill the broken part of the element outline to obtain the complete line length. The deviation between the filled line length and the line length is compared to obtain the line break length ratio; If the number of elements contained in the main body of the handicraft is greater than 1, the second sketch fuzzy weight, the third sketch fuzzy weight, and the fourth sketch fuzzy weight are introduced to weight the line break length ratio, the standard deviation of the line pixel width after de-unitization, and the standard deviation of the center spacing distance of the elements in the main body of the handicraft, and then coupled to obtain the first sketch credibility coefficient; otherwise, the second sketch fuzzy weight and the third sketch fuzzy weight are introduced to weight the line break length ratio and the standard deviation of the line pixel width after de-unitization, and then coupled to obtain the first sketch credibility coefficient, and the handicraft main body represents the element with the largest pixel area among all handicraft elements; After comparing the sketch resolution with a preset sketch resolution obtained from a preset database, the first sketch fuzzy weight is introduced to perform weighting to obtain a second sketch credibility coefficient; A conflict credibility evaluation result is obtained by comparing the first sketch credibility coefficient and the second sketch credibility coefficient. The conflict credibility evaluation result is used to quantitatively evaluate the credibility of the design sketch.
2. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, characterized in that: The specific process of determining whether to perform design sketch optimization is as follows: B1: If the conflict credibility evaluation result is less than the preset conflict credibility threshold obtained from the preset database, the design sketch is sharpened and then B2 is executed; otherwise, the design sketch is not optimized; B2: If the conflict credibility evaluation result obtained after sharpening the design sketch is less than the preset conflict credibility threshold obtained from the preset database, then the line pixel width is adjusted and then B3 is executed; otherwise, the design sketch optimization is terminated; B3, if the conflict credibility evaluation result obtained after adjusting the line pixel width is less than the preset conflict credibility threshold obtained from the preset database, then execute B4, otherwise terminate the design sketch optimization; B4: If the number of elements contained in the main body of the handicraft is greater than 1, adjust the distance between the center of the elements and then execute B5; otherwise, the user is prompted to obtain a new design sketch; B5, if the conflict credibility evaluation result obtained after adjusting the element center interval distance is less than the preset conflict credibility threshold obtained from the preset database, the user is prompted to re-obtain the design sketch, otherwise the design sketch optimization is terminated; The design sketch optimization includes design sketch sharpening, line pixel width adjustment and element center spacing distance adjustment.
3. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 2, characterized in that: The specific process of design sketch sharpening is as follows: De-noise the design sketch; Inputting the conflict credibility evaluation result and the sketch resolution into a sharpening mapping set to obtain a sketch sharpness, and sharpening the design sketch according to the sketch sharpness, wherein the sharpening mapping set represents a mapping relationship between the conflict credibility evaluation result, the sketch resolution, and the sketch sharpness; The specific process of adjusting the line pixel width is as follows: Inputting the conflict credibility evaluation result, the line pixel width standard deviation, and the line pixel width average into a line pixel width mapping set to obtain an adjusted line pixel width, wherein the line pixel width mapping set represents a mapping relationship between the conflict credibility evaluation result, the line pixel width standard deviation, the line pixel width average, and the line pixel width; If the pixel width of the line in the design sketch is greater than the pixel width of the line after adjustment, the corresponding line will be eroded by the erosion operation in the morphological operation until the pixel width of the line in the design sketch is equal to the pixel width of the line after adjustment. If the pixel width of the line in the design sketch is less than the pixel width of the line after adjustment, the corresponding line will be expanded by the dilation operation in the morphological operation until the pixel width of the line in the design sketch is equal to the pixel width of the line after adjustment. Otherwise, the pixel width of the line will not be adjusted. The specific process of adjusting the element center spacing distance is as follows: The conflict credibility evaluation result, the standard deviation of the element center spacing distance of the craft body, the number of elements contained in the craft body, and the maximum perimeter of the craft body are input into an element spacing mapping set to obtain the element center spacing distance, and the element positions in the craft body are adjusted according to the element center spacing distance. The element spacing mapping set represents the mapping relationship between the conflict credibility evaluation result, the standard deviation of the element center spacing distance of the craft body, the number of elements contained in the craft body, the maximum perimeter of the craft body, and the element center spacing distance.
4. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, characterized in that: The specific process of determining whether to adjust the element position is as follows: A1, mark the horizontal coordinate corresponding to the center of each element as the distance between the midline of the corresponding element and the center of the element; A2: If the distance between the centerline of the user requirement diagram and the center of the element is smaller than that of the design sketch, execute A3; if the distance between the centerline of the user requirement diagram and the center of the element is larger than that of the design sketch, execute A4; otherwise, do not adjust the element position. A3: If the midline-to-element-center distance comparison coefficients of any two elements in the user requirement diagram and the design sketch are equal, the user requirement diagram and the design sketch are proportionally enlarged and no adjustment is performed. Otherwise, whether to adjust the element position is determined based on the element-to-edge distance and the movement distance of the corresponding element. The midline-to-element-center distance comparison coefficients are obtained by comparing the midline-to-element-center distances of each element in the user requirement diagram with the midline-to-element-center distances of the corresponding elements in the design sketch. A4. If the midline-to-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 proportionally reduced and no adjustment is made. Otherwise, the corresponding elements in the user requirement diagram are translated until the midline-to-element center distance in the user requirement diagram is equal to the midline-to-element center distance in the design sketch.
5. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 4, characterized in that: The specific process of determining whether to adjust the element position based on the element-boundary distance of the corresponding element and the movement distance of the corresponding element is as follows: Determine whether an element-boundary distance of a corresponding element is less than a movement distance of the corresponding element, wherein the element-boundary distance represents a minimum distance between the element and the user requirement graph; If the element-boundary distance of the corresponding element is not less than the moving distance of the corresponding element, the corresponding element in the user requirement diagram is translated 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, the element size is adjusted. If the element-boundary distance of the corresponding element after element size adjustment is not less than the moving distance of the corresponding element after element size adjustment, the corresponding element in the user requirement diagram is translated until the midline-element center distance of the corresponding element in the user requirement diagram after element size adjustment is equal to the midline-element center distance of the corresponding element in the design sketch after element size adjustment. Otherwise, feedback is given.
6. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 5, characterized in that: The specific process of determining 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 is as follows: Make judgment 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; 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 demand diagram is larger than the pixel area of the corresponding element in the design sketch, the corresponding element in the user demand diagram will be reduced according to the size adjustment ratio, otherwise no adjustment will be made.
7. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, characterized in that: The specific method for obtaining the arts and crafts design coordination evaluation function is as follows: After performing deviation processing on the sum of the preset pixel areas of all two adjacent elements and the actual pixel areas of the corresponding two elements, coupling processing is performed to obtain the sum of the overlapping areas; Performing a deviation comparison process on the sum of overlapping areas and a preset sum of overlapping areas obtained from a preset database to obtain a comparison coefficient of the sum of overlapping areas; The size ratio coordination coefficient is compared with the preset size ratio coordination coefficient obtained from the preset database and then absolutized to obtain the size ratio coordination comparison coefficient; Performing inverse deviation comparison processing on the image detail clarity and the preset image detail clarity obtained from the preset database to obtain an image detail clarity coefficient; The weight of arts and crafts design coordination evaluation result is introduced to empower the total overlapping area contrast coefficient, size ratio coordination contrast coefficient and image detail clarity coefficient, and then couple them to obtain the arts and crafts design coordination evaluation result.
8. The intelligent conflict detection and collaborative optimization system for arts and crafts design according to claim 1, characterized in that: The specific process of determining 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 is as follows: Inputting the total overlapping area of the artifacts and the total number of elements into an annealing temperature mapping set to obtain an initial annealing temperature, wherein the annealing temperature mapping set represents a mapping relationship between the total overlapping area of the artifacts, the total number of elements, and the initial annealing temperature; Inputting the initial arts and crafts design coordination evaluation parameter into the specific restriction expression of the arts and crafts design coordination evaluation result to obtain the initial arts and crafts design coordination evaluation result; Adjusting any element in the handicraft to obtain a first-iteration arts and crafts design coordination evaluation parameter, and inputting the first-iteration arts and crafts design coordination evaluation parameter into a specific restriction expression of the arts and crafts design coordination evaluation result to obtain a first-iteration arts and crafts design coordination evaluation result; If the deviation coefficient of the arts and crafts design coordination evaluation result 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 based on the conflict optimization coefficient. The deviation coefficient of the arts and crafts design coordination evaluation result is obtained by performing deviation processing on the arts and crafts design coordination evaluation result of the first iteration and the initial arts and crafts design coordination evaluation result; The conflict optimization coefficient is obtained by performing conflict optimization processing after comparing the deviation coefficient of the industrial and artistic design coordination evaluation result and the current annealing temperature; Determine whether to perform iterative optimization based on the adjustment plan of the first iteration according to the conflict optimization coefficient. If not, perform iterative optimization based on the adjustment plan of the first iteration until the iteration termination condition is met. Then, perform iterative optimization based on the initial arts and crafts design coordination evaluation parameters until the iteration termination condition is met. The specific process of meeting the iteration termination conditions is as follows: Determine whether the annealing temperature is greater than a preset minimum annealing temperature. If the annealing temperature is not greater than the preset minimum annealing temperature, terminate the iteration. Otherwise, determine whether the number of iterations is equal to the preset maximum number of iterations. If the number of iterations is equal to a preset maximum number of iterations, the iteration is terminated; otherwise, it is determined whether the deviation coefficient of the arts and crafts design coordination evaluation result is less than a preset arts and crafts design coordination evaluation result deviation threshold, wherein the preset maximum number of iterations is obtained by inputting an iteration number mapping set of the calculation time of the initial arts and crafts design coordination evaluation result, the CPU benchmark speed, and the total memory capacity, and the iteration number mapping set represents a mapping relationship between the calculation time of the initial arts and crafts design coordination evaluation result, the CPU benchmark speed, the total memory capacity, and the preset maximum number of iterations; If the deviation coefficient of the arts and crafts design coordination evaluation result is less than the preset arts and crafts design coordination evaluation result deviation threshold, the iteration is terminated, otherwise the iteration continues.
9. An intelligent conflict detection and collaborative optimization method for arts and crafts design, applied to the intelligent conflict detection and collaborative optimization system for arts and crafts design according to any one of claims 1 to 8, characterized in that: The following steps are involved: S1, numbering the elements in the design sketch, establishing a coordinate system based on the design sketch, performing a conflict credibility assessment based on a conflict credibility assessment parameter of the design sketch, and determining whether to optimize the design sketch. The conflict credibility assessment is used to assess the conflict of the design sketch in terms of image quality; S2, aligning the design sketch and the user requirement diagram, numbering the user requirement diagram according to the number in the design sketch, establishing a coordinate system based on the user requirement diagram, and determining 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 element position adjustment is used to adjust the position conflict of the corresponding elements in the design sketch and the user requirement diagram; S3, determining whether to perform element size adjustment 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, wherein the element size adjustment is used to adjust the size conflict between the corresponding element in the design sketch and the user requirement diagram; S4, the elements of the user requirement graph are optimized and processed in parallel, and after each iteration, the arts and crafts design coordination evaluation parameters after the iteration are input into the arts and crafts design coordination evaluation function, and based on the current arts and crafts design coordination evaluation result and the arts and crafts design coordination evaluation result of the previous iteration, it is determined whether to accept the adjustment plan of the current iteration until the iteration 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