Standard punch mark automatic arrangement method and device, electronic equipment and storage medium

By automatically identifying and calculating the punching position and direction line segment, combined with the cutting depth and material thickness, the problem of low efficiency in punch marking arrangement in traditional methods is solved, and efficient and accurate automatic punch marking arrangement is achieved.

CN121415028BActive Publication Date: 2026-04-21JIHUA LAB
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIHUA LAB
Filing Date
2025-12-29
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Traditional methods for placing standard punch markings on 3D drawings are cumbersome, time-consuming, repetitive, and lack intuitiveness, resulting in low design efficiency and a lack of effective solutions.

Method used

By automatically acquiring the target 3D drawing, identifying the punching position and direction line segments, calculating the target direction vector, and arranging standard punch markings according to the vector, the punch is precisely adjusted in combination with the cutting depth and material thickness.

Benefits of technology

It achieves high intuitiveness, low repetition rate, and accurate placement, significantly improving the design efficiency of standard punches and reducing manual intervention and errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121415028B_ABST
    Figure CN121415028B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, electronic device, and storage medium for automatically arranging standard punch markings, relating to the field of mold design and manufacturing technology. The method includes the following steps: on a target 3D drawing, with a first arrangement position as the center, determining whether vertical and horizontal line segments exist within a preset radius. Specifically, if only vertical line segments exist, determining the target direction vector for arranging the punch based on the vertical line segments; if both vertical and horizontal line segments exist, determining the target direction vector for arranging the punch based on the vertical and horizontal line segments; and arranging standard punch markings on the corresponding punch holes in the target 3D drawing according to the target direction vector. This invention aims to solve the problem of manually arranging standard punch markings, featuring high intuitiveness, low repetition rate, and accurate placement, significantly improving the efficiency of standard punch arrangement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mold design and manufacturing technology, and more specifically, to a method, apparatus, electronic device, and storage medium for automatically arranging standard punch markings. Background Technology

[0002] In automated production, to ensure that the material can be smoothly separated or deformed according to the specified requirements when the mold is punching or stamping, it is necessary to mark the distribution of punches on the three-dimensional drawing (such as the three-dimensional drawing of automotive punching molds) and determine the standard punch mark corresponding to each punch. The standard punch mark has strict requirements on position and orientation.

[0003] When using traditional methods to place standard punch markings on 3D drawings, it is often necessary to manually determine the punch model selection based on information such as punching lines and punching size labels. Then, considering a series of parameters such as punching direction lines, punch center marks, sheet thickness, and cutting depth, the punch placement and orientation are manually adjusted one by one to achieve the placement of standard punch markings. This also leads to the disadvantages of the existing method, which is cumbersome and time-consuming, has a high repetition rate, low intuitiveness, and low design efficiency.

[0004] There is currently no effective technical solution to the above problems. Summary of the Invention

[0005] The purpose of this invention is to provide an automatic arrangement method, device, electronic device and storage medium for standard punch markings, which aims to solve the problem of manual arrangement of standard punch markings. It has the characteristics of high intuitiveness, low repetition rate and accurate arrangement position, and can significantly improve the efficiency of standard punch arrangement.

[0006] In a first aspect, the present invention provides a method for automatically arranging standard punch markings, comprising the following steps:

[0007] S1. Obtain the target 3D drawing and determine the first arrangement position of the punching holes on the target 3D drawing;

[0008] S2. On the target 3D drawing, for each of the first arrangement positions, taking the first arrangement position as the center, determine whether there are vertical and horizontal line segments within a preset radius. Specifically, this includes: if it is determined that only the vertical line segment exists, then determine the target direction vector for arranging the punch based on the vertical line segment; if it is determined that both the vertical and horizontal line segments exist, then determine the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segment exists, then mark the corresponding punch as abnormal.

[0009] S3. Arrange standard punch markings on the corresponding punch holes of the target three-dimensional drawing according to the target direction vector.

[0010] The automatic arrangement method for standard punch markings provided by this invention has the characteristics of high intuitiveness, low repetition rate, and accurate placement, which can significantly improve the efficiency of standard punch design.

[0011] Furthermore, in step S1, the step of determining the first arrangement position of the punches on the target three-dimensional drawing includes:

[0012] S1A1. Using an image recognition method, identify the punching mark points on the target three-dimensional drawing and use the punching mark points as the first arrangement position.

[0013] Furthermore, in step S1, the step of determining the first arrangement position of the punches on the target three-dimensional drawing includes:

[0014] S1B1. Identify the punching outline on the target 3D drawing using an image recognition method;

[0015] S1B2. Discretize the punching profile into multiple discrete points;

[0016] S1B3. The center position of the punch profile is obtained by calculating the average value of all the discrete points, and the center position is used as the first arrangement position.

[0017] Furthermore, in step S2, if it is determined that only the vertical line segment exists, the step of determining the target direction vector for arranging the punch based on the vertical line segment includes:

[0018] S2A1. For each vertical line segment, identify the two endpoints of the vertical line segment;

[0019] S2A2. Calculate the first vertical direction vector based on the two endpoints of the vertical direction line segment;

[0020] S2A3. Calculate the first horizontal direction vector and the second horizontal direction vector based on the first vertical direction vector;

[0021] S2A4. Normalize the first vertical direction vector, the first horizontal direction vector, and the second horizontal direction vector to obtain the target direction vector.

[0022] Furthermore, in step S2, if it is determined that both the vertical line segment and the horizontal line segment exist simultaneously, the step of determining the target direction vector for arranging the punch based on the vertical line segment and the horizontal line segment includes:

[0023] S2B1. For each vertical line segment, identify the two endpoints of the vertical line segment;

[0024] S2B2. Calculate the second vertical direction vector based on the two endpoints of the vertical direction line segment;

[0025] S2B3. For each horizontal line segment, identify the two endpoints of the horizontal line segment;

[0026] S2B4. Calculate the third horizontal direction vector based on the two endpoints of the horizontal line segment;

[0027] S2B5. Calculate the fourth horizontal direction vector based on the second vertical direction vector and the third horizontal direction vector;

[0028] S2B6. Normalize the second vertical direction vector, the third horizontal direction vector, and the fourth horizontal direction vector to obtain the target direction vector.

[0029] Furthermore, the specific steps in step S3 include:

[0030] S31. Obtain the preset cutting depth and material thickness values;

[0031] S32. Based on the cutting depth and the material thickness, and in conjunction with the target direction vector, calculate the second arrangement position of the corresponding punch;

[0032] S33. Arrange standard punch markings on the corresponding punch holes of the target three-dimensional drawing according to the second arrangement position.

[0033] Furthermore, the specific steps in step S33 include:

[0034] S331. Match the standard punch mark to the corresponding punch according to the preset rules;

[0035] S332. According to the second arrangement position, arrange a standard punch mark that matches the punch on the corresponding punch of the target three-dimensional drawing.

[0036] Secondly, the present invention provides an automatic placement device for standard punch markings, comprising:

[0037] The acquisition module is used to acquire the target 3D drawing and determine the first arrangement position of the punches on the target 3D drawing;

[0038] The determination module is used to determine, on the target 3D drawing, for each of the first arrangement positions, whether there are vertical and horizontal line segments within a preset radius centered on the first arrangement position. Specifically, it includes: if it is determined that only the vertical line segment exists, then determining the target direction vector for arranging the punch based on the vertical line segment; if it is determined that both the vertical and horizontal line segments exist, then determining the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segment exists, then marking the corresponding punch as abnormal.

[0039] The arrangement module is used to arrange standard punch marks on the corresponding punch holes of the target 3D drawing according to the target direction vector.

[0040] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing computer-readable instructions, which, when executed by the processor, perform the steps of the standard punch mark automatic placement method provided in the first aspect above.

[0041] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the standard punch marking automatic placement method provided in the first aspect above.

[0042] As can be seen from the above, the automatic arrangement method for standard punch markings provided by the present invention solves the problems of low efficiency, difficulty in ensuring accuracy and poor design intuitiveness in traditional manual operation by automatically acquiring target three-dimensional drawings, determining the punch arrangement position, checking line segments and arranging standard punch markings. It has the characteristics of high intuitiveness, low repetition rate and accurate arrangement position, and can significantly improve the efficiency of standard punch design.

[0043] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings. Attached Figure Description

[0044] Figure 1 This is a flowchart of a standard punch mark automatic placement method provided in an embodiment of the present invention.

[0045] Figure 2 This is a schematic diagram of a standard punch marking automatic placement device provided in an embodiment of the present invention.

[0046] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0047] Label Explanation:

[0048] 100. Acquisition module; 200. Determination module; 300. Layout module; 13. Electronic device; 1301. Processor; 1302. Memory; 1303. Communication bus. Detailed Implementation

[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0050] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0051] Reference Appendix Figure 1 This invention provides a method for automatically arranging standard punch markings, comprising the following steps:

[0052] S1. Obtain the target 3D drawing and determine the first arrangement position of the punches on the target 3D drawing (the first arrangement position is denoted as A);

[0053] S2. On the target 3D drawing, for each first arrangement position, taking the first arrangement position as the center, determine whether there are vertical and horizontal line segments within a preset radius. Specifically, if it is determined that only vertical line segments exist, then determine the target direction vector for arranging the punch based on the vertical line segments; if it is determined that both vertical and horizontal line segments exist, then determine the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segments exist, then mark the corresponding punch as abnormal.

[0054] S3. According to the target direction vector, arrange standard punch marks on the corresponding punch holes on the target 3D drawing.

[0055] This embodiment provides an automatic placement method for standard punch markings, aiming to solve the problems of cumbersome and time-consuming process, high repetition rate, low intuitiveness and low design efficiency when placing standard punch markings on three-dimensional drawings.

[0056] First, the method acquires the target 3D drawing and determines the initial placement position of the punches on the drawing. In practice, acquiring the target 3D drawing can be achieved in various ways, such as loading a pre-designed CAD file from local storage or obtaining it from a remote server via a network interface. Determining the initial placement position of the punches is fundamental to subsequent steps. This can be achieved by manually marking the center point of the punches on the drawing or by automatically identifying the geometric center of the punches using a preset algorithm. For example, the geometric center of the punches can be manually clicked, and its coordinates can be used as the initial placement position.

[0057] Secondly, on the target 3D drawing, for each initial arrangement position, using that position as the center, determine whether vertical and horizontal line segments exist within a preset radius. This step is crucial for identifying the punching direction. The preset radius can be adjusted based on the punching size and the drawing scale to ensure effective capture of geometric features related to the punching direction. Determining the existence of vertical and horizontal line segments can be achieved using image processing algorithms, such as analyzing pixels around the punching to identify line segments that conform to the vertical or horizontal definition.

[0058] Specifically, if it is determined that only vertical line segments exist, the target direction vector for placing the punch is determined based on these vertical line segments. For example, when the punch is elongated and has a clearly defined boundary line only in the vertical direction, the target direction vector for the punch can be determined based on the direction of this vertical line segment. If it is determined that both vertical and horizontal line segments exist, the target direction vector for placing the punch is determined based on both vertical and horizontal line segments. For example, when the punch is rectangular or cross-shaped, both its vertical and horizontal boundary lines provide directional information, which can be used together to determine a more accurate target direction vector. If it is determined that no vertical line segments exist, the corresponding punch is marked as abnormal. This may occur when the punch shape is irregular, the direction is unclear, or the drawing data is incomplete. Marking it as abnormal can prompt the user to intervene manually or conduct further inspection.

[0059] Finally, standard punch markings are placed on the corresponding punch holes in the target 3D drawing according to the target direction vector. This step applies the previously calculated direction information to the actual placement of the punch markings. Placing standard punch markings can be achieved by rotating and translating a preset punch model or symbol according to the target direction vector, ensuring precise matching with the position and orientation of the punch hole. For example, a suitable punch model can be selected from a preset punch library, and then its orientation in the 3D drawing can be adjusted according to the target direction vector.

[0060] This method proposes an automatic placement method for standard punch markings that is highly intuitive, has a low repetition rate, and is accurately positioned, which can significantly improve the efficiency of standard punch design.

[0061] The following example will provide a more detailed explanation of the above technical solution:

[0062] Suppose user A needs to arrange standard punch markings on a 3D drawing of an automotive punching die. Traditionally, user A would need to manually identify each punch on the drawing, then select the appropriate punch model from a punch library based on the shape, size, and orientation of the punch, and adjust the position and orientation of each punch individually. This process is time-consuming and prone to errors.

[0063] Using the method provided in this embodiment, firstly, the system automatically acquires the target 3D drawing provided by user A. Then, the system automatically identifies all the punches on the drawing using a preset algorithm and determines the first placement position for each punch. For example, for a rectangular punch, the system can calculate its geometric center as the first placement position.

[0064] Subsequently, for each determined first placement position, the system scans within a preset radius, using that position as the center, to determine if vertical and horizontal line segments exist. For example, for a rectangular punch, the system might identify the vertical line segment corresponding to its longer side and the horizontal line segment corresponding to its shorter side.

[0065] If the system determines that a punch only contains vertical line segments, such as a standard circular punch, the system will calculate the target direction vector for placing the punch based on the direction of these vertical line segments. If the system determines that a punch contains both vertical and horizontal line segments, such as a standard rectangular punch, the system will combine the information from both vertical and horizontal line segments to calculate a more accurate target direction vector. If the system does not identify any vertical line segments within a preset radius, it will mark the punch as abnormal and prompt user A to perform a manual inspection.

[0066] Finally, the system will automatically place standard punch marks on the corresponding punches in the target 3D drawing based on the calculated target direction vector. For example, for a rectangular punch, the system will select a matching rectangular punch mark and adjust its rotation angle and position in the drawing according to the target direction vector to precisely align it with the actual direction and position of the punch.

[0067] Through the above automated process, user A does not need to perform tedious manual operations, and the system can quickly and accurately complete the placement of all standard punch marks.

[0068] The method provided in this embodiment achieves intelligent placement of standard punch markings by automatically analyzing the geometric features in 3D drawings, thereby solving the inefficiency problem of manual operation. Compared with the traditional manual placement method, this method demonstrates significant technical contributions in the following aspects:

[0069] Firstly, in determining the initial placement of punches, traditional methods rely on manual visual identification and marking, which is prone to errors and inefficient. This method automates the acquisition of the target 3D drawing and determines the initial placement of punches, providing a precise positioning benchmark for subsequent direction calculations and avoiding the inefficiency of manually searching for each location.

[0070] Secondly, in determining the target direction vector for punch placement, traditional methods require manual judgment of the punch orientation based on information such as punching lines and punching size labels, a complex and repetitive process. This method, however, determines vertical and horizontal line segments within a preset radius and then determines the target direction vector based on different scenarios (only vertical line segments exist, both vertical and horizontal line segments exist, and no vertical line segments exist). This utilizes the inherent directional constraint information of the punching process, ensuring the relevance and accuracy of the direction derivation. When only vertical line segments exist, the direction vector is determined based on these segments, leveraging the inherent directional constraint information of the punching process to ensure the relevance of the direction derivation. When both vertical and horizontal line segments exist, multiple directional features are combined to enhance directional accuracy. When no vertical line segments exist, an anomaly is marked, handling invalid punching cases and improving the reliability of the method. This automated and intelligent method of determining the direction vector significantly reduces the complexity and error rate of manual judgment.

[0071] Finally, regarding the placement of standard punch markings, traditional methods require manual adjustment of the position and orientation of each punch, which is time-consuming and lacks intuitiveness. This method directly places the standard punch markings according to the target direction vector, achieving automated placement and significantly improving design efficiency. By directly applying the calculated direction parameters to the placement of the punch markings, not only is the accuracy of the placement guaranteed, but the design cycle is also greatly shortened.

[0072] In summary, the method provided in this embodiment effectively solves the problems of tedious and time-consuming, high repetition rate, low intuitiveness and low design efficiency in the traditional standard punch marking process by introducing automated and intelligent geometric feature analysis and direction vector calculation mechanism, bringing significant technological progress to the field of mold design.

[0073] In some embodiments, step S1, determining the first arrangement position of the punches on the target 3D drawing, includes:

[0074] S1A1. Using image recognition methods, identify the punching mark points on the target 3D drawing and use the punching mark points as the first placement position.

[0075] This solution utilizes image recognition to automate, efficiently, and accurately determine the initial placement position of punches on target 3D drawings. In the entire automatic placement method for standard punch markings, step S1 is fundamental for determining the punch direction vector S2 and the final placement of punch markings S3. Traditionally, determining this initial position often relies on manual visual inspection and input, which is not only time-consuming but also prone to human error leading to deviations in subsequent steps. This solution, through image recognition technology, can automatically scan and parse 3D drawing data, accurately identifying preset punch marking points. These marking points are explicitly marked by the designer on the drawings, representing the precise location of the punches. Once these marking points are identified, their geometric coordinates are directly adopted as the initial placement position of the punches. This automated identification and positioning mechanism avoids manual intervention, significantly improving the efficiency and accuracy of step S1, providing reliable input for subsequent steps S2 and S3, thereby ensuring the smooth operation of the entire automatic placement method for standard punch markings and the accuracy of the final placement result. By directly using the identified marker points as the first placement location, the data conversion process is simplified, potential sources of error are reduced, and the entire automated placement process becomes more robust and efficient.

[0076] As a specific implementation method, the above-mentioned technical means can be implemented with reference to the following example. After obtaining the target 3D drawing, which can be a CAD file or its rendered image, the drawing can be preprocessed using a computer vision library, such as OpenCV, including operations such as grayscale conversion, binarization, and noise reduction to enhance image features. Subsequently, a template matching algorithm can be used to predefine a template image for the punching mark points (e.g., a standard cross-shaped or circular mark), and then search for regions in the preprocessed drawing that highly match the template. When a matching region is detected, the center coordinates of that region are extracted as the precise location of the punching mark point. For example, if the template is a circle, the geometric center of the matching region is calculated as the mark point position; if the template is a cross, the coordinates of the cross intersection are calculated as the mark point position. The coordinates of these identified punching mark points are directly determined as the first arrangement position of the punching, for use in subsequent steps.

[0077] Through the above technical solution, the determination of the first placement position of the punch in the automatic placement method of standard punch markings no longer relies on tedious manual operation. The application of image recognition methods enables the system to automatically and quickly identify the preset punch mark points from the target 3D drawing and use them as the precise first placement position. This significantly improves the efficiency and accuracy of punch position identification, effectively avoiding the errors and time-consuming problems that may be caused by traditional manual identification. Therefore, this solution provides a reliable and efficient starting point for the subsequent determination of the punch direction vector and the final placement of standard punch markings, thereby improving the overall automation level and work efficiency of standard punch design and reducing repetitive labor.

