Chip polarity direction determination method, computer device and storage medium

Through character recognition of verification code template pictures, the character sequence is confirmed by using width and length to solve the problem of poor generalization ability of AOI devices in electronic component polarity detection, automatic detection of chip polarity is realized, and detection accuracy is improved. reliability.

CN113808126BActive Publication Date: 2024-12-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111139016.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2024-12-03
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

In the existing automatic optical detection system (AOI), in the polarity detection of electronic components, the template matching method has poor detection generalization ability, which is prone to false detection, and manual re-judgment is easily affected by emotions, making it difficult to achieve automated detection.

Method used

Through character recognition of the verification code template picture, the character sequence is confirmed by using width and length to determine the polarity direction of the chip, providing an automated polarity discrimination method, and reducing the error detection rate.

Benefits of technology

It realizes automatic identification of the polarity direction of the chip to be detected, improves the accuracy and reliability of detection, reduces the missed detection rate of manual re-judgement, and supports automatic re-judgement of chip polarity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113808126B_ABST
    Figure CN113808126B_ABST
Patent Text Reader

Abstract

The present invention provides a chip polarity direction determination method, a computer device and a storage medium, the method comprising: obtaining a verification code template image of a chip to be detected; confirming the width and length of the verification code template image; performing character recognition on the verification code template image to obtain at least a portion of the characters to be detected in the verification code template image; matching the arrangement order of the acquired characters to be detected with the character order of a preset verification code to obtain a character sequence detection result of the chip to be detected; and confirming the polarity direction of the chip to be detected according to the width, length and character sequence detection result of the verification code template image. The chip polarity direction determination method of the present invention is used to confirm the polarity direction of the chip to be detected through the verification code template image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular, to a chip polarity direction determination method, a computer device applying the chip polarity direction determination method, and a computer-readable storage medium applying the chip polarity direction determination method. Background Art

[0002] The results of the defect detection of electronic components on PCB boards directly affect the production cost of the circuit board. Among them, if the polarity of electronic components is reversely connected, it will cause great damage to the circuit board. Therefore, it is necessary to perform polarity detection on the electronic components on the PCB board.

[0003] Among the existing electronic component inspection methods, the automated optical inspection system (AOI) is used for inspection, which has higher reliability, continuity and higher precision than the traditional manual inspection method. However, most of the current AOI devices adopt the template matching method, which relies on the OK template as the standard to detect the quality of the solder joints. The judgment standard is relatively single and rigid, the generalization ability of the detection is poor, and a large number of false detections are prone to occur. Therefore, it is necessary to re-judge the results output by the AOI device to reduce the false detection rate. However, most of the existing methods rely on manual re-judgment. When re-judgment is performed, the AOI device only provides a verification code template image for manual review and comparison of the image of the chip to be re-judged to confirm whether the polarity is correct. However, people are easily affected by emotions, and there will be certain omissions. In addition, the template image of the AOI device does not tell the polarity direction of the chip. Therefore, in order to achieve automated detection, it is necessary to design a method for judging the polarity of the verification code template image. Summary of the invention

[0004] The first object of the present invention is to provide a chip polarity direction determination method for confirming the polarity direction of a chip to be detected through a verification code template image.

[0005] The second object of the present invention is to provide a computer device for confirming the polarity direction of a chip to be detected through a verification code template image.

[0006] A third object of the present invention is to provide a computer-readable storage medium for confirming the polarity direction of a chip to be detected through a verification code template image.

[0007] In order to achieve the above-mentioned first purpose, the chip polarity direction determination method provided by the present invention includes: obtaining a verification code template image of the chip to be detected; confirming the width and length of the verification code template image; performing character recognition on the verification code template image to obtain at least a part of the characters to be detected in the verification code template image; matching the arrangement order of the acquired characters to be detected with the character order of the preset verification code to obtain the character sequence detection result of the chip to be detected; confirming the polarity direction of the chip to be detected according to the width, length and character sequence detection result of the verification code template image.

[0008] It can be seen from the above scheme that the chip polarity direction determination method of the present invention performs character recognition through a verification code template image, and confirms the direction of the characters through the width and length of the verification code template image, thereby determining the polarity direction of the chip to be detected, thereby achieving the purpose of automatically identifying the polarity direction of the chip to be detected and providing support for automatic re-determination of the chip polarity.

[0009] In a further solution, before the step of performing character recognition on the verification code template image, it also includes: determining whether the length of the verification code template image is greater than the width. If so, rotating the verification code template image 90 degrees in a preset direction so that the length of the rotated verification code template image is less than the width.

[0010] It can be seen that in order to facilitate character recognition operations, before character recognition, the characters in the image need to be arranged in a parallel direction. Therefore, it is necessary to confirm that the length of the verification code template image is greater than the width. When the length is greater than the width, it is considered that the characters are arranged in a vertical direction and need to be rotated so that the characters are arranged in a parallel direction.

[0011] In a further solution, the step of performing character recognition on the verification code template image includes: segmenting the verification code template image to obtain character images of each character; performing character recognition on the character image using a preset character classification model algorithm to obtain the corresponding character to be detected in the character image.

[0012] It can be seen that when performing character recognition on a verification code template image, it is necessary to first segment the characters in the image, and then recognize the character image of each character using a preset character classification model algorithm, thereby improving the accuracy of character recognition.

[0013] In a further scheme, the steps of segmenting the verification code template image to obtain character images of each character include: performing Gaussian filtering on the verification code template image; converting the filtered verification code template image into a grayscale image; binarizing the grayscale image; dilating the binarized verification code template image; and segmenting the dilated verification code template image using a connected domain algorithm to obtain character images.

[0014] It can be seen that Gaussian filtering, binarization, dilation processing and connected domain segmentation of the verification code template image can reduce the interference of noise and improve the accuracy of character recognition.

[0015] In a further solution, the step of matching the obtained arrangement sequence of the characters to be detected with the character sequence of the preset verification code includes: confirming that the obtained characters to be detected are the same as the characters in the preset verification code.

[0016] It can be seen that in order to avoid detecting characters that are not the characters in the chip that need to be detected, when matching the arrangement order of the acquired characters to be detected with the character order of the preset verification code, it is necessary to confirm that the acquired characters to be detected are the same as the characters in the preset verification code.

[0017] In a further scheme, the step of confirming the polarity direction of the chip to be detected based on the width, length and character sequence detection results of the verification code template image includes: if the acquired arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the first polarity direction; if the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the second polarity direction; if the acquired arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is less than the width, then the polarity direction of the chip to be detected is the third polarity direction; if the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the fourth polarity direction; the first polarity direction and the second polarity direction differ by 180 degrees, and the third polarity direction and the fourth polarity direction differ by 180 degrees.

[0018] It can be seen that when confirming the polarity direction of the chip to be tested based on the width, length and character sequence detection results of the verification code template image, the direction of the characters in the verification code template image can be confirmed through the width, length and character sequence detection results, thereby confirming the polarity direction of the chip to be tested according to the direction of the characters.

[0019] In a further scheme, after the step of confirming the polarity direction of the chip to be tested according to the width, length and character sequence detection results of the verification code template image, it also includes: obtaining the image polarity direction of the chip to be re-judged; comparing the polarity direction of the chip to be re-judged with the polarity direction of the chip to be tested to obtain a comparison result.

[0020] It can be seen that after obtaining the polarity direction of the template, the polarity direction of the chip to be re-judged can be compared with the polarity direction of the chip to be tested to confirm whether the polarity direction of the chip to be re-judged is correct.

[0021] In a further solution, the step of obtaining the polarity direction of the chip to be re-judged includes: determining the polarity direction of the chip to be re-judged according to preset characteristics of the chip to be re-judged.

[0022] It can be seen that some features of the chip to be re-judged are correlated with the polarity direction of the chip to be re-judged. Therefore, the polarity direction of the chip to be re-judged can be determined by pre-setting the features.

[0023] In order to achieve the second purpose of the present invention, the present invention provides a computer device including a processor and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above-mentioned chip polarity direction determination method are implemented.

[0024] In order to achieve the third objective of the present invention, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a controller, the steps of the above-mentioned chip polarity direction determination method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of an embodiment of the method for determining the polarity direction of a chip of the present invention.

[0026] Figure 2 These are the verification code template images of four directions in the embodiment of the chip polarity direction discrimination method of the present invention.

[0027] Figure 3 It is a verification code template image after binarization processing in the embodiment of the chip polarity direction discrimination method of the present invention.

[0028] Figure 4 It is a verification code template image after expansion processing in the embodiment of the chip polarity direction determination method of the present invention.

[0029] Figure 5 It is a verification code template image after character segmentation in the embodiment of the chip polarity direction determination method of the present invention.

[0030] Figure 6 It is an example diagram of a chip to be re-judged in the embodiment of the chip polarity direction judgment method of the present invention.

[0031] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0032] Example of a method for determining the polarity direction of a chip:

