CN111487036A - Python-based optical filter offset detection method - Google Patents

Python-based optical filter offset detection method Download PDF

Info

Publication number
CN111487036A
CN111487036A CN202010277106.1A CN202010277106A CN111487036A CN 111487036 A CN111487036 A CN 111487036A CN 202010277106 A CN202010277106 A CN 202010277106A CN 111487036 A CN111487036 A CN 111487036A
Authority
CN
China
Prior art keywords
array
area
pixel
optical filter
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010277106.1A
Other languages
Chinese (zh)
Other versions
CN111487036B (en
Inventor
陈伦镛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Gaowei Optical Electronics Co ltd
Original Assignee
Dongguan Gaowei Optical Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Gaowei Optical Electronics Co ltd filed Critical Dongguan Gaowei Optical Electronics Co ltd
Priority to CN202010277106.1A priority Critical patent/CN111487036B/en
Publication of CN111487036A publication Critical patent/CN111487036A/en
Application granted granted Critical
Publication of CN111487036B publication Critical patent/CN111487036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/0242Testing optical properties by measuring geometrical properties or aberrations
    • G01M11/0257Testing optical properties by measuring geometrical properties or aberrations by analyzing the image formed by the object to be tested

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • General Physics & Mathematics (AREA)
  • Solid State Image Pick-Up Elements (AREA)

Abstract

The invention relates to a Python-based optical filter shift detection method, which comprises the following steps of ① obtaining a thermal image, ② dividing the thermal image into an area 1, an area 2, an area 3 and an area 4, ③ analyzing to obtain arrays, ④ obtaining a pixel array [ A, B, C ] corresponding to the pixel value of each coordinate, ⑤ judging the pixel array [ A, B, C ] corresponding to each coordinate according to the following unqualified preset value standard, carrying out area division on the thermal image into the area 1, the area 2, the area 3 and the area 4, wherein the areas are common bad stain positions, analyzing to obtain an array coordinate list of the array 1, the array 2, the array 3 and the array 4 corresponding to the corresponding area, then judging the values of red, green and blue pixels of each coordinate according to preset unqualified parameter values, judging accuracy is good, in addition, in order to avoid the influence of the pixel values caused by the interference of dust, stains and the like, the initial product is subjected to adjacency analysis, the accuracy is further improved, and the production requirements are met.

Description

Python-based optical filter offset detection method
Technical Field
The invention relates to the field of chip and optical filter offset detection of a camera, in particular to an optical filter offset detection method based on Python.
Background
In the field of camera module production, a chip is firstly packaged on the surface of a ceramic substrate, then a filter is covered on the surface of the chip, a filter black film (the filter and the filter black film are integrated) on the peripheral side of the filter is directly pasted on the ceramic substrate, the filter mainly plays roles of protection, filtering and the like, the installation position of the filter is very important, if the filter is misaligned, the filter black film can shield the chip to influence the work of the chip in the later period, therefore, in the prior art, the product formed by combining the chip and the filter needs to be subjected to filter position detection, the detection result shows that the product has two conditions of qualification and disqualification as shown in figure 1, the qualified image is the whole chip, the unqualified image is the image formed by blocking the black filter black film, and the existing method for detecting whether the filter has position misalignment is the traditional area summation method, the area summation method is insufficient in accuracy and efficiency.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a Python-based optical filter offset detection method, which has the advantages of high accuracy and capability of rapidly finishing defective judgment, and the specific technical scheme is as follows:
a filter shift detection method based on Python comprises the following steps,
① acquiring images, wherein the camera shoots and acquires thermal images of the chip and the chip of the optical filter combination product;
② dividing the thermal image into region 1, region 2, region 3 and region 4, wherein region 1 is at the upper left corner, region 2 is at the upper right corner, region 3 is at the lower left corner, and region 4 is at the lower right corner;
③, analyzing the pixel coordinates of the chips in the area 1, the area 2, the area 3 and the area 4 to obtain an array 1, an array 2, an array 3 and an array 4, wherein the array 1 corresponds to the area 1, the array 2 corresponds to the area 2, the array 3 corresponds to the area 3, the array 4 corresponds to the area 4, each array comprises a plurality of pixel coordinate points according to the pixel length, and the pixel coordinate points are recorded as
Array 1: [ (x1, y1), (x2, y2) … … ],
array 2: [ (x1, y1), (x2, y2) … … ],
array 3: [ (x1, y1), (x2, y2) … … ],
array 4: [ (x1, y1), (x2, y2) … … ],
④ obtaining pixel arrays of each coordinate, analyzing all coordinates in array 1, array 2, array 3 and array 4 to obtain pixel arrays [ A, B, C ] corresponding to the pixel value of each coordinate, wherein A represents the red pixel value, B represents the green pixel value, and C represents the blue pixel value;
⑤, judging the pixel array [ A, B, C ] corresponding to each coordinate according to the following unqualified preset value standard,
red: a is more than or equal to 240 and less than or equal to 250,
green: b is more than or equal to 200 and less than or equal to 260,
blue: c is more than or equal to 10 and less than or equal to 70,
if the pixel arrays [ A, B and C ] with coordinates meet the numerical value standard, the coordinates are sequentially classified into unqualified arrays W, and if the length of the unqualified arrays W is larger than a self-defined standard parameter Z, the product is preliminarily judged to be an unqualified product;
if the data of the pixel arrays [ A, B and C ] of all the coordinates do not meet the numerical value standard or if the length of the unqualified array W is less than or equal to the self-defined standard parameter Z, judging the product as a qualified product.
2. The Python-based filter shift detection method according to claim 1, wherein: the method also comprises the following steps of,
⑥, carrying out adjacency analysis on the coordinates in the array W, namely taking any coordinate W1(X1, Y1) in the array W as a judgment basis, if the parameters of the coordinates W2(X2, Y2) accord with X1+1= X2 or X1+0= X2, obtaining the result which preliminarily accords with the adjacent characteristics, sequentially carrying out four cycles, if the result which preliminarily accords with the adjacent characteristics can be obtained, finishing screening, and finally judging that the product is a non-qualified product.
As a preferred scheme of the invention, the chip and optical filter combination product comprises a chip, a ceramic substrate, an optical filter and an optical filter black film, wherein the chip is arranged in the ceramic substrate, the optical filter is arranged in the optical filter black film, the chip, the ceramic substrate, the optical filter and the optical filter black film are in a square frame shape, and the optical filter black film is attached to the ceramic substrate; the filter covers the chip.
As a preferred scheme of the invention, the custom standard parameter Z is 5.
The invention has the beneficial effects that: the thermal image is divided into an area 1, an area 2, an area 3 and an area 4, the areas are common bad stain positions, array coordinates of an array 1, an array 2, an array 3 and an array 4 corresponding to the corresponding areas are obtained through analysis, then the numerical values of red, green and blue pixels of each coordinate are judged according to preset unqualified parameter numerical values, the judgment accuracy is good, in addition, in order to avoid the influence of interference of dust, stains and the like on the pixel value, the primary unqualified products are subjected to adjacency analysis, the accuracy detection is further improved, no detection error is realized, and the production requirements are met.
Drawings
FIG. 1 is a schematic diagram showing whether a chip is blocked in both pass and fail cases;
FIG. 2 is an overall flow block diagram;
FIG. 3 is a thermal image of a chip;
FIG. 4 is a thermal image area division diagram;
FIG. 5 is a schematic diagram of a pixel array of coordinates;
fig. 6 is a perspective view of a chip and filter combination product.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
in the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or regional relationships based on the orientations or regional relationships shown in the drawings, and are only used for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the regions or elements referred to must have specific orientations, be constructed in specific orientations, and be operated, and thus, should not be construed as limiting the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood as appropriate by those of ordinary skill in the art.
The overall process flow is shown in fig. 2, and a Python-based filter shift detection method includes the following steps,
① acquiring images, wherein the thermal images of the chip and the optical filter combination product are acquired by the camera at the initial position, and the thermal images of the chip are as shown in FIG. 3;
② dividing the thermal image into area 1, area 2, area 3, and area 4, wherein area 1 is at the top left, area 2 is at the top right, area 3 is at the bottom left, area 4 is at the bottom right, and the division is shown in FIG. 4;
③, analyzing the pixel coordinates of the chips in the area 1, the area 2, the area 3 and the area 4 to obtain an array 1, an array 2, an array 3 and an array 4, wherein the array 1 corresponds to the area 1, the array 2 corresponds to the area 2, the array 3 corresponds to the area 3, the array 4 corresponds to the area 4, each array comprises a plurality of pixel coordinate points according to the pixel length (namely, a single pixel), and the pixel coordinate points are recorded as
Array 1: [ (x1, y1), (x2, y2) … … ],
array 2: [ (x1, y1), (x2, y2) … … ],
array 3: [ (x1, y1), (x2, y2) … … ],
array 4: [ (x1, y1), (x2, y2) … … ],
the coordinate values are increased progressively according to 1 unit pixel value, as shown in fig. 5, the number of pixel coordinate points in each array is related to the area of the selected area, and the larger the selected area is, the larger the number of pixel coordinate points is;
④ obtaining pixel arrays of each coordinate, analyzing all coordinates in array 1, array 2, array 3 and array 4 to obtain pixel arrays [ A, B, C ] corresponding to the pixel value of each coordinate, where A represents the red pixel value, B represents the green pixel value, and C represents the blue pixel value, as shown in FIG. 5;
⑤, judging the pixel array [ A, B, C ] corresponding to each coordinate according to the following unqualified preset value standard,
red: a is more than or equal to 240 and less than or equal to 250,
green: b is more than or equal to 200 and less than or equal to 260,
blue: c is more than or equal to 10 and less than or equal to 70,
if the pixel arrays [ A, B and C ] with coordinates meet the numerical standard, the coordinates are sequentially classified into unqualified arrays W, if the length of the unqualified arrays W is larger than a self-defined standard parameter Z, the length of the unqualified arrays W refers to the number of the coordinates classified into the arrays W, and the product is preliminarily judged to be an unqualified product;
if the data of the pixel arrays [ A, B and C ] of all coordinates do not meet the numerical standard or if the length of the unqualified array W is less than or equal to a self-defined standard parameter Z, judging the product as a qualified product, wherein the self-defined standard parameter Z is an adjustable integer value, the self-defined standard parameter Z is preferably 5, for example, 3 values of [ A, B, C ] corresponding to coordinates (x1, y1) all meet the numerical standard, and the coordinates are classified into the unqualified array W; if the A, B value of [ A, B, C ] for coordinates (x2, y2) meets the above numerical criteria but C does not, then coordinates (x2, y2) cannot be assigned to failing array W, as long as at least one value of A, B, C does not meet the criteria, i.e., the coordinates cannot be assigned to failing array W.
Meanwhile, in order to avoid the influence of dust, dirt and the like on the filter to judge the filter shift, the filter shift detection method based on Python further comprises a step ⑥, wherein the step ⑥ is performed after the step ⑤, any coordinate W1(X1, Y1) in the array W is taken as a judgment basis, if a parameter of a coordinate W2(X2, Y2) (W2 is a coordinate already in the array W) meets X1+1= X2 or X1+0= X2, a result primarily meeting the adjacent characteristic is obtained, four cycles are sequentially performed (the four cycles refer to the step of extracting W1 for judgment), if the result primarily meeting the adjacent characteristic can be obtained, screening is completed, and finally, the product is judged to be a non-qualified product, and if the four cycle periods are not met, the product is judged to be a qualified product.
Specifically, as shown in fig. 6, the chip and filter combination product is composed of a chip 101, a ceramic substrate 102, a filter 103, and a filter black film 104, where the chip 101 is disposed in the ceramic substrate 102, the filter 103 is disposed in the filter black film 104, the chip 101, the ceramic substrate 102, the filter 103, and the filter black film 104 are in a square frame shape, and the area of the filter 103 is larger than that of the filter 103, so as to ensure that the filter black film 104 is attached to the ceramic substrate 102; the filter 103 covers the chip 101.
The above description is for the purpose of describing the invention in more detail with reference to specific preferred embodiments, and it should not be construed that the embodiments of the invention are limited to those described herein, and it will be apparent to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention.

Claims (4)

1. A filter shift detection method based on Python is characterized by comprising the following steps,
① acquiring images, wherein the camera shoots and acquires thermal images of the chip and the chip of the optical filter combination product;
② dividing the thermal image into region 1, region 2, region 3 and region 4, wherein region 1 is at the upper left corner, region 2 is at the upper right corner, region 3 is at the lower left corner, and region 4 is at the lower right corner;
③, analyzing the pixel coordinates of the chips in the area 1, the area 2, the area 3 and the area 4 to obtain an array 1, an array 2, an array 3 and an array 4, wherein the array 1 corresponds to the area 1, the array 2 corresponds to the area 2, the array 3 corresponds to the area 3, the array 4 corresponds to the area 4, each array comprises a plurality of pixel coordinate points according to the pixel length, and the pixel coordinate points are recorded as
Array 1: [ (x1, y1), (x2, y2) … … ],
array 2: [ (x1, y1), (x2, y2) … … ],
array 3: [ (x1, y1), (x2, y2) … … ],
array 4: [ (x1, y1), (x2, y2) … … ],
④ obtaining pixel arrays of each coordinate, analyzing all coordinates in array 1, array 2, array 3 and array 4 to obtain pixel arrays [ A, B, C ] corresponding to the pixel value of each coordinate, wherein A represents the red pixel value, B represents the green pixel value, and C represents the blue pixel value;
⑤, judging the pixel array [ A, B, C ] corresponding to each coordinate according to the following unqualified preset value standard,
red: a is more than or equal to 240 and less than or equal to 250,
green: b is more than or equal to 200 and less than or equal to 260,
blue: c is more than or equal to 10 and less than or equal to 70,
if the pixel arrays [ A, B and C ] with coordinates meet the numerical value standard, the coordinates are sequentially classified into unqualified arrays W, and if the length of the unqualified arrays W is larger than a self-defined standard parameter Z, the product is preliminarily judged to be an unqualified product;
if the data of the pixel array [ A, B, C ] of all coordinates do not accord with the numerical value standard or if the length of the unqualified array W is less than or equal to the self-defined standard parameter Z, judging the product as a qualified product.
2. The Python-based filter shift detection method according to claim 1, wherein: the method also comprises the following steps of,
⑥, carrying out adjacency analysis on the coordinates in the array W, namely taking any coordinate W1(X1, Y1) in the array W as a judgment basis, if the parameters of the coordinates W2(X2, Y2) accord with X1+1= X2 or X1+0= X2, obtaining the result which preliminarily accords with the adjacent characteristics, sequentially carrying out four cycles, if the result which preliminarily accords with the adjacent characteristics can be obtained, finishing screening, and finally judging that the product is a non-qualified product.
3. The Python-based filter shift detection method according to claim 1 or 2, wherein: the chip and the optical filter combined product consists of a chip, a ceramic substrate, an optical filter and an optical filter black film, wherein the chip is arranged in the ceramic substrate, the optical filter is arranged in the optical filter black film, the chip, the ceramic substrate, the optical filter and the optical filter black film are in a square frame shape, and the optical filter black film is attached to the ceramic substrate; the filter covers the chip.
4. The Python-based filter shift detection method according to claim 1, wherein: the custom criteria parameter Z is 5.
CN202010277106.1A 2020-04-10 2020-04-10 Python-based optical filter offset detection method Active CN111487036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010277106.1A CN111487036B (en) 2020-04-10 2020-04-10 Python-based optical filter offset detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010277106.1A CN111487036B (en) 2020-04-10 2020-04-10 Python-based optical filter offset detection method

Publications (2)

Publication Number Publication Date
CN111487036A true CN111487036A (en) 2020-08-04
CN111487036B CN111487036B (en) 2022-02-25

Family

ID=71812647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010277106.1A Active CN111487036B (en) 2020-04-10 2020-04-10 Python-based optical filter offset detection method

Country Status (1)

Country Link
CN (1) CN111487036B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116990022A (en) * 2023-09-26 2023-11-03 成都工业职业技术学院 Bearing detection method and system for new energy automobile transmission system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09292307A (en) * 1996-04-26 1997-11-11 Ishikawajima Harima Heavy Ind Co Ltd Inspecting system for color unevenness of color filter for liquid crystal
CN1982857A (en) * 2005-12-14 2007-06-20 深圳迈瑞生物医疗电子股份有限公司 Method, apparatus and system for automatically measuring luminescent device
CN104849025A (en) * 2015-03-09 2015-08-19 中国计量学院 LED lamp on-line screening method based on brightness and color temperature test
CN106231295A (en) * 2016-08-04 2016-12-14 惠州市德赛西威汽车电子股份有限公司 A kind of display screen image quality automatic checkout system, detection method and application thereof
CN107462945A (en) * 2017-08-22 2017-12-12 信利(惠州)智能显示有限公司 Colored filter and its detection method, mask plate and liquid crystal display
CN108389234A (en) * 2018-02-05 2018-08-10 深圳市恒晨电器有限公司 A kind of heterochromatic detection algorithm of tablet LCD, storage device and mobile terminal
CN108827979A (en) * 2018-04-23 2018-11-16 东莞高伟光学电子有限公司 A kind of module group lens appearance detecting method
CN109556721A (en) * 2018-10-29 2019-04-02 北京市计量检测科学研究院 A method of detection color chips
CN109827974A (en) * 2018-08-30 2019-05-31 东莞市微科光电科技有限公司 A kind of resin optical filter film splits detection device and detection method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09292307A (en) * 1996-04-26 1997-11-11 Ishikawajima Harima Heavy Ind Co Ltd Inspecting system for color unevenness of color filter for liquid crystal
CN1982857A (en) * 2005-12-14 2007-06-20 深圳迈瑞生物医疗电子股份有限公司 Method, apparatus and system for automatically measuring luminescent device
CN104849025A (en) * 2015-03-09 2015-08-19 中国计量学院 LED lamp on-line screening method based on brightness and color temperature test
CN106231295A (en) * 2016-08-04 2016-12-14 惠州市德赛西威汽车电子股份有限公司 A kind of display screen image quality automatic checkout system, detection method and application thereof
CN107462945A (en) * 2017-08-22 2017-12-12 信利(惠州)智能显示有限公司 Colored filter and its detection method, mask plate and liquid crystal display
CN108389234A (en) * 2018-02-05 2018-08-10 深圳市恒晨电器有限公司 A kind of heterochromatic detection algorithm of tablet LCD, storage device and mobile terminal
CN108827979A (en) * 2018-04-23 2018-11-16 东莞高伟光学电子有限公司 A kind of module group lens appearance detecting method
CN109827974A (en) * 2018-08-30 2019-05-31 东莞市微科光电科技有限公司 A kind of resin optical filter film splits detection device and detection method
CN109556721A (en) * 2018-10-29 2019-04-02 北京市计量检测科学研究院 A method of detection color chips

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
USPTO: "Information technology service companies spectral offset in an optical filter", 《INFORMATION TECHNOLOGY NEWSWEEKLY》 *
王金伟: "小角度偏移滤光片", 《科技成果》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116990022A (en) * 2023-09-26 2023-11-03 成都工业职业技术学院 Bearing detection method and system for new energy automobile transmission system

Also Published As

Publication number Publication date
CN111487036B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN1988673B (en) Image processing circuit and image processing method
US8073236B2 (en) System and method for detecting blemishes on image sensor package
CN102625133B (en) Detection method of image sensing of bad pixel
CN101511031B (en) Method for Bayer Data interplation
CN101106641B (en) Method and apparatus for image processing
CN101414616A (en) Solid-state image acquisition device, camera module and electronic information device
CN106937064B (en) Detection method, bearing calibration and the device of digital picture bad point
CN107613229A (en) A kind of dead pixels of image sensor surveys means for correcting and method
CN107833843A (en) The analysis method and analysis system of defect source, defect detecting device
CN111487036B (en) Python-based optical filter offset detection method
KR100821346B1 (en) Image sensor for improving the image quality and method of sensing the image for improving it
CN100563302C (en) A kind of bad point self-adapted grid noise elimination device and method
CN113533350A (en) Chip gold wire defect detection method and system
US7027091B1 (en) Detection of color filter array alignment in image sensors
US5821999A (en) Method and system for fractally interpolating intensity values for a single color component array obtained from a single color sensor
JP3618713B2 (en) Display screen inspection method and display screen inspection apparatus
JP5466099B2 (en) Appearance inspection device
WO2024066437A1 (en) Array-type image detection apparatus
CN101060643B (en) An adaptive bad point removing method for digital shooting of camera
CN215931247U (en) Optical measurement equipment
TW201435335A (en) Inspection device and method
JP4053571B2 (en) Luminance calculation method, luminance calculation device, inspection device, luminance calculation program, and computer-readable recording medium
CN110797362B (en) Packaging structure of image sensing chip and image sensor
CN107727654A (en) Film layer detection method, device and film layer detecting system
US20040114047A1 (en) Method for transforming an offset sensor array

Legal Events

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