[0078] In some embodiments, step S1, determining the first arrangement position of the punches on the target 3D drawing, includes:

[0079] S1B1. Identify the punching profile on the target 3D drawing using image recognition methods;

[0080] S1B2. Discretize the punching profile into multiple discrete points;

[0081] S1B3. The center position of the punch profile is obtained by calculating the average value of all discrete points, and the center position is used as the first arrangement position.

[0082] After obtaining the target 3D drawing, this application addresses the inaccuracies and inefficiencies in traditional methods for determining punch locations by first automatically identifying the punch outline on the target 3D drawing using image recognition. This avoids the subjectivity and errors of manual identification, improving automation and accuracy. Subsequently, the identified punch outline is discretized into multiple discrete points. This process allows for precise geometric calculations using a unified point set processing method, regardless of the shape of the punch outline, effectively overcoming positioning deviations caused by irregular shapes. Finally, by calculating the average of all these discrete points, the geometric center of the punch outline is accurately obtained, and this center position is used as the first placement position for the punch. Through these steps, this application can automatically, accurately, and efficiently determine the center position of the punch. This combined method based on image recognition and geometric calculation not only improves the accuracy and reliability of punch positioning but also significantly enhances positioning efficiency, laying a solid foundation for the automatic placement of punch markers in subsequent steps. Compared to relying solely on simple marker points or manual identification, this solution can handle more complex punch shapes and provide more accurate center positioning, thus ensuring the accuracy of subsequent punch marker placement.

[0083] The following is a concrete example. When determining the initial placement of punches on a target 3D drawing, image recognition technology can be used first. For example, a Canny edge detector based on the OpenCV library combined with contour finding can be used to process the 2D projection or specific view of the target 3D drawing to automatically identify the closed contours of all punches on the drawing. For example, for a rectangular punch, the algorithm will identify the closed rectangle formed by its four sides. After identifying the punch contour, the system can further discretize the contour. For example, for a contour composed of a series of pixels, sampling can be performed along the contour at intervals of every other pixel, or the vertex coordinates of the contour can be directly extracted, resulting in a set containing hundreds or even thousands of discrete points. These discrete points represent the precise geometric information of the punch contour. Subsequently, to determine the center position of the punch, the system calculates the average value of these discrete points. Specifically, if the set of discrete points is {(x1,y1),(x2,y2),...,(xn,yn)}, then the center position (Xc,Yc) of the punch will be calculated as Xc=(x1+x2+...+xn) / n, Yc=(y1+y2+...+yn) / n. This calculated (Xc,Yc) coordinate is then determined as the first placement position of the punch. For example, for a circular punch, even if its outline is slightly jagged after image recognition, its geometric center can be accurately obtained through this averaging calculation.

[0084] Through the above technical solution, this application overcomes the problems of inaccurate and inefficient punching position determination in traditional methods. By introducing image recognition methods to automatically identify the punching contour, the subjectivity and errors of manual identification are avoided, significantly improving the automation and accuracy of positioning. Discretizing the punching contour and calculating the average value of discrete points to determine the center position ensures that even with complex or irregular punching shapes, a precise geometric center can be obtained, thus providing a high-precision first placement position for the subsequent placement of standard punch markings. This not only greatly improves the accuracy and reliability of punching positioning but also significantly improves the efficiency of the entire automatic placement process of standard punch markings.

[0085] In some embodiments, in step S2, if it is determined that only vertical line segments exist, the step of determining the target direction vector for arranging the punch based on the vertical line segments includes:

[0086] S2A1. For each vertical line segment, identify the two endpoints of the vertical line segment. For example, the two endpoints of the vertical line segment are P and Q.

[0087] S2A2. Calculate the first vertical direction vector based on the two endpoints of the vertical line segment. Specifically, calculate the first vertical direction vector using the following formula:

[0088] Z1 = QP; where Z1 is the first vertical direction vector;

[0089] S2A3. Based on the first vertical direction vector, calculate the first horizontal direction vector and the second horizontal direction vector. Specifically, calculate the first horizontal direction vector according to the following formula:

[0090] If x_Z1=0, then Y1=Z1*(1,-z_Z1,y_Z1); where x_Z1 is the x-axis component of Z1, Y1 is the first horizontal direction vector, z_Z1 is the z-axis component of Z1, and y_Z1 is the y-axis component of Z1.

[0091] If y_Z1=0, then Y1=Z1*(-z_Z1,1,x_Z1);

[0092] If z_Z1=0, then Y1=Z1*(-y_Z1,x_Z1,1);

[0093] If x_Z1, y_Z1, and z_Z1 are all not equal to 0, then Y1 = Z1 * (-y_Z1, x_Z1, 0);

[0094] The second horizontal direction vector is calculated using the following formula:

[0095] X1 = Y1 * Z1; where X1 is the second horizontal direction vector;

[0096] S2A4. Normalize the first vertical direction vector, the first horizontal direction vector, and the second horizontal direction vector to obtain the target direction vector (the target direction vector is represented as G(x_G,y_G,z_G), where x_G is the x-axis component of G, y_G is the y-axis component of G, and z_G is the z-axis component of G).

[0097] Identifying the two endpoints of a line segment is fundamental for subsequent vector calculations. Specifically, this can be achieved through geometric processing algorithms, such as traversing the vertex information of the line segment in the 3D model data, or through image processing techniques to perform edge detection and endpoint extraction. For example, a line segment detection method based on the Random Sample Consensus (RANSAC) algorithm can be used to identify line segments from point cloud data and further determine their start and end points; alternatively, the coordinates of the two vertices constituting the perpendicular line segment can be obtained directly by utilizing the application programming interface (API) of computer-aided design (CAD) software.

