Automatic labeling method and system and electronic equipment
Through automatic analysis and selection of labeling algorithms, the PCB design data is solved, and the problems of low labeling efficiency, poor accuracy and compatibility between software in the existing technology are solved, and an efficient and accurate labeling process is achieved.
Patent Information
- Application Number
- CN202510084556.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-16
AI Technical Summary
The existing PCB appearance line labeling technology has problems such as inconvenient operation, time-consuming and easy to cause garbled code when switching between different software.
It provides an automatic labeling method, by obtaining design data in ODB++ format, analyzing the data to identify the appearance line type, and selecting a suitable labeling algorithm for labeling according to the type, and displaying the labeling results in real time.
It improves the efficiency and accuracy of labeling, reduces human errors, ensures accurate labeling of different types of elements, avoids garbled code problems during switching between software, and ensures data compatibility and accurate transmission.
Smart Images

Figure CN120012701A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of annotation technology, and in particular to an automatic annotation method, system and electronic device. Background Art
[0002] Marking the outline of a PCB (printed circuit board) is an important step, especially in the PCB design and manufacturing process. These markings usually include size, shape, hole position, etc., which are crucial to ensure the correct production and assembly of the PCB.
[0003] The existing annotation technology usually uses AutoCAD to manually annotate the PCB outline. Manual annotation has the following shortcomings: The operation is inconvenient and very time-consuming when there are many dimensions to be marked. It is necessary to switch back and forth between the Genesis module of the computer-aided design software and AutoCAD. When the text marked in AutoCAD is re-read into the Genesis module of the computer-aided design software, garbled characters will appear. Summary of the invention
[0004] In order to solve the above-mentioned technical problems, the present application provides an automatic labeling method, system and electronic device that can improve labeling efficiency and labeling accuracy.
[0005] Specifically, the present application provides an automatic labeling method, comprising the following steps: S100: Acquire design data in ODB++ format.
[0006] S200: parsing the design data to identify the contour line type of the design data, and selecting a corresponding annotation algorithm according to the contour line type.
[0007] S300: Annotating the design data based on the annotation algorithm, and displaying the annotation results in real time.
[0008] In the above technical solution, the intelligent annotation algorithm reduces the possibility of human errors, improves the consistency and accuracy of annotation, and greatly improves the efficiency of annotation, allowing designers to focus on more creative work, thereby improving overall design efficiency; automatically identifies the type of contour lines and selects appropriate annotation algorithms to ensure accurate annotation of different types of elements; many software support import and export of ODB++ format, avoiding garbled characters when switching between different software, and ensuring data compatibility and accurate transmission.
[0009] In addition, it supports real-time display of annotation results, so users can intuitively see the annotation information and adjust the annotation content in a timely manner.
[0010] Furthermore, before executing step S100, the following steps are included: The Genesis module is connected to the Gateway module in advance, and a marking interface is set on the operation interface of the Genesis module to set the marking parameters through the marking interface.
[0011] In the above technical solution, the connection between the Genesis module and the Gateway module is established in advance to ensure the smooth transmission of design data, reduce the time and risk of format conversion and manual transmission, and improve overall work efficiency; the annotation interface is directly set on the operation interface of the Genesis module, and the user does not need to switch to other tools, which simplifies the operation process and will not block the original operation interface of the Genesis module. The user can perform the automatic annotation process without affecting the original design work.
[0012] Furthermore, the step S100 includes: A data request is sent to the Genesis module through the Gateway module, so that after receiving the data request, the Genesis module sends the corresponding design data in ODB++ format to the Gateway module, and transmits the design data in ODB++ format to the annotation algorithm module through the Gateway module.
[0013] In the above technical solution, the Gateway module is the data transmission bridge between the annotation algorithm module and the Genesis module. Through the standardized data request and response mechanism, it ensures the accuracy and timeliness of data transmission. The use of ODB++ format reduces redundant information in data transmission and improves transmission efficiency.
[0014] Furthermore, the identification of the contour line type in step S200 includes: The annotation algorithm module extracts identifiers based on the design data in the ODB++ format, so as to obtain the contour line type of the design data according to the identifier; wherein the contour line type includes at least a line and an arc.
[0015] In the above technical solution, identifiers are extracted from design data in ODB++ format to ensure the accuracy of the recognition process. The geometric attributes contained in the identifiers provide a reliable basis for determining the type of contour lines. By identifying the type of contour lines, the annotation algorithm module can generate more comprehensive annotation results to ensure that the annotation content covers all key elements in the design data to avoid omissions.
[0016] Furthermore, the step S200 further includes: At least one annotation algorithm is selected in combination with the contour line type and / or annotation parameters; wherein the annotation algorithm at least includes a line-to-line annotation algorithm, an arc annotation algorithm, and a point-to-point annotation algorithm.
[0017] In the above technical solution, the annotation algorithm is selected by combining the contour line type and / or annotation parameters to ensure the accuracy and pertinence of the annotation result. Different types of contour lines use different annotation algorithms, which reduces the possibility of incorrect annotation.
[0018] Furthermore, in the process of marking the design data, step S300 further includes: The marking parameters are acquired in real time, so as to switch the current marking algorithm based on the marking parameters, and the design data is marked according to the switched marking algorithm.
[0019] In the above technical solution, by acquiring annotation parameters in real time and switching annotation algorithms, the system can dynamically adapt to different annotation requirements to ensure that the annotation results always meet the latest design specifications or user requirements; support dynamic switching of multiple annotation algorithms to adapt to different contour line types and annotation requirements, improve the scope of application of annotation algorithms, and meet the annotation requirements of complex design projects.
[0020] Furthermore, the step S300 includes: The annotation results are displayed in real time through the annotation interface and recorded; and the annotation results are written back to the Genesis module in ODB++ format through the Gateway module; wherein the annotation interface is also provided with a mode switching window, so as to switch between manual annotation and automatic annotation through the mode switching window.
[0021] In the above technical solution, the annotation results are displayed in real time through the annotation interface, and the user can immediately view and confirm the annotation effect, providing a better user experience and interactivity, and facilitating user adjustments and modifications; the annotation results are written back to the Genesis module in ODB++ format through the Gateway module to ensure data integrity and compatibility; the mode switching window allows users to flexibly switch between manual and automatic annotation to meet the needs of different scenarios; the annotation results are displayed and recorded in real time, reducing the possibility of errors and omissions.
[0022] Furthermore, in the process of establishing a connection between the Genesis module and the Gateway module, the following steps are also included: Monitor the connection status between the Genesis module and the Gateway module. If the connection fails, reconnect. If the connection fails after a preset number of times, record the connection result and exit the current process.
[0023] In the above technical solution, by monitoring the connection status and automatic reconnection mechanism, the connection between the Genesis module and the Gateway module is ensured to be stable, reducing data loss or process interruption caused by connection failure; the preset number of reconnection mechanisms provides fault tolerance to avoid connection failures caused by temporary network problems or system failures. The system can automatically exit after multiple attempts to avoid waste of resources caused by infinite retries; the connection failure record provides detailed error information, which is convenient for technicians to quickly locate and solve problems.
[0024] Further, based on the same concept, the present application also provides an automatic annotation system, including: Gateway module, used to obtain design data in ODB++ format.
[0025] The marking algorithm module is used to parse the design data to identify the contour line type of the design data, select a corresponding marking algorithm according to the contour line type, and mark the design data based on the marking algorithm.
[0026] And, the annotation interface module is used to display the annotation results in real time.
[0027] In the above technical solution, the time and cost of manual operation are reduced through automated parsing and annotation algorithms. The system can quickly and accurately identify and annotate design data, improving the accuracy and consistency of annotation. The annotation interface module provides real-time display and interactive functions, and users can instantly view and adjust the annotation results, providing a better user experience and facilitating user review and modification. The annotation algorithm module can identify different contour line types and select corresponding annotation algorithms to adapt to complex PCB design requirements and provide comprehensive annotation support. The Gateway module is responsible for acquiring and transmitting design data in ODB++ format to ensure data integrity and compatibility, making integration with other systems and modules smoother and reducing data conversion and compatibility issues.
[0028] Further, based on the same concept, the present application also provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the automatic labeling method.
[0029] Compared with the prior art, the beneficial effects of this application are: This application first obtains the design data in ODB++ format; then parses the design data to identify the contour line type of the design data, and selects the corresponding annotation algorithm according to the contour line type; further annotates the design data based on the annotation algorithm, and displays the annotation results in real time. This application improves the consistency and accuracy of annotation, greatly improves the efficiency of annotation, and can ensure the accuracy of annotation of different types of elements, and avoids the problem of garbled characters when switching between different software, ensuring the compatibility and accurate transmission of data; in addition, it supports real-time display of annotation results, and users can intuitively see the annotation information, which is convenient for timely adjustment of annotation content. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a flow chart of the automatic annotation method described in this application.
[0031] Figure 2 This is a schematic diagram of the annotation interface described in this application.
[0032] Figure 3 This is a schematic diagram showing part of the design data described in this application.
[0033] Figure 4 This is a framework diagram of the automatic annotation system described in this application. DETAILED DESCRIPTION
[0034] The following is a further detailed description of an automatic labeling method, system and electronic device of the present application in conjunction with specific embodiments and drawings.
[0035] Embodiment 1: See also Figure 1 , the present application provides an automatic labeling method, comprising the following steps S100-S300.
[0036] In some embodiments, the design data in ODB++ format is obtained from the Genesis module through the Gateway module, and the obtained design data is transmitted to the annotation algorithm module for processing, wherein the annotation algorithm module parses the design data and identifies different types of contour lines (lines, arcs) to automatically select a suitable annotation algorithm for annotation. For example, when the contour line type is identified as an arc, the arc annotation algorithm is selected for annotation. At the same time, the annotation interface designed on the original operation interface of the Genesis module displays the annotation results in real time for users to preview, so that users can make fine adjustments based on the annotation results.
[0037] The steps S100 to S300 are described in detail below.
[0038] Step S100: Acquire design data in ODB++ format.
[0039] Furthermore, before executing step S100, the following steps are included: The Genesis module is connected to the Gateway module in advance, and a marking interface is set on the operation interface of the Genesis module to set the marking parameters through the marking interface.
[0040] In some embodiments, a stable connection can be established between the Genesis module and the Gateway module in advance through the TCP / IP protocol or other communication protocols; the user opens the operation interface of the Genesis module, and an integrated annotation interface (such as Figure 2 In the automatic annotation mode, the annotation results will be displayed synchronously on the annotation interface, and users can also adjust the annotation parameters in real time through the annotation interface.
[0041] Among them, the annotation interface is integrated on the operation interface of the Genesis module to provide a unified user operation interface, through which users can directly access and use the annotation function and obtain the current annotation results in real time. The annotation interface displays the material number name, text line width, annotation height, annotation width, annotation line width, arrow shape, as well as automatic annotation buttons and manual annotation buttons.
[0042] In other embodiments, other functions may also be designed on the annotation interface, such as displaying operation buttons such as save and cancel to facilitate user operations, and may also display annotation styles, such as line style, color, etc.
[0043] It should be noted that Genesis is a CAD (computer-aided design) software, mainly used in the field of mechanical design and engineering. It provides powerful modeling and assembly functions, allowing users to create complex 3D models and mechanical systems; Gateway is a software module that can connect two or more different networks and realize data switching and transmission between networks.
[0044] In the above technical solution, the connection between the Genesis module and the Gateway module is established in advance to ensure the smooth transmission of design data, reduce the time and risk of format conversion and manual transmission, and improve overall work efficiency; the annotation interface is directly set on the operation interface of the Genesis module, and the user does not need to switch to other tools, which simplifies the operation process and will not block the original operation interface of the Genesis module. The user can perform the automatic annotation process without affecting the original design work.
[0045] Furthermore, in the process of establishing a connection between the Genesis module and the Gateway module, the following steps are also included: Monitor the connection status between the Genesis module and the Gateway module. If the connection fails, reconnect. If the connection fails after a preset number of times, record the connection result and exit the current process.
[0046] In some embodiments, the automatic labeling system monitors the connection status in real time, for example, by regularly checking whether the connection is normal through a heartbeat mechanism; if the connection fails, the reconnection process is triggered, and an attempt is automatically made to reconnect. The interval between each retry can gradually increase or be the same. If the connection cannot be made within a preset number of times (such as 3 times), the connection result (such as the number of retries, the status of each retry, etc.) is recorded, the current process is exited, and subsequent operations are stopped.
[0047] In other embodiments, a prompt window may also pop up on the Genesis module to prompt the user of connection failure information.
[0048] In the above technical solution, by monitoring the connection status and automatic reconnection mechanism, the connection between the Genesis module and the Gateway module is ensured to be stable, reducing data loss or process interruption caused by connection failure; the preset number of reconnection mechanisms provides fault tolerance to avoid connection failures caused by temporary network problems or system failures. The system can automatically exit after multiple attempts to avoid waste of resources caused by infinite retries; the connection failure record provides detailed error information, which is convenient for technicians to quickly locate and solve problems.
[0049] Furthermore, the step S100 includes: A data request is sent to the Genesis module through the Gateway module, so that after receiving the data request, the Genesis module sends the corresponding design data in ODB++ format to the Gateway module, and transmits the design data in ODB++ format to the annotation algorithm module through the Gateway module.
[0050] In some embodiments, the Gateway module sends a data request to the Genesis module, requesting specific design data; after receiving the request, the Genesis module retrieves and prepares the corresponding design data, converts the design data into ODB++ format, and connects the design data in ODB++ format (such as Figure 3 as shown) to the Gateway module.
[0051] Furthermore, the Gateway module receives the design data and sends a confirmation message to the Genesis module. The Gateway module transmits the design data to the annotation algorithm module. The annotation algorithm module parses the design data and performs necessary preprocessing.
[0052] In the above technical solution, the Gateway module is the data transmission bridge between the annotation algorithm module and the Genesis module. Through the standardized data request and response mechanism, it ensures the accuracy and timeliness of data transmission. The use of ODB++ format reduces redundant information in data transmission and improves transmission efficiency.
[0053] Step S200: parsing the design data to identify the contour type of the design data, and selecting a corresponding annotation algorithm according to the contour type.
[0054] Furthermore, the identification of the contour line type in step S200 includes: The annotation algorithm module extracts identifiers based on the design data in the ODB++ format, so as to obtain the contour line type of the design data according to the identifier; wherein the contour line type includes at least a line and an arc.
[0055] In some embodiments, the identifiers of lines and arcs are, for example, L and A, respectively; based on, for example Figure 3 The design data shown can obtain the current contour line type; then further perform corresponding feature extraction on the line with identifier L, and perform corresponding feature extraction on the arc with identifier A.
[0056] Among them, taking the design data in ODB++ format such as "A 0.5138 1.44906004 0.560969981.40188996 0.56096998 1.44905994 0 P 1 N" as an example, A represents an arc, 0.51381.44906004 represents the X and Y coordinates of the starting point, 0.56096998 1.40188996 represents the X and Y coordinates of a point on the arc, 0.56096998 1.44905994 represents the X and Y coordinates of the end point, 0 represents the angle, P represents the positive polarity, and N represents the negative polarity. These data define a series of arcs and lines, each of which has a specific coordinate position and attributes.
[0057] In the above technical solution, identifiers are extracted from design data in ODB++ format to ensure the accuracy of the recognition process. The geometric attributes contained in the identifiers provide a reliable basis for determining the type of contour lines. By identifying the type of contour lines, the annotation algorithm module can generate more comprehensive annotation results to ensure that the annotation content covers all key elements in the design data to avoid omissions.
[0058] Furthermore, the step S200 further includes: At least one annotation algorithm is selected in combination with the contour line type and / or annotation parameters; wherein the annotation algorithm at least includes a line-to-line annotation algorithm, an arc annotation algorithm, and a point-to-point annotation algorithm.
[0059] Among them, the line-to-line annotation algorithm is suitable for processing the annotation between two lines, such as measuring the distance, angle or other geometric relationship between them. It is suitable for annotation scenarios that need to connect two lines, such as the connection between PCB traces; the arc annotation algorithm is specifically used to process the annotation of arc-shaped geometric figures. It can calculate the radius, angle, length and other attributes of the arc, and generate corresponding annotation information. It is suitable for arc traces, rounded corners and other situations in PCB design; the point-to-point annotation algorithm is used to process the annotation between two points, such as measuring the distance between two points, or determining their connection line. It is suitable for scenarios that need to mark the relationship between specific points, such as hole location map annotation. The distance between holes usually specifies a reference hole, and the positions of other holes are expressed in relative coordinates.
[0060] In some embodiments, based on previously extracted identifiers, the type of geometric figure is determined, such as a line (L) or an arc (A); the most appropriate annotation algorithm is selected according to the contour line type, for example, if the contour line type is an arc (A), an arc annotation algorithm is selected; if it is a distance annotation between two lines, a line-to-line annotation algorithm is selected.
[0061] In the above technical solution, the annotation algorithm is selected by combining the contour line type and / or annotation parameters to ensure the accuracy and pertinence of the annotation result. Different types of contour lines use different annotation algorithms, which reduces the possibility of incorrect annotation.
[0062] Step S300: annotating the design data based on the annotation algorithm, and displaying the annotation results in real time.
[0063] Furthermore, in the process of marking the design data, step S300 further includes: The marking parameters are acquired in real time, so as to switch the current marking algorithm based on the marking parameters, and the design data is marked according to the switched marking algorithm.
[0064] In some embodiments, during the annotation process, if the user adjusts the annotation parameters in the annotation interface, such as adjusting the annotation rules, the selection of the annotation algorithm may change accordingly.
[0065] If it is manual labeling, the user can choose the appropriate labeling algorithm.
[0066] In the above technical solution, by acquiring annotation parameters in real time and switching annotation algorithms, the system can dynamically adapt to different annotation requirements to ensure that the annotation results always meet the latest design specifications or user requirements; support dynamic switching of multiple annotation algorithms to adapt to different contour line types and annotation requirements, improve the scope of application of annotation algorithms, and meet the annotation requirements of complex design projects.
[0067] Furthermore, the step S300 includes: The annotation results are displayed in real time through the annotation interface and recorded; and the annotation results are written back to the Genesis module in ODB++ format through the Gateway module; wherein the annotation interface is also provided with a mode switching window, so as to switch between manual annotation and automatic annotation through the mode switching window.
[0068] In some embodiments, the annotation interface serves as a window for interaction between the automatic annotation system and the user, allowing the user to quickly switch between manual annotation and automatic annotation modes. It also provides detailed parameter configuration options, allowing the user to adjust annotation rules and styles according to specific needs; in automatic annotation mode, the user can preview the annotation results in real time and make fine adjustments.
[0069] In the above technical solution, the annotation results are displayed in real time through the annotation interface, and the user can immediately view and confirm the annotation effect, providing a better user experience and interactivity, and facilitating user adjustments and modifications; the annotation results are written back to the Genesis module in ODB++ format through the Gateway module to ensure data integrity and compatibility; the mode switching window allows users to flexibly switch between manual and automatic annotation to meet the needs of different scenarios; the annotation results are displayed and recorded in real time, reducing the possibility of errors and omissions.
[0070] Embodiment 2: See also Figure 4 , the present application also provides an automatic annotation system, comprising: The Gateway module is used to obtain design data in ODB++ format. The Gateway module establishes a stable communication connection with the Genesis module of the CAD software to ensure real-time data transmission, so as to obtain design data in ODB++ format from the Genesis module and pass the obtained design data to the annotation algorithm module for processing. At the same time, after the annotation algorithm module completes the corresponding processing, the Gateway module is also responsible for writing the annotation data calculated by the annotation algorithm back to the Genesis module in ODB++ format.
[0071] The annotation algorithm module is used to parse the design data to identify the contour line type of the design data, select the corresponding annotation algorithm according to the contour line type, and annotate the design data based on the annotation algorithm; wherein the annotation algorithm module is the core of the system, responsible for specific annotation logic and calculation, including at least line-to-line annotation algorithm, arc annotation algorithm and point-to-point annotation algorithm; this module parses the ODB++ storage file, identifies different types of contour lines (line, arc), and automatically selects the appropriate annotation algorithm for annotation.
[0072] And, the annotation interface module is used to display the annotation results in real time; wherein, the annotation interface floats above the operation interface of the Genesis module of the computer-aided design software, and does not block the original operation interface of the Genesis module. The user can use the automatic annotation system without affecting the original design work; at the same time, an intuitive user interface is provided, including switching between manual annotation and automatic annotation modes, as well as setting of annotation parameters; in the automatic annotation mode, the user can preview the annotation results in real time and make fine adjustments.
[0073] In addition, the system can run on Windows and Linux systems, adapting to different user environments and expanding the application scope of the software.
[0074] It should also be noted that the automatic annotation system usually also includes a logging module to record key operations and system status changes during the annotation process (such as the annotation results and connection results mentioned above).
[0075] In the above technical solution, the time and cost of manual operation are reduced through automated parsing and annotation algorithms. The system can quickly and accurately identify and annotate design data, improving the accuracy and consistency of annotation. The annotation interface module provides real-time display and interactive functions, and users can instantly view and adjust the annotation results, providing a better user experience and facilitating user review and modification. The annotation algorithm module can identify different contour line types and select corresponding annotation algorithms to adapt to complex PCB design requirements and provide comprehensive annotation support. The Gateway module is responsible for acquiring and transmitting design data in ODB++ format to ensure data integrity and compatibility, making integration with other systems and modules smoother and reducing data conversion and compatibility issues.
[0076] Embodiment three: The present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the automatic annotation method.
[0077] In some embodiments, the electronic device includes at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program 32, the steps in any of the above method embodiments are implemented.
[0078] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0079] In some embodiments, the memory may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory may also include both an internal storage unit of the electronic device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0080] In summary, the present application provides an automatic annotation method, system and electronic device; first, the design data in ODB++ format is obtained; then the design data is parsed to identify the contour line type of the design data, and the corresponding annotation algorithm is selected according to the contour line type; the design data is further annotated based on the annotation algorithm, and the annotation results are displayed in real time. The present application improves the consistency and accuracy of annotation, greatly improves the efficiency of annotation, and can ensure the accuracy of annotation of different types of elements, and also avoids the problem of garbled characters when switching between different software, ensuring the compatibility and accurate transmission of data; in addition, it supports the real-time display of annotation results, and users can intuitively see the annotation information, which is convenient for timely adjustment of the annotation content.
[0081] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.
[0082] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0083] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0084] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0085] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0086] Although the description of the present application is carried out in conjunction with the above specific embodiments, it is obvious that those skilled in the art can make many substitutions, modifications and changes based on the above content. Therefore, all such substitutions, improvements and changes are included in the spirit and scope of the appended claims.
Claims
1. An automatic labeling method, characterized in that: The following steps are involved: S100: Obtain design data in ODB++ format; S200: parsing the design data to identify the contour line type of the design data, and selecting a corresponding annotation algorithm according to the contour line type; S300: Annotating the design data based on the annotation algorithm, and displaying the annotation results in real time.
2. The automatic marking method according to claim 1, characterized in that: Before executing step S100, the process includes: The Genesis module is connected to the Gateway module in advance, and a marking interface is set on the operation interface of the Genesis module to set the marking parameters through the marking interface.
3. The automatic marking method according to claim 2, characterized in that: The step S100 includes: A data request is sent to the Genesis module through the Gateway module, so that after receiving the data request, the Genesis module sends the corresponding design data in ODB++ format to the Gateway module, and transmits the design data in ODB++ format to the annotation algorithm module through the Gateway module.
4. The automatic marking method according to claim 1, characterized in that: The step S200 of identifying the contour type includes: The annotation algorithm module extracts identifiers based on the design data in the ODB++ format, so as to obtain the contour line type of the design data according to the identifier; wherein the contour line type includes at least a line and an arc.
5. The automatic marking method according to claim 4, characterized in that: The step S200 further includes: At least one annotation algorithm is selected in combination with the contour line type and / or annotation parameters; wherein the annotation algorithm at least includes a line-to-line annotation algorithm, an arc annotation algorithm, and a point-to-point annotation algorithm.
6. The automatic marking method according to claim 5, characterized in that: In the process of marking the design data, step S300 further includes: The marking parameters are acquired in real time, so as to switch the current marking algorithm based on the marking parameters, and the design data is marked according to the switched marking algorithm.
7. The automatic marking method according to claim 1, characterized in that: The step S300 includes: The annotation results are displayed in real time through the annotation interface, and the annotation results are recorded; and writing the annotation results back to the Genesis module in ODB++ format through the Gateway module; The annotation interface is further provided with a mode switching window, so as to switch between manual annotation and automatic annotation through the mode switching window.
8. The automatic marking method according to claim 2, characterized in that: The process of connecting the Genesis module to the Gateway module also includes: Monitor the connection status between the Genesis module and the Gateway module, and reconnect if the connection fails; If the connection fails after a preset number of times, the connection result is recorded and the current process is exited.
9. A system using the automatic labeling method according to any one of claims 1 to 8, characterized in that: include: Gateway module, used to obtain design data in ODB++ format; A marking algorithm module, used to parse the design data to identify the contour line type of the design data, select a corresponding marking algorithm according to the contour line type, and mark the design data based on the marking algorithm; And, the annotation interface module is used to display the annotation results in real time.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the automatic annotation method as described in any one of claims 1-8.