PCB rendering graph generation method and device, terminal equipment and storage medium
By automatically generating PCB renderings, using order numbers and human-computer interaction information to generate coordinate system parameters, the problem of low efficiency of traditional manual search is solved and fast and accurate component positioning is achieved.
Patent Information
- Application Number
- CN202510060037.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-06
AI Technical Summary
In PCB production and rework, traditional manual component search methods are inefficient, especially when complexity is increased and component spacing is reduced, it is difficult to quickly and accurately locate specific components.
By generating PCB renderings, displaying the initial renderings using the production and manufacturing order number, obtaining the actual position data of the component, detecting human-computer interaction information to generate positioning data, generating coordinate system parameters, and finally automatically generating the second PCB renderings to reduce the manual search time.
Improves the efficiency and accuracy of component positioning, reduces the time required to manually find components, and enables quick and accurate positioning of specific components.
Smart Images

Figure CN119940272A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing, and in particular relates to a method, device, terminal equipment and storage medium for generating a PCB rendering. Background Art
[0002] During the production and rework of PCBs (printed circuit boards), it is often necessary to locate specific components quickly and accurately.
[0003] Traditional positioning methods usually rely on manual search, that is, searching by comparing one by one on the PCB board or referring to drawings. However, with the increasing complexity and integration of modern electronic products, the number of components on the PCB board is increasing, and the spacing between components is getting smaller and smaller, which makes manual search particularly difficult. A new technical means is needed to solve the above technical problems. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method, apparatus, terminal device and storage medium for generating a PCB rendering, which can solve the problem of low efficiency in positioning specific components in related technologies.
[0005] A first aspect of the present invention provides a method for generating a PCB rendering, comprising: When the manufacturing order number is detected, the first PCB rendering is displayed according to the manufacturing order number, and the component actual position data file is obtained according to the manufacturing order number; When human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes position numbers of three target components and coordinates of the three target components in the first PCB rendering; Generate coordinate system one parameter according to the positioning data and the actual position data file of the component; A second PCB rendering is generated according to the coordinate system first parameter and the component actual position data file.
[0006] Optionally, in a first implementation of the first aspect of the present invention, when human-computer interaction information interacting with the first PCB rendering is detected, the step of generating positioning data according to the human-computer interaction information includes: It indicates that three image areas corresponding to three target components are selected in the first PCB rendering to form human-computer interaction information.
[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of displaying the first PCB rendering according to the manufacturing order number includes: Display the overall PCB rendering according to the Gerber file corresponding to the manufacturing order number; When a selection instruction for a plane is detected, the overall PCB rendering is switched to a first PCB rendering corresponding to the plane according to the Gerber file.
[0008] Optionally, in a third implementation of the first aspect of the present invention, the step of generating a coordinate system parameter according to the positioning data and the component actual position data file includes: According to the bit numbers in the positioning data, the actual coordinates corresponding to the three target components are determined in the component actual position data file; Generate coordinate system parameters based on the actual coordinates and the coordinates in the positioning data.
[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the step of generating a coordinate system parameter according to the actual coordinates and the coordinates in the positioning data includes: According to the actual coordinates and the coordinates in the positioning data, a calibration operation is performed between the actual distance and the pixel distance to obtain a coordinate system parameter.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the step of generating a second PCB rendering according to a coordinate system parameter and a component actual position data file includes: According to a parameter of the coordinate system, a coordinate unification operation is performed on the actual position data file of the component to obtain the actual position data file of the target component; Generate a second PCB rendering based on the target component actual position data file.
[0011] Optionally, in a sixth implementation of the first aspect of the present invention, generating a second PCB rendering according to the target component actual position data file further includes: According to the Gerber file corresponding to the manufacturing order number, determine whether there is abnormal coordinate data in the actual position data file of the target component; If there is abnormal coordinate data, the abnormal area corresponding to the abnormal coordinate data is highlighted in the second PCB rendering.
[0012] In a second aspect, an embodiment of the present invention provides a device for generating a PCB rendering, comprising: An acquisition module is used to display a first PCB rendering according to the manufacturing order number when a manufacturing order number is detected, and to acquire a component actual position data file according to the manufacturing order number; A data generation module, configured to generate positioning data according to the human-computer interaction information when detecting human-computer interaction information interacting with the first PCB rendering, wherein the positioning data includes bit numbers of three target components and coordinates of the three target components in the first PCB rendering; A parameter generation module, used for generating a coordinate system parameter according to the positioning data and the component actual position data file; The rendering generation module is used to generate a second PCB rendering according to a coordinate system parameter and a component actual position data file.
[0013] In a third aspect, an embodiment of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating the above-mentioned PCB rendering image when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for generating the above-mentioned PCB rendering are implemented.
[0015] In a fifth aspect, an embodiment of the present invention provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the above-mentioned method for generating a PCB rendering image.
[0016] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: when a manufacturing order number is detected, a first PCB rendering is displayed according to the manufacturing order number, and a component actual position data file is obtained according to the manufacturing order number; when human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes the position numbers of three target components and the coordinates of the three target components in the first PCB rendering; a coordinate system parameter is generated according to the positioning data and the component actual position data file; a second PCB rendering is generated according to the coordinate system parameter and the component actual position data file. By automatically generating the second PCB rendering, the time required for manual component search can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 A schematic diagram of an embodiment of a method for generating a PCB rendering in an embodiment of the present invention; Figure 2 A schematic diagram of a specific embodiment of step S101 of the method for generating a PCB rendering in an embodiment of the present invention; Figure 3A schematic diagram of a specific embodiment of step S103 of the method for generating a PCB rendering in an embodiment of the present invention; Figure 4 A schematic diagram of an embodiment of a device for generating a PCB rendering in an embodiment of the present invention; Figure 5 The figure is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are protected by the present invention.
[0020] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specifications and drawings of the present invention, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.
[0021] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0022] During the production and rework of PCBs (printed circuit boards), it is often necessary to locate specific components quickly and accurately.
[0023] Traditional positioning methods usually rely on manual search, that is, searching by comparing one by one on the PCB board or referring to drawings. However, with the increasing complexity and integration of modern electronic products, the number of components on the PCB board is increasing, and the spacing between components is getting smaller and smaller, which makes manual search particularly difficult. A new technical means is needed to solve the above technical problems.
[0024] In view of this, an embodiment of the present invention provides a method, apparatus, terminal device and storage medium for generating a PCB rendering, which can reduce the time required for manual component search by automatically generating a second PCB rendering.
[0025] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0026] Figure 1 The present invention provides a schematic diagram of a method for generating a PCB rendering provided by an embodiment of the present invention, which can be applied to a terminal device. The terminal device can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.
[0027] Specifically, the above-mentioned method for generating a PCB rendering may include the following steps S101 to S103.
[0028] Step S101, when a manufacturing order number is detected, a first PCB rendering is displayed according to the manufacturing order number, and a component actual position data file is obtained according to the manufacturing order number.
[0029] In an embodiment of the present invention, the PCB rendering generation device detects whether a manufacturing order number is input, which can be received through a user interface (UI), such as scanning a QR code, manually inputting, or automatically importing from an ERP (Enterprise Resource Planning) system.
[0030] A valid manufacturing order number is detected and the corresponding Gerber file is retrieved from the database based on the order number. Gerber file is a standard file format in the PCB design industry, used to describe the layout, shape, copper layer and other information of the circuit board. Parse the Gerber file and display the overall PCB rendering.
[0031] At the same time, the actual position data file of the components related to the circuit board is obtained according to the manufacturing order number. The actual position data file of the components contains the precise position information of each component on the circuit board.
[0032] Step S102, when human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes the position numbers of the three target components and the coordinates of the three target components in the first PCB rendering.
[0033] In an embodiment of the present invention, interactive operations on the user interface, such as mouse clicks, drags, keyboard inputs, etc., are monitored.
[0034] When it is detected that the user interacts with the displayed first PCB rendering, the user's operation intention is identified, such as selecting a specific component, and it is verified whether the number of components selected by the user meets the requirements (three target components in this example).
[0035] According to the three target components selected by the user, the position numbers (component identification) of these components are extracted from the first PCB rendering. At the same time, the system records the pixel coordinates of these components in the first PCB rendering. The position numbers and pixel coordinates are combined into positioning data.
[0036] Optionally, it is indicated that three image areas corresponding to three target components are selected in the first PCB rendering to form human-computer interaction information. The first PCB rendering is displayed through a user interface, and the image contains multiple layers of information, such as a top layer, a bottom layer, a circuit layer, etc. The user can view the details of the image through functions such as zooming and panning on the interface. After detecting the user's interactive operations, these operations are converted into human-computer interaction information. The human-computer interaction information includes the image area coordinates of the three target components selected by the user, the order of selection, etc. According to the human-computer interaction information, positioning data including the bit numbers of the three target components and their coordinates in the first PCB rendering is generated. The bit number is a unique identifier of the component, and the coordinates describe the position of the component in the image. By allowing the user to directly select the target component in the first PCB rendering, the time for manual input and verification is reduced, and the overall work efficiency is improved.
[0037] Step S103, generating a coordinate system parameter according to the positioning data and the component actual position data file.
[0038] In an embodiment of the present invention, the positioning data and the component actual position data file are used to generate a coordinate system parameter. This parameter is used to unify the coordinate system in the first PCB rendering and the coordinate system in the component actual position data file.
[0039] It should be noted that, through the coordinate system one parameter, the coordinates in the component actual position data file can be converted to the same coordinate system as the first PCB rendering image for subsequent processing.
[0040] Step S104, generating a second PCB rendering according to the coordinate system first parameter and the component actual position data file.
[0041] In an embodiment of the present invention, a second PCB rendering is generated based on the coordinate system parameters and the component actual position data file. This rendering shows the actual position and layout of all components on the PCB, which can be used for inspection, error detection or confirmation before and after production.
[0042] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: when a manufacturing order number is detected, a first PCB rendering is displayed according to the manufacturing order number, and a component actual position data file is obtained according to the manufacturing order number; when human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes the position numbers of three target components and the coordinates of the three target components in the first PCB rendering; a coordinate system parameter is generated according to the positioning data and the component actual position data file; a second PCB rendering is generated according to the coordinate system parameter and the component actual position data file. By automatically generating the second PCB rendering, the time required for manual component search can be reduced.
[0043] Figure 2 1 is a schematic diagram of a specific embodiment of step S101 of the method for generating a PCB rendering in an embodiment of the present invention. Step S101 also includes the following specific implementation methods.
[0044] Step S1011, displaying the overall PCB rendering according to the Gerber file corresponding to the manufacturing order number.
[0045] In an embodiment of the present invention, an image rendering technique is used to convert a Gerber file into an image that can be displayed on a user interface, for example, information such as circuits, pads, solder resists, etc. in a Gerber file is parsed and presented to a user in a graphical manner.
[0046] After displaying the overall PCB rendering, detect whether the user has issued a face selection command based on the interactive interface. Faces usually refer to different layers of the PCB, such as the top layer, bottom layer, circuit layer, solder mask layer, etc. Users can select specific faces through buttons, drop-down menus or other interactive elements on the user interface.
[0047] Step S1012, when a selection instruction for a plane is detected, the overall PCB rendering is switched to a first PCB rendering corresponding to the plane according to the Gerber file.
[0048] In an embodiment of the present invention, a valid face selection instruction is detected, corresponding face information is extracted from the Gerber file according to the user's selection, and the image displayed on the user interface is updated, so that the user can view different levels of the PCB.
[0049] In the embodiment of the present invention, the user can view and analyze different layers of the PCB, which helps the user to better understand the layout and circuit information of the PCB, thereby speeding up the error correction speed of the second PCB rendering generated subsequently.
[0050] In the field of PCB design and manufacturing, the first PCB rendering and the component actual position data file are two important data sources. The first PCB rendering is usually used to describe the layout and circuit information of the PCB, while the component actual position data file contains the actual position information of all components on the PCB. However, since these two data sources may use different coordinate systems, it is difficult to combine them. Based on this, the present invention proposes an optional embodiment.
[0051] Figure 3 1 is a schematic diagram of a specific embodiment of step S103 of the method for generating a PCB rendering in an embodiment of the present invention. Step S103 also includes the following specific implementation methods.
[0052] Step S1031, determining the actual coordinates corresponding to the three target components in the component actual position data file according to the bit numbers in the positioning data.
[0053] In an embodiment of the present invention, after the human-computer interaction information is detected and the positioning data is generated, the positioning data is parsed. The positioning data includes the position numbers of the three target components and their coordinates in the first PCB rendering.
[0054] According to the bit number in the positioning data, the actual coordinates of the corresponding target components are retrieved in the component actual position data file. The component actual position data file is a database or file containing the actual positions of all components on the PCB.
[0055] The coordinates (pixel coordinates) in the first PCB rendering obtained by analysis are aligned with the actual coordinates (physical coordinates) in the component actual position data file. This step can achieve the conversion and unification of the coordinate system so that the two can be compared and calculated under the same coordinate system.
[0056] Step S1032, generating a coordinate system parameter according to the actual coordinates and the coordinates in the positioning data.
[0057] In an embodiment of the present invention, a coordinate system parameter 1 is generated according to the result of the benchmarking operation. The coordinate system parameter 1 is used to unify the coordinates in the component actual position data file into the same coordinate system as the first PCB rendering in subsequent steps, so as to generate a second PCB rendering.
[0058] In the embodiment of the present invention, through the coordinate alignment operation, the coordinates in the first PCB rendering and the coordinates in the component actual position data file can be in the same coordinate system, thereby improving the accuracy of the generated second PCB rendering.
[0059] Optionally, step S1032 further includes: Step S10321, performing a calibration operation between the actual distance and the pixel distance according to the actual coordinates and the coordinates in the positioning data, and obtaining a coordinate system parameter.
[0060] In an embodiment of the present invention, the proportional relationship between the pixel coordinates and the actual coordinates is determined according to the resolution and size of the first PCB rendering. The pixel coordinates are converted to the actual coordinates, or the actual coordinates are converted to the pixel coordinates, to ensure that the two are consistent in the same coordinate system.
[0061] According to the result of the benchmarking operation, a coordinate system parameter 1 is generated. The coordinate system parameter 1 includes a scale factor, an offset, etc., which is used to unify the coordinates in the component actual position data file into the same coordinate system as the first PCB rendering in the subsequent steps.
[0062] By performing a calibration operation between the actual distance and the pixel distance, the coordinates in the first PCB rendering and the coordinates in the component actual position data file can be made consistent in the same coordinate system, thereby improving the accuracy of the generated second PCB rendering.
[0063] Step S103 also includes the following specific implementation methods.
[0064] Step S1033, performing a coordinate unification operation on the component actual position data file according to a parameter of the coordinate system, to obtain the target component actual position data file.
[0065] In an embodiment of the present invention, all coordinates in the component actual position data file are converted using a coordinate system parameter.
[0066] After the coordinate unification operation is completed, a new data file is generated, namely the actual position data file of the target component. All coordinates in this file have used the coordinate system corresponding to the first PCB rendering.
[0067] Step S1034, generating a second PCB rendering according to the target component actual position data file.
[0068] In the embodiment of the present invention, through the coordinate unification operation, the actual position of the component and the position in the first PCB rendering are consistent in the coordinate system, thereby improving the accuracy of the rendering.
[0069] There are many factors in the PCB manufacturing process that may cause the actual position of the component to be inconsistent with the position in the first PCB rendering. For example, machine errors, data input errors, component placement errors, etc. may all cause this problem. Traditional inspection methods usually rely on manual review or simple automated inspection tools, which are often inefficient and prone to missing problems. Based on this, the present invention proposes an optional embodiment.
[0070] The following specific implementation is also included after step S104.
[0071] Step S201, judging whether there is abnormal coordinate data in the actual position data file of the target component according to the Gerber file corresponding to the manufacturing order number.
[0072] In an embodiment of the present invention, after performing a coordinate unification operation on the component actual position data file according to a coordinate system parameter, it is checked whether each coordinate data in the target component actual position data file matches the expected position in the first PCB rendering.
[0073] Step S202: If there is abnormal coordinate data, the abnormal area corresponding to the abnormal coordinate data is highlighted in the second PCB rendering.
[0074] In an embodiment of the present invention, if the system detects that there are abnormal coordinate data in the actual position data file of the target component, that is, the actual position of one or some components is inconsistent with the expected position in the first PCB rendering, these abnormal areas will be highlighted in the second PCB rendering.
[0075] Specifically, highlighting can be achieved by changing the color, border, or other visual attributes of the abnormal area so that users can easily identify potential problems.
[0076] In the embodiment of the present invention, by detecting and highlighting the area corresponding to the abnormal coordinate data, it is possible to help the user find potential errors in time, thereby improving the repair efficiency.
[0077] Figure 4 A schematic diagram of the structure of a device for generating a PCB rendering provided by an embodiment of the present invention is shown. The device 400 for generating a PCB rendering may be configured on a terminal device. Specifically, the device 400 for generating a PCB rendering may include: The acquisition module 401 is used to display the first PCB rendering according to the manufacturing order number when the manufacturing order number is detected, and to acquire the component actual position data file according to the manufacturing order number; The data generating module 402 is used to generate positioning data according to the human-computer interaction information when detecting the human-computer interaction information interacting with the first PCB rendering, wherein the positioning data includes the position numbers of the three target components and the coordinates of the three target components in the first PCB rendering; The parameter generation module 403 is used to generate a coordinate system parameter according to the positioning data and the component actual position data file; The rendering generation module 404 is used to generate a second PCB rendering according to a coordinate system parameter and a component actual position data file.
[0078] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: when a manufacturing order number is detected, a first PCB rendering is displayed according to the manufacturing order number, and a component actual position data file is obtained according to the manufacturing order number; when human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes the position numbers of three target components and the coordinates of the three target components in the first PCB rendering; a coordinate system parameter is generated according to the positioning data and the component actual position data file; a second PCB rendering is generated according to the coordinate system parameter and the component actual position data file. By automatically generating the second PCB rendering, the time required for manual component search can be reduced.
[0079] In some embodiments of the present invention, the data generation module 402 is further used to: It indicates to select three image areas corresponding to three target components in the first PCB rendering to form human-computer interaction information.
[0080] In some implementations of the present invention, the acquisition module 401 is further used to: Display the overall PCB rendering according to the Gerber file corresponding to the manufacturing order number; When a selection instruction for a plane is detected, the overall PCB rendering is switched to a first PCB rendering corresponding to the plane according to the Gerber file.
[0081] In some implementations of the present invention, the parameter generation module 403 is further used to: According to the bit numbers in the positioning data, the actual coordinates corresponding to the three target components are determined in the component actual position data file; Generate coordinate system parameters based on the actual coordinates and the coordinates in the positioning data.
[0082] In some implementations of the present invention, the parameter generation module 403 is further used to: According to the actual coordinates and the coordinates in the positioning data, a calibration operation is performed between the actual distance and the pixel distance to obtain a coordinate system parameter.
[0083] In some implementations of the present invention, the parameter generation module 403 is further used to: According to a parameter of the coordinate system, a coordinate unification operation is performed on the actual position data file of the component to obtain the actual position data file of the target component; Generate a second PCB rendering based on the target component actual position data file.
[0084] In some embodiments of the present invention, the PCB rendering generation device 400 further includes an error detection module for: According to the Gerber file corresponding to the manufacturing order number, determine whether there is abnormal coordinate data in the actual position data file of the target component; If there is abnormal coordinate data, the abnormal area corresponding to the abnormal coordinate data is highlighted in the second PCB rendering.
[0085] like Figure 5 As shown, it is a schematic diagram of a terminal device provided by an embodiment of the present invention. The terminal device 5 may include: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as a program for generating a PCB rendering. When the processor 501 executes the computer program 503, the steps in the above-mentioned generation embodiments of the PCB rendering are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0086] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502 and executed by the processor 501 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0087] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0088] The processor 501 may be a central processing unit (CPU), or 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.
[0089] The memory 502 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 502 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 502 may also include both an internal storage unit of the terminal device and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0090] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.
[0091] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0092] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method for generating a PCB rendering can be implemented.
[0093] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the steps in the above-mentioned method for generating a PCB rendering image can be implemented when the mobile terminal executes the computer program product.
[0094] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0095] Those skilled 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 the present invention.
[0096] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or 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 system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0099] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0100] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for generating a PCB rendering, characterized in that: include: When the manufacturing order number is detected, a first PCB rendering is displayed according to the manufacturing order number, and a component actual position data file is obtained according to the manufacturing order number; When human-computer interaction information interacting with the first PCB rendering is detected, positioning data is generated according to the human-computer interaction information, and the positioning data includes position numbers of three target components and coordinates of the three target components in the first PCB rendering; Generate a coordinate system parameter according to the positioning data and the component actual position data file; A second PCB rendering is generated according to the coordinate system first parameter and the component actual position data file.
2. The method for generating a PCB rendering according to claim 1, characterized in that: When the human-computer interaction information interacting with the first PCB rendering is detected, the step of generating positioning data according to the human-computer interaction information includes: Instruct to select three image areas corresponding to the three target components in the first PCB rendering to form the human-computer interaction information.
3. The method for generating a PCB rendering according to claim 1, characterized in that: The step of displaying a first PCB rendering according to the manufacturing order number comprises: Displaying the overall PCB rendering according to the Gerber file corresponding to the manufacturing order number; When a selection instruction for a plane number is detected, the overall PCB rendering is switched to the first PCB rendering corresponding to the plane number according to the Gerber file.
4. The method for generating a PCB rendering according to claim 1, wherein: The step of generating a parameter of a coordinate system according to the positioning data and the actual position data file of the component comprises: According to the bit number in the positioning data, determine the actual coordinates corresponding to the three target components in the component actual position data file; A parameter of the coordinate system is generated according to the actual coordinates and the coordinates in the positioning data.
5. The method for generating a PCB rendering according to claim 4, characterized in that: The step of generating a parameter of the coordinate system according to the actual coordinates and the coordinates in the positioning data includes: According to the actual coordinates and the coordinates in the positioning data, a calibration operation of the actual distance and the pixel distance is performed to obtain a parameter of the coordinate system.
6. The method for generating a PCB rendering according to claim 1, wherein: The step of generating a second PCB rendering according to the coordinate system first parameter and the component actual position data file comprises: According to a parameter of the coordinate system, a coordinate unification operation is performed on the actual position data file of the component to obtain the actual position data file of the target component; The second PCB rendering is generated according to the target component actual position data file.
7. The method for generating a PCB rendering according to claim 1, wherein: After the step of generating the second PCB rendering according to the target component actual position data file, the method further includes: According to the Gerber file corresponding to the manufacturing order number, determining whether there is abnormal coordinate data in the actual position data file of the target element; If there is abnormal coordinate data, the abnormal area corresponding to the abnormal coordinate data is highlighted in the second PCB rendering.
8. A device for generating a PCB rendering, characterized in that: include: An acquisition module, configured to, when a manufacturing order number is detected, display a first PCB rendering according to the manufacturing order number, and acquire a component actual position data file according to the manufacturing order number; A data generation module, configured to generate positioning data according to the human-computer interaction information when detecting human-computer interaction information interacting with the first PCB rendering, wherein the positioning data includes position numbers of three target components and coordinates of the three target components in the first PCB rendering; A parameter generation module, used for generating a coordinate system parameter according to the positioning data and the component actual position data file; The rendering generation module is used to generate a second PCB rendering according to a parameter of the coordinate system and the actual position data file of the component.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating a PCB rendering as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for generating a PCB rendering as described in any one of claims 1 to 7 are implemented.