[0098] When only vertical line segments exist, this scheme determines the target direction vector for punch placement through a series of refined calculation steps. First, for each vertical line segment, the two endpoints are precisely identified, forming the geometric basis for all subsequent vector calculations. Then, based on these endpoints, a first vertical vector is calculated, directly reflecting the main vertical orientation of the punch. Building upon this, the first and second horizontal vectors are calculated through orthogonal derivation using the first vertical vector, thus constructing a complete and mutually orthogonal local coordinate system. Finally, these three vectors are normalized to ensure they have a uniform scale, forming standardized target direction vectors. This scheme is closely integrated with step S2 in the aforementioned method, providing an automated and standardized vector calculation process when the punch is identified as being limited to the vertical direction. Precise identification of line segment endpoints avoids errors caused by manual judgment; mathematical calculations rather than empirical judgment ensure the accuracy of the vertical vector; orthogonal derivation of the horizontal vector guarantees the completeness of the punch attitude description; and normalization provides a unified and stable input for the subsequent precise placement of the punch on the 3D drawing. This synergy enables the efficient and accurate determination of the complete attitude information of the punch even when only vertical line segments are used as constraints, thus overcoming the accuracy and efficiency problems caused by the lack of specific calculation steps in traditional methods.

[0099] Through the above technical solution, this application provides a method for accurately and efficiently determining the target direction vector of the punch when only vertical line segments define the punching position. This method, through explicit calculation steps, avoids the uncertainties and errors that may arise from traditional manual judgment or fuzzy algorithms, ensuring the accuracy of the punch attitude information. Simultaneously, by automatically identifying endpoints, calculating the vertical vector, deriving the horizontal vector, and performing unitization processing, the efficiency and standardization of direction vector generation are significantly improved, providing reliable attitude data for the subsequent automatic placement of standard punch markings. This effectively solves the problems of inaccurate or inefficient direction vector calculation in existing technologies.

[0100] In some embodiments, in step S2, if it is determined that both vertical and horizontal line segments exist simultaneously, the step of determining the target direction vector for arranging the punch based on the vertical and horizontal line segments includes:

[0101] S2B1. For each vertical line segment, identify the two endpoints of the vertical line segment. For example, the two endpoints of the vertical line segment are P and Q.

[0102] S2B2. Calculate the second vertical direction vector based on the two endpoints of the vertical line segment. Specifically, calculate the second vertical direction vector using the following formula:

[0103] Z2 = QP; where Z2 is the second vertical direction vector;

[0104] S2B3. For each horizontal line segment, identify the two endpoints of the horizontal line segment. For example, the two endpoints of the horizontal line segment are R and S.

[0105] S2B4. Calculate the third horizontal direction vector based on the two endpoints of the horizontal line segment. Specifically, calculate the third horizontal direction vector using the following formula:

[0106] Y2=SR; where Y2 is the third horizontal direction vector;

[0107] S2B5. Based on the second vertical direction vector and the third horizontal direction vector, calculate the fourth horizontal direction vector. Specifically, calculate the fourth horizontal direction vector using the following formula:

[0108] X2 = Y2 * Z2; where X2 is the fourth horizontal direction vector;

[0109] S2B6. Normalize the second vertical direction vector, the third horizontal direction vector, and the fourth horizontal direction vector to obtain the target direction vector.

[0110] Through the aforementioned series of steps, this method provides a systematic and precise mechanism for accurately determining the target direction vector of the punch when both vertical and horizontal line segments exist in the punching process. This method avoids punch placement deviations caused by inaccurate vector calculations, ensuring the accuracy of the punch marking's placement position and orientation. This allows for more reliable adherence to design requirements when placing standard punch markings on the target 3D drawing, significantly improving the accuracy and efficiency of automated placement. It effectively solves the problem of inaccurate direction vector calculations in traditional methods, thereby guaranteeing the accuracy of subsequent punch marking placement and ultimately improving overall design efficiency and mold manufacturing precision.

[0111] Through the above technical solution, this application provides a method for accurately determining the target direction vector for punch placement when both vertical and horizontal line segments exist in the punching process. This method systematically identifies the endpoints of the vertical and horizontal line segments and calculates three mutually orthogonal direction vectors based on these endpoints, ultimately performing unitization processing. This solves the problem of inaccurate direction vector calculation in existing technologies. This ensures that when placing standard punch markings on the target 3D drawing, the spatial position and orientation of the punch can highly accurately match the geometric features of the punching hole, significantly improving the accuracy and reliability of automatic punch marking placement. Compared to solutions lacking explicit vector calculation steps, this method effectively avoids repeated adjustments and design errors caused by directional deviations, thereby greatly improving the efficiency of standard punch design, reducing the need for manual intervention, and enhancing the overall automation level of mold design.

[0112] In some embodiments, the specific steps in step S3 include:

[0113] S31. Obtain the preset cutting depth and material thickness values, for example, the cutting depth is dD and the material thickness is dT;

[0114] S32. Based on the cutting depth and material thickness, and combined with the target direction vector, calculate the second arrangement position of the corresponding punch. Specifically, calculate the second arrangement position according to the following formula:

[0115] B = A - (dD + dT) * z_G; where B is the second arrangement position, A is the first arrangement position, dD is the cutting depth, dT is the material thickness, z_G is the z-axis component of G, and G is the target direction vector.

[0116] S33. According to the second arrangement position, arrange standard punch marks on the corresponding punch holes on the target three-dimensional drawing.

[0117] Obtaining preset penetration depth and material thickness values ​​is a crucial step in ensuring the accuracy of punch marking placement. Penetration depth refers to the depth to which the punch penetrates the material during the stamping process, while material thickness is the actual thickness of the material to be stamped. These parameters directly affect the actual working position of the punch in three-dimensional space. These values ​​can be obtained in various ways. For example, they can be manually entered through a user interface, allowing designers to set them based on specific process requirements and experience; alternatively, the system can automatically retrieve them from a preset material database or process parameter table. This database stores recommended penetration depth and material thickness values ​​based on parameters such as material type and thickness, thus achieving automated parameter acquisition.

[0118] After obtaining the cutting depth and material thickness, the second arrangement position of the punch needs to be calculated based on these parameters and the target direction vector. This calculation aims to refine the initially determined punch arrangement position to better meet the actual stamping process requirements. The calculation process can be based on geometric principles. For example, using the first arrangement position of the punch as a reference, along the opposite direction of the target direction vector, combined with the cutting depth and material thickness, the second arrangement position can be determined through vector translation and scaling. This ensures that the reference point marked on the punch accurately reflects the actual point of action of the punch during the stamping process, avoids interference with the punch edge, and takes into account the actual installation space of the punch. Alternatively, a preset mathematical model or algorithm can be used, taking the cutting depth, material thickness, and target direction vector as input, to output a precise coordinate point as the second arrangement position. This model can comprehensively consider the relative positional relationship between the center point of the cutting edge face at the bottom of the punch and the center point of the punch, as well as the actual movement trajectory of the punch during the stamping process.

