WO2017080294A1 - Board card image splicing method and processing apparatus and system - Google Patents
Board card image splicing method and processing apparatus and system Download PDFInfo
- Publication number
- WO2017080294A1 WO2017080294A1 PCT/CN2016/098225 CN2016098225W WO2017080294A1 WO 2017080294 A1 WO2017080294 A1 WO 2017080294A1 CN 2016098225 W CN2016098225 W CN 2016098225W WO 2017080294 A1 WO2017080294 A1 WO 2017080294A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- card
- partial
- board
- partial images
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4038—Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
Definitions
- the invention relates to the field of automatic optical detection, in particular to a card image splicing method, a processing device and a system.
- the board is an important device with data acquisition function and integrated data input/output. It is widely used in many fields such as automation machinery, electronics industry, security monitoring and computer, and the placement and solder joints of components on the board. The quality of the board will affect the overall performance of the board. Therefore, in actual industrial production, the components and solder joints of the board must be tested to eliminate defective or faulty boards.
- the automatic optical detection system acquires the image of the detected board through a high-precision camera, and combines the image processing technology to analyze the difference between the image of the detected board and the standard board image, thereby detecting the board.
- the defect is that the system has the advantages of high degree of automation, high accuracy, easy operation, no damage to the board being tested, and thus is widely used for the detection of boards.
- the automatic optical detection system when the size of some detected boards is large, if the camera is still used for framing, the overall image of the detected board may not be obtained due to the limited field of view of the camera. It even causes the obtained image of the detected board to be distorted, and thus loses more detailed information of the board image, which is not conducive to efficient and accurate detection and analysis of the board.
- the embodiment of the invention provides a card image splicing method, a processing device and a system, which are respectively:
- a method for stitching a card image comprising the following steps:
- each side of each of the partial images is separately cropped to obtain a standard partial image corresponding to each of the partial images;
- the standard partial images are spliced to form a card image according to the relative positional relationship of each of the standard partial images on the card.
- a processing device for stitching a card image comprising:
- An acquiring unit configured to acquire a partial image of a card acquired by the camera device, where the partial image is acquired by the camera device at a fixed distance interval in the same direction, and the partial images adjacent in the same direction have coincidence region;
- a processing unit configured to perform distortion correction on each of the partial images, and perform trimming on each side of each of the partial images to obtain a standard partial image corresponding to each of the partial images
- a splicing unit for splicing the standard partial images to form a card image according to the relative positions of the respective partial partial images.
- a card image splicing system comprising: a platform device, an imaging device, a control device for controlling relative movement of the camera device and the platform device, and the above-mentioned processing device for splicing a card image, the camera device Connected to the processing device,
- the platform device is configured to carry a board
- the camera device is configured to collect a partial image of the card
- the control device is configured to control the camera device to acquire partial images of the card according to a fixed distance interval in the same direction, and the partial images adjacent in the same direction have overlapping regions.
- the board image splicing method, processing device and system the partial image of the board is collected by the camera device, and the collected adjacent partial images have overlapping regions in the same direction, and each partial image is separately corrected for distortion, for each
- the edges of a partial image are cropped, and since the edge portion of the partial image after the distortion correction still has distortion, when the cropping is performed, the edge portion of the partial image overlapping region where the distortion occurs is trimmed, and the standard portion obtained after the clipping is obtained.
- the board image formed according to the standard partial image splicing has high precision, and the board image splicing method and processing device proposed by the present invention and The system is not limited by the size of the board, and for larger boards it is still possible to obtain higher precision images for inspection.
- the mark obtained after cutting The quasi-local image can be directly spliced to form the card image according to the relative positional relationship on the board without complicated image feature point matching analysis process, and the image cutting process and the splicing process are more simple and efficient, so the present invention
- the proposed card image splicing method, processing device and system have high image splicing speed and efficiency.
- FIG. 1 is a schematic flow chart of a method for stitching a card image in one embodiment
- FIG. 2 is a schematic diagram of a partial image of a board of a camera device
- FIG. 3 is a schematic diagram of a partial image of a rectangular board captured by a camera device
- FIG. 5 is a schematic diagram of cropping of a partial image in one embodiment
- FIG. 6 is a schematic diagram of cropping of a partial image in one embodiment
- FIG. 7 is a schematic diagram of a camera device collecting partial images of boards at different positions
- Figure 8 is a schematic view showing a partial image mosaic of the card
- FIG. 9 is a schematic flow chart of a method for stitching a card image in one embodiment
- Figure 10 is a schematic view of the position of the marked point
- FIG. 11 is a schematic structural diagram of a processing apparatus for board image stitching in one embodiment
- FIG. 12 is a schematic structural diagram of a processing apparatus for board image stitching in one embodiment
- FIG. 13 is a schematic structural diagram of a card image splicing system in one embodiment.
- a method for stitching a card image includes the following steps:
- S100 acquires a partial image of a card acquired by the camera device
- the camera device is located directly above the card, and the camera device collects the obtained partial images at a fixed distance interval in the same direction.
- the camera device captures a partial image of the board every other fixed distance interval.
- Each part of the captured board of the camera is aligned with the partial image of the board acquired last time and along the direction of the AB side of the board until all partial images of the board are collected, such as Figure 3.
- the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 shown therein are aligned with each other and are along the direction of the AB side of the card; meanwhile, the camera is fixed in the same direction
- the partial images of the distances collected in the same direction have overlapping areas. Still taking the rectangular board shown in FIG. 3 as an example, the camera device collects the boards in the direction parallel to the AB side of the board.
- a partial image, and two adjacent partial images have a certain overlapping area, as shown in the coincident area a 2 b 1 c 1 d 2 in FIG. 3 , the size of the overlapping area is the same as that used by the camera when acquiring a partial image.
- the smaller the distance interval the greater the overlap region of the partial image.
- the acquisition mode is the same as that of the AB side of the card, and is collected according to the fixed distance interval in the same direction.
- the fixed distance interval used by the camera to collect partial images along the AB side and the AD side of the card may be different.
- S110 After performing the distortion correction on each of the partial images, S110 separately trims each side of each of the partial images to obtain a standard partial image corresponding to each of the partial images;
- the optical system of the camera device does not work accurately on the principle of idealized aperture imaging, so that the object point in the object space is in the image space.
- the gray interpolation method can be adopted. The basic idea is to first establish a mathematical model of geometric correction, then determine the model parameters by using known conditions, and finally correct the image containing the distortion according to the model. It is usually divided into two steps: image space coordinate transformation.
- the mapping relationship between image pixel coordinates and object space corresponding point coordinates is established, the unknown parameters in the mapping relationship are solved, and then the pixel coordinates of the image are corrected according to the mapping relationship;
- the gray value is used to assign the corresponding gray value to the pixel after the spatial transformation, so as to restore the gray value of the original position, thereby realizing the distortion correction of the image.
- Partial image display of the board before and after distortion correction as shown in Figure 4. Intention, after the distortion correction, the partial image of the board is closer to the real board image.
- each side of each partial image after the distortion correction is separately cropped to obtain a standard partial image corresponding to each partial image.
- the edge portion of the partial image will have a large distortion, and the edge portion with distortion is not conducive to the detection and analysis of the board, so each part of the partial image corrected by the distortion is corrected.
- the cropping is performed separately to remove the edge portion of the partial image, thereby improving the accuracy of the partial image for board detection.
- different crop widths can be selected according to different lens parameters of the camera device, because they have different The distortion coefficient of the lens device of the lens parameter is different.
- the size of the edge portion of the distortion may be different, so that the size of the standard partial image obtained by cropping the partial image is different, so the lens parameter of the camera device is used.
- the processing method of the partial image of the board with different distortion conditions is fully considered.
- the cutting width of each side is half of the width of the overlapping area corresponding to each side.
- the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 will be described as an example.
- the partial image a 1 b 1 c 1 d 1 After cropping, a corresponding standard partial image 1256 is obtained, and after the partial image a 2 b 2 c 2 d 2 is cropped, a corresponding standard partial image 2345 is obtained, and the area a shown in FIG.
- 2 b 1 c 1 d 2 is a coincident region of the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 when the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b
- the clipping width of 2 c 2 d 2 is half of the width of the coincident region (ie, the length of a 2 b 1 or d 2 c 1 )
- the standard partial image 1256 and the standard partial image 2345 can be seamlessly stitched. There is no coincident portion between the standard partial image 1256 and the standard partial image 2345.
- the width of the partial image overlap region is used as the width of each partial image for cropping, which not only ensures that the corresponding standard partial image can form a complete board image, and does not miss any image information of the card, and avoids The image information is repeatedly displayed due to the coincidence between standard partial images, thereby improving the stitching efficiency of the board image.
- the cutting width of each side of each partial image is the same.
- the overlapping area of the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 is the area a 2 b 1 c 1 d 2 .
- the overlapping area of the partial image a 1 b 1 c 1 d 1 and the partial image a 4 b 4 c 4 d 4 is the area a 4 b 4 c 1 d 1 , the partial image a 2 b 2 c 2 d 2 and the partial image a 3
- the overlapping region of b 3 c 3 d 3 is the region a 3 b 3 c 2 d 2
- the overlapping region of the partial image a 3 b 3 c 3 d 3 with the partial image a 4 b 4 c 4 d 4 is the region a 3 b 4 c 4 d 3
- the widths of the respective overlapping regions are the same, that is, the lengths of a 4 d 1 , a 2 b 1 , b 3 c 2 and c 4 d 3 are the same.
- each partial image is cropped with the same cutting width, which facilitates processing all partial images of the card collected by the imaging device, and conveniently controls the distance interval adopted by the imaging
- S120 splices the standard partial images into a card image according to the relative positions of the respective partial partial images.
- the camera device Since the camera device collects partial images of the card, it is collected according to a certain order rule. As shown in FIG. 7, after the camera device collects a partial image of the card at a certain position, it moves to the next position and continues to collect.
- the partial images of the board so the local images obtained by the acquisition have a certain positional relationship with each other, and since each partial image corresponds to only one standard partial image, each standard partial image also has a relative position relationship with each other.
- the standard partial image may be spliced according to the relative positions of the respective partial partial images, and finally the card image is formed, as shown in FIG. 8 , the partial image splicing diagram of the card, the card image can reflect the card Information on all components, solder joints, etc.
- the board image formed according to the standard partial image stitching has high precision, and the board image stitching method has no board.
- the advantage of card size limitation is that for larger size boards it is still possible to obtain higher precision images for inspection.
- the standard partial images obtained after cutting can be directly spliced to form the board image according to their relative positions on the board, without complicated image feature point matching analysis process, and the partial image cutting process and the splicing process are more simple. It is efficient, so the board image stitching method proposed in this embodiment has higher image stitching speed and efficiency.
- the boards have a regular shape, so that the board can be aligned with the field of view of the camera to prevent the partial image captured by the camera from being tilted, thereby facilitating image acquisition and simplifying image acquisition.
- S900 acquires an image of the marked point on the board and performs distortion correction on the image to obtain a first image
- the board used in this step can be a common board with components.
- the components on the board are used as marking points.
- the board used can also be designed with marking points specially designed for this method. Board.
- the first image of the marked point is a distortion corrected image including the image of the marked point, for example, before the first image of the marked point on the board is acquired by the camera, the image acquired by the camera is first corrected by the camera calibration technique. Distortion, the acquired image is restored to a real plane, thereby providing an undistorted image for board image calibration, improving the accuracy of board image alignment.
- the S910 acquires the image of the marked point again and performs distortion correction on the image to obtain a second image.
- the second image includes the mark Distorted image after the image of the point.
- the xy coordinate system is established with the two adjacent sides of the board. Referring to FIG. 10, it is assumed that the first image S 0 of the marked point is located at the origin O(0, 0) of the coordinate system, and is changed. After the position of the board, the second image S 1 of the marked point moves to the point (x1, y1), and the moving distance of the marked point is
- S920 Obtain an offset trajectory of the marker point according to the first image and the second image, and calculate an angle between the offset trajectory and an edge of the first image or the second image;
- AB, BC, CD, and DA are respectively four sides of the second image, and the actual offset of the marked point can be obtained in the coordinate system established in step S910.
- the offset trajectory of the marker point is calculated in the same manner as the angle between the other sides of the second image.
- S930 adjusts the position of the camera device or the card according to the angle to make the offset
- the trajectory is parallel or perpendicular to the sides of the first image or the second image.
- the position of the camera or the card is adjusted according to the angle, so that the offset trajectory of the marker point is parallel to the AB edge of the second image or the DA side Vertically, for example, by rotating the board to reduce y 1 or the like, the board is finally aligned with the camera.
- the x-axis direction of the alignment card and the second image of the marked point are taken as an example, but it should be noted that the above method is also fully applicable to the board y.
- the present invention provides a processing apparatus for board image stitching.
- the processing apparatus for board image stitching includes an acquisition unit 1100 connected in sequence, and processing. Unit 1110 and splicing unit 1120,
- the acquiring unit 1100 is configured to acquire a partial image of a card acquired by the camera device, where the partial image is acquired by the camera device at a fixed distance interval in the same direction, and the partial image adjacent in the same direction has Coincident area
- the processing unit 1110 is configured to perform, after performing distortion correction on each of the partial images, performing trimming on each side of each of the partial images to obtain a standard partial image corresponding to each of the partial images;
- the splicing unit 1120 is configured to splicing the standard partial images to form a card image according to the relative positions of the respective partial partial images.
- the acquiring unit 1100 acquires a partial image of the card acquired by the camera device, and the partial image is acquired by the imaging device at a fixed distance interval in the same direction, and the adjacent partial images in the same direction have overlapping regions.
- the camera device collects a partial image of the card according to a fixed distance interval in the same direction.
- the partial image of the card captured by the camera device is a partial image obtained by the camera device at a fixed distance interval in the same direction. To illustrate this step in detail, taking the rectangular board shown in Figure 3 as an example, in a direction parallel to one side of the board (such as the AB side), the camera captures a partial image of the board every other fixed distance interval.
- Each part of the captured board of the camera is aligned with the partial image of the board acquired last time and along the direction of the AB side of the board until all partial images of the board are collected, such as Figure 3.
- a partial image shown in FIG. 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 are aligned with one another along the direction of the edge AB of the board; while fixing an imaging apparatus according to the same direction
- the partial images of the distances collected in the same direction have overlapping areas.
- the camera device collects the boards in the direction parallel to the AB side of the board.
- the size of the overlapping area is the same as that used by the camera when acquiring a partial image. Fixed distance interval The size is related, and the smaller the distance interval, the larger the overlapping area of the partial image.
- the acquisition mode is the same as that of the AB side of the card, and is collected according to the fixed distance interval in the same direction.
- the fixed distance interval used by the camera to collect partial images along the AB side and the AD side of the card may be different.
- the processing unit 1110 performs distortion correction on the partial image of the board acquired by the acquiring unit 1100, and then trims each side of each partial image to obtain a standard partial image corresponding to each partial image.
- the optical system of the camera device does not work accurately on the principle of idealized aperture imaging, so that the object point in the object space is in the image space. There is an optical aberration between the actual image point and the ideal image point, which causes image distortion.
- the processing unit 1110 performs distortion correction on the partial image, the gray interpolation method may be adopted.
- the basic idea is to first establish a mathematical model of the geometric correction, then determine the model parameters by using known conditions, and finally correct the image containing the distortion according to the model.
- the method is generally divided into two steps: image space coordinate transformation. Firstly, the mapping relationship between the pixel coordinates of the image and the coordinate of the object corresponding point is established, the unknown parameters in the mapping relationship are solved, and then the coordinates of each pixel of the image are corrected according to the mapping relationship; The gray value of each pixel is determined, and the spatially transformed pixel is given a corresponding gray value to restore the gray value of the original position, thereby realizing distortion correction of the image.
- the processing unit 1110 respectively trims each side of each partial image after the distortion correction to obtain a standard partial image corresponding to each partial image.
- the edge portion of the partial image may have a large distortion, and the edge portion with distortion may be disadvantageous for detecting and analyzing the card, so the processing unit 1110 passes the distortion corrected portion.
- Each side of the image is cropped separately to remove the edge portion of the partial image, thereby improving the partial image for board detection. accuracy.
- the processing unit 1110 may select different according to different lens parameters of the camera device, in order to ensure that the selected cropping width meets the actual requirements and the board image image splicing efficiency is improved.
- the clipping width is different because the distortion coefficient of the camera device with different lens parameters is different.
- the size of the edge portion of the distortion may be different, so that the size of the standard partial image obtained by cropping the partial image is different, so Taking the lens parameters of the camera as the reference and basis of the cutting width, the processing method of the partial image of the board with different distortion conditions is fully considered.
- the processing unit 1110 when the processing unit 1110 separately trims each side of each partial image, the cutting width of each side of the processing unit 1110 is half of the width of the overlapping area corresponding to each side.
- the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 will be described as an example.
- the processing unit 1110 is After the partial image a 1 b 1 c 1 d 1 is cropped, a corresponding standard partial image 1256 is obtained, and after the partial image a 2 b 2 c 2 d 2 is cropped, a corresponding standard partial image 2345 is obtained, as shown in FIG. 5 .
- the area a 2 b 1 c 1 d 2 is a coincident region of the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 when the partial image a 1 b 1 c 1 d 1 and the partial image
- the cutting width of a 2 b 2 c 2 d 2 is half of the width of the overlapping area (ie, the length of a 2 b 1 or d 2 c 1 )
- the standard partial image 1256 and the standard partial image 2345 can be seamlessly stitched. At this time, there is no coincident portion between the standard partial image 1256 and the standard partial image 2345.
- the processing unit 1110 uses the half of the width of the partial image overlap region as the width of the cropping of each partial image, which not only ensures that the corresponding standard partial image can form a complete board image, and does not miss any image information of the board. At the same time, the repeated display of image information due to coincidence between standard partial images is avoided, thereby improving the stitching efficiency of the board image.
- the processing unit 1110 cuts a partial image of the board acquired by the camera
- the cutting width of each side of each partial image is the same.
- the overlapping area of the partial image a 1 b 1 c 1 d 1 and the partial image a 2 b 2 c 2 d 2 is the area a 2 b 1 c 1 d 2 .
- the overlapping area of the partial image a 1 b 1 c 1 d 1 and the partial image a 4 b 4 c 4 d 4 is the area a 4 b 4 c 1 d 1 , the partial image a 2 b 2 c 2 d 2 and the partial image a 3
- the overlapping region of b 3 c 3 d 3 is the region a 3 b 3 c 2 d 2
- the overlapping region of the partial image a 3 b 3 c 3 d 3 with the partial image a 4 b 4 c 4 d 4 is the region a 3 b 4 c 4 d 3
- the widths of the respective overlapping regions are the same, that is, the lengths of a 4 d 1 , a 2 b 1 , b 3 c 2 and c 4 d 3 are the same.
- the processing unit 1110 cuts each partial image with the same cropping width, so as to facilitate processing all the partial images of the card captured by the camera device, and at the same time, conveniently control the distance interval adopted by the camera device. It is beneficial to improve the efficiency of board image stitching.
- the splicing unit 1120 splices the standard partial images into a card image according to the relative positions of the respective partial partial images. Since the camera device collects partial images of the card, it is collected according to a certain order rule, so the partial images obtained by the camera have a certain positional relationship with each other, and each partial image corresponds to only one standard part. The image, and thus the standard partial images also have a relative positional relationship with each other. When the image splicing is performed, the splicing unit 1120 can splicing the standard partial images according to the relative positions of the respective partial partial images, and finally forming a card image, the card The image can reflect all the components, solder joints and other information on the board.
- the board image formed according to the standard partial image stitching since the distortion of each standard partial image constituting the board image is corrected, the board image formed according to the standard partial image stitching has high precision.
- the card image splicing system has the advantage that it is not limited by the size of the board, and a higher-precision image can still obtain a higher-precision image for detection.
- the standard partial images obtained after cutting can be directly spliced to form the board image according to their relative positions on the board, without complicated image feature point matching analysis process, and the image cutting process and the splicing process are more convenient and efficient. Therefore, the processing device for board image stitching proposed in this embodiment has higher image stitching speed and better image stitching effect.
- the boards have a regular shape, so that the board can be aligned with the field of view of the camera to prevent the partial image captured by the camera from being tilted, thereby facilitating the process of image acquisition and processing.
- a marker point image acquisition unit 1200, an operation unit 1210, and an adjustment unit 1220, which are sequentially connected for image alignment, are further included. among them
- the point image acquiring unit 1200 is configured to acquire an image of the mark on the board and perform distortion correction on the image to obtain a first image. After the position of the board is changed, the image of the point is acquired again and The image is corrected for distortion to obtain a second image;
- the operation unit 1210 is configured to obtain an offset trajectory of the marker point according to the first image and the second image, and calculate a clip of the offset trajectory and an edge of the first image or the second image. angle;
- the adjusting unit 1220 is configured to adjust a position of the camera device or the board according to the angle, so that the offset track is parallel or perpendicular to an edge of the first image or the second image.
- the marker point image acquisition unit 1200 acquires an image of the marker point on the acquisition card and performs distortion correction on the image to obtain a first image, and after the position of the card is changed, acquires the image of the marker point again and the image is Perform distortion correction to obtain a second image.
- the first image and the second image are both distortion-corrected images including the image of the marker point, except that the specific positions of the marker points in the first image and the second image are different.
- the board can be a regular board with components. In this case, the components on the board are used as marking points.
- the board can also be a test board with a specific marking point designed for this device.
- the distortion of the image acquired by the camera is first corrected by the camera calibration technique, and the acquired image is restored to a real plane, thereby providing distortion-free calibration of the board image.
- the image improves the accuracy of the board image alignment.
- changing the position of the board point changes the position of the mark point, and then acquiring the second image of the mark point.
- the xy coordinate system is established with two adjacent sides of the board. Referring to FIG. 6, it is assumed that the first image S 0 of the marked point is located at the origin O(0, 0) of the coordinate system, and is changed.
- the second image S 1 of the marked point moves to the point (x 1 , y 1 ), and the moving distance of the marked point is
- the arithmetic unit 1210 obtains an offset trajectory of the marker point from the first image and the second image, and calculates an angle between the offset trajectory and the side of the first image or the second image.
- AB, BC, CD, and DA are respectively four sides of the second image, and in the above xy coordinate system, the actual offset trajectory of the marked point is obtained as a line segment.
- the angle ⁇ is the angle between the offset track of the mark point and the AB side of the second image
- ⁇ arctan(y 1 /x 1 ).
- the offset trajectory of the marker point is calculated in the same manner as the angle between the other sides of the second image.
- the adjusting unit 1220 adjusts the position of the imaging device or the card according to the angle, so that the offset trajectory is parallel or perpendicular to the side of the first image or the second image. After calculating the angle ⁇ between the offset trajectory of the marker point and the AB edge of the second image, the position of the camera or the card is adjusted according to the angle, so that the offset trajectory of the marker point is parallel to the AB edge of the second image or the DA side Vertically, for example, by rotating the board to reduce y 1 or the like, the board is finally aligned with the camera.
- the offset trajectory of the front and rear marker points can be changed according to the position of the card, and the corresponding offset trajectory and the first image of the marker point can be calculated or The angle between the sides of the second image, and then adjust the position of the camera or the card according to the angle, and finally align the board with the field of view of the camera to prevent the partial image captured by the camera from being tilted, thereby facilitating Simplify the process of image acquisition and processing.
- the present invention further provides a card image splicing system.
- the card image splicing system includes a platform device, a camera device, a control device for controlling relative motion of the camera device and the platform device, and a processing device for splicing a card image, wherein the camera device is connected to the processing device, and the control device can be connected to the camera device and the platform device at the same time or only to any one of the two, or can be disposed on the camera device or Above the platform device, therefore, only the control device is connected to the camera device and the platform device at the same time as an example, as shown in FIG.
- a platform device 1300 configured to carry a board
- the camera device 1310 is configured to collect a partial image of the card
- the control device 1320 is configured to control the camera device to collect partial images of the card in a distance interval fixed in the same direction, and the partial images adjacent in the same direction have overlapping regions;
- the processing device 1330 is configured to form a card image according to the partial image stitching of the card card collected by the camera device 1310.
- the card is placed on the platform device 1300, the camera device 1310 is opposite to the position of the platform device 1300, and both can perform relative motion under the control of the control device 1320.
- the control device 1320 enables the camera.
- the device 1310 collects boards according to distances fixed in the same direction.
- the partial image of the card that is, the distance between the center points of each of the two adjacent partial images in the same direction is the same, and the adjacent partial images in the same direction have coincident regions.
- the processing device 1320 obtains a partial image of the card collected by the camera 1300, performs distortion correction and cropping on each partial image, and obtains a corresponding standard partial image, and then splicing each standard partial image to form a card image, the card
- the image can reflect information of all components, solder joints, and the like on the card; at the same time, the processing device 1320 in this embodiment may further include a point image acquiring unit, an arithmetic unit, and an adjustment for aligning the card with the camera.
- the marker point image acquisition unit obtains an offset trajectory of the marker point before and after the change of the board position, and after the calculation unit calculates the angle between the corresponding offset trajectory and the edge of the first image or the second image of the marker point,
- the adjusting unit adjusts the position of the camera device or the card according to the angle, and finally aligns the card with the field of view of the camera device, thereby preventing the partial image captured by the camera device from being tilted, and aligning the card with the field of view of the camera device.
- the camera 1310 collects various partial images of the board and collects the collected boards.
- the image processing apparatus 1320 is transmitted to the processing device 1320 is completed respective partial images into the standard images board.
- the image pickup device 1300 can be realized by an industrial area array CCD having a megapixel
- the platform device 1310 can be realized by a mechanical motion mechanism such as a mechanical stage, etc.
- the control device 1330 can utilize a servo control system or the like.
- the system implementation of tracking mechanical displacement because of the high stability and accuracy of the servo control system, can control the platform device 1300 and the camera device 1310 to achieve high-precision relative motion, thereby achieving high-precision image stitching.
- the camera device may be calibrated to extract the internal parameters and external parameters of the camera device, thereby obtaining an image between the imaging plane and the real plane.
- the corresponding relationship provides a reference for the subsequent image distortion correction of the system. Since the distortion of each standard partial image constituting the card image in the embodiment is corrected, the card image formed according to the standard partial image splicing has high precision, and the card image splicing system is not affected by the board. The size of the card is limited, and a larger-sized card can still obtain a higher-precision image for detection.
- the standard partial image obtained by the processing device 1320 after cropping the partial image can be directly spliced to form the card image according to the relative position on the card, without complicated image feature point matching analysis process, partial image clipping process and The splicing process is simpler and more efficient. Therefore, the card image splicing system proposed in this embodiment has high image splicing speed and efficiency, and is of great significance for actual industrial production.
- the board image splicing system further includes a control device disposed on the camera device or the platform device to keep the platform device stationary, and the control device controls the camera device according to a fixed distance interval when the camera device collects a partial image. Movement relative to the platform device.
- the motion of the imaging device is dominant, and the advantage is that the card placed on the platform device can be prevented from randomly moving or slipping.
- the control device can achieve accurate movement, the camera device can be captured. The accuracy of the partial image.
- the board image splicing system further includes a control device disposed on the camera device or the platform device to keep the camera device stationary, and the control device controls the platform according to a fixed distance interval when the camera device collects a partial image.
- the device moves relative to the camera. Since the camera device in general should try to avoid the jitter caused by the external force, so as to avoid blurring of the image, and the movement of the platform device relative to the camera device is not only technically easier to implement, for example, using a servo control system, and moving. The stability and accuracy are good, so that the control device controls the platform device to perform motion, which is more beneficial to improve the quality of the partial image captured by the camera device.
Abstract
Description
Claims (10)
- 一种板卡图像拼接方法,其特征在于,包括以下步骤:A card image splicing method, comprising the steps of:获取摄像装置采集的板卡的局部图像,所述局部图像由所述摄像装置按照同一方向上固定的距离间隔采集获得,且在同一方向上相邻的所述局部图像具有重合区域;Acquiring a partial image of the card acquired by the camera device, wherein the partial image is acquired by the camera device at a fixed distance interval in the same direction, and the partial images adjacent in the same direction have a coincident region;对各个所述局部图像进行畸变校正后,对每一所述局部图像的各个边分别进行裁剪,获得与各个所述局部图像对应的标准局部图像;After performing distortion correction on each of the partial images, each side of each of the partial images is separately cropped to obtain a standard partial image corresponding to each of the partial images;根据各个所述标准局部图像在所述板卡上的相对位置关系,将所述标准局部图像拼接形成板卡图像。The standard partial images are spliced to form a card image according to the relative positional relationship of each of the standard partial images on the card.
- 根据权利要求1所述的板卡图像拼接方法,其特征在于,The board image splicing method according to claim 1, wherein对每一所述局部图像的各个边分别进行裁剪时,各个边的裁剪宽度为各个边对应的重合区域宽度的一半。When each side of each of the partial images is cropped, the cutting width of each side is half of the width of the overlapping area corresponding to each side.
- 根据权利要求1或2所述的板卡图像拼接方法,其特征在于,The card image splicing method according to claim 1 or 2, wherein所述局部图像的各个边的裁剪宽度均相同。The trim widths of the respective sides of the partial image are the same.
- 根据权利要求1或2所述的板卡图像拼接方法,其特征在于,在获取摄像装置采集的板卡的局部图像步骤之前,还包括以下步骤:The card image splicing method according to claim 1 or 2, further comprising the following steps before the step of acquiring a partial image of the card acquired by the camera device:获取板卡上标记点的图像并对该图像进行畸变校正,得到第一图像;Obtaining an image of the marked point on the board and performing distortion correction on the image to obtain a first image;在所述板卡的位置改变后,再次获取所述标记点的图像并对该图像进行畸变校正,得到第二图像;After the position of the board is changed, acquiring an image of the marked point and performing distortion correction on the image to obtain a second image;根据所述第一图像和所述第二图像获得所述标记点的偏移轨迹,计算所述偏移轨迹与所述第一图像或者所述第二图像的边的夹角;Obtaining an offset trajectory of the marker point according to the first image and the second image, and calculating an angle between the offset trajectory and an edge of the first image or the second image;根据所述夹角调节所述摄像装置或者所述板卡的位置,使所述偏移轨迹与所述第一图像或者所述第二图像的边平行或者垂直。Adjusting a position of the imaging device or the card according to the included angle such that the offset trajectory is parallel or perpendicular to an edge of the first image or the second image.
- 一种用于板卡图像拼接的处理装置,其特征在于,包括:A processing device for splicing a card image, comprising:获取单元,用于获取摄像装置采集的板卡的局部图像,所述局部图像由所述摄像装置按照同一方向上固定的距离间隔采集获得,且在同一方向上相邻的所述局部图像具有重合区域;An acquiring unit, configured to acquire a partial image of a card acquired by the camera device, where the partial image is acquired by the camera device at a fixed distance interval in the same direction, and the partial images adjacent in the same direction have coincidence region;处理单元,用于对各个所述局部图像进行畸变校正后,对每一所述局部图 像的各个边分别进行裁剪,获得与各个所述局部图像对应的标准局部图像;a processing unit, configured to perform distortion correction on each of the partial images, for each of the partial maps Each side of the image is separately cropped to obtain a standard partial image corresponding to each of the partial images;拼接单元,用于根据各个所述标准局部图像的相对位置,将所述标准局部图像拼接形成板卡图像。a splicing unit for splicing the standard partial images to form a card image according to the relative positions of the respective partial partial images.
- 根据权利要求5所述的用于板卡图像拼接的处理装置,其特征在于,A processing apparatus for board image stitching according to claim 5, wherein所述处理单元使各个边的裁剪宽度为各个边对应的重合区域宽度的一半。The processing unit makes the cutting width of each side half of the width of the overlapping area corresponding to each side.
- 根据权利要求5或6所述的用于板卡图像拼接的处理装置,其特征在于,还包括依次连接的标记点图像获取单元、运算单元和调节单元,The processing device for stitching a card image according to claim 5 or 6, further comprising a point image acquiring unit, an arithmetic unit and an adjusting unit connected in sequence,所述标记点图像获取单元,用于获取板卡上标记点的图像并对该图像进行畸变校正,得到第一图像,并且在所述板卡的位置改变后,再次获取所述标记点的图像并对该图像进行畸变校正,得到第二图像;The marker point image acquisition unit is configured to acquire an image of a marker point on the card and perform distortion correction on the image to obtain a first image, and acquire an image of the marker point again after the position of the card is changed. And performing distortion correction on the image to obtain a second image;所述运算单元,用于根据所述第一图像和所述第二图像获得所述标记点的偏移轨迹,计算所述偏移轨迹与所述第一图像或者所述第二图像的边的夹角;The operation unit is configured to obtain an offset trajectory of the marker point according to the first image and the second image, and calculate the offset trajectory and an edge of the first image or the second image Angle所述调节单元,用于根据所述夹角调节所述摄像装置或者所述板卡的位置,使所述偏移轨迹与所述第一图像或者所述第二图像的边平行或者垂直。The adjusting unit is configured to adjust a position of the camera device or the board according to the angle, so that the offset track is parallel or perpendicular to an edge of the first image or the second image.
- 一种板卡图像拼接系统,其特征在于,包括平台装置、摄像装置、用于控制所述摄像装置和所述平台装置进行相对运动的控制装置以及如权利要求5至7中任一项所述的用于板卡图像拼接的处理装置,所述摄像装置与所述处理装置连接,A card image splicing system, comprising: a platform device, an imaging device, a control device for controlling relative movement of the camera device and the platform device, and the method of any one of claims 5 to 7 a processing device for stitching a card image, the camera device being connected to the processing device,所述平台装置用于承载板卡;The platform device is configured to carry a board;所述摄像装置用于采集板卡的局部图像;The camera device is configured to collect a partial image of the card;所述控制装置用于控制所述摄像装置按照同一方向上固定的距离间隔采集板卡的局部图像,且在同一方向上相邻的所述局部图像具有重合区域。The control device is configured to control the camera device to acquire partial images of the card according to a fixed distance interval in the same direction, and the partial images adjacent in the same direction have overlapping regions.
- 根据权利要求8所述的板卡图像拼接系统,其特征在于,The card image splicing system according to claim 8, wherein所述平台装置保持不动,所述控制装置根据所述距离间隔控制所述摄像装置相对于所述平台装置运动。The platform device remains stationary, and the control device controls movement of the camera device relative to the platform device in accordance with the distance interval.
- 根据权利要求8所述的板卡图像拼接系统,其特征在于,The card image splicing system according to claim 8, wherein所述摄像装置保持不动,所述控制装置根据所述距离间隔控制所述平台装置相对于所述摄像装置运动。 The camera device remains stationary, and the control device controls movement of the platform device relative to the camera device according to the distance interval.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760104.7A CN105335931A (en) | 2015-11-09 | 2015-11-09 | Board card image stitching method, processing device and system |
CN201510760104.7 | 2015-11-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017080294A1 true WO2017080294A1 (en) | 2017-05-18 |
Family
ID=55286441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/098225 WO2017080294A1 (en) | 2015-11-09 | 2016-09-06 | Board card image splicing method and processing apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105335931A (en) |
WO (1) | WO2017080294A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11361535B2 (en) * | 2018-08-08 | 2022-06-14 | Google Llc | Multi-angle object recognition |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335931A (en) * | 2015-11-09 | 2016-02-17 | 广州视源电子科技股份有限公司 | Board card image stitching method, processing device and system |
CN106645203A (en) * | 2017-02-13 | 2017-05-10 | 广州视源电子科技股份有限公司 | Image capturing method and device |
CN109242762A (en) * | 2018-08-27 | 2019-01-18 | 北京铂石空间科技有限公司 | Image-recognizing method, device, storage medium and electronic equipment |
CN109685845B (en) * | 2018-11-26 | 2023-04-07 | 普达迪泰(天津)智能装备科技有限公司 | POS system-based real-time image splicing processing method for FOD detection robot |
CN110977154A (en) * | 2019-12-05 | 2020-04-10 | 苏州领鹿智能科技有限公司 | Positioning marking method suitable for large breadth |
CN111583118B (en) * | 2020-05-13 | 2023-09-29 | 创新奇智(北京)科技有限公司 | Image stitching method and device, storage medium and electronic equipment |
CN116469318A (en) * | 2022-01-05 | 2023-07-21 | Tcl华星光电技术有限公司 | Tiled display, driving method and tiled display device |
CN114638824B (en) * | 2022-05-11 | 2022-08-23 | 成都数联云算科技有限公司 | Fusion method, device, equipment and medium for collecting images based on AOI equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1320254A1 (en) * | 2001-12-12 | 2003-06-18 | MV Research Limited | An image processing system |
CN2769896Y (en) * | 2005-01-06 | 2006-04-05 | 电子科技大学 | High-precision splitting registrating apparatus for infrared circuit fault detector |
CN1862597A (en) * | 2005-05-13 | 2006-11-15 | 英赛特半导体有限公司 | Method of registering and aligning multiple images |
CN103369192A (en) * | 2012-03-31 | 2013-10-23 | 深圳市振华微电子有限公司 | Method and device for Full-hardware splicing of multichannel video images |
CN105335931A (en) * | 2015-11-09 | 2016-02-17 | 广州视源电子科技股份有限公司 | Board card image stitching method, processing device and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101334266B (en) * | 2008-07-18 | 2010-07-14 | 北京优纳科技有限公司 | Circuit board defect off-line checking method based on large-capacity image storage technology |
CN102680495B (en) * | 2011-03-15 | 2016-09-07 | 上海赫立电子科技有限公司 | Automatic optical detection device and method |
CN102873420B (en) * | 2012-09-28 | 2015-03-11 | 廖怀宝 | Method for positioning Mark points of PCB (printed circuit board) by image matching |
US11176635B2 (en) * | 2013-01-25 | 2021-11-16 | Cyberoptics Corporation | Automatic programming of solder paste inspection system |
-
2015
- 2015-11-09 CN CN201510760104.7A patent/CN105335931A/en active Pending
-
2016
- 2016-09-06 WO PCT/CN2016/098225 patent/WO2017080294A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1320254A1 (en) * | 2001-12-12 | 2003-06-18 | MV Research Limited | An image processing system |
CN2769896Y (en) * | 2005-01-06 | 2006-04-05 | 电子科技大学 | High-precision splitting registrating apparatus for infrared circuit fault detector |
CN1862597A (en) * | 2005-05-13 | 2006-11-15 | 英赛特半导体有限公司 | Method of registering and aligning multiple images |
CN103369192A (en) * | 2012-03-31 | 2013-10-23 | 深圳市振华微电子有限公司 | Method and device for Full-hardware splicing of multichannel video images |
CN105335931A (en) * | 2015-11-09 | 2016-02-17 | 广州视源电子科技股份有限公司 | Board card image stitching method, processing device and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11361535B2 (en) * | 2018-08-08 | 2022-06-14 | Google Llc | Multi-angle object recognition |
US20220309781A1 (en) * | 2018-08-08 | 2022-09-29 | Google Llc | Multi-Angle Object Recognition |
US11605221B2 (en) | 2018-08-08 | 2023-03-14 | Google Llc | Multi-angle object recognition |
US20230215126A1 (en) * | 2018-08-08 | 2023-07-06 | Google Llc | Multi-Angle Object Recognition |
US11961271B2 (en) | 2018-08-08 | 2024-04-16 | Google Llc | Multi-angle object recognition |
Also Published As
Publication number | Publication date |
---|---|
CN105335931A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017080294A1 (en) | Board card image splicing method and processing apparatus and system | |
CN102376089B (en) | Target correction method and system | |
WO2012053521A1 (en) | Optical information processing device, optical information processing method, optical information processing system, and optical information processing program | |
Albarelli et al. | Robust camera calibration using inaccurate targets | |
EP1031812A2 (en) | Measurement apparatus | |
CN106780623A (en) | A kind of robotic vision system quick calibrating method | |
CN106485758B (en) | Unmanned aerial vehicle camera calibration device, calibration method and assembly line calibration implementation method | |
JP5432835B2 (en) | How to calibrate the camera | |
JP2008014940A (en) | Camera calibration method for camera measurement of planar subject and measuring device applying same | |
CN108429908B (en) | Camera module testing method, device, equipment and medium | |
CN113538583A (en) | Method for accurately positioning position of workpiece on machine tool and vision system | |
CN108716890A (en) | A kind of high-precision size detecting method based on machine vision | |
CN114331924B (en) | Large workpiece multi-camera vision measurement method | |
CN108805940B (en) | Method for tracking and positioning zoom camera in zooming process | |
JP2017138288A (en) | Image measurement device and program | |
CN211374003U (en) | Lens testing device | |
CN110415269A (en) | A kind of target tracking algorism under dynamic static background | |
WO2019085004A1 (en) | Video splicing apparatus and method | |
CN110640303B (en) | High-precision vision positioning system and positioning calibration method thereof | |
CN113838137A (en) | Method and system for acquiring correction mark position based on TFT-LCD | |
JP2014060324A (en) | Calculation device, transfer robot system, and calculation method | |
JP3696336B2 (en) | How to calibrate the camera | |
JP3855244B2 (en) | Three-dimensional image recognition device using a microscope | |
US10516822B2 (en) | Method and device for merging images of calibration devices | |
TWI504859B (en) | Method for photographing and piecing together the images of an object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16863472 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16863472 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16863472 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29/01/2019) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16863472 Country of ref document: EP Kind code of ref document: A1 |