[0033] The chip polarity direction determination method of the present embodiment is an application program applied in a computer device, and is used to control the computer device to determine the polarity direction of the chip.

[0034] like Figure 1 As described, in this embodiment, when the chip polarity direction discrimination method is working, step S1 is first executed to obtain the verification code template image of the chip to be detected. Because the polarity direction of the chip in each PCBA product is different, a verification code template image will be made in the AOI device and sent to the re-judgment party for re-judgment. The verification code template image is divided into 4 directions: 0°, 90°, 180°, and 270°. Since the verification code template image transmitted by the AOI device can be rotated according to the 0° direction to obtain 4 directions, when obtaining the verification code template image of the chip to be detected, it is sufficient to obtain the verification code template image in the 0° direction. The character direction of the verification code template image is set corresponding to the polarity direction of the chip.

[0035] It should be noted that this embodiment is mainly for the case where the verification code template image is a rectangle, that is, the verification code template image has a longer side and a shorter side. This embodiment needs to determine the polarity direction of the chip according to the distribution of the longer side and the shorter side.

[0036] After obtaining the verification code template image, execute step S2 to confirm the width and length of the verification code template image. In order to confirm the character direction of the verification code template image, first, it is necessary to confirm the width and length of the verification code template image so as to confirm the arrangement direction of the characters in the image. When obtaining the verification code template image, the width and length of the verification code template image can be confirmed by the size information of the verification code template image. In this embodiment, the vertex in the upper left corner of the image is taken as the origin, the vertical direction is the length, and the horizontal direction is the width.

[0037] After obtaining the width and length of the verification code template image, step S3 is executed to determine whether the length of the verification code template image is greater than the width. In order to facilitate the character recognition operation, before performing character recognition, the characters in the image need to be arranged in a parallel direction. Therefore, it is necessary to confirm that the length of the verification code template image is greater than the width in order to confirm the arrangement direction of the characters in the image.

[0038] If it is confirmed that the length of the verification code template image is greater than the width, step S4 is executed to rotate the verification code template image 90 degrees in a preset direction so that the length of the rotated verification code template image is less than the width. The preset direction includes a clockwise direction or a counterclockwise direction, which can be set according to actual needs. In this embodiment, the preset direction is a counterclockwise direction. When the length is greater than the width, it is considered that the characters are arranged in a vertical direction and need to be rotated so that the characters are arranged in a parallel direction.

[0039] If it is confirmed that the length of the verification code template image is less than the width, step S5 is executed to perform character recognition on the verification code template image to obtain at least a portion of the characters to be detected in the verification code template image. In order to further determine the direction of the characters in the verification code template image, it is necessary to obtain at least a portion of the characters to be detected in the verification code template image. Preferably, the characters to be detected obtained in the verification code template image are obtained.

[0040] In this embodiment, the step of performing character recognition on the verification code template image includes: segmenting the verification code template image to obtain character images of each character; performing character recognition on the character image using a preset character classification model algorithm to obtain the corresponding character to be detected in the character image. When performing character recognition on the verification code template image, it is necessary to first segment the characters in the image, and then recognize the character image of each character using a preset character classification model algorithm, thereby improving the accuracy of character recognition. The character classification model algorithm adopts a well-known character classification model algorithm, for example, Faster-CNN, yolov3, yolov4 and other character classification model algorithms. Using a character classification model algorithm to perform character recognition on a character image is a technology known to those skilled in the art and will not be repeated here.

[0041] In this embodiment, the steps of segmenting the verification code template image to obtain the character images of each character include: performing Gaussian filtering on the verification code template image; converting the filtered verification code template image into a grayscale image; binarizing the grayscale image; dilating the binarized verification code template image; and segmenting the dilated verification code template image using a connected domain algorithm to obtain character images. When binarizing the grayscale image, an adaptive threshold method is used for binarization. The image obtained is as shown in FIG. Figure 3 The binary verification code template image is expanded to make the character continuity more prominent, as shown in Figure 4 As shown in FIG. 1 . After the expansion process, the connected domain algorithm segments the expanded verification code template image to obtain a character image. Character segmentation using the connected domain algorithm is a technique known to those skilled in the art and will not be described in detail here. The image after character segmentation is shown in FIG. Figure 4 As shown, four character images 1 are included.

[0042] After obtaining at least a portion of the characters to be detected, step S6 is executed to match the obtained arrangement order of the characters to be detected with the character order of the preset verification code to obtain the character order detection result of the chip to be detected. After obtaining the characters to be detected, in order to further confirm the character direction in the verification code template image, it is necessary to match the obtained arrangement order of the characters to be detected with the character order of the preset verification code to confirm whether the obtained arrangement order of the characters to be detected is consistent with or opposite to the character order of the preset verification code, thereby obtaining the character order detection result.

[0043] In this embodiment, the step of matching the obtained arrangement sequence of the characters to be detected with the character sequence of the preset verification code includes: confirming that the obtained characters to be detected are the same as the characters in the preset verification code. In order to avoid the detected characters to be detected not being the characters in the detection chip, when matching the obtained arrangement sequence of the characters to be detected with the character sequence of the preset verification code, it is necessary to confirm that the obtained characters to be detected are the same as the characters in the preset verification code. If there are characters that are not the same, an alarm is processed so that the user can perform manual review.

[0044] After obtaining the character sequence detection result, step S7 is executed to confirm the polarity direction of the chip to be detected according to the width and length of the verification code template image and the character sequence detection result. After confirming the arrangement order of the acquired characters to be detected through the character sequence detection result, the character direction in the verification code template image can be further confirmed according to the width and length of the verification code template image, thereby confirming the polarity direction of the chip to be detected.

[0045] In this embodiment, the step of confirming the polarity direction of the chip to be detected based on the width, length and character sequence detection results of the verification code template image includes: if the acquired arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the first polarity direction; if the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the second polarity direction; if the acquired arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is less than the width, then the polarity direction of the chip to be detected is the third polarity direction; if the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the fourth polarity direction; the first polarity direction and the second polarity direction differ by 180 degrees, and the third polarity direction and the fourth polarity direction differ by 180 degrees.

[0046] For example, under the premise of rotating the verification code template image 90 degrees counterclockwise, if the obtained arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the lower left corner of the chip. If the obtained arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the upper right corner of the chip. If the obtained arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is less than the width, then the polarity direction of the chip to be detected is the lower right corner of the chip. If the obtained arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, then the polarity direction of the chip to be detected is the upper left corner of the chip.

[0047] After the step of confirming the polarity direction of the chip to be detected according to the width, length and character sequence detection results of the verification code template image, the polarity direction of the chip to be detected can be determined, so the polarity judgment of the chip to be re-judged can be performed. When performing the re-judgment operation, the image polarity direction of the chip to be re-judged is obtained; the polarity direction of the chip to be re-judged is compared with the polarity direction of the chip to be detected to obtain a comparison result. The polarity direction of the chip to be re-judged can be obtained using the polarity discrimination method in the AOI equipment. In this embodiment, the step of obtaining the polarity direction of the chip to be re-judged includes: determining the polarity direction of the chip to be re-judged according to the preset features of the chip to be re-judged. Some features on the chip can indicate the polarity direction of the chip, so the polarity direction of the chip can be determined according to the preset features of the chip. For example, when making a polarity judgment on a certain chip, after obtaining the chip image, it is Gaussian filtered and binarized using the OTSU method to prevent the influence of noise, and then the following are respectively intercepted. Figure 6 The positions of the four corners in the chip image shown, that is, the positions in the four boxes in the figure, calculate the number of foreground points in the four boxes and sort them. If the number of foreground points in the lower left corner and the lower right corner is the least two, the polarity direction is in the upper right direction; if the number of foreground points in the upper left corner and the lower left corner is the least two, the polarity direction is in the lower right direction; if the number of foreground points in the upper left corner and the upper right corner is the least two, the polarity direction is in the lower left direction; if the number of foreground points in the upper right corner and the lower right corner is the least two, the polarity direction is in the upper left direction.

[0048] When comparing the polarity direction of the chip to be re-judged with the polarity direction of the chip to be tested, if the polarity direction of the chip to be re-judged is the same as the polarity direction of the chip to be tested, the polarity direction of the chip to be re-judged is correctly judged; if they are not the same, the polarity direction of the chip to be re-judged is incorrectly judged, and an alarm is given.

[0049] Computer device embodiment:

[0050] The computer device of this embodiment includes a controller, and when the controller executes a computer program, the steps in the above-mentioned chip polarity direction determination method embodiment are implemented.

[0051] For example, a computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a controller to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in a computer device.

[0052] The computer device may include, but is not limited to, a controller and a memory. Those skilled in the art will appreciate that the computer device may include more or fewer components, or a combination of certain components, or different components, for example, the computer device may also include input and output devices, network access devices, buses, etc.