[0119] Finally, according to the calculated second arrangement position, standard punch markings are placed on the corresponding punch holes in the target 3D drawing. This step is the process of visualizing the precise calculation results and applying them to the design drawings. Specifically, in the CAD software environment, a predefined standard punch marking model (such as a 3D block or component) can be loaded into the target 3D drawing via a programming interface (API), and its insertion point or reference point is precisely aligned with the calculated second arrangement position. Simultaneously, the orientation of the marking is rotated according to the target direction vector to ensure it aligns with the actual punching direction of the hole.

[0120] This solution obtains key physical parameters from the stamping process, namely the depth of cut and material thickness, and combines them with the target direction vector of the punching hole to precisely calculate and adjust the placement of the punch markings. Building upon the initial punching position and target direction vector determined by the previous method, this solution further considers the actual physical constraints of the stamping process, obtaining a more accurate second placement position through refined calculations. This method ensures that the standard punch markings on the 3D drawing are not only geometrically aligned with the punching hole but also physically reflect the actual working state and installation requirements of the punch. This allows the automatically placed punch markings to more accurately guide subsequent mold manufacturing and stamping production, significantly improving the accuracy and reliability of punch design.

[0121] Through the above technical solution, this application can effectively solve the problem of inaccurate punch mark placement caused by the failure to consider parameters such as cutting depth and material thickness in traditional methods. By introducing these key physical parameters and performing precise calculations, the position of the standard punch mark on the 3D drawing is ensured to highly match the actual stamping process requirements, thereby significantly improving the accuracy of punch design and the reliability of automated placement, reducing the need for manual intervention and correction, and thus improving overall design efficiency.

[0122] In some embodiments, the specific steps in step S33 include:

[0123] S331. Match the standard punch mark to the corresponding punch according to the preset rules (for each standard punch mark, set a local coordinate system with the center point of the cutting edge face at the bottom of the punch. The z-axis of the local coordinate system is set in the opposite direction of the punching direction, the y-axis is set in the long side direction of the cutting edge face, and the x-axis is set in the short side direction of the cutting edge face. The purpose of this setting is to ensure that the direction of the punch can be matched with the punch when the target direction vector is used directly in the end).

[0124] S332. According to the second arrangement position, arrange the standard punch mark that matches the punch on the corresponding punch on the target three-dimensional drawing.

[0125] In step S331, "matching standard punch identifiers to the corresponding punch according to preset rules" means that the system automatically selects the most suitable punch identifier from a preset standard punch identifier library based on the geometric characteristics of the punch (e.g., shape, size, material type, etc.). The preset rules can be a series of conditional statements, such as "if the punch is circular and its diameter is between D1 and D2, then match the circular punch identifier of model A"; or, the preset rules can be based on a database query, comparing the attributes of the punch with the attributes of the punch identifier to find the best match. This aims to automate the selection of punch identifiers, reducing manual intervention and potential errors.

[0126] "Setting a local coordinate system based on the center point of the cutting edge at the bottom of the punch" means defining an independent reference coordinate system for each standard punch mark, with its origin precisely located at the geometric center of the cutting edge at the bottom of the punch used for blanking. This center point is the key point of action when the punch performs blanking operations. Using it as the origin of the local coordinate system ensures the accuracy of the subsequent positioning of the punch mark in three-dimensional space.

[0127] "Setting the z-axis of the local coordinate system in the opposite direction of the punching direction" means that the z-axis of the local coordinate system is opposite to the direction of the actual punching motion of the punch. For example, if the punch usually punches along the negative Z direction of the global coordinate system, then the z-axis of its local coordinate system will point to the positive Z direction of the global coordinate system. This setting provides a unified vertical direction reference for the punch identification that is related to the punching action logic, facilitating subsequent precise attitude adjustment using the target direction vector.

[0128] "Setting the y-axis along the longer side of the cutting edge" means that for non-circular punches (such as rectangular or elliptical punches), the y-axis of the local coordinate system is aligned with the longer side of the punch's cutting edge. This provides a clear horizontal reference for the punch markings, especially for directional punching, ensuring that the longer side of the punch markings matches the longer side of the punch hole correctly and avoiding rotational deviations.

[0129] "Setting the x-axis along the shorter side of the cutting edge" means aligning the x-axis of the local coordinate system with the shorter side of the punch's cutting edge. Typically, the x-axis is perpendicular to the y-axis and z-axis, forming a right-handed coordinate system. This setting further refines the definition of the punch's local coordinate system, ensuring a unique and precise orientation of the punch within the cutting edge plane, and providing a complete spatial reference for subsequent applications of the target direction vector.

[0130] The solution of this application, through the aforementioned technical means, after obtaining the target 3D drawing and determining the first arrangement position of the punch, can intelligently determine the target direction vector for arranging the punch based on the vertical and / or horizontal line segments around the punch. Based on this, combined with preset cutting depth and material thickness values, a more precise second arrangement position is calculated. To ensure that the final arrangement of the punch markings is not only accurate in position but also perfectly matches the direction of the punch, this solution further introduces refined processing. Specifically, the system first matches the most suitable standard punch marking for each punch according to preset rules, thereby automating the selection of the punch model. More importantly, for each matched standard punch marking, its local coordinate system is strictly defined with the center point of its bottom cutting edge as the origin: the z-axis is set in the opposite direction of the punching direction, the y-axis is set in the long side direction of the cutting edge, and the x-axis is set in the short side direction of the cutting edge. This standardized local coordinate system definition allows the previously calculated target direction vector to be directly and unambiguously applied to the punch mark, ensuring that the three-dimensional orientation of the punch mark accurately matches the punching geometry and blanking requirements without additional manual adjustments. Finally, this matched and correctly oriented standard punch mark is placed in the calculated second placement position. In this way, the matching, positioning, and orientation processes of the punch mark are organically combined, forming an efficient, accurate, and highly automated placement process.

