CN116362957A - PCB card image alignment method, device, medium and electronic equipment - Google Patents

PCB card image alignment method, device, medium and electronic equipment Download PDF

Info

Publication number
CN116362957A
CN116362957A CN202111611989.6A CN202111611989A CN116362957A CN 116362957 A CN116362957 A CN 116362957A CN 202111611989 A CN202111611989 A CN 202111611989A CN 116362957 A CN116362957 A CN 116362957A
Authority
CN
China
Prior art keywords
pcb board
board card
electronic element
design
design drawing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111611989.6A
Other languages
Chinese (zh)
Other versions
CN116362957B (en
Inventor
赵政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Luchen Intelligent Equipment Technology Co ltd
Original Assignee
Guangzhou Luchen Intelligent Equipment Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Luchen Intelligent Equipment Technology Co ltd filed Critical Guangzhou Luchen Intelligent Equipment Technology Co ltd
Priority to CN202111611989.6A priority Critical patent/CN116362957B/en
Publication of CN116362957A publication Critical patent/CN116362957A/en
Application granted granted Critical
Publication of CN116362957B publication Critical patent/CN116362957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a PCB card image alignment method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: and acquiring the PCB board card design drawing and the physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card. And selecting a first electronic element of any design from the PCB board card design drawing, and aligning the first electronic element of the design with a corresponding actual first electronic element in a physical image of the PCB board card. In the PCB board card design drawing, a second electronic element of any design is selected, the first electronic element is taken as a fixed point, the PCB board card design drawing rotates and scales around the fixed point, so that the second electronic element is aligned with a real object image of the PCB board card corresponding to an actual second electronic element, the aligned real object image of the PCB board card design drawing and the PCB board card is obtained, the PCB board card design drawing and the real object image of the PCB board card are simple to operate, and the image alignment efficiency is improved.

Description

PCB card image alignment method, device, medium and electronic equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for aligning an image of a PCB board card, a storage medium, and an electronic device.
Background
The PCB board is a printed circuit board and is provided with a plurality of hardware devices such as an Ethernet port, a UART communication interface, a DI, DO, AI, AO interface, an LED lamp and the like; the PCB board card is also a support body of the electronic element and a carrier for electrically connecting the electronic element, the electronic element such as a resistor, a capacitor, an inductor and the like can be arranged on the PCB board card, and the electronic element can be electrically connected to realize a specific function.
When manufacturing a PCB, a PCB design is designed firstly, and then the PCB is produced according to the PCB design. After the PCB board card is obtained through production, aligning the PCB board card design drawing with a physical image of the PCB board card, selecting an element detection frame for each electronic element on the aligned PCB board card design drawing, setting detection parameters of the electronic element in the element detection frame, and further obtaining a PCB board card test drawing, so that when the produced PCB board card is tested, whether the produced PCB board card is qualified or not can be rapidly detected and judged according to the element detection frame on the PCB board card test drawing and the detection parameters of the electronic element.
However, in some technologies, when the PCB board design drawing is aligned with the physical image of the PCB board, the positions of the PCB board design drawing and the physical image of the PCB board need to be adjusted repeatedly, the alignment operation is complex, and the image alignment efficiency is affected.
Disclosure of Invention
Based on the above, the invention aims to provide a method, a device, a storage medium and electronic equipment for aligning PCB card images, which have the advantages of simple operation and improved image alignment efficiency.
According to a first aspect of an embodiment of the present application, there is provided a method for aligning images of a PCB board card, including the steps of:
acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design diagram is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements;
selecting a first electronic element of any design from the PCB board card design drawing, and aligning the first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card;
selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, and rotating and zooming the PCB board card design drawing around the fixed point to align the second electronic element of the design with an actual second electronic element corresponding to a physical image of the PCB board card, thereby obtaining the physical image of the PCB board card design drawing and the PCB board card after alignment; wherein the first electronic component and the second electronic component are different.
According to a second aspect of embodiments of the present application, there is provided a device for aligning images of a PCB board card, including:
the image acquisition module is used for acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design diagram is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements;
the electronic element selecting module is used for selecting any one of the designed first electronic elements in the PCB board card design drawing and aligning the designed first electronic elements with corresponding actual first electronic elements in the physical image of the PCB board card;
the image alignment module is used for selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, and rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element of the design with an actual second electronic element corresponding to the physical image of the PCB board card, thereby obtaining the physical image of the PCB board card design drawing and the PCB board card after alignment; wherein the first electronic component and the second electronic component are different.
According to a third aspect of embodiments of the present application, there is provided an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of PCB card image alignment as described in any of the above.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of PCB card image alignment as described in any of the above.
According to the embodiment of the invention, the PCB board design diagram and the physical image of the PCB board to be tested are obtained, and the PCB board design diagram is stacked on the physical image of the PCB board. The PCB board card design image is provided with a plurality of designed electronic elements, and the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements. And selecting a first electronic element of any design from the PCB board card design drawing, and aligning the designed first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card. And selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element as a fixed point, rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element with the actual second electronic element corresponding to the physical image of the PCB board card, and obtaining the physical image of the PCB board card design drawing and the physical image of the PCB board card after alignment. Wherein the first electronic component and the second electronic component are different. According to the invention, the first electronic element designed in the PCB board card design drawing is aligned with the corresponding actual first electronic element in the physical image of the PCB board card, then the first electronic element is fixed, after the first electronic element is fixed, the second electronic element designed in the PCB board card design drawing is aligned with the corresponding actual second electronic element in the physical image of the PCB board card, so that the alignment operation of the PCB board card design drawing and the physical image of the PCB board card can be realized rapidly through the two electronic elements, the operation is simple and convenient, and the image alignment efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Drawings
Fig. 1 is a flow chart of a method for aligning images of a PCB board card according to an embodiment of the present disclosure;
fig. 2 is a flow chart of a method for obtaining a design drawing of a PCB board and a physical image of the PCB board according to an embodiment of the present disclosure;
fig. 3 is a flow chart of a method for aligning the designed first electronic component with a corresponding actual first electronic component in a physical image of the PCB board according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a device for aligning images of a PCB board card according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of an image acquisition module according to one embodiment of the present application;
FIG. 6 is a block diagram of an electronic component selection module according to one embodiment of the present application;
fig. 7 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which would be apparent to one of ordinary skill in the art without making any inventive effort, are intended to be within the scope of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims. In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In order to better understand the design scheme of the application, the following describes an alignment method of a PCB board design drawing and a physical image of the PCB board in some technologies.
In some technologies, when the Printed Circuit Board (PCB) design diagram is aligned with the physical image of the PCB, the proportional relation between the PCB design diagram and the physical image of the PCB needs to be set, then the PCB design diagram is generated, then the PCB design diagram is manually rotated, so that the angle of the PCB design diagram is consistent with the angle of the physical image of the PCB, and then the PCB design diagram is translated, so that the PCB design diagram is aligned with the physical image of the PCB.
In carrying out the present invention, the inventors have found that at least the following problems exist in the above-described technologies: the manual rotation is needed, the angle difference between the PCB board card design drawing and the real object image of the PCB board card is adjusted repeatedly, and if the proportional relation between the PCB board card design drawing and the real object image of the PCB board card is set wrong at the beginning, the adjustment cannot be continued, and the PCB board card design drawing needs to be regenerated, so that the alignment operation is complex, and the image alignment efficiency is affected.
Therefore, the embodiment of the application provides a PCB board card image alignment method.
The method for aligning the image of the PCB board card provided by the embodiment of the application can be executed by the image aligning device of the PCB board card, the image aligning device of the PCB board card can be realized in a mode of software and/or hardware, and the image aligning device of the PCB board card can be formed by two or more physical entities or one physical entity. The PCB board card image alignment device can be any electronic device provided with image processing software. The image processing software can be CAD, photoshop, 3DMAX, solidworks and the like, and the electronic equipment can be intelligent equipment such as a computer, a mobile phone, a tablet or an interactive tablet.
The PCB board card image alignment equipment can comprise one or more processing cores, the method for realizing the PCB board card image alignment of the application can be realized in a pure software mode, and the method for realizing the PCB board card image alignment of the application can also be realized in a software and hardware combination mode, for example, the method can be realized in at least one hardware form of digital signal processing, a field programmable gate array and a programmable logic array; one or a combination of several of a central processor, an image processor, a modem, etc. may be integrated. The PCB card image alignment device may run an application for the method of PCB card image alignment, which may be presented in a form adapted to the PCB card image alignment device, for example, an APP application, and in some examples, may also be presented in a form such as a system plug-in, a web plug-in, etc.
Example 1
Referring to fig. 1, an embodiment of the present invention provides a method for aligning images of a PCB board card, including the following steps:
s10, acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design image is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements.
In the embodiment of the application, the design drawing of the PCB board card is a CAD graph drawing of the PCB board card, and the CAD graph drawing is a transparent two-dimensional image and comprises coordinate data of each electronic element of the PCB board card, namely plane two-dimensional coordinates (x, y) of each electronic element. The electronic element comprises a resistor, a capacitor, an inductor, a diode, a triode and the like.
The physical image of the PCB board card is a photo shot for the physical image of the PCB board card, the physical image of the PCB board card is fixed, and then the CAD graph is stacked on the physical image of the PCB board card. Because the CAD graph is transparent, the physical image of the PCB board card is generally green or blue, and at the moment, the physical image of the PCB board card is equivalent to the background image of the CAD graph, and the CAD graph can be aligned with the physical image of the PCB board card by adjusting the CAD graph.
S20, selecting a first electronic element of any design from the PCB board card design drawing, and aligning the first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card.
In this embodiment of the present application, there are a plurality of designed electronic components in the PCB board card design diagram, there are a plurality of actual electronic components in the physical image of the PCB board card, and the electronic components of a plurality of designs are in one-to-one correspondence with the actual electronic components.
In the PCB board card design diagram, selecting a first electronic element of any one design, aligning the first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card, wherein the first electronic element of the design is one of a plurality of electronic elements of the design, the actual first electronic element is one of a plurality of actual electronic elements, and the first electronic element of the design and the actual first electronic element are mutually corresponding. And adjusting the PCB board card design drawing by taking the designed first electronic element as a reference so as to align the PCB board card design drawing with the real image of the PCB board card.
S30, selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, and rotating and zooming the PCB board card design drawing around the fixed point to align the second electronic element of the design with a real object image of the PCB board card corresponding to an actual second electronic element, so as to obtain an aligned real object image of the PCB board card design drawing and the PCB board card; wherein the first electronic component and the second electronic component are different.
In this embodiment of the present application, the designed first electronic element is taken as a fixed point, and the whole PCB board card design drawing is rotated, enlarged or reduced around the fixed point, so as to select a second electronic element of any one design, so that the designed second electronic element is aligned with the actual second electronic element corresponding to the physical image of the PCB board card. The second electronic component is one of the plurality of designed electronic components, and the positions of the second electronic component and the first electronic component in the PCB board card design diagram are different, and the second electronic component corresponds to the actual second electronic component.
Because the first electronic element is aligned with the actual first electronic element corresponding to the physical image of the PCB, and the second electronic element is aligned with the actual second electronic element corresponding to the physical image of the PCB, all electronic elements of the PCB design drawing are aligned with all actual electronic elements corresponding to the physical image of the PCB, namely, the aligned physical images of the PCB design drawing and the PCB are obtained.
By applying the embodiment of the application, the PCB board design drawing and the physical image of the PCB board to be tested are obtained, and the PCB board design drawing is stacked on the physical image of the PCB board. The PCB board card design image is provided with a plurality of designed electronic elements, and the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements. And selecting a first electronic element of any design from the PCB board card design drawing, and aligning the designed first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card. And selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element as a fixed point, rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element with the actual second electronic element corresponding to the physical image of the PCB board card, and obtaining the physical image of the PCB board card design drawing and the physical image of the PCB board card after alignment. Wherein the first electronic component and the second electronic component are different. According to the invention, the first electronic element designed in the PCB board card design drawing is aligned with the corresponding actual first electronic element in the physical image of the PCB board card, then the first electronic element is fixed, after the first electronic element is fixed, the second electronic element designed in the PCB board card design drawing is aligned with the corresponding actual second electronic element in the physical image of the PCB board card, so that the alignment operation of the PCB board card design drawing and the physical image of the PCB board card can be realized rapidly through the two electronic elements, the operation is simple and convenient, and the image alignment efficiency is improved.
In an alternative embodiment, referring to fig. 2, step S10 obtains a PCB board design drawing and a physical image of the PCB board, and stacks the PCB board design drawing on the physical image of the PCB board; wherein, the PCB board card design image is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements, and the steps comprise S11 to S12, and are specifically as follows:
s11, acquiring a CAD design file of the PCB board card, and analyzing the CAD design file to acquire a PCB board card design diagram;
s12, shooting the PCB board card to be tested through a camera, and obtaining a physical image of the PCB board card to be tested.
The surface mount machine is also called a "mounter" or a "surface mount system" (Surface Mount System), and is a device for accurately placing surface mount components on pads of a PCB by moving a mounting head after a dispenser or a screen printer in a production line. In the embodiment of the present application, the CAD design file is generated by the chip mounter and is a text file with a very simple format, where each row represents relevant physical information (including coordinates, dimensions, shape, angle, etc.) of an electronic component. The image processing software obtains the CAD design file of the PCB board card, analyzes the CAD design file, and generates a simulation diagram which is completely consistent with the PCB board card, namely, the PCB board card design diagram is obtained. And shooting the PCB board card to be tested through a camera to obtain a photo of the PCB board card, namely obtaining a physical image of the PCB board card to be tested.
In an alternative embodiment, referring to fig. 3, the step S20 of selecting a first electronic component of any design in the PCB board card design drawing, and aligning the first electronic component of the design with a corresponding actual first electronic component in the physical image of the PCB board card includes steps S21 to S22, specifically as follows:
s21, selecting a center point of the designed first electronic element from the PCB board card design diagram;
s22, dragging the PCB board card design drawing to align the center point of the designed first electronic element with the center point of the corresponding actual first electronic element in the physical image of the PCB board card.
In this embodiment of the present application, by dragging the whole PCB board design drawing, where a center point of the designed first electronic component is a geometric center of the designed first electronic component, the center point of the designed first electronic component is aligned with a center point of a corresponding actual first electronic component in a physical image of the PCB board, and the designed first electronic component is designed so as to improve image alignment efficiency and precision.
In an optional embodiment, step S30 selects a second electronic component of any design from the PCB board card design drawing, takes the first electronic component of the design as a fixed point, rotates and scales the PCB board card design drawing around the fixed point, so that the second electronic component of the design is aligned with an actual second electronic component corresponding to a physical image of the PCB board card, and obtains the physical image of the PCB board card design drawing and the PCB board card after alignment, including the following steps: and responding to the fixing operation of the central point of the first electronic element, and fixing the central point of the first electronic element designed in the PCB board card design drawing to obtain the fixed point.
In this embodiment of the present application, at a center point of the first electronic component designed in the PCB board card design drawing, the center point is fixed by responding to a click operation of a ctrl key and a left mouse key, so as to obtain a fixed point. At this time, the PCB board card design drawing can rotate and zoom around the fixed point, but cannot be dragged or moved integrally, so that the efficiency of image alignment is improved by taking the fixed point as a reference.
In an alternative embodiment, the first electronic component and the second electronic component are located at two opposite angles of the PCB board card design drawing. The farther the position of the first electronic element is from the position of the second electronic element, the larger the alignment gap between the first electronic element and the second electronic element is, when two electronic elements with the largest gap can be aligned, other electronic elements are necessarily aligned, and the two opposite angle positions of the first electronic element and the second electronic element in the PCB board card design diagram are the positions with the largest gap in the PCB board card, therefore, the electronic elements in the two opposite angle positions of the PCB board card design diagram are used as alignment standards, and the efficiency of image alignment can be improved. Optionally, the first electronic component and the second electronic component are located on a diagonal line of the PCB board card design drawing. Optionally, the first electronic component and the second electronic component are located at an upper left position and a lower right position of the PCB board card design drawing.
Example 2
The following are examples of apparatus that may be used to perform the method of example 1 of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method in embodiment 1 of the present application.
Please refer to fig. 4, which illustrates a schematic structural diagram of a device for aligning images of a PCB board card according to an embodiment of the present application. The device 4 for aligning the image of the PCB board card provided by the embodiment of the application comprises:
the image acquisition module 41 is used for acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design diagram is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements;
the electronic component selecting module 42 is configured to select a first electronic component of any one design in the PCB board card design drawing, and align the first electronic component of the design with a corresponding actual first electronic component in the physical image of the PCB board card;
the image alignment module 43 is configured to select a second electronic component of any one design from the PCB board card design drawing, rotate and scale the PCB board card design drawing around the fixed point with the first electronic component of the design as the fixed point, so that the second electronic component of the design is aligned with an actual second electronic component corresponding to the physical image of the PCB board card, and obtain an aligned physical image of the PCB board card design drawing and the PCB board card; wherein the first electronic component and the second electronic component are different.
By applying the embodiment of the application, the PCB board design drawing and the physical image of the PCB board are obtained, and the PCB board design drawing is stacked on the physical image of the PCB board. The PCB board card design image is provided with a plurality of designed electronic elements, and the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements. And selecting a first electronic element of any design from the PCB board card design drawing, and aligning the designed first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card. And selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element as a fixed point, rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element with the actual second electronic element corresponding to the physical image of the PCB board card, and obtaining the physical image of the PCB board card design drawing and the physical image of the PCB board card after alignment. Wherein the first electronic component and the second electronic component are different. According to the invention, the first electronic element designed in the PCB board card design drawing is aligned with the corresponding actual first electronic element in the physical image of the PCB board card, then the first electronic element is fixed, after the first electronic element is fixed, the second electronic element designed in the PCB board card design drawing is aligned with the corresponding actual second electronic element in the physical image of the PCB board card, so that the alignment operation of the PCB board card design drawing and the physical image of the PCB board card can be realized rapidly through the two electronic elements, the operation is simple and convenient, and the image alignment efficiency is improved.
In one embodiment of the present application, referring to fig. 5, the image acquisition module 41 includes:
the coordinate file obtaining unit 412 is configured to obtain a CAD design file of the PCB board card, and parse the CAD design file to obtain a PCB board card design drawing;
the physical image obtaining unit 414 is configured to capture, by using a camera, a physical image of the PCB board card to be tested.
In one embodiment of the present application, referring to fig. 6, the electronic component selecting module 42 includes:
a center point selecting unit 422, configured to select a center point of the designed first electronic component in the PCB board card design drawing;
and the center point alignment unit 424 is configured to drag the PCB board card design drawing to align the center point of the designed first electronic component with the center point of the corresponding actual first electronic component in the physical image of the PCB board card.
Example 3
The following are device embodiments of the present application that may be used to perform the method of embodiment 1 of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method in embodiment 1 of the present application.
Referring to fig. 7, the present application further provides an electronic device 300, which may be specifically a computer, a mobile phone, a tablet computer, an interactive tablet, etc., in an exemplary embodiment of the present application, the electronic device 300 is a PCB board card image alignment device, and the PCB board card image alignment device may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304, and at least one communication bus 305.
The user interface 304 is mainly used for providing an input interface for a user, and acquiring data input by the user. Optionally, the user interface may further include a standard wired interface, a wireless interface.
The network interface 303 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the communication bus 305 is used to enable connection communications between these components.
Wherein the processor 301 may comprise one or more processing cores. The processor uses various interfaces and lines to connect various portions of the overall electronic device, perform various functions of the electronic device, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and invoking data stored in memory. Alternatively, the processor may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented by a single chip.
The Memory 302 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory may be used to store instructions, programs, code sets, or instruction sets. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory may optionally also be at least one storage device located remotely from the aforementioned processor. As shown in fig. 7, an operating system, a network communication module, a user interface module, and an operating application program may be included in a memory as one type of computer storage medium.
The processor may be used to call an application program of the method for aligning the PCB card images stored in the memory, and specifically execute the method steps in the embodiment 1, and the specific execution process may refer to the specific description in embodiment 1, which is not repeated herein.
Example 4
The present application further provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment 1, and the specific execution process may refer to the specific description shown in the embodiment, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (11)

1. A method of aligning images of a PCB card, comprising:
acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design diagram is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements;
selecting a first electronic element of any design from the PCB board card design drawing, and aligning the first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card;
selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, and rotating and zooming the PCB board card design drawing around the fixed point to align the second electronic element of the design with an actual second electronic element corresponding to a physical image of the PCB board card, thereby obtaining the physical image of the PCB board card design drawing and the PCB board card after alignment; wherein the first electronic component and the second electronic component are different.
2. The method of aligning PCB card images of claim 1, wherein:
the step of selecting a first electronic element of any one design from the PCB board card design drawing and aligning the designed first electronic element with a corresponding actual first electronic element in a physical image of the PCB board card comprises the following steps:
selecting a center point of the designed first electronic element from the PCB board card design diagram;
dragging the PCB board card design drawing to align the center point of the designed first electronic element with the center point of the corresponding actual first electronic element in the physical image of the PCB board card.
3. The method of aligning PCB card images of claim 2, wherein:
selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element of the design with a real object image of the PCB board card corresponding to an actual second electronic element, and obtaining the aligned PCB board card design drawing and the real object image of the PCB board card, wherein the method comprises the following steps:
and responding to the fixing operation of the central point of the first electronic element, and fixing the central point of the first electronic element designed in the PCB board card design drawing to obtain the fixed point.
4. The method of aligning PCB card images of claim 1, wherein:
the step of obtaining the PCB board card design drawing and the physical image of the PCB board card comprises the following steps:
acquiring a CAD design file of a PCB board card, and analyzing the CAD design file to acquire a PCB board card design diagram;
and shooting the PCB board card by a camera to obtain a physical image of the PCB board card.
5. The method of aligning PCB card images of claim 1, wherein:
the PCB board card design drawing is a transparent PCB board card two-dimensional coordinate drawing, and the PCB board card two-dimensional coordinate drawing comprises coordinate information of a plurality of electronic elements.
6. A method of aligning PCB card images according to any one of claims 1 to 5, wherein:
the first electronic element and the second electronic element are respectively positioned at two opposite angles of the PCB board card design drawing.
7. A device for alignment of images of a PCB card, comprising:
the image acquisition module is used for acquiring a PCB board card design drawing and a physical image of the PCB board card, and stacking the PCB board card design drawing on the physical image of the PCB board card; wherein, the PCB board card design diagram is provided with a plurality of designed electronic elements; the physical image of the PCB board card correspondingly comprises a plurality of actual electronic elements;
the electronic element selecting module is used for selecting any one of the designed first electronic elements in the PCB board card design drawing and aligning the designed first electronic elements with corresponding actual first electronic elements in the physical image of the PCB board card;
the image alignment module is used for selecting a second electronic element of any design from the PCB board card design drawing, taking the first electronic element of the design as a fixed point, and rotating and zooming the PCB board card design drawing around the fixed point so as to align the second electronic element of the design with an actual second electronic element corresponding to the physical image of the PCB board card, thereby obtaining the physical image of the PCB board card design drawing and the PCB board card after alignment; wherein the first electronic component and the second electronic component are different.
8. The apparatus for aligning images of a PCB card of claim 7, wherein said electronic component selection module comprises:
a center point selecting unit, configured to select a center point of the designed first electronic component in the PCB board card design diagram;
and the central point alignment unit is used for dragging the PCB board card design drawing to align the central point of the designed first electronic element with the central point of the corresponding actual first electronic element in the physical image of the PCB board card.
9. The apparatus of claim 7, wherein the image acquisition module comprises:
the coordinate file acquisition unit is used for acquiring CAD design files of the PCB board card, analyzing the CAD design files and acquiring a PCB board card design drawing;
and the physical image obtaining unit is used for shooting the PCB board card through the camera to obtain the physical image of the PCB board card.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of PCB card image alignment of any of claims 1 to 6.
11. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of PCB card image alignment of any of claims 1 to 6.
CN202111611989.6A 2021-12-27 2021-12-27 PCB card image alignment method, device, medium and electronic equipment Active CN116362957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111611989.6A CN116362957B (en) 2021-12-27 2021-12-27 PCB card image alignment method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111611989.6A CN116362957B (en) 2021-12-27 2021-12-27 PCB card image alignment method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116362957A true CN116362957A (en) 2023-06-30
CN116362957B CN116362957B (en) 2024-05-14

Family

ID=86914414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111611989.6A Active CN116362957B (en) 2021-12-27 2021-12-27 PCB card image alignment method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116362957B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116563357A (en) * 2023-07-10 2023-08-08 深圳思谋信息科技有限公司 Image matching method, device, computer equipment and computer readable storage medium
CN117131831A (en) * 2023-09-12 2023-11-28 上海世禹精密设备股份有限公司 Alignment method, device, equipment and medium for PCB electronic design diagram and physical diagram

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1252554A1 (en) * 2000-10-19 2002-10-30 Creo IL. Ltd. Nonlinear image distortion correction in printed circuit board manufacturing
JP2007242987A (en) * 2006-03-10 2007-09-20 Aisin Seiki Co Ltd Plotter of printed wiring board, plotting method and computer program
US20110228242A1 (en) * 2010-03-01 2011-09-22 Mikael Wahlsten Method and apparatus for performing alignment using reference board
US20120075643A1 (en) * 2010-09-28 2012-03-29 Samsung Electro-Mechanics Co., Ltd. Method of revising printing error in PCB
CN103220880A (en) * 2012-01-19 2013-07-24 昆山思拓机器有限公司 Method for improving flexible printed circuit (FPC) processing precision
KR20180032886A (en) * 2016-09-23 2018-04-02 재단법인한국조선해양기자재연구원 Apparatus and Method for Diagnosing PCB using PIN Detection based on Vision System
CN109740267A (en) * 2019-01-07 2019-05-10 郑州云海信息技术有限公司 The design drawing edit methods and relevant apparatus of CPU in a kind of pcb board
CN109961067A (en) * 2019-03-19 2019-07-02 上海望友信息科技有限公司 Choosing method, system, computer storage medium and the equipment of optical reference point
CN111458628A (en) * 2020-04-29 2020-07-28 广州镭晨智能科技有限公司 Template file updating method, device, equipment and computer readable storage medium
CN111914508A (en) * 2020-08-19 2020-11-10 创新奇智(南京)科技有限公司 Component detection method and device, electronic equipment and readable storage medium
CN112649720A (en) * 2020-12-20 2021-04-13 苏州浪潮智能科技有限公司 Board card testing method and device and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1252554A1 (en) * 2000-10-19 2002-10-30 Creo IL. Ltd. Nonlinear image distortion correction in printed circuit board manufacturing
JP2007242987A (en) * 2006-03-10 2007-09-20 Aisin Seiki Co Ltd Plotter of printed wiring board, plotting method and computer program
US20110228242A1 (en) * 2010-03-01 2011-09-22 Mikael Wahlsten Method and apparatus for performing alignment using reference board
US20120075643A1 (en) * 2010-09-28 2012-03-29 Samsung Electro-Mechanics Co., Ltd. Method of revising printing error in PCB
CN103220880A (en) * 2012-01-19 2013-07-24 昆山思拓机器有限公司 Method for improving flexible printed circuit (FPC) processing precision
KR20180032886A (en) * 2016-09-23 2018-04-02 재단법인한국조선해양기자재연구원 Apparatus and Method for Diagnosing PCB using PIN Detection based on Vision System
CN109740267A (en) * 2019-01-07 2019-05-10 郑州云海信息技术有限公司 The design drawing edit methods and relevant apparatus of CPU in a kind of pcb board
CN109961067A (en) * 2019-03-19 2019-07-02 上海望友信息科技有限公司 Choosing method, system, computer storage medium and the equipment of optical reference point
WO2020186851A1 (en) * 2019-03-19 2020-09-24 上海望友信息科技有限公司 Method and system for selecting optical reference point, and computer storage medium and device
CN111458628A (en) * 2020-04-29 2020-07-28 广州镭晨智能科技有限公司 Template file updating method, device, equipment and computer readable storage medium
CN111914508A (en) * 2020-08-19 2020-11-10 创新奇智(南京)科技有限公司 Component detection method and device, electronic equipment and readable storage medium
CN112649720A (en) * 2020-12-20 2021-04-13 苏州浪潮智能科技有限公司 Board card testing method and device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梁晓钰;李石林;从浩;连芯玉;楼冠廷;: "基于图像处理的电路板表观快速检测***的研究", 现代制造技术与装备, no. 07, pages 123 - 124 *
金刚;: "PCB AOI关键技术及一种基于亚像素检测和智能形状分析的AOI***", 印制电路信息, no. 04, pages 106 - 111 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116563357A (en) * 2023-07-10 2023-08-08 深圳思谋信息科技有限公司 Image matching method, device, computer equipment and computer readable storage medium
CN116563357B (en) * 2023-07-10 2023-11-03 深圳思谋信息科技有限公司 Image matching method, device, computer equipment and computer readable storage medium
CN117131831A (en) * 2023-09-12 2023-11-28 上海世禹精密设备股份有限公司 Alignment method, device, equipment and medium for PCB electronic design diagram and physical diagram

Also Published As

Publication number Publication date
CN116362957B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN116362957B (en) PCB card image alignment method, device, medium and electronic equipment
US10924729B2 (en) Method and device for calibration
KR102083696B1 (en) Image identification and organisation according to a layout without user intervention
JP2018537742A (en) Edge recognition bidirectional image processing
CN106997613B (en) 3D model generation from 2D images
CN103064535B (en) The method of pointer, touch-control input system and change touch control operation characteristic
CN109660783A (en) Virtual reality parallax correction
CN108848367B (en) Image processing method and device and mobile terminal
US9530243B1 (en) Generating virtual shadows for displayable elements
CN111932664A (en) Image rendering method and device, electronic equipment and storage medium
CN105787990A (en) Shading CG representations of materials
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
CN109118456A (en) Image processing method and device
CN110765799A (en) Client code scanning identification method, device, equipment and storage medium
CN109743566A (en) A kind of method and apparatus of the video format of VR for identification
CN114449243B (en) White balance method and terminal equipment
KR20150079387A (en) Illuminating a Virtual Environment With Camera Light Data
CN111025039B (en) Method, device, equipment and medium for testing accuracy of touch display screen
US10496735B2 (en) Object interaction preservation from design to digital publication
AU2015264474A1 (en) Systems and methods for programming behavior of a website to respond to capabilities of different devices
CN109523588B (en) User-defined parquet method and system
RU2754641C2 (en) Method and device for determining direction of rotation of target object, computer-readable media and electronic device
US10031589B2 (en) Apparatuses, methods and computer programs for remote control
CN107967709B (en) Improved object painting by using perspective or transport
CN115018975A (en) Data set generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant