Method for detecting position of optical filter of HM station and related equipment
By comparing the image difference values of uncovered and covered filters, the imaging area is adaptively extracted, which solves the problem of low detection efficiency of filter cover distortion at the HM station, realizes automated detection, and improves production efficiency and accuracy.
Patent Information
- Application Number
- CN202410508397.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-09-17
AI Technical Summary
During the filter mounting process at the HM station, the existing technology relies on manual observation and manual operation, resulting in low filter cover distortion detection efficiency and prone to deviations.
By obtaining the target ROI of the target image, comparing the image difference values between uncovered and covered filters, including tilt angle difference values, X-direction difference values and Y-direction difference values, an algorithm is developed to adaptively extract the imaging area and realize automatic detection of filters. Check whether the position of the film is crooked.
It realizes automated detection, reduces manual intervention, improves production efficiency, and ensures the accuracy and consistency of filter position.
Smart Images

Figure CN118657705A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of filter position detection, and in particular to a method for detecting the position of a filter at an HM station and related equipment. Background Art
[0002] HM station (Holder Mount) refers to a step in the packaging process of the camera module. Holder refers to the module that can carry the lens, or the structural part of the filter module. HolderMount is to mount this structural part on the PCB that has completed DB and WB. The main purpose is to control the XY offset and angle offset of the mounting. DB and WB are the two processes before the HM station, Die Bond and Wire Bond. DB is to stick the chip to the PCB (circuit board) or other objects with glue, and WB is a process that uses equipment to connect the chip and PCB through gold wires and aluminum wires.
[0003] When the HM station is in the factory, it is necessary to automatically check whether the filter cover of the material is crooked. However, the existing inspection method is to first manually observe the pictures before and after the filter cover, use the 3.5-dimensional automatic measurement software to manually select the acquisition area range and filter range in the two pictures before and after grabbing to determine whether the filter cover is crooked, and then write a unique program for the project to achieve automatic comparison. Each comparison requires moving the material to the machine corresponding to the 3.5-dimensional automatic measurement software for comparison, and each project needs to be retested and a unique program needs to be written. There are many factors of human intervention that can easily lead to deviations. Summary of the invention
[0004] In view of the above problems, the present invention provides a method and related equipment for detecting the position of the filter of the HM station, which can automatically detect whether the position of the filter of the HM station is crooked, save labor and improve production efficiency.
[0005] In a first aspect, the present invention provides a method for detecting the position of a filter at an HM station, the method comprising:
[0006] Acquire a target ROI of a target image, wherein the target image is an image captured of the area to be tested of the chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover;
[0007] The first target ROI of the first target image without the filter is compared with the second target ROI of the second target image with the filter to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X-direction difference value and a Y-direction difference value.
[0008] Optionally, the above method further includes:
[0009] Obtaining the average value of the non-highlighted area of the target image, wherein the grayscale value of the non-highlighted area is less than 250;
[0010] Performing binarization processing on the target image with the mean value of the non-highlighted area as a starting point;
[0011] Under the condition of binarization processing of the target image, obtaining an initial contour point set;
[0012] Determining a contour area based on the initial contour point set;
[0013] The contour area and a target threshold area range are compared to determine an initial ROI collection, wherein the target threshold area range is determined based on area scaling of the target image.
[0014] Optionally, acquiring a target ROI of a target image includes:
[0015] The contour area in the initial ROI collection is compared with the area of the region to be measured to obtain a target ROI.
[0016] Optionally, the comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes:
[0017] The ROI with the smallest difference between the contour area in the initial ROI collection of the first target image without the filter and the area of the region to be measured is used as the first target ROI.
[0018] Optionally, the comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes:
[0019] The ROI with the smallest difference between the contour area in the initial ROI collection of the second target image of the cover filter and the area of the region to be measured is used as the second target ROI.
[0020] Optionally, the above method further includes:
[0021] In the case where there is silk screen printing on the corners of the filter, the four sides of the target ROI are used as boundaries and rounded inward to find the area with the largest brightness gradient change;
[0022] The distance from the boundary of the area with the largest brightness gradient change to the boundary of the target ROI is taken as the indentation amount;
[0023] The target ROI is adjusted based on the indentation amount.
[0024] Optionally, the above method further includes:
[0025] Determine the ratio between pixels and actual width based on the number of corner points of the checkerboard chart;
[0026] The first target image without the filter cover and the second target image with the filter cover are adjusted based on the proportional relationship between the pixels and the actual width to make the two images consistent.
[0027] In a second aspect, an embodiment of the present invention further provides a device for detecting the position of a filter at an HM station, comprising:
[0028] An acquisition unit is used to acquire a target R≤I of a target image, wherein the target image is an image captured of a region to be tested of the chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover;
[0029] The comparison unit is used to compare the first target ROI of the first target image without the filter and the second target ROI of the second target image with the filter to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X direction difference value and a Y direction difference value.
[0030] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a computer-readable storage medium is provided, and the above-mentioned computer-readable storage medium includes a stored program, wherein when the above-mentioned program is executed by a processor, the steps of the above-mentioned HM station filter position detection method are implemented.
[0031] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, there is provided an electronic device, comprising at least one processor and at least one memory connected to the above-mentioned processor; wherein the above-mentioned processor is used to call the program instructions in the above-mentioned memory to execute the steps of the above-mentioned HM station filter position detection method.
[0032] By means of the above technical scheme, the present invention provides a method for detecting the position of the HM station filter and related equipment. For the problem that the filter is easily distorted when the HM station is covered with a filter, the present invention obtains the target ROI of the target image, wherein the target image is an image taken of the area to be tested of the chip, and the target image includes a first target image without the filter covered and a second target image with the filter covered; the first target ROI of the first target image without the filter covered and the second target ROI of the second target image with the filter covered are compared to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X-direction difference value, and a Y-direction difference value. In the above scheme, an algorithm is developed for adaptively extracting the imaging area of the chip in the images before and after the filter is covered, and comparing whether the XY-direction offset and the angle offset are within the specification to realize automatic detection of the position of the HM station filter.
[0033] Correspondingly, the detection device, equipment and computer-readable storage medium for the HM station filter position provided by the embodiments of the present invention also have the above-mentioned technical effects.
[0034] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0036] Figure 1 A schematic diagram showing a flow chart of a method for detecting a filter position at a HM station according to an embodiment of the present invention;
[0037] Figure 2 A schematic block diagram showing the composition of a device for detecting the position of an optical filter at an HM station provided by an embodiment of the present invention is shown;
[0038] Figure 3 A schematic block diagram showing the composition of an electronic device for detecting the filter position of an HM station provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0039] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0040] In order to solve the problem that the filter is easily skewed when the filter is covered on the HM station, an embodiment of the present invention provides a method for detecting the position of the filter of the HM station, such as Figure 1 As shown, the method includes:
[0041] S101, obtaining a target ROI (region of interest) of a target image, wherein the target image is an image captured of a region to be tested of a chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover;
[0042] Exemplarily, the area to be tested of the chip is first determined, and a first target ROI of a first target image of the chip without a filter and a second target ROI of a second target image of the chip with a filter are obtained for subsequent comparison.
[0043] S102, comparing a first target ROI of the first target image without the filter and a second target ROI of the second target image with the filter to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X-direction difference value, and a Y-direction difference value.
[0044] Exemplarily, the above-mentioned tilt angle difference value is the angle specification card control: first calculate the tilt angle of the first target ROI of the first target image without covering the filter and the second target image and the upper side of the second target ROI with covering the filter, and then compare the difference value of the two tilt angles with the angle specification (tilt angle of the upper side of the first target ROI obtained in the second target image with covering the filter - tilt angle of the upper side of the second target ROI obtained in the first target image without covering the filter). It can be understood that the specific method for determining the above-mentioned tilt angle can adopt the existing technology, which will not be elaborated here.
[0045] X-direction specification: calculate the x-value difference between the center points of the first target ROI and the second target ROI before and after the filter is covered (the center point x of the second target ROI obtained in the second target image covered with the filter - the center point x of the first target ROI obtained in the first target image not covered with the filter). It can be understood that the specific method for determining the above-mentioned center point x can adopt the existing technology and will not be elaborated here.
[0046] Y-direction specification: Calculate the y-value difference between the center points of the first target ROI and the second target ROI before and after the filter is covered (center point y of the target ROI obtained in the second target image covered with the filter minus center point y of the target ROI obtained in the first target image not covered with the filter). It can be understood that the specific method for determining the above center point y can adopt the existing technology, which will not be described in detail here.
[0047] It can be understood that the above-mentioned X direction and Y direction represent the horizontal coordinate direction and the vertical coordinate direction respectively, and the above-mentioned center point x and center point y represent the x value and y value of the center point respectively.
[0048] By means of the above technical scheme, the present invention provides a method for detecting the position of the HM station filter. For the problem that the filter is easily skewed when the HM station is covered with a filter, the present invention obtains the target ROI of the target image, wherein the target image is an image taken of the area to be tested of the chip, and the target image includes a first target image without the filter covered and a second target image with the filter covered; the first target ROI of the first target image without the filter covered and the second target ROI of the second target image with the filter covered are compared to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X-direction difference value, and a Y-direction difference value. In the above scheme, an algorithm is developed for adaptively extracting the imaging area of the chip in the images before and after the filter is covered, and comparing whether the XY direction offset and the angle offset are within the specification, thereby realizing automatic detection of the position of the HM station filter.
[0049] In one embodiment, the method further includes:
[0050] Obtaining the average value of the non-highlighted area of the target image, wherein the grayscale value of the non-highlighted area is less than 250;
[0051] Performing binarization processing on the target image with the mean value of the non-highlighted area as a starting point;
[0052] Under the condition of binarization processing of the target image, obtaining an initial contour point set;
[0053] Determining a contour area based on the initial contour point set;
[0054] The contour area and a target threshold area range are compared to determine an initial ROI collection, wherein the target threshold area range is determined based on area scaling of the target image.
[0055] For example, due to differences in the environment, each group of pictures is very different. Even in the same group of pictures, i.e., pictures before and after covering the filter, the effects of the pictures after shooting are different due to different standing positions. Therefore, in order to be able to process uniformly later, the target images need to be unified into the same representation form, that is, a suitable threshold is needed to pre-process the target images so that they can adapt to subsequent image recognition. After the above-mentioned binarization pre-processing, it is conducive to the rapid and accurate judgment of subsequent image recognition. The above-mentioned target images include a first target image without a filter cover and a second target image with a filter cover, and the target images are both determined based on the area to be tested of the chip.
[0056] Exemplarily, since the above-mentioned contour area is determined after binarization processing, and the binarization processing requires an initial value, namely the above-mentioned preliminary contour point. The embodiment of the present invention first estimates the threshold of the current image, calculates the mean of the non-highlighted area (grayscale value <250) in the current image, and performs binarization processing cyclically with the mean as the initial value (i.e., the starting point of the cycle), and searches for preliminary contour points at the same time. It can be understood that the above-mentioned initial value can be many (including 0-255), so it is necessary to perform binarization processing cyclically to determine the initial ROI collection.
[0057] Exemplarily, the target threshold area range is determined by scaling the area of the target image by a certain multiple. In this embodiment, regions whose contour areas are within the target threshold area range are counted into the ROI collection.
[0058] It is understandable that the contour area is determined after binarization. Since binarization requires an initial value, there can be many initial values (0-255). Then how to find an initial value that meets the requirements of this embodiment is equivalent to how to find a contour that meets the requirements of this embodiment. This requires comparing the size relationship between the contour area found each time and the target threshold area range. Each area of the contour area that meets the target threshold area range will be counted into the ROI collection.
[0059] In one embodiment, acquiring a target ROI of a target image includes:
[0060] The contour area in the initial ROI collection is compared with the area of the region to be measured to obtain a target ROI.
[0061] Exemplarily, this embodiment compares the above-mentioned contour area with the target threshold area range, and determines the contour area falling within the above-mentioned target threshold area range as a part of the above-mentioned initial R≤I set. It can be understood that determining an initial value that meets the requirements of this embodiment is equivalent to determining a contour area that meets the requirements of this embodiment.
[0062] In one embodiment 2, comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes:
[0063] The ROI with the smallest difference between the contour area in the initial ROI collection of the first target image not covered with the filter and the area of the region to be measured is taken as the first target R≤I.
[0064] Exemplarily, for an image without a filter, a target ROI is selected from the initial ROI collection of the first target image without a filter, and the target ROI is used as the first target ROI by determining that the area difference between the target ROI and the area to be measured is the smallest.
[0065] In one embodiment, the comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes:
[0066] The ROI with the smallest difference between the contour area in the initial ROI collection of the second target image of the cover filter and the area of the region to be measured is used as the second target ROI.
[0067] Exemplarily, for the image of the cover filter, a target ROI is selected from the initial ROI collection of the second target image of the cover filter, and the target ROI is used as the second target ROI by determining that the area difference between the target ROI and the area to be measured is the smallest.
[0068] In one embodiment, the method further includes:
[0069] In the case where there is silk screen printing on the corners of the filter, the four sides of the target ROI are used as boundaries and rounded inward to find the area with the largest brightness gradient change;
[0070] The distance from the boundary of the area with the largest brightness gradient change to the boundary of the target ROI is taken as the indentation amount;
[0071] The target ROI is adjusted based on the indentation amount.
[0072] For example, since there may be silk-screen printing on the filter corners in reality, the filter area needs to be indented to be the correct target ROI, so the embodiment of the present invention needs to indent the found ROI. First, find the amount of indentation required for each of the four sides, that is, use the four sides of the ROI as the boundary to find the area with the largest brightness gradient change inward (round inward), and use the distance from the edge of the area to the boundary of the original ROI as the indentation amount, so as to obtain the indentation amount of each of the four sides, and obtain the final area after moving as the final target ROI.
[0073] In one embodiment, the method further includes:
[0074] Determine the ratio between pixels and actual width based on the number of corner points of the checkerboard chart;
[0075] The first target image without the filter cover and the second target image with the filter cover are adjusted based on the proportional relationship between the pixels and the actual width to make the two images consistent.
[0076] Exemplarily, when screening ROI, the conversion between actual distance and image pixels is involved. Due to environmental factors, the legend is not necessarily fixed, so the machine environment needs to be calibrated before processing. In an embodiment of the present invention, a chessboard is selected as a chart to calibrate the legend. First, the chessboard chart is placed on a carrier, and the image is captured by the camera on the machine. The number of corner points of the black grid in the image is counted (in the horizontal and vertical directions) and filled in, and the width of the black grid of the actual chart is measured and filled in, and finally calibration is performed. The principle is to use opencv's findChessboardCorners to calculate the corner coordinates, thereby calculating the pixels of the black grid width on the image, and thus calculating the legend (pixels / actual width).
[0077] Furthermore, as a Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a detection device for the position of the filter of the HM station, which is used to Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 2 As shown, the device includes: an acquisition unit 21 and a comparison unit 22, wherein
[0078] An acquisition unit 21 is used to acquire a target ROI of a target image, wherein the target image is an image captured of a region to be tested of the chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover;
[0079] The comparison unit 22 is used to compare the first target ROI of the first target image without the filter and the second target ROI of the second target image with the filter to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X direction difference value and a Y direction difference value.
[0080] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and a method for detecting the position of the HM station filter is implemented by adjusting kernel parameters, which can solve the problem that the filter is easily attached crooked when the filter is covered on the HM station.
[0081] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, and when the program is executed by a processor, the method for detecting the position of the filter of the HM station is implemented.
[0082] An embodiment of the present invention provides a processor, which is used to run a program, wherein 2 when the program is running, the method for detecting the position of the HM station filter is executed.
[0083] An embodiment of the present invention provides an electronic device, the electronic device comprising at least one processor and at least one memory connected to the processor; wherein the processor is used to call program instructions in the memory to execute the above-mentioned method for detecting the position of the HM station filter.
[0084] An embodiment of the present invention provides an electronic device 30, such as Figure 3 As shown, the electronic device includes at least one processor 301, and at least one memory 302 and a bus 303 connected to the processor; wherein the processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is used to call the program instructions in the memory to execute the above-mentioned HM station filter position detection method.
[0085] The intelligent electronic devices in this article can be PCs, PADs, mobile phones, etc.
[0086] The present application also provides a computer program product, which, when executed on a process management electronic device, is suitable for executing a program that initializes the above-mentioned HM station filter position detection method steps.
[0087] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0088] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-R≤M, optical storage, etc.) that contain computer-usable program code.
[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0092] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 1 This corresponds to the flow of control of the memory in the embodiment.
[0093] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0099] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting the position of a filter at a HM station, characterized in that: include: Acquire a target ROI of a target image, wherein the target image is an image captured of the area to be tested of the chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover; The first target ROI of the first target image without the filter cover and the second target ROI of the second target image with the filter cover are compared to obtain difference values, wherein the difference values include tilt angle difference values, X direction difference values and Y direction difference values.
2. The method according to claim 1, characterized in that Also includes: Obtaining the average value of the non-highlighted area of the target image, wherein the grayscale value of the non-highlighted area is less than 250; Performing binarization processing on the target image with the mean value of the non-highlighted area as a starting point; Under the condition of binarization processing of the target image, obtaining an initial contour point set; Determining a contour area based on the initial contour point set; The contour area and a target threshold area range are compared to determine an initial ROI collection, wherein the target threshold area range is determined based on area scaling of the target image.
3. The method according to claim 2, characterized in that The step of acquiring a target ROI of a target image includes: The contour area in the initial ROI collection is compared with the area of the region to be measured to obtain a target ROI.
4. The method according to claim 3, characterized in that: The comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes: The ROI with the smallest difference between the contour area in the initial ROI collection of the first target image without the filter and the area of the region to be measured is used as the first target ROI.
5. The method according to claim 3, characterized in that: The comparing the contour area in the initial ROI collection with the area of the region to be measured to obtain the target ROI includes: The ROI with the smallest difference between the contour area in the initial ROI collection of the second target image of the cover filter and the area of the region to be measured is used as the second target ROI.
6. The method according to any one of claim 3, characterized in that: Also includes: In the case where there is silk screen printing on the corners of the filter, the four sides of the target ROI are used as boundaries and rounded inward to find the area with the largest brightness gradient change; The distance from the boundary of the area with the largest brightness gradient change to the boundary of the target ROI is taken as the indentation amount; The target ROI is adjusted based on the indentation amount.
7. The method according to claim 1, characterized in that Also includes: Determine the ratio between pixels and actual width based on the number of corner points of the checkerboard chart; The first target image without the filter cover and the second target image with the filter cover are adjusted based on the proportional relationship between the pixels and the actual width to make the two images consistent.
8. A device for detecting the position of a filter at a HM station, characterized in that: include: An acquisition unit, used for acquiring a target ROI of a target image, wherein the target image is an image captured of a region to be tested of the chip, and the target image includes a first target image without a filter cover and a second target image with a filter cover; A comparing unit is used to compare a first target ROI of the first target image without the filter cover and a second target ROI of the second target image with the filter cover to obtain a difference value, wherein the difference value includes a tilt angle difference value, an X direction difference value and a Y direction difference value.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the method for detecting the position of the HM station filter according to any one of claims 1 to 8 is implemented.
10. An electronic device, characterized in that: The electronic device includes at least one processor and at least one memory connected to the processor; wherein the processor is used to call program instructions in the memory to execute the method for detecting the filter position of the HM station as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Offset detection method and device, camera module, terminal equipment and storage medium
CN113225550A
Imaging apparatus
JP2012054867A
Optical filter concentricity measurement method and terminal device
WO2019001164A1