[0131] Through the above technical solution, this application solves the problem of mismatch between punch direction and punching hole in traditional methods when automatically placing standard punch marks. By automatically matching standard punch marks using preset rules, the tediousness and errors of manual selection are avoided, improving efficiency. More importantly, a precise local coordinate system is defined for each standard punch mark, aligning the z-axis, y-axis, and x-axis of the punch mark with the opposite direction of the punching direction, the long side direction of the cutting edge, and the short side direction of the cutting edge, respectively. This standardized coordinate system definition allows the previously calculated target direction vector to be directly applied to the punch mark, ensuring a perfect match between the direction of the punch mark on the 3D drawing and the actual geometric direction of the punching hole and the punching requirements, eliminating the need for additional manual adjustments. This significantly improves the accuracy and automation of standard punch mark placement, substantially reduces repetition and manual intervention in the design process, and thus improves overall design efficiency.

[0132] Please refer to Figure 2 , Figure 2 This invention provides an automatic placement device for standard punch markings, which is integrated into a back-end control device in the form of a computer program. The device includes:

[0133] The acquisition module 100 is used to acquire the target 3D drawing and determine the first arrangement position of the punches on the target 3D drawing;

[0134] The determination module 200 is used to determine, on the target 3D drawing, for each first arrangement position, whether there are vertical and horizontal line segments within a preset radius centered on the first arrangement position. Specifically, it includes: if it is determined that only vertical line segments exist, then determining the target direction vector for arranging the punch based on the vertical line segments; if it is determined that both vertical and horizontal line segments exist, then determining the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segments exist, then marking the corresponding punch as abnormal.

[0135] The arrangement module 300 is used to arrange standard punch marks on the corresponding punch holes of the target 3D drawing according to the target direction vector.

[0136] In some embodiments, the acquisition module 100 performs the following when acquiring the target 3D drawing and determining the first arrangement position of the punches on the target 3D drawing:

[0137] S1A1. Using image recognition methods, identify the punching mark points on the target 3D drawing and use the punching mark points as the first placement position.

[0138] In some embodiments, the acquisition module 100 performs the following when acquiring the target 3D drawing and determining the first arrangement position of the punches on the target 3D drawing:

[0139] S1B1. Identify the punching profile on the target 3D drawing using image recognition methods;

[0140] S1B2. Discretize the punching profile into multiple discrete points;

[0141] S1B3. The center position of the punch profile is obtained by calculating the average value of all discrete points, and the center position is used as the first arrangement position.

[0142] In some embodiments, the determining module 200 is used to determine, on the target 3D drawing, for each first arrangement position, whether there are vertical and horizontal line segments within a preset radius centered on the first arrangement position. If it is determined that only vertical line segments exist, then when determining the target direction vector for arranging the punch based on the vertical line segments, the following steps are performed:

[0143] S2A1. For each vertical line segment, identify the two endpoints of the vertical line segment;

[0144] S2A2. Calculate the first vertical direction vector based on the two endpoints of the vertical line segment;

[0145] S2A3. Calculate the first horizontal direction vector and the second horizontal direction vector based on the first vertical direction vector;

[0146] S2A4. Normalize the first vertical direction vector, the first horizontal direction vector, and the second horizontal direction vector to obtain the target direction vector.

[0147] In some embodiments, the determining module 200 is used to determine, on the target 3D drawing, for each first arrangement position, whether there are vertical and horizontal line segments within a preset radius centered on the first arrangement position. If it is determined that both vertical and horizontal line segments exist simultaneously, then when determining the target direction vector for arranging the punch based on the vertical and horizontal line segments, the following steps are performed:

[0148] S2B1. For each vertical line segment, identify the two endpoints of the vertical line segment;

[0149] S2B2. Calculate the second vertical direction vector based on the two endpoints of the vertical line segment;

[0150] S2B3. For each horizontal line segment, identify the two endpoints of the horizontal line segment;

[0151] S2B4. Calculate the third horizontal direction vector based on the two endpoints of the horizontal line segment;

[0152] S2B5. Calculate the fourth horizontal direction vector based on the second vertical direction vector and the third horizontal direction vector;

[0153] S2B6. Normalize the second vertical direction vector, the third horizontal direction vector, and the fourth horizontal direction vector to obtain the target direction vector.

[0154] In some embodiments, the arrangement module 300 performs the following when arranging standard punch markings on the corresponding punches of the target 3D drawing according to the target direction vector:

[0155] S31. Obtain the preset cutting depth and material thickness values;

[0156] S32. Based on the cutting depth and material thickness, and combined with the target direction vector, calculate the second arrangement position of the corresponding punch;

[0157] S33. According to the second arrangement position, arrange standard punch marks on the corresponding punch holes on the target three-dimensional drawing.

[0158] In some embodiments, the arrangement module 300 performs the following when arranging standard punch markings on the corresponding punches of the target 3D drawing according to the second arrangement position:

[0159] S331. Match the standard punch mark to the corresponding punch according to the preset rules;

[0160] S332. According to the second arrangement position, arrange the standard punch mark that matches the punch on the corresponding punch on the target three-dimensional drawing.

[0161] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The present invention provides an electronic device 13, including: a processor 1301 and a memory 1302. The processor 1301 and the memory 1302 are interconnected and communicate with each other via a communication bus 1303 and / or other forms of connection mechanism (not shown). The memory 1302 stores computer-readable instructions executable by the processor 1301. When the electronic device is running, the processor 1301 executes the computer-readable instructions to perform the standard punch marking automatic placement method in any optional implementation of the above embodiments, thereby achieving the following functions: acquiring a target three-dimensional drawing and determining the target... The first arrangement position of the punch on the 3D drawing; on the target 3D drawing, for each first arrangement position, with the first arrangement position as the center, determine whether there are vertical and horizontal line segments within a preset radius, specifically including: if it is determined that only vertical line segments exist, then determine the target direction vector for arranging the punch based on the vertical line segments; if it is determined that both vertical and horizontal line segments exist, then determine the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segments exist, then mark the corresponding punch as abnormal; according to the target direction vector, arrange the standard punch mark on the corresponding punch on the target 3D drawing.

[0162] This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it performs an automatic standard punch marking arrangement method in any optional implementation of the above embodiments to achieve the following functions: acquiring a target 3D drawing and determining a first arrangement position of a punch on the target 3D drawing; on the target 3D drawing, for each first arrangement position, determining whether there are vertical and horizontal line segments within a preset radius, with the first arrangement position as the center, specifically including: if it is determined that only vertical line segments exist, then determining a target direction vector for arranging the punch based on the vertical line segments; if it is determined that both vertical and horizontal line segments exist, then determining a target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segments exist, then marking the corresponding punch as abnormal; and arranging a standard punch marking on the corresponding punch on the target 3D drawing according to the target direction vector.

