Disclosure of Invention
The invention mainly aims to solve the technical problem of large workload of adjusting the pad drawing.
The first aspect of the invention provides a method for adjusting a pad drawing, which comprises the following steps:
when an initial pad drawing is received, determining a target component in a preset component library according to the initial pad drawing;
generating a remade pad drawing according to the target assembly;
determining whether the remade pad drawing is different from the initial pad drawing;
when the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing, determining a difference component in the reproduced bonding pad drawing and acquiring splicing parameters corresponding to the difference component;
and adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing.
Optionally, in a first implementation manner of the first aspect of the present invention, the step of determining whether the remade pad drawing is different from the initial pad drawing includes:
comparing the similarity between the remade pad drawing and the initial pad drawing to obtain drawing similarity;
and determining whether the difference component exists between the remade pad drawing and the initial pad drawing according to the drawing similarity.
Optionally, in a second implementation manner of the first aspect of the present invention, the step of generating the remade pad drawing according to the target component includes:
and splicing the target assembly according to preset splicing parameters corresponding to the target assembly to obtain the remade bonding pad drawing.
Optionally, in a third implementation manner of the first aspect of the present invention, the step of adjusting the splicing parameter includes:
outputting prompt information for adjusting the splicing parameters;
and when the adjustment instruction is detected, adjusting the splicing parameters according to the adjustment instruction.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after the step of determining whether the remade pad drawing is different from the initial pad drawing, the method further includes:
outputting prompt information corresponding to the remade pad drawing and the initial pad drawing when the remade pad drawing and the initial pad drawing do not have the difference.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the step of determining whether the remade pad drawing is different from the initial pad drawing includes:
and adjusting the visual angle of the reproduced bonding pad drawing according to the visual angle of the initial bonding pad drawing and determining whether the difference component exists between the reproduced bonding pad drawing and the initial bonding pad drawing or not at the current angle.
Optionally, in a sixth implementation manner of the first aspect of the present invention, when the initial pad drawing is received, the step of determining the target component in the preset component library according to the initial pad drawing includes:
when the initial pad drawing is received, determining whether the initial pad drawing is a preset type document;
and when the initial pad drawing is not the preset type document, determining the target component in the preset component library according to the initial pad drawing.
The second aspect of the present invention provides an adjusting device for a pad drawing, including:
the receiving module is used for determining a target assembly in a preset assembly library according to the initial pad drawing when the initial pad drawing is received;
the generating module is used for generating a remade pad drawing according to the target assembly;
the determining module is used for determining whether the remade pad drawing is different from the initial pad drawing;
the acquisition module is used for determining a difference component in the reproduced pad drawing and acquiring splicing parameters corresponding to the difference component when the difference exists between the reproduced pad drawing and the initial pad drawing;
and the adjusting module is used for adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing.
A third aspect of the present invention provides an adjustment apparatus for a pad drawing, including: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; and the at least one processor calls the instruction in the memory so that the adjustment device of the pad drawing executes the adjustment method of the pad drawing.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the above-described method of adjusting a pad drawing.
In the embodiment of the invention, when an initial pad drawing is received by adjusting equipment of the pad drawing, determining a target component in a preset component library according to the initial pad drawing; generating a remade pad drawing according to the target assembly; determining whether the remade pad drawing is different from the initial pad drawing; when the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing, determining a difference component in the reproduced bonding pad drawing and acquiring splicing parameters corresponding to the difference component; and adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing. Because the adjusting equipment of the pad drawing can generate a new remapped pad drawing based on the initial pad drawing after receiving the initial pad drawing, and then the similarity between the remapped pad drawing and the initial pad drawing is compared to determine whether the remapped pad drawing needs to be adjusted, the rendered initial pad drawing can be replaced by the rendered remapped pad drawing when the PCB is produced in batches, and target components on the remapped pad drawing are spliced based on splicing parameters, so that each target component on the remapped pad drawing has a standard angle in a strict sense, the situation that the angle of a rendering device deviates does not occur, and the artificial judgment of whether the angle is opposite or not is not needed, and the workload of adjusting the pad drawing is reduced.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for adjusting a bonding pad drawing.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and an embodiment of a method for adjusting a pad drawing in an embodiment of the present invention includes:
101. when an initial pad drawing is received, determining a target component in a preset component library according to the initial pad drawing;
PCB (printed circuit board), a printed wiring board, is one of the important components of the electronics industry. Almost every electronic device, as small as an electronic watch, a calculator, as large as a computer, a communication electronic device, a military weapon system, has only electronic components such as an integrated circuit, and a printed board is used for electrically interconnecting the respective components. The printed circuit board consists of an insulating base plate, connecting wires and bonding pads for assembling and welding electronic elements, and has the dual functions of a conductive circuit and the insulating base plate. The wiring device can replace complex wiring, realizes electric connection among elements in a circuit, simplifies assembly and welding work of electronic products, reduces wiring workload in a traditional mode, and greatly lightens labor intensity of workers; and the whole volume is reduced, the product cost is reduced, and the quality and the reliability of the electronic equipment are improved. The printed circuit board has good product consistency, can adopt standardized design, and is favorable for realizing mechanization and automation in the production process. Meanwhile, the whole printed circuit board subjected to assembly and debugging can be used as an independent spare part, so that the whole machine product can be conveniently exchanged and maintained. At present, the printed wiring board has been extremely widely applied to the production and manufacture of electronic products.
In this embodiment, the initial pad drawing is a model drawing for customers.
Optionally, the initial pad drawing is a packaged drawing.
Optionally, when the initial pad drawing is received, determining whether the initial pad drawing is a preset type document; and when the initial pad drawing is not the preset type document, determining the target component in the preset component library according to the initial pad drawing. When the initial pad drawing is the document of the preset type, outputting prompt information that the drawing can be directly used for mass production. The preset type document may be a Gerber file.
Specifically, when an initial pad drawing is obtained, the components carried by the drawing can be determined based on analysis of the initial pad drawing, and then the components are searched in the preset components to determine the corresponding target components.
102. Generating a remade pad drawing according to the target assembly;
specifically, determining azimuth information (including but not limited to contour information or corner information) of the component corresponding to the initial pad drawing based on an analysis result obtained by analyzing the initial pad drawing; and recombining and splicing the target assembly based on the azimuth information to generate a reproduced bonding pad drawing.
Optionally, splicing the target assembly according to preset splicing parameters corresponding to the target assembly to obtain the remade pad drawing. Specifically, each target component is preset with a default preset splicing parameter, where the preset splicing parameter is a preferred value, for example: the chip (target component A) and the target main body plate (target component B) are spliced at a preset angle (preset splicing parameters).
103. Determining whether the remade pad drawing is different from the initial pad drawing;
specifically, after the reproduced pad drawing is generated, it can be compared with the original pad drawing, thereby determining whether there is a difference.
Optionally, comparing the similarity between the remade pad drawing and the initial pad drawing to obtain drawing similarity; and determining whether the remade pad drawing has the difference with the initial pad drawing according to the drawing similarity.
104. When the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing, determining a difference component in the reproduced bonding pad drawing and acquiring splicing parameters corresponding to the difference component;
specifically, when the drawing similarity is smaller than the preset similarity, pixel coordinates with differences on the remade pad drawing are determined based on the image features, and the difference component is determined based on the pixel coordinates. In this case, it is necessary to extract image features when performing operations such as image recognition and classification. Image features are the basic information that distinguishes one image from another for identifying and marking the image content. Image features fall into two general categories: natural features and artificial features.
Natural characteristics: it is some information contained in the image content itself, for example: information about the size, color distribution, contour, edge gradients, texture, etc. of the image.
The artificial feature is as follows: later analysis and processing are carried out on the image, and the mined information which is considered and identified is obtained. For example: color histogram, moment characteristics, entropy, etc.
105. And adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing.
Optionally, outputting prompt information for adjusting the splicing parameters; and when the adjustment instruction is detected, adjusting the splicing parameters according to the adjustment instruction and returning to the step of executing the difference component which determines that the difference exists between the reproduced pad drawing and the initial pad drawing.
Optionally, when the difference between the reproduced pad drawing and the initial pad drawing does not exist, outputting prompt information corresponding to the reproduced pad drawing and the initial pad drawing.
Alternatively, the reproduced drawing may be a Gerber file, which may be parsed and related information extracted, such as the layout of the PCB, the size and shape of the components, and the locations of the pads and traces. This information is stored in a data structure, such as an array, object, or database, to generate a database of preset components.
In the embodiment of the invention, when an initial pad drawing is received by adjusting equipment of the pad drawing, determining a target component in a preset component library according to the initial pad drawing; generating a remade pad drawing according to the target assembly; determining whether the remade pad drawing is different from the initial pad drawing; when the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing, determining a difference component in the reproduced bonding pad drawing and acquiring splicing parameters corresponding to the difference component; and adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing. Because the adjusting equipment of the pad drawing can generate a new remapped pad drawing based on the initial pad drawing after receiving the initial pad drawing, and then the similarity between the remapped pad drawing and the initial pad drawing is compared to determine whether the remapped pad drawing needs to be adjusted, the rendered initial pad drawing can be replaced by the rendered remapped pad drawing when the PCB is produced in batches, and target components on the remapped pad drawing are spliced based on splicing parameters, so that each target component on the remapped pad drawing has a standard angle in a strict sense, the situation that the angle of a rendering device deviates does not occur, and the artificial judgment of whether the angle is opposite or not is not needed, and the workload of adjusting the pad drawing is reduced.
The method for adjusting the bonding pad drawing in the embodiment of the present invention is described above, and the device for adjusting the bonding pad drawing in the embodiment of the present invention is described below, referring to fig. 2, and one embodiment of the device for adjusting the bonding pad drawing in the embodiment of the present invention includes:
the receiving module 301 is configured to determine a target component in a preset component library according to an initial pad drawing when the initial pad drawing is received;
a generating module 302, configured to generate a remade pad drawing according to the target component;
a determining module 303, configured to determine whether the remade pad drawing is different from the initial pad drawing;
the obtaining module 304 is configured to determine a difference component on the remade pad drawing and obtain a splicing parameter corresponding to the difference component when the remade pad drawing and the initial pad drawing have the difference;
and an adjustment module 305, configured to adjust the splicing parameters and return to executing the step of determining whether the remade pad drawing is different from the initial pad drawing.
Optionally, the determining module 303 may be further specifically configured to:
comparing the similarity between the remade pad drawing and the initial pad drawing to obtain drawing similarity;
and determining whether the remade pad drawing has the difference with the initial pad drawing according to the drawing similarity.
Optionally, the generating module 302 may be further specifically configured to:
and splicing the target assembly according to preset splicing parameters corresponding to the target assembly to obtain the remade bonding pad drawing.
Optionally, the generating module 302 may be further specifically configured to:
outputting prompt information for adjusting the splicing parameters;
and when the adjustment instruction is detected, adjusting the splicing parameters according to the adjustment instruction.
Optionally, the determining module 303 may be further specifically configured to:
outputting prompt information corresponding to the remade pad drawing and the initial pad drawing when the remade pad drawing and the initial pad drawing do not have the difference.
Optionally, the determining module 303 may be further specifically configured to:
and adjusting the visual angle of the reproduced bonding pad drawing according to the visual angle of the initial bonding pad drawing and determining whether the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing at the current angle.
Optionally, the receiving module 301 may be further specifically configured to:
when the initial pad drawing is received, determining whether the initial pad drawing is a preset type document;
and when the initial pad drawing is not the preset type document, determining the target component in the preset component library according to the initial pad drawing.
In the embodiment of the invention, when an initial pad drawing is received by adjusting equipment of the pad drawing, determining a target component in a preset component library according to the initial pad drawing; generating a remade pad drawing according to the target assembly; determining whether the remade pad drawing is different from the initial pad drawing; when the difference exists between the reproduced bonding pad drawing and the initial bonding pad drawing, determining a difference component in the reproduced bonding pad drawing and acquiring splicing parameters corresponding to the difference component; and adjusting the splicing parameters and returning to the step of executing the step of determining whether the remade pad drawing is different from the initial pad drawing. Because the adjusting equipment of the pad drawing can generate a new remapped pad drawing based on the initial pad drawing after receiving the initial pad drawing, and then the similarity between the remapped pad drawing and the initial pad drawing is compared to determine whether the remapped pad drawing needs to be adjusted, the rendered initial pad drawing can be replaced by the rendered remapped pad drawing when the PCB is produced in batches, and target components on the remapped pad drawing are spliced based on splicing parameters, so that each target component on the remapped pad drawing has a standard angle in a strict sense, the situation that the angle of a rendering device deviates does not occur, and the artificial judgment of whether the angle is opposite or not is not needed, and the workload of adjusting the pad drawing is reduced.
The device for adjusting the pad drawing in the embodiment of the present invention is described in detail from the perspective of the modularized functional entity in fig. 2, and the device for adjusting the pad drawing in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 3 is a schematic structural diagram of an adjustment device for a pad drawing, where the adjustment device 500 for a pad drawing may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532 according to an embodiment of the present invention. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the adjustment device 500 for the drawing of the welding paper. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the adjustment device 500 of the pad drawing.
The pad drawing based tuning device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the arrangement of the adjustment device of the pad drawing shown in fig. 3 is not limiting and may include more or fewer components than shown, or may be combined with certain components, or may be arranged with different components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or may be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, where the instructions, when executed on a computer, cause the computer to perform the steps of the method for adjusting a bonding pad drawing.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.