A method and system for detecting the accuracy of antenna and chip position of RFID tags.
By combining digital image inspection with Hough conversion, the problem of difficult detection of RFID tag chip position offset was solved, achieving efficient and accurate detection and improving production yield and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-11
- Publication Date
- 2026-03-10
AI Technical Summary
During the packaging process of RFID tags, the chip position is easily affected by interference, causing it to shift and become difficult to detect with the naked eye, thus affecting production yield and efficiency.
By combining digital image detection with Hough transform, the chip and antenna contour recognition program is executed after acquiring the input image. The Hough transform is used to generate contour blocks of the chip and antenna, and the offset angle and amount are calculated to achieve accurate detection.
It achieves accurate detection of RFID tag chip location, improves production yield and efficiency, reduces computational load, and maintains highly accurate identification results.
Smart Images

Figure CN117094928B_ABST
Abstract
Description
Technical Field
[0001] A method and system for detecting object offset using digital images, and more particularly a processing method and system for detecting the positional accuracy of the antenna and chip of an RFID tag. Background Technology
[0002] The rapid growth of communication technology has also driven the demand for antenna and chip packaging. For example, the packaging of antennas and chips for Radio Frequency Identification (RFID) tags. During the packaging process, the chip may be affected by interference, causing it to shift out of its intended position. Therefore, the packaging results need to be inspected during production. Because the packaged antenna and chip are very small, it is difficult for inspectors to visually determine if the chip has shifted. Furthermore, if chip misalignment or missing chips (not attached to the chip) can be detected immediately during production, production can be stopped as early as possible to correct process errors, reduce waste, and improve production yield. Summary of the Invention
[0003] In view of this, some embodiments provide a processing method for detecting the positional accuracy of the antenna and chip of an RFID tag. This method uses object identification and related processing of digital images, combined with a fast Hough conversion process, to determine whether the chip in the antenna is skewed or misaligned. The processing method for detecting the accuracy of antenna and chip position of RFID tags includes the following steps: acquiring an input image, which includes a first positioning area; executing a chip image program on the input image to generate a chip contour block; executing an antenna image program on the input image to generate an antenna contour block; executing a Hough conversion program on the chip contour block and the antenna contour block respectively to generate a Hough chip contour block and a Hough antenna contour block respectively; selecting the antenna boundary of the Hough antenna contour block and the chip boundary of the Hough chip contour block; obtaining the offset angle based on the antenna boundary and the chip boundary; obtaining a line segment connecting the two points through the first positioning area; obtaining the center point of the antenna block based on the Hough antenna contour block and the line segment; obtaining the center point of the chip block based on the Hough chip contour block; obtaining the offset amount based on the center point of the antenna block and the center point of the chip block; and generating a comparison result based on the offset angle and the offset amount.
[0004] In some embodiments, the execution of the chip image program includes a chip contour recognition program, and the steps further include: identifying multiple rectangular blocks in the chip binarized image; determining whether a target chip exists in the rectangular blocks in the chip selection box; if a target chip exists in the chip binarized image, removing other rectangular blocks of non-target chips in the chip binarized image and generating a chip contour block; if no target chip exists in the chip binarized image, generating a judgment result of "unqualified".
[0005] In some embodiments, the antenna image processing procedure includes an antenna contour recognition procedure, and the steps further include: identifying multiple rectangular blocks in the antenna binarized image; determining whether a target antenna exists in the rectangular blocks in the antenna selection frame; if a target antenna exists in the antenna binarized image, removing the rectangular blocks of other non-target antennas in the antenna binarized image and generating an antenna contour block; if no target antenna exists in the antenna binarized image, generating a judgment result of "unqualified".
[0006] In some embodiments, after generating the chip outline block and the antenna outline block, the steps further include: determining whether the antenna outline block contains the chip outline block; if the antenna outline block contains the chip outline block, then performing a Hough transformation procedure on the chip outline block and the antenna outline block; if the antenna outline block does not contain the chip outline block, then generating a determination result of "unqualified".
[0007] In some embodiments, the step of performing a Hough transformation procedure on a chip contour block to generate a Hough chip contour block includes: obtaining selected line segments of the chip contour block in a first-dimensional space, wherein the selected line segments have multiple chip boundary coordinates; setting a chip transformation angle range in a second-dimensional space; performing a Hough transformation procedure based on the multiple chip boundary coordinates and the chip transformation angle range to generate multiple chip boundary curves in the second-dimensional space; obtaining Hough intersections based on the multiple chip boundary curves, and selecting at least one Hough intersection, selecting the intersection with the most intersections from the multiple Hough intersections as the target intersection; converting the coordinates of the target intersection in the second-dimensional space into Hough line segments in the first-dimensional space; repeatedly obtaining other selected line segments and generating other Hough line segments; and drawing a Hough chip contour block based on the multiple Hough line segments.
[0008] In some embodiments, the step of drawing the Hough chip outline block further includes determining whether the Hough chip outline block is complete.
[0009] In some embodiments, the step of performing a Hough transformation procedure on an antenna contour block to generate a Hough antenna contour block includes: obtaining selected line segments of the antenna contour block in a first-dimensional space, wherein the selected line segments have multiple antenna boundary coordinates; setting an antenna conversion angle range in a second-dimensional space; performing a Hough transformation procedure based on the antenna boundary coordinates and the antenna conversion angle range to generate multiple Hough antenna boundary curves in the second-dimensional space; obtaining Hough intersections based on the Hough antenna boundary curves, and selecting at least one Hough intersection, selecting the intersection with the most intersections as the target intersection; converting the coordinates of the target intersection in the second-dimensional space into Hough line segments in the first-dimensional space; repeatedly obtaining other selected line segments and generating other Hough line segments; and drawing a Hough antenna contour block based on the Hough line segments.
[0010] In some embodiments, the step of drawing the Hough antenna outline block further includes determining whether the Hough antenna outline block is complete.
[0011] In some embodiments, a processing system for detecting the accuracy of antenna and chip position of an RFID tag includes a storage device and a processor. The storage device stores an input image, a chip image program, an antenna image program, a Hough conversion program, and comparison results. The input image includes at least a first positioning area. The processor is electrically connected to the storage device. The processor executes the chip image program and the antenna image program based on the input image, generating a chip contour block and an antenna contour block. The processor executes a Hough conversion program on the chip contour block and the antenna contour block, generating a Hough chip contour block and a Hough antenna contour block respectively. The processor selects the antenna boundary of the Hough antenna contour block and the chip boundary of the Hough chip contour block. The processor obtains an offset angle based on the antenna boundary and the chip boundary. The processor obtains a line segment connecting the two points passing through the first positioning area. The processor obtains the center point of the antenna block based on the Hough antenna contour block and the connecting line segment. The processor obtains the center point of the chip block based on the Hough chip contour block. The processor obtains an offset based on the center point of the antenna block and the center point of the chip block. The processor generates a comparison result based on the offset angle and the offset.
[0012] In some embodiments, the step of the processor performing a Hough transformation procedure on a chip contour block to generate a Hough chip contour block includes: the processor acquiring selected line segments of the chip contour block in a first-dimensional space, wherein the selected line segments have multiple chip boundary coordinates; the processor setting a chip transformation angle range in a second-dimensional space; the processor performing a Hough transformation procedure based on the multiple chip boundary coordinates and the chip transformation angle range to generate multiple Hough chip boundary curves in the second-dimensional space; the processor acquiring Hough intersections based on the multiple Hough chip boundary curves and selecting at least one Hough intersection; the processor selecting the intersection with the most intersections from the Hough intersections as the target intersection; the processor converting the coordinates of the target intersection in the second-dimensional space into Hough line segments in the first-dimensional space; repeatedly acquiring other selected line segments and generating other Hough line segments; and the processor drawing a Hough chip contour block based on the Hough line segments.
[0013] In some embodiments, the step of the processor performing a Hough transformation procedure on the antenna contour block to generate a Hough antenna contour block includes: the processor acquiring selected line segments of the antenna contour block in a first-dimensional space, wherein the selected line segments have multiple antenna boundary coordinates; the processor setting an antenna conversion angle range in a second-dimensional space; the processor performing a Hough transformation procedure based on the multiple antenna boundary coordinates and the antenna conversion angle range to generate multiple Hough antenna boundary curves in the second-dimensional space; the processor acquiring Hough intersections based on the multiple Hough antenna boundary curves and selecting at least one Hough intersection; the processor selecting the intersection with the most intersections from the multiple Hough intersections as the target intersection; the processor converting the coordinates of the target intersection in the second-dimensional space into Hough line segments in the first-dimensional space; repeatedly acquiring other selected line segments and generating other Hough line segments; and the processor drawing a Hough antenna contour block based on the Hough line segments.
[0014] The aforementioned method and system for detecting the accuracy of the antenna and chip position of RFID tags are applied to the antenna image of the target chip to identify whether the chip's position has shifted. The method and system also modify the calculation method of the Hough transform procedure to reduce the computational load on the processing system while retaining highly accurate identification results. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of a processing system architecture for detecting the accuracy of the antenna and chip position of an RFID tag according to one embodiment;
[0016] Figure 2 This is a schematic diagram of the input image in one embodiment;
[0017] Figure 3A This is a schematic diagram illustrating the operation of a chip position accuracy processing method according to one embodiment.
[0018] Figure 3B This is a schematic diagram illustrating the detection and judgment of a chip position accuracy processing method according to one embodiment;
[0019] Figure 4A This is a schematic diagram of a chip binarized image according to an embodiment;
[0020] Figure 4B This is a schematic diagram of a chip outline block according to one embodiment;
[0021] Figure 5A This is a schematic diagram of the input image and the smoothed image in one embodiment;
[0022] Figure 5B This is a schematic diagram of an antenna outline block with a rectangular region removed, as shown in one embodiment.
[0023] Figure 6A This is a schematic diagram illustrating the selection of a line segment and its pixels according to one embodiment;
[0024] Figure 6B This is a schematic diagram of the first-dimensional space and the second-dimensional space in one embodiment;
[0025] Figure 6C This is a schematic diagram of the selection of line segments and Hough line segments in one embodiment;
[0026] Figure 6D This is a schematic diagram of a Hough chip outline block according to an embodiment;
[0027] Figure 7 This is a schematic diagram of the outline of a Hough antenna according to one embodiment;
[0028] Figure 8A This is a schematic diagram illustrating the generation of connecting line segments based on a first positioning area, as shown in one embodiment.
[0029] Figure 8B This is a schematic diagram of the offset angle in one embodiment;
[0030] Figure 9 This is a schematic diagram of the offset in one embodiment.
[0031] [Symbol Explanation]
[0032] 100: Processing System
[0033] 110: Storage devices
[0034] 111: Chip Imaging Program
[0035] 112: Antenna Image Program
[0036] 113: Hough Transformation Procedure
[0037] 114: Comparison Results
[0038] 115: Grayscale program
[0039] 116: Binarization procedure
[0040] 117: Chip Contour Recognition Program
[0041] 118: Smoothing Procedure
[0042] 119: Antenna Profile Recognition Program
[0043] 120: Processor
[0044] 130: Input Image
[0045] 131: Target Antenna
[0046] 132: Chip Packaging Structure
[0047] 133: Target chip
[0048] 134: Carrier
[0049] 140: Camera Unit
[0050] 410: Chip-based binarized images
[0051] 411: Rectangular Block
[0052] 412: Edge detection box
[0053] 413: Chip Selection Box
[0054] 420: Chip outline block
[0055] 510: Smooth Image
[0056] 511: Antenna Selection Box
[0057] 520: Antenna Binarized Image
[0058] 530: Antenna outline block
[0059] 610: Select line segment
[0060] 621: Hoff Intersection
[0061] 631: Target Intersection
[0062] 640: Hoff segment
[0063] 650: Hough chip outline block
[0064] 660: Center point of chip tile
[0065] 710: Hof antenna outline block
[0066] 811: Antenna Boundary
[0067] 812: Chip Boundary
[0068] 813: Offset Angle
[0069] 814: Offset
[0070] 911: First Location Zone
[0071] 912: First Center Point
[0072] 921: Second Positioning Area
[0073] 922: Second center point
[0074] 931: Connecting line segments
[0075] 941: Antenna block centerline
[0076] 942: Center point of antenna block Detailed Implementation
[0077] Please refer to Figure 1 This is a schematic diagram of the processing system architecture for detecting the antenna and chip position accuracy of an RFID tag according to an embodiment. The processing system for detecting the antenna and chip position accuracy of an RFID tag (hereinafter referred to as processing system 100) can be applied to electronic devices with computing capabilities, such as personal computers, servers, laptops, tablets, or mobile communication devices. In addition to running locally, the processing system 100 can also connect to a remote server via a network to perform digital image detection.
[0078] The processing system 100 includes at least a storage device 110 and a processor 120. The processor 120 is electrically connected to the storage device 110. The processor 120 can be selectively connected to the camera unit 140. The storage device 110 stores the input image 130, the chip image program 111, the antenna image program 112, the Hough transform program 113, and the comparison result 114. The chip image program 111 is a collection of a grayscale program 115, a binarization program 116, and a chip contour recognition program 117. The antenna image program 112 includes at least a smoothing program 118, a binarization program 116, and an antenna contour recognition program 119.
[0079] The input image 130 can be imported from an external file, or it can be captured by the camera unit 140 from a wireless radio frequency device, or a portion of a digital image can be used as the input image 130. Please refer to [reference needed]. Figure 2 The input image 130 is a top-view frontal image of a target chip 133 including at least an RFID tag and a target antenna 131, and is a schematic diagram of the input image of one embodiment. Figure 2 The image above is a schematic diagram of the complete target antenna 131 and target chip 133 captured in the RFID tag; Figure 2 Below is a magnified view of a portion of the RFID tag in the aforementioned input image 130; in which Figure 2 The input image 130 below corresponds to Figure 2 The dashed frame above the captured image.
[0080] Please continue to refer to this. Figure 2 The central obtuse-angled square structure of the input image 130 is the chip packaging structure 132, and the remaining part is the carrier 134. The chip packaging structure 132 includes the target chip 133. The chip packaging structure 132 is a structure formed by bonding the target chip 133 to the target antenna 131 with conductive adhesive. Generally speaking, Figure 2 The chip package structure 132 is in a correctly bonded state. In reality, the chip package structure 132 may fail to bond to the two target antennas 131, or may only be connected to the target antenna 131 on one side, or there may be other bonding failure states.
[0081] To easily distinguish between the target antenna 131 and the target chip 133, the target antenna 131 is represented by horizontal lines. The target chip 133, encapsulated within the target antenna 131, is represented by a grid. Multiple holes are distributed within both the target antenna 131 and the target chip 133, representing air bubbles or other dust generated during encapsulation. Furthermore, the black areas of the chip encapsulation structure 132 also represent defects generated during the encapsulation process. The input image 130 can be a color image or a grayscale image.
[0082] Please refer to Figure 3A and Figure 3B The diagram illustrates the operation and detection process of a chip position accuracy processing method according to one embodiment. After acquiring the input image 130, the processor 120 executes the processing method for detecting the antenna and chip position accuracy of the RFID tag, which includes the following steps:
[0083] Step S210: Acquire input image 130, which includes a first positioning area 911 and a second positioning area 921;
[0084] Step S220: Execute the chip image program 111 on the input image 130 to generate the chip outline block 420;
[0085] Step S230: Execute antenna image program 112 on input image 130 to generate antenna contour block 530;
[0086] Step S240: Perform Hough conversion program 113 on chip outline block 420 and antenna outline block 530 respectively to generate Hough chip outline block 650 and Hough antenna outline block 710 respectively.
[0087] Step S250: Select the antenna boundary 811 of the Hough antenna contour block 710 and the chip boundary 812 of the Hough chip contour block 650.
[0088] Step S260: Obtain the offset angle 813 based on the antenna boundary 811 and the chip boundary 812;
[0089] Step S270: Generate a connecting line segment 931 based on the first positioning area 911 and the second positioning area 921;
[0090] Step S280: Obtain the center point 942 of the antenna block based on the Hough antenna outline block 710 and the connecting line segment 931;
[0091] Step S290: Obtain the center point 660 of the chip block according to the Hough chip outline block 650;
[0092] Step S300: Obtain the offset 814 based on the center point 942 of the antenna pattern and the center point 660 of the chip pattern; and
[0093] Step S310: Generate comparison result 114 based on offset angle 813 and offset amount 814.
[0094] First, the processing system 100 acquires the input image 130. The processor 120 loads the input image 130 into the chip image program 111 and the antenna image program 112 respectively. The processor 120 can execute the chip image program 111 or the antenna image program 112 in a time-sharing or synchronous manner, depending on its computing power.
[0095] Please refer to Figure 2 The description prioritizes chip image processing program 111. If the input image 130 is a color image, the processor 120 executes grayscale program 115 on the input image 130 and generates a grayscale image. The pixel grayscale distribution of grayscale program 115 can be linearly adjusted according to the input image 130. If the input image 130 is a grayscale image, the processor 120 can choose to skip the execution of this grayscale program 115.
[0096] Please also refer to Figure 3A , Figure 3B and Figure 4A ,in Figure 4A This is a schematic diagram of a chip binarized image according to one embodiment. The processor 120 performs a binarization procedure 116 on the grayscale image and generates a chip binarized image 410. Then, the processor 120 loads the chip binarized image 410 into a chip contour recognition procedure 117. The chip contour recognition procedure 117 identifies and removes the target chip 133 and the rectangular block 411 from the chip binarized image 410. The chip contour recognition procedure 117 includes the following steps:
[0097] Step S410: Identify multiple rectangular blocks 411 in the chip binarized image 410;
[0098] Step S420: Determine whether the target chip 133 exists in the rectangular block 411 of the chip selection box 413;
[0099] Step S430: If a rectangular block 411 of the target chip 133 exists in the chip binarized image 410, then remove the rectangular blocks 411 of other non-target chips 133 in the chip binarized image 410, and generate a chip outline block 420; and
[0100] Step S440: If the target chip 133 is not present in the binary image 410 of the chip, the judgment result is "unqualified".
[0101] Please refer to Figure 4A The chip contour recognition program 117 mainly targets the range of the chip package structure 132 in the chip binarized image 410. The chip contour recognition program 117 moves an n*m pixel edge detection box 412 in the chip binarized image 410 and identifies the rectangular block 411 covered by the edge detection box 412. Figure 4A The image above is a magnified view of the edge of the target chip 133 in the chip package structure 132. Assuming the edge detection frame 412 is 3*3 pixels in size, the chip contour recognition program 117 treats the combination of adjacent pixels of the target chip 133 within the edge detection frame 412 as a rectangular block 411. Next, the chip contour recognition program 117 stitches the edge detection frame 412 together with the detected rectangular blocks 411. The chip contour recognition program 117 then determines whether the set of rectangular blocks 411 in different regions of the chip binarized image 410 represents the target chip 133 or a packaging defect.
[0102] Please refer to Figure 4B After the chip contour recognition program 117 marks all rectangular blocks 411 of the chip binarized image 410, the chip contour recognition program 117 determines whether the chip binarized image 410 contains the target chip 133 based on the area range of the chip selection box 413. Generally, the area range of the chip selection box 413 is determined according to the size specifications of the chip type. Figure 4B The solid box at the top is a schematic diagram of the chip selection box 413. The preset position and size of the chip selection box 413 can be determined according to the type of wireless radio frequency device. For example, it can be preset to... Figure 4B The rectangular area corresponding to the chip area is defined in the image 130. Because the target chip 133 may be displaced due to interference during the packaging process, the target chip 133 in the input image 130 may not be in the preset position, or it may be slightly skewed. Therefore, the range of the chip selection box 413 will be slightly larger than the target chip 133. The chip contour recognition program 117 can identify the target chip 133 and its position in the binary image 410 using the chip selection box 413.
[0103] Please refer to Figure 4BThe image shown is a schematic diagram of a chip outline block 420 according to an embodiment. During the packaging process, the target chip 133 may be disturbed and shift. Therefore, the target chip 133 in the input image 130 may not be in a preset position, or the target chip 133 may be slightly skewed. The chip outline recognition program 117 determines whether the percentage of the overlapping area between the chip selection box 413 and the target chip 133 meets a threshold value. If the overlapping area between the chip selection box 413 and the target chip 133 does not meet the threshold value, the chip outline recognition program 117 determines that the target chip 133 is "unqualified". Figure 4B For example, target chip 133 is represented by a black block. The chip contour recognition program 117 can determine whether the ratio of target chip 133 to chip selection box 413 meets the threshold value by comparing the area of the black block of target chip 133 with the area of chip selection box 413.
[0104] The chip contour recognition program 117 removes all rectangular blocks 411 of other non-target chips. Figure 4B The rectangular block 411 is represented by a dashed box. Figure 4B The top part shows the chip package structure 132 with the rectangular block 411 still attached. Figure 4B Below is the chip outline block 420. The overall image size of the chip outline block 420 is the same as that of the input image 130. Figure 4B The target chip 133 in the chip outline block 420 is used as an example. If the chip outline recognition program 117 cannot recognize the target chip 133 from the chip binarized image 410, the chip outline recognition program 117 will generate a judgment result of "unqualified".
[0105] The processor 120 also executes an antenna imaging program 112, which consists of a smoothing program 118, a binarization program 116, and an antenna contour recognition program 119. The processor 120 loads the input image 130 into the smoothing program 118 and generates a smoothed image 510, as shown below. Figure 5A As shown. In other embodiments, the antenna image processing program 112 consists of a grayscale program 115, a smoothing program 118, a binarization program 116, and an antenna contour recognition program 119. Therefore, the processor 120 can also selectively execute the grayscale program 115 on the smoothed image 510 to generate a smoothed grayscale image (unlabeled). Please refer to... Figure 3A and Figure 3B As shown. The antenna imaging procedure 112 below is described using a combination of smoothing procedure 118 and binarization procedure 116.
[0106] The smoothing procedure 118 can be implemented using, but is not limited to, a smoothing linear filter, a median filter, an ideal low-pass filter (2-D ILPF), a Butterworth ideal low-pass filter (BILF), or a Gaussian low-pass filter (GLPF). After the input image 130 is smoothed using the smoothing procedure 118, the noise in the image can be reduced. Figure 5A In the above, the input image 130 is processed by the smoothing process 118 to produce a smoothed image 510. The smoothed image 510 can filter out multiple small-range noises in the input image 130.
[0107] Processor 120 performs a binarization procedure 116 on the smoothed image 510 to generate an antenna binarized image 520 corresponding to the smoothed image 510. Next, processor 120 loads the antenna binarized image 520 into an antenna contour recognition procedure 119. The antenna contour recognition procedure 119 identifies and removes rectangular blocks 411 from the antenna binarized image 520. The antenna contour recognition procedure 119 includes the following steps, and please refer to... Figure 3B As shown:
[0108] Step S510: Identify multiple rectangular blocks 411 in the antenna binarized image 520;
[0109] Step S520: Determine whether a target antenna 131 exists based on the rectangular block 411 within the antenna selection box 511;
[0110] Step S530: If a rectangular block 411 of the target antenna 131 exists in the antenna binarized image 520, then remove the rectangular blocks 411 of other non-target antennas 131 in the antenna binarized image 520, and generate an antenna contour patch 530; and
[0111] Step S540: If the target antenna 131 is not present in the antenna binarized image 520, the judgment result is "unqualified".
[0112] Antenna contour recognition program 119 identifies rectangular blocks 411 in the antenna binarized image 520. As described in chip contour recognition program 117, antenna contour recognition program 119 also employs edge detection box 412 identification processing. The size of the edge detection box 412 in antenna contour recognition program 119 can be different from or the same as the size of the edge detection box 412 in chip contour recognition program 117. Antenna contour recognition program 119 targets the entire range of input image 130, including the target antenna 131 and chip package structure 132. Antenna contour recognition program 119 removes all other rectangular blocks 411 that are not part of the target antenna 131 to obtain a block image of the target antenna 131. Please refer to... Figure 5B As shown, it is a schematic diagram of the antenna outline block of the removed rectangular block 411 in one embodiment.
[0113] The antenna contour recognition program 119 determines whether the target antenna 131 exists in the rectangular block 411 based on the antenna selection box 511. Similar to the determination method for the chip selection box 413 described above, the antenna contour recognition program 119 determines whether the percentage of the overlapping area between the antenna selection box 511 and the target antenna 131 meets a threshold value. If the overlapping area between the antenna selection box 511 and the target antenna 131 meets the threshold value, the antenna contour recognition program 119 considers the target antenna 131 to exist. Conversely, if the overlapping area between the antenna selection box 511 and the target antenna 131 does not meet the threshold value, the antenna contour recognition program 119 generates a determination result of "unqualified".
[0114] After completing the chip outline block 420 and the antenna outline block 530, the processor 120 executes the Hough conversion program 113 on the chip outline block 420 and the antenna outline block 530 respectively. The processor 120 can execute the chip outline block 420 and the antenna outline block 530 in a time-sharing or synchronous manner depending on its computing power. First, the operation of the Hough conversion program 113 is explained using the chip outline block 420.
[0115] Step S610: Obtain the selected line segment 610 of the chip outline block 420 in the first dimension space;
[0116] Step S620: Set the chip conversion angle range in the second-dimensional space;
[0117] Step S630: Execute Hough transformation program 113 according to chip boundary coordinates and chip transformation angle range to generate multiple Hough chip boundary curves in the second dimension space;
[0118] Step S640: Obtain the Hough intersection point 621 based on the Hough chip boundary curve, and select at least one Hough intersection point 621;
[0119] Step S650: Select the intersection point with the most intersection points from the Hough intersection points 621 as the target intersection point 631;
[0120] Step S660: Convert the coordinates of the target intersection point 631 in the second-dimensional space into the Hough line segment 640 in the first-dimensional space;
[0121] Step S670: Repeat the process of acquiring other selected line segments 610 and generating corresponding Hough line segments 640; and
[0122] Step S680: Draw the Hough chip outline block 650 based on the Hough line segment 640.
[0123] Processor 120 selects a line segment 610 from any boundary of chip outline block 420. To clearly illustrate the operation of Hough transformation procedure 113, the set of pixel coordinates of input image 130 is considered as a first-dimensional space (unlabeled). Since input image 130 is a planar image, the first-dimensional space is also a two-dimensional space. The origin of the first-dimensional space can be an edge corner of input image 130, or it can be determined by the user. In the following text, the upper left corner of input image 130 is taken as the origin, and the boundary of the first-dimensional space is the image length and width of input image 130.
[0124] Since the chip outline patch 420 can be considered as a set of pixels in the first-dimensional space, each pixel of the chip outline patch 420 can correspond to different coordinates in the first-dimensional space, such as... Figure 6A As shown. The coordinate set of the selected line segment 610 mentioned above is called the chip boundary coordinates. The processor 120 sets the chip transformation angle range of the second-dimensional space generated by the Hough transformation program 113. The Hough transformation program 113 can represent the rectangular coordinates (x, y) of the first-dimensional space in polar coordinates (ρ, θ), where ρ is the intercept between the origin of the first-dimensional space and the selected line, and θ is the angle between the intercept and the horizontal axis X. The conversion formula between polar coordinates and rectangular coordinates is as follows:
[0125] x cos(θ)+y sin(θ)=ρ, where ρ is the intercept from the origin to the target, and θ is the included angle.
[0126] The chip conversion angle range is the interval of the included angle θ. The processor 120 can determine the range of the chip conversion angle range based on its computing power or the size of the chip contour block 420. The range of the chip conversion angle range can be, but is not limited to, [-180° to +180°]. Next, one of the chip boundary coordinates is selected as the target coordinate (unlabeled). The processor 120 performs a Hough transformation procedure 113 on the target coordinate according to the chip conversion angle range, and obtains the generation results of the target coordinate for all chip conversion angle ranges. After the Hough transformation procedure 113, the chip conversion angle range of the target coordinate will generate a Hough chip boundary curve in a second-dimensional space (unlabeled).
[0127] Next, processor 120 performs the aforementioned Hough transformation procedure 113 on the remaining chip boundary coordinates. Please refer to... Figure 6B As shown, Figure 6B The upper part is the first-dimensional space. Figure 6B The image below shows the Hough chip boundary curves after the chip boundary coordinates have been transformed to a second-dimensional space. Different Hough chip boundary curves intersect each other; the points where different curves intersect are referred to as Hough intersection points 621. The processor 120 will count the number of intersections at each Hough intersection point 621; this number represents the number of curves passing through each Hough intersection point 621. If the Hough chip boundary curves cannot intersect each other to generate Hough intersection points 621, it indicates that there may be an anomaly in the chip outline block 420.
[0128] The processor 120 selects the Hough intersection 621 with the most intersections from all the Hough intersections 621 within the chip's angle conversion range as the target intersection 631. The processor 120 transforms the coordinates of the target intersection 631 to the first-dimensional space and records the Hough line segment 640 of the target intersection 631 in the first-dimensional space. Figure 6C It corresponds to Figure 6A Chip outline block 420, Figure 6A After the aforementioned processing, the selected line segment 610 is obtained as follows: Figure 6C The Hough segment 640. The processor 120 repeatedly selects other selected segments 610 on the chip outline block 420 to obtain the corresponding Hough segment 640, such as... Figure 6D As shown. Processor 120 draws a Hough chip outline block 650 based on all Hough segments 640. Figure 6D The chip outline block 420 is only used to illustrate the relative positions of the Hough line segments 640. In fact, it is not necessary to display them in the chip outline block 420. Figure 6D The chip outline block 420 is represented by a gray dashed line block.
[0129] Next, the processor 120 performs a Hough transformation procedure 113 on the antenna profile block 530. The Hough transformation procedure 113 on the antenna profile block 530 includes the following steps:
[0130] Step S710: Obtain the selected line segment 610 of the antenna contour block 530 in the first dimension space;
[0131] Step S720: Set the antenna conversion angle range in the second dimension space;
[0132] Step S730: Execute the Hough transformation procedure 113 according to the antenna boundary coordinates and the antenna transformation angle range to generate multiple Hough antenna boundary curves in the second dimension space;
[0133] Step S740: Obtain the Hough intersection point 621 based on the Hough antenna boundary curve, and select at least one Hough intersection point 621;
[0134] Step S750: Select the intersection point with the most intersection points from the Hough intersection points 621 as the target intersection point 631;
[0135] Step S760: Convert the coordinates of the target intersection point 631 in the second-dimensional space into the Hough line segment 640 in the first-dimensional space;
[0136] Step S770: Repeatedly acquire other selected line segments 610 and generate the corresponding Hough line segments 640; and
[0137] Step S780: Draw the Hough antenna outline block 710 based on the Hough line segment 640.
[0138] Processor 120 selects any line segment 610 from antenna contour block 530. Each pixel of the selected line segment 610 has corresponding antenna boundary coordinates. Processor 120 sets the antenna conversion angle range in the first dimension space. Generally, the antenna conversion angle range can be equivalent to the chip conversion angle range. Alternatively, depending on the computing power of processor 120, the range of the chip conversion angle range can be different from the range of the antenna conversion angle range. Processor 120 executes Hough transformation program 113 based on the antenna boundary coordinates and the antenna conversion angle range, and obtains multiple Hough antenna boundary curves in the second dimension space. Different Hough antenna boundary curves will intersect each other, and the position where different curves intersect is called a Hough intersection point 621. Processor 120 will count the number of intersections of each Hough intersection point 621, which is the number of curves passing through the Hough intersection point 621. If the Hough antenna boundary curves cannot intersect each other to generate a Hough intersection point 621, it indicates that there may be an abnormality in antenna contour block 530.
[0139] The processor 120 selects the target intersection point 631 with the highest number of intersection points from the Hough intersection points 621 formed by multiple Hough antenna boundary curves within the antenna conversion angle range. In other words, the processor 120 searches for intersection points within the antenna conversion angle range and counts the number of intersection points. The processor 120 converts the coordinates of the target intersection point 631 into a Hough line segment 640 in the first-dimensional space. Please refer to [reference needed]. Figure 7 As shown. Antenna contour block 530 has two sets of vertical sides (left and right) and four sets of horizontal sides. Generally, the vertical direction is the normal direction of the width of the input image 130. However, in practice, the vertical direction can also be based on the normal of the width, with an angle range defined between the normal and the normal, and the entire angle range can be considered as the vertical direction. Similarly, the horizontal direction can be the extension direction of the normal of the height of the input image 130, or the direction within the angle range with the normal. Therefore, Hough antenna contour block 710 also includes Hough segments 640 of the two sets of vertical sides and the four sets of horizontal sides of the target antenna 131. Figure 7 In the diagram, antenna outline block 530 is only used to illustrate the relative position of Hough line segment 640; in reality, antenna outline block 530 does not need to be displayed. Figure 7 The antenna outline block 530 is represented by a gray block.
[0140] After acquiring the Hough chip outline block 650 or the Hough antenna outline block 710, the processor 120 determines whether the Hough chip outline block 650 and the Hough antenna outline block 710 are complete, and requests cooperation. Figure 3B As shown. The processor 120 sequentially selects Hough line segments 640 on either side of the Hough chip contour block 650 and determines whether the included angle between the two selected Hough line segments 640 conforms to a preset angle. If the included angle between the two Hough line segments 640 on opposite sides does not conform to the preset angle, it indicates that the Hough chip contour block 650 may be abnormal, and the judgment result is "unqualified", such as chip damage or identification error. Generally, the processor 120 compares the two Hough line segments 640 at least twice, such as the two Hough line segments 640 on the upper and lower sides, or the left and right sides, or the two Hough line segments 640 on adjacent sides. When either side has two Hough line segments 640 at the same time, it indicates that the Hough chip contour block 650 may have an abnormal problem, and the judgment result is "unqualified". The processor 120 generates the corresponding detection result based on the two Hough line segments 640.
[0141] In addition, the processor 120 also performs contour integrity detection on the Hough antenna contour block 710. As mentioned above, the Hough antenna contour block 710 includes two sets of Hough line segments 640 in the vertical direction (left and right sides) and four sets of sides in the horizontal direction. Please refer to [reference needed]. Figure 7At the point indicated by the dotted line below, the processor 120 determines whether the included angle of the Hough line segments 640 on the left and right sides conforms to a preset angle. Simultaneously, the processor 120 also determines whether the four horizontally extending Hough line segments 640 intersect with the vertically extending Hough line segments 640 on both sides. When the included angle conforms to the preset angle and an intersection occurs, the processor 120 generates a correct detection result.
[0142] After confirming that the Hough chip outline block 650 and the Hough antenna outline block 710 are normal, the processor 120 selects any one Hough line segment 640 from the Hough antenna outline block 710 as the antenna boundary 811. The antenna boundary 811 can be the left and right sides in the vertical direction and the four sides in the horizontal direction of the Hough antenna outline block 710. Figure 7 and Figure 8A For example, processor 120 can be derived from... Figure 7 Either the Hough line segment 640 on the left or right sides of the vertical direction can be selected as the antenna boundary 811. The processor 120 can select the corresponding vertical Hough line segment 640 from the Hough chip outline block 650 as the chip boundary 812.
[0143] Please refer to Figure 8A As shown, the processor 120 obtains the offset angle 813 according to the following processing. The processor 120 can obtain the connecting line segment 931 based on either the first positioning area 911 or the second positioning area 921, or a combination of the first positioning area 911 and the second positioning area 921. First, let's take the example of selecting the first positioning area 911 and generating the connecting line segment 931 based on the first positioning area 911.
[0144] Figure 8A The input image 130 represents the Hough antenna outline block 710. The processor 120 selects Hough line segments 640 (i.e., the aforementioned antenna boundary 811) on opposite sides of the Hough antenna outline block 710. The processor 120 generates a connecting line segment 931 with the first center point 912 of the first positioning area 911 as the origin. The connecting line segment 931 passes through the two vertical Hough line segments 640, and is perpendicular to one of the Hough line segments 640. The processor 120 calculates the angle formed by the connecting line segment 931 and the horizontal chip boundary 812, which is the offset angle 813.
[0145] In addition to the aforementioned processing method of obtaining the connecting line segment 931 and the corresponding offset angle 813 using the first positioning area 911, the corresponding processing can also be performed using multiple positioning areas. If the input image 130 has a first positioning area 911 and a second positioning area 921, the processor 120 can determine the connecting line segment 931 based on the first positioning area 911 and the second positioning area 921. The appearance or size of the first positioning area 911 or the second positioning area 921 is not limited to... Figure 8B As shown. The first positioning area 911 and the second positioning area 921 can be, but are not limited to, triangles, circles, squares, or rectangles, or other polygons, and have the same material as the target antenna 131. They can be formed in the same process as the target antenna 131, but are not electrically connected to the target antenna 131. The processor 120 connects the first center point 912 of the first positioning area 911 with the second center point 922 of the second positioning area 921, and the connected line segment is the connecting line segment 931. The processor 120 obtains the offset angle 813 based on the connecting line segment and the corresponding chip boundary 812.
[0146] Processor 120 generates antenna block centerline 941 based on the Hough line segments 640 on both sides of the vertical direction in the Hough antenna outline block 710 (please refer to...). Figure 9 (The black dashed line in the diagram). Processor 120 can obtain the antenna block centerline 941 by averaging the endpoints of the two Hough line segments 640. The intersection of the antenna block centerline 941 and the connecting line segment 931 is the antenna block center point 942 of the Hough antenna outline block 710. Processor 120 calculates the center point of the target chip 133 based on the Hough chip outline block 650, and refers to this center point as the chip block center point 660. Processor 120 can obtain four sets of intersection point coordinates based on the four sets of intersection points of the Hough line segments 640 of the Hough chip outline block 650. Processor 120 sums the four sets of intersection point coordinates and takes the average to obtain the chip block center point 660 of the Hough chip outline block 650. Please refer to [reference needed]. Figure 6D Processor 120 calculates the distance between the center point 942 of the antenna pattern and the center point 660 of the chip pattern, and the distance is the offset of 814 between the center point 942 of the antenna pattern and the center point 660 of the chip pattern.
[0147] In addition, the processor 120 selects any Hough segment 640 from the Hough antenna profile block 710 as the antenna boundary 811. The antenna boundary 811 can be the long side (i.e., the vertical side) or the wide side (i.e., the horizontal side) of the Hough antenna profile block 710. Figure 7 and Figure 9 For example, processor 120 can be derived from... Figure 7 Either the left or right side is selected as the antenna boundary 811. The Hough chip outline block 650 includes two long sides (i.e., the Hough line segments 640 of the left and right sides). The processor 120 selects the corresponding Hough line segment 640 from the Hough chip outline block 650 as the chip boundary 812 based on the selected antenna boundary 811.
[0148] In other words, if the processor 120 selects the long side as the antenna boundary 811 from the Hough antenna outline block 710, the processor 120 will also select the long side as the chip boundary 812 from the Hough chip outline block 650. Figure 9 The chip boundary 812 corresponds to Figure 6D The left Hough line segment 640. Finally, processor 120 calculates the offset angle 813 between antenna boundary 811 and chip boundary 812. Please refer to... Figure 9 As shown. In other words, the processor 120 obtains the offset angle 813 of the target chip 133 based on the angle difference between the antenna boundary 811 and the chip boundary 812. In addition, the processor 120 can also determine the offset angle 813 of the target chip 133 based on other line segments.
[0149] Finally, the processor 120 generates the detection results of the target chip 133 and the target antenna 131 based on the offset angle 813 and the offset amount 814. The processor 120 can set different acceptance criteria for the offset angle 813 and offset amount 814 according to different types of RFID tags. For example, the processor 120 determines whether the offset amount 814 meets a preset distance threshold. If the offset amount 814 does not meet the preset distance and the offset angle 813 does not meet the preset angle threshold, the processor 120 will generate a judgment result of "unacceptable". In fact, the processor 120 sets corresponding judgment criteria according to the type of RFID tag, and is not limited to the aforementioned example.
[0150] In one embodiment, after completing the chip outline block 420 and the antenna outline block 530, the processor 120 can further confirm whether the antenna outline block 530 contains the target chip 133.
[0151] Step S910: Determine whether the antenna outline block 530 contains the chip outline block 420;
[0152] Step S920: If the antenna contour block 530 includes the chip contour block 420, then the chip contour block 420 and the antenna contour block 530 undergo a Hough conversion procedure; and
[0153] Step S930: If the antenna outline block 530 does not contain the chip outline block 420, the judgment result is "unqualified".
[0154] After completing the antenna contour block 530 and the chip contour block 420, the processor 120 checks whether the antenna contour block 530 contains the chip contour block 420. If the antenna contour block 530 contains the chip contour block 420, the processor 120 continues to execute step S230. Otherwise, if the antenna contour block 530 does not contain the chip contour block 420, the judgment result is "unqualified".
[0155] In one embodiment, the process of processor 120 selecting Hough intersection 621 further includes the following steps:
[0156] Step S1010: Sequentially adjust the floating-point precision levels of the chip's conversion angle range, and count the number of Hough intersections (621) for each floating-point precision level; and
[0157] Step S1020: Select the intersection point with the most intersection points from the Hough intersection points 621 as the target intersection point 631.
[0158] Generally speaking, a larger range of chip transition angles allows for the acquisition of more Hough chip boundary curves. While a larger number of Hough chip boundary curves can yield more accurate target intersection point 631 and Hough line segment 640, for processor 120, a larger range of chip transition angles will increase the computational load of processor 120.
[0159] Processor 120 adjusts the chip's conversion angle range by varying the floating-point precision levels. Processor 120 sorts the number of intersections in each floating-point precision level and selects the one with the most intersections as the new target intersection 631. The aforementioned floating-point precision levels can correspond to both decimal systems and scientific notation. The following explanation uses a decimal system as an example. The floating-point precision levels correspond to the length of the digits after the decimal point.
[0160] Assume the chip conversion angle range is θ, and θ∈(-10°~+10°). For example, if the chip conversion angle range has the most Hough intersections 621 between θ={6°~7°}, processor 120 selects θ={6°~7°} as the new chip conversion angle range. Processor 120 uses the target intersection 631 as a reference and sequentially shifts the floating-point precision bits. Processor 120 calculates the number of Hough intersections 621 for θ=6.9, θ=6.8…θ=6.0. Processor 120 sorts the number of Hough intersections 621 and obtains the coordinate value of the target intersection 631 with the largest number of Hough intersections 621. Suppose that processor 120 obtains the most Hough intersections 621 in the interval with coordinates θ = 6.8 for target intersection 631; then, processor 120 performs the aforementioned statistics and sorting from θ = 6.80 to 6.71 based on the coordinates θ = 6.8 for target intersection 631 and by shifting the floating-point precision, processor 120 performs the aforementioned statistics and sorting. Please refer to Table 1 below, which is a schematic table of the number of intersections for the coordinates of target intersection 631 at each floating-point precision level.
[0161] Floating-point precision bits θ ρ Number of intersections 0 7 273 791 0.0 6.8 272.7 110 0.00 6.84 272.8 124 0.000 6.842 272.8 125
[0162] Table 1
[0163] After processing all floating-point precision bits, processor 120 selects the coordinates of the target intersection point 631 with the lowest floating-point precision bit as the new target intersection point 631. Processor 120 then generates the Hough line segment 640 based on the previously obtained target intersection point 631. In practice, processor 120 can determine the number of floating-point precision bits based on its computing power.
[0164] In addition to performing floating-point precision processing on the chip switching angle range, in one embodiment, the processor 120 can also adjust the floating-point precision of the antenna switching angle range and select the corresponding target intersection point from it.
[0165] Step S1110: Sequentially adjust the floating-point precision levels of the antenna conversion angle range, and count the number of Hough intersections (621) for each floating-point precision level; and
[0166] Step S1120: Select the intersection point with the most intersection points from the Hough intersection points 621 as the target intersection point 631.
[0167] Processor 120 adjusts the antenna conversion angle range by changing the floating-point precision levels. Processor 120 sorts the number of intersections in each floating-point precision level and selects the one with the most intersections as the new target intersection 631. Continuing the previous example, processor 120 first selects the antenna conversion angle range as θ, where θ∈(-10°~+10°). After the Hough transformation procedure 113 for θ∈(-10°~+10°), it is assumed that the range with the most Hough intersections 621 is θ={0°~2°}. Therefore, processor 120 selects the antenna conversion angle range as θ={0°~2°}. Please refer to Table 2 below, which illustrates the number of intersections for each floating-point precision level in the antenna conversion angle range:
[0168] Floating-point precision bits θ ρ Number of intersections 0 2 530 60 0.0 1.1 525.9 7 0.00 1.10 525.9 7 0.000 1.105 525.9 8
[0169] Table 2
[0170] The processor 120 obtains the corresponding Hough line segment 640 according to Tables 1 and 2. The processor performs correlation comparison and processing between the antenna boundary 811 and the chip boundary 812 based on the Hough line segment 640.
[0171] In one embodiment, the antenna imaging program 112 may also execute the grayscale program 115 between the execution of the smoothing program 118 and the binarization program 116. Please refer to [link / reference]. Figure 3AAfter the input image 130 is processed by the smoothing procedure 118, a smoothed image 510 is generated. The processor 120 executes a grayscale procedure 115 on the smoothed image 510 to generate a smoothed grayscale image (without labels). The processor 120 executes a binarization procedure 116 on the smoothed grayscale image and generates an antenna binarized image 520. The processor 120 performs corresponding processing based on the antenna binarized image 520.
[0172] The aforementioned method and system for detecting the accuracy of the antenna and chip positions of RFID tags are applied to the antenna image of the target chip 133 to identify whether the chip's position has shifted. The method and system for detecting the accuracy of the antenna and chip positions of RFID tags also modify the calculation method of the Hough transform program 113 to reduce the computational load on the processing system while retaining highly accurate identification results.
Claims
1. A processing method for detecting the antenna-to-chip position accuracy of an RFID tag, characterized in that, The method comprises: acquiring an input image, the input image comprising a first positioning area; performing a chip image procedure on the input image to generate a chip contour block; performing an antenna image procedure on the input image to generate an antenna contour block; performing a Hough transform procedure on the chip contour block and the antenna contour block respectively to generate a Hough chip contour block and a Hough antenna contour block respectively; selecting an antenna boundary of the Hough antenna contour block and a chip boundary of the Hough chip contour block; acquiring an offset angle according to the antenna boundary and the chip boundary; acquiring a connecting line segment passing through the first positioning area; acquiring an antenna block center point according to the Hough antenna contour block and the connecting line segment; acquiring a chip block center point according to the Hough chip contour block; acquiring an offset amount according to the antenna block center point and the chip block center point; and generating a comparison result according to the offset angle and the offset amount. The chip image procedure comprises:
2. The method of claim 1, wherein the method further comprises: performing a grayscale procedure on the input image to generate a grayscale image; performing a binarization procedure on the grayscale image to generate a chip binarization image; and performing a chip contour recognition procedure on the chip binarization image to generate the chip contour block. The step of performing the chip contour recognition procedure comprises:
3. The method of claim 2, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag based on the first and second signals. identifying a plurality of rectangular blocks in the chip binarization image; judging whether the plurality of rectangular blocks in a chip selection frame contain a target chip; if the chip binarization image contains the target chip, removing the plurality of rectangular blocks other than the target chip in the chip binarization image and generating the chip contour block; and if the chip binarization image does not contain the target chip, generating a judgment result. The antenna image procedure comprises:
4. The method of claim 1, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag; and determining a position of the chip of the RFID tag based on the distance. performing a smoothing procedure on the input image to generate a smoothed image; performing a binarization procedure on the smoothed image to generate an antenna binarization image; and performing an antenna contour recognition procedure on the antenna binarization image to generate the antenna contour block. The antenna image procedure comprises:
5. The method of claim 1, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag; and determining a position of the chip of the RFID tag based on the distance. performing a smoothing procedure on the input image to generate a smoothed image; performing a grayscale procedure on the smoothed image to generate a grayscale image; performing a binarization procedure on the grayscale image to generate an antenna binarization image; and performing an antenna contour recognition procedure on the antenna binarization image to generate the antenna contour block. The step of performing the antenna contour recognition procedure comprises:
6. The method of claim 4 or 5, wherein the method further comprises: identifying a plurality of rectangular blocks in the antenna binarization image; judging whether the plurality of rectangular blocks contain a target antenna according to an antenna selection frame; if the antenna binarization image contains the target antenna, removing the plurality of rectangular blocks other than the target antenna in the antenna binarization image and generating the antenna contour block; and if the antenna binarization image does not contain the target antenna, generating a judgment result. Before the step of performing the Hough transform procedure on the chip contour block and the antenna contour block, the method further comprises:
7. The method of claim 1, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag. judging whether the antenna contour block contains the chip contour block; if the antenna contour patch contains the chip contour patch, then the chip contour patch and the antenna contour patch perform the Hough transform procedure; and if the antenna contour patch does not contain the chip contour patch, then a determination result is generated.
8. The method of claim 1, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag. The step of performing the Hough transform procedure on the chip contour patch to generate the Hough chip contour patch comprises: obtaining selected line segments of the chip contour patch in a first dimensional space, wherein the selected line segments have a plurality of chip boundary coordinates; setting a chip transform angle interval in a second dimensional space; performing the Hough transform procedure according to the plurality of chip boundary coordinates and the chip transform angle interval to generate a plurality of Hough chip boundary curves in the second dimensional space; obtaining Hough intersection points according to the plurality of Hough chip boundary curves, and selecting at least one of the Hough intersection points; selecting a target intersection point from the plurality of Hough intersection points with the most number of intersection points; converting coordinates of the target intersection point in the second dimensional space to a Hough line segment in the first dimensional space; repeating the obtaining of other selected line segments and the generating of other Hough line segments; and drawing the Hough chip contour patch according to the plurality of Hough line segments.
9. The method of claim 8, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag based on the first and second signals. The step of selecting the target intersection point from the plurality of Hough intersection points with the most number of intersection points comprises: sequentially adjusting floating point precision bit levels of the chip transform angle interval, and counting the number of the plurality of Hough intersection points for each floating point precision bit level; and selecting the target intersection point from the plurality of Hough intersection points with the most number of intersection points.
10. The method of claim 8, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag based on the first and second signals. The step of drawing the Hough chip contour patch is further followed by: determining whether the Hough chip contour patch is complete.
11. The method of claim 1, wherein the method further comprises: The step of performing the Hough transform procedure on the antenna contour patch to generate the Hough antenna contour patch comprises: obtaining selected line segments of the antenna contour patch in a first dimensional space, wherein the selected line segments have a plurality of antenna boundary coordinates; setting an antenna transform angle interval in a second dimensional space; performing the Hough transform procedure according to the plurality of antenna boundary coordinates and the antenna transform angle interval to generate a plurality of Hough antenna boundary curves in the second dimensional space; obtaining Hough intersection points according to the plurality of Hough antenna boundary curves, and selecting at least one of the Hough intersection points; selecting a target intersection point from the plurality of Hough intersection points with the most number of intersection points; converting coordinates of the target intersection point in the second dimensional space to a Hough line segment in the first dimensional space; repeating the obtaining of other selected line segments and the generating of other Hough line segments; and drawing the Hough antenna contour patch according to the plurality of Hough line segments.
12. The method of claim 11, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag based on the first and second signals. The step of selecting the target intersection point from the plurality of Hough intersection points with the most number of intersection points comprises: sequentially adjusting floating point precision bit levels of the antenna transform angle interval, and counting the number of the plurality of Hough intersection points for each floating point precision bit level; and selecting the target intersection point from the plurality of Hough intersection points with the most number of intersection points.
13. The method of claim 11, wherein the method further comprises: determining a distance between the antenna and the chip of the RFID tag based on the first and second signals. The step of drawing the Hough antenna contour patch is further followed by: determining whether the Hough antenna contour patch is complete.
14. The method of claim 1, wherein the method further comprises: determining a position of the chip on the antenna of the RFID tag. The step of selecting the antenna boundary of the Hough antenna profile patch and the chip boundary of the Hough chip profile patch comprises: The antenna boundary is selected from a vertical Hough line segment or a horizontal Hough line segment of the Hough antenna profile patch, and the chip boundary is selected from the Hough chip profile patch according to the vertical direction or the horizontal direction to select the Hough line segment in the selected direction.
15. The method of claim 1, wherein the method further comprises: determining a position of the chip on the antenna of the RFID tag. The step of obtaining the connecting line segment through the first positioning area comprises: obtaining a second positioning area of the input image; and connecting a first center point of the first positioning area and a second center point of the second positioning area to form the connecting line segment.
16. The method of claim 1, wherein the method further comprises: The step of obtaining the connecting line segment through the first positioning area comprises: The connecting line segment perpendicularly intersects a vertical Hough line segment of the Hough antenna profile patch, and the connecting line segment passes through a first center point of the first positioning area.
17. The method of claim 1, wherein the method further comprises: determining a position of the chip on the antenna of the RFID tag. The step of obtaining the antenna patch center point according to the Hough antenna profile patch and the connecting line segment comprises: generating an antenna patch center line according to two vertical Hough line segments of the Hough antenna profile patch; and The intersection point of the antenna patch center line and the connecting line segment is the antenna patch center point.
18. A processing system for detecting the accuracy of the antenna and chip position of an RFID tag, characterized in that, It comprises: a storage device for storing an input image, a chip image program, an antenna image program, a Hough conversion program, and a comparison result, the input image at least comprising a first positioning area; and a processor electrically connected to the storage device, the processor executing the chip image program and the antenna image program according to the input image respectively, and generating a chip profile patch and an antenna profile patch respectively; the processor executing the Hough conversion program on the chip profile patch and the antenna profile patch respectively, and generating a Hough chip profile patch and a Hough antenna profile patch respectively, the processor selecting an antenna boundary of the Hough antenna profile patch and a chip boundary of the Hough chip profile patch; the processor obtaining an offset angle according to the antenna boundary and the chip boundary; the processor obtaining a connecting line segment through the first positioning area; the processor obtaining an antenna patch center point according to the Hough antenna profile patch and the connecting line segment; the processor obtaining a chip patch center point according to the Hough chip profile patch; the processor obtaining an offset amount according to the antenna patch center point and the chip patch center point; and the processor generating the comparison result according to the offset angle and the offset amount.
19. The processing system of claim 18, wherein, The processor executes the chip image program, which comprises the following steps: The processor executes a gray scale program on the input image to generate a gray scale image; The processor executes a binarization program on the gray scale image to generate a chip binarization image; and The processor executes a chip profile recognition program on the chip binarization image to generate the chip profile patch.
20. The processing system of claim 18, wherein, The step of executing the chip profile recognition program by the processor comprises: The processor identifies a plurality of rectangular blocks in the chip binarization image; The processor determines whether a target chip exists in the plurality of rectangular blocks according to a chip selection frame; if the target chip exists in the chip binarization image, the processor removes other rectangular blocks in the chip binarization image and generates the chip outline patch; and if the target chip does not exist in the chip binarization image, the processor generates a judgment result.
21. The processing system of claim 18, wherein, The processor executes the antenna image program, which includes the following steps: The processor performs a smoothing procedure on the input image to generate a smoothed image; The processor performs a binarization procedure on the smoothed image to generate an antenna binarization image; and The processor performs an antenna outline recognition procedure on the antenna binarization image to generate the antenna outline patch.
22. The processing system of claim 18, wherein, The processor executes the antenna image program, which includes the following steps: The processor performs a smoothing procedure on the input image to generate a smoothed image; The processor performs a grayscale procedure on the smoothed image to generate a grayscale image; The processor performs a binarization procedure on the grayscale image to generate an antenna binarization image; and The processor performs an antenna outline recognition procedure on the antenna binarization image to generate the antenna outline patch.
23. The processing system of claim 18, wherein, The steps of executing the antenna outline recognition procedure by the processor include: The processor identifies a plurality of rectangular blocks in the antenna binarization image; The processor determines whether a target antenna exists in the plurality of rectangular blocks according to an antenna selection frame; if the target antenna exists in the antenna binarization image, the processor removes other rectangular blocks in the antenna binarization image and generates the antenna outline patch; and if the target antenna does not exist in the antenna binarization image, a judgment result is generated.
24. The processing system of claim 18, wherein, The processor further includes the following steps before executing the Hough conversion procedure on the chip outline patch and the antenna outline patch: The processor determines whether the antenna outline patch contains the chip outline patch; if the antenna outline patch contains the chip outline patch, the processor executes the Hough conversion procedure on the chip outline patch and the antenna outline patch; and if the antenna outline patch does not contain the chip outline patch, a judgment result is generated.
25. The processing system of claim 18, wherein, The steps of executing the Hough conversion procedure on the chip outline patch by the processor to generate the Hough chip outline patch include: The processor obtains selected line segments of the chip outline patch in a first dimensional space, wherein the selected line segments have a plurality of chip boundary coordinates; The processor sets a chip conversion angle interval in a second dimensional space; The processor executes the Hough conversion procedure according to the plurality of chip boundary coordinates and the chip conversion angle interval to generate a plurality of Hough chip boundary curves in the second dimensional space; The processor obtains Hough intersection points according to the plurality of Hough chip boundary curves and selects at least one of the Hough intersection points; The processor selects a target intersection point from the plurality of Hough intersection points, which has the largest number of intersection points; The processor converts coordinates of the target intersection point in the second dimensional space into a Hough line segment in the first dimensional space; repeating the obtaining of other selection line segments and generating other Hough line segments; and the processor draws the Hough chip outline map block according to the plurality of Hough line segments.
26. The processing system of claim 25, wherein, The step of selecting the target intersection point with the most intersections from the plurality of Hough intersection points includes: sequentially adjusting the floating-point precision bit level of the chip conversion angle interval, and counting the number of Hough intersection points for each floating-point precision bit level; and the processor selects the target intersection point with the most intersections from the plurality of Hough intersection points.
27. The processing system of claim 25, wherein, After the step of drawing the Hough chip outline map block, further includes: determining whether the Hough chip outline map block is complete.
28. The processing system of claim 18, wherein, The processor executes the Hough conversion program on the antenna outline map block to generate the Hough antenna outline map block. The processor obtains selection line segments of the antenna outline map block in a first dimensional space, wherein the selection line segments have a plurality of antenna boundary coordinates; The processor sets an antenna conversion angle interval in a second dimensional space; The processor executes the Hough conversion program according to the plurality of antenna boundary coordinates and the antenna conversion angle interval to generate a plurality of Hough antenna boundary curves in the second dimensional space; The processor obtains Hough intersection points according to the plurality of Hough antenna boundary curves and selects at least one Hough intersection point; The processor selects the target intersection point with the most intersections from the plurality of Hough intersection points. The processor converts the coordinates of the target intersection point in the second dimensional space to a Hough line segment in the first dimensional space; repeating the obtaining of other selection line segments and generating other Hough line segments; and the processor draws the Hough antenna outline map block according to the plurality of Hough line segments.
29. The processing system of claim 28, wherein, The step of selecting the target intersection point with the most intersections from the plurality of Hough intersection points includes: sequentially adjusting the floating-point precision bit level of the chip conversion angle interval, and counting the number of Hough intersection points for each floating-point precision bit level; and The processor selects the target intersection point with the most intersections from the plurality of Hough intersection points.
30. The processing system of claim 28, wherein, After the step of drawing the Hough antenna outline map block according to the plurality of Hough line segments, further includes: determining whether the Hough antenna outline map block is complete.
31. The processing system of claim 18, wherein, The processor obtains a second positioning area of the input image, and connects a first center point of the first positioning area and a second center point of the second positioning area to form a connecting line segment.
32. The processing system of claim 18, wherein, The processor perpendicularly intersects the connecting line segment with a Hough line segment in a vertical direction of the Hough antenna outline map block, and the connecting line segment passes through the first center point of the first positioning area.
33. The processing system of claim 18, wherein, The processor generates an antenna map block center line according to two Hough line segments in the vertical direction of the Hough antenna outline map block, and the processor takes the intersection point of the antenna map block center line and the connecting line segment as the antenna map block center point.
34. The processing system of claim 18, wherein, The processor in the step of selecting the antenna boundary of the Hough antenna profile block and the chip boundary of the Hough chip profile block comprises: The antenna boundary is selected from a vertical direction Hough line segment or a horizontal direction Hough line segment of the Hough antenna profile block, and the chip boundary is selected from the Hough chip profile block according to the vertical direction or the horizontal direction to select the Hough line segment in the selected direction.
35. The processing system of claim 18, wherein, The camera unit is electrically connected to the processor, and the camera unit captures the input image.
Citation Information
Patent Citations
Processing method and system for detecting position accuracy of antenna and chip of RFID tag
CN117094929A