[0053] For example, the controller may be a central processing unit (CPU), other general controllers, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general controller may be a microcontroller or any conventional controller, etc. The controller is the control center of the computer device, and uses various interfaces and lines to connect the various parts of the entire computer device.

[0054] The memory can be used to store computer programs and / or modules, and the controller realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. For example, the memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function, and the like. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0055] Computer readable storage medium embodiment:

[0056] If the module integrated in the computer device of the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the implementation of all or part of the process in the above chip polarity direction determination method embodiment can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the controller, the steps of the above chip polarity direction determination method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0057] From the above, it can be seen that the chip polarity direction determination method of the present invention performs character recognition through a verification code template image, and confirms the direction of the characters through the width and length of the verification code template image, thereby determining the polarity direction of the chip to be detected, thereby achieving the purpose of automatically identifying the polarity direction of the chip to be detected and providing support for automatic re-determination of the chip polarity.

[0058] It should be noted that the above are only preferred embodiments of the present invention, but the design concept of the invention is not limited thereto, and any non-substantial modifications made to the present invention using this concept also fall within the protection scope of the present invention.

Claims

1. A method for determining the polarity direction of a chip, characterized in that: include: Obtaining a verification code template image of the chip to be detected, wherein the verification code template image has characters set corresponding to the polarity direction of the chip to be detected; Confirm the width and length of the verification code template image; Performing character recognition on the verification code template image to obtain at least a portion of characters to be detected in the verification code template image; Matching the obtained arrangement order of the characters to be detected with the character order of the preset verification code to obtain the character order detection result of the chip to be detected; Confirming the polarity direction of the chip to be tested according to the width, length and character sequence detection results of the verification code template image; The step of confirming the polarity direction of the chip to be detected according to the width, length and character sequence detection result of the verification code template image includes: If the obtained arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is greater than the width, the polarity direction of the chip to be detected is the first polarity direction; If the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, the polarity direction of the chip to be detected is the second polarity direction; If the obtained arrangement order of the characters to be detected is the same as the character order of the preset verification code, and the length of the verification code template image is smaller than the width, the polarity direction of the chip to be detected is the third polarity direction; If the acquired arrangement order of the characters to be detected is opposite to the character order of the preset verification code, and the length of the verification code template image is greater than the width, the polarity direction of the chip to be detected is the fourth polarity direction; The first polarity direction and the second polarity direction differ by 180 degrees, and the third polarity direction and the fourth polarity direction differ by 180 degrees.

2. The method for determining the polarity direction of a chip according to claim 1, characterized in that: Before the step of performing character recognition on the verification code template image, the method further includes: Determine whether the length of the verification code template image is greater than the width. If so, rotate the verification code template image 90 degrees in a preset direction so that the length of the verification code template image after rotation is less than the width.

3. The method for determining the polarity direction of a chip according to claim 1, characterized in that: The step of performing character recognition on the verification code template image includes: Segmenting the verification code template image to obtain character images of each character; The character image is subjected to character recognition using a preset character classification model algorithm to obtain the corresponding character to be detected in the character image.

4. The method for determining the polarity direction of a chip according to claim 3, characterized in that: The step of segmenting the verification code template image to obtain character images of each character includes: Performing Gaussian filtering on the verification code template image; Converting the filtered verification code template image into a grayscale image; Performing binarization processing on the grayscale image; Performing expansion processing on the verification code template image after binarization; The expanded verification code template image is segmented using a connected domain algorithm to obtain the character image.

5. The method for determining the polarity direction of a chip according to any one of claims 1 to 4, characterized in that: The step of matching the acquired arrangement order of the characters to be detected with the character order of the preset verification code includes: Confirm that the acquired characters to be detected are the same as the characters in the preset verification code.

6. The method for determining the polarity direction of a chip according to claim 1, characterized in that: After the step of confirming the polarity direction of the chip to be detected according to the width, length and character sequence detection results of the verification code template image, the method further includes: Obtain the polarity direction of the chip to be re-judged; The polarity direction of the chip to be re-judged is compared with the polarity direction of the chip to be detected to obtain a comparison result.

7. The method for determining the polarity direction of a chip according to claim 6, characterized in that: The steps of obtaining the polarity direction of the chip to be re-judged include: The polarity direction of the chip to be re-judged is determined according to the preset characteristics of the chip to be re-judged.

8. A computer device comprising a processor and a memory, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the steps of the chip polarity direction determination method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the controller, the steps of the chip polarity direction determination method according to any one of claims 1 to 7 are implemented.