[0163] The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0164] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0165] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0166] Furthermore, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0167] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0168] The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. For those skilled in the art, the present invention can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for automatically arranging standard punch markings, characterized in that, Includes the following steps: S1. Obtain the target 3D drawing and determine the first arrangement position of the punching holes on the target 3D drawing; S2. On the target 3D drawing, for each of the first arrangement positions, taking the first arrangement position as the center, determine whether there are vertical and horizontal line segments within a preset radius. Specifically, this includes: if it is determined that only the vertical line segment exists, then determine the target direction vector for arranging the punch based on the vertical line segment; if it is determined that both the vertical and horizontal line segments exist, then determine the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segment exists, then mark the corresponding punch as abnormal. S3. Arrange standard punch markings on the corresponding punch holes of the target 3D drawing according to the target direction vector; In step S2, if it is determined that only the vertical line segment exists, the step of determining the target direction vector for arranging the punch based on the vertical line segment includes: S2A1. For each vertical line segment, identify the two endpoints of the vertical line segment; S2A2. Calculate the first vertical direction vector based on the two endpoints of the vertical direction line segment; S2A3. Calculate the first horizontal direction vector and the second horizontal direction vector based on the first vertical direction vector; S2A4. Normalize the first vertical direction vector, the first horizontal direction vector, and the second horizontal direction vector to obtain the target direction vector; In step S2, if it is determined that both the vertical line segment and the horizontal line segment exist simultaneously, the step of determining the target direction vector for arranging the punch based on the vertical line segment and the horizontal line segment includes: S2B1. For each vertical line segment, identify the two endpoints of the vertical line segment; S2B2. Calculate the second vertical direction vector based on the two endpoints of the vertical direction line segment; S2B3. For each horizontal line segment, identify the two endpoints of the horizontal line segment; S2B4. Calculate the third horizontal direction vector based on the two endpoints of the horizontal line segment; S2B5. Calculate the fourth horizontal direction vector based on the second vertical direction vector and the third horizontal direction vector; S2B6. Normalize the second vertical direction vector, the third horizontal direction vector, and the fourth horizontal direction vector to obtain the target direction vector.

2. The method for automatically arranging standard punch markings according to claim 1, characterized in that, Step S1, the step of determining the first arrangement position of the punches on the target 3D drawing, includes: S1A1. Using an image recognition method, identify the punching mark points on the target three-dimensional drawing and use the punching mark points as the first arrangement position.

3. The method for automatically arranging standard punch markings according to claim 1, characterized in that, Step S1, the step of determining the first arrangement position of the punches on the target 3D drawing, includes: S1B1. Identify the punching outline on the target 3D drawing using an image recognition method; S1B2. Discretize the punching profile into multiple discrete points; S1B3. The center position of the punch profile is obtained by calculating the average value of all the discrete points, and the center position is used as the first arrangement position.

4. The method for automatically arranging standard punch markings according to claim 1, characterized in that, The specific steps in step S3 include: S31. Obtain the preset cutting depth and material thickness values; S32. Based on the cutting depth and the material thickness, and in conjunction with the target direction vector, calculate the second arrangement position of the corresponding punch; S33. Arrange standard punch markings on the corresponding punch holes of the target three-dimensional drawing according to the second arrangement position.

5. The automatic arrangement method for standard punch markings according to claim 4, characterized in that, The specific steps in step S33 include: S331. Match the standard punch mark to the corresponding punch according to the preset rules; S332. According to the second arrangement position, arrange a standard punch mark that matches the punch on the corresponding punch of the target three-dimensional drawing.

6. An automatic placement device for standard punch markings, characterized in that, include: The acquisition module is used to acquire the target 3D drawing and determine the first arrangement position of the punches on the target 3D drawing; The determination module is used to determine, on the target 3D drawing, for each of the first arrangement positions, whether there are vertical and horizontal line segments within a preset radius centered on the first arrangement position. Specifically, it includes: if it is determined that only the vertical line segment exists, then determining the target direction vector for arranging the punch based on the vertical line segment; if it is determined that both the vertical and horizontal line segments exist, then determining the target direction vector for arranging the punch based on the vertical and horizontal line segments; if it is determined that no vertical line segment exists, then marking the corresponding punch as abnormal. The arrangement module is used to arrange standard punch marks on the corresponding punch holes of the target 3D drawing according to the target direction vector; The determination module is used to determine, on the target 3D drawing, for each first placement position, whether there are vertical and horizontal line segments within a preset radius centered on the first placement position. If it is determined that only vertical line segments exist, then the module is executed when determining the target direction vector for placing the punch based on the vertical line segments. S2A1. For each vertical line segment, identify the two endpoints of the vertical line segment; S2A2. Calculate the first vertical direction vector based on the two endpoints of the vertical line segment; S2A3. Calculate the first horizontal direction vector and the second horizontal direction vector based on the first vertical direction vector; S2A4. Normalize the first vertical direction vector, the first horizontal direction vector, and the second horizontal direction vector to obtain the target direction vector; The determination module is used to determine, on the target 3D drawing, for each first placement position, whether there are vertical and horizontal line segments within a preset radius centered on the first placement position. If it is determined that both vertical and horizontal line segments exist simultaneously, then the module executes the following when determining the target direction vector for placing the punch based on the vertical and horizontal line segments: S2B1. For each vertical line segment, identify the two endpoints of the vertical line segment; S2B2. Calculate the second vertical direction vector based on the two endpoints of the vertical line segment; S2B3. For each horizontal line segment, identify the two endpoints of the horizontal line segment; S2B4. Calculate the third horizontal direction vector based on the two endpoints of the horizontal line segment; S2B5. Calculate the fourth horizontal direction vector based on the second vertical direction vector and the third horizontal direction vector; S2B6. Normalize the second vertical direction vector, the third horizontal direction vector, and the fourth horizontal direction vector to obtain the target direction vector.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions, which, when executed by the processor, perform the steps of the standard punch marking automatic placement method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it performs the steps in the standard punch mark automatic placement method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Graph labeling method and device based on electronic design automation, equipment and medium

    CN118070745A

  • Punching tool with identification and punching method for through hole with identification

    CN118558840A