CN104899863A - Mold protector and implementation method thereof - Google Patents

Mold protector and implementation method thereof Download PDF

Info

Publication number
CN104899863A
CN104899863A CN201510154376.2A CN201510154376A CN104899863A CN 104899863 A CN104899863 A CN 104899863A CN 201510154376 A CN201510154376 A CN 201510154376A CN 104899863 A CN104899863 A CN 104899863A
Authority
CN
China
Prior art keywords
image
value
detected
lattice point
point
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.)
Pending
Application number
CN201510154376.2A
Other languages
Chinese (zh)
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.)
Xiamen Bo Shi Source Machine Visual Technology Pty Ltd
Original Assignee
Xiamen Bo Shi Source Machine Visual Technology Pty 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 Xiamen Bo Shi Source Machine Visual Technology Pty Ltd filed Critical Xiamen Bo Shi Source Machine Visual Technology Pty Ltd
Priority to CN201510154376.2A priority Critical patent/CN104899863A/en
Publication of CN104899863A publication Critical patent/CN104899863A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a mold protector and an implementation method thereof. The method comprises: using pre-collected multiple qualified template images as reference images; separately calculating a minimum value image and a maximum value image of the reference images; determining, when mold matching detection is performed, whether a color value of each pixel point of a to-be-detected template image is between a color value of a corresponding pixel point of the minimum value image and a color value of a corresponding pixel point of the maximum value image, and if yes, the pixel point of the to-be-detected template image is a qualified point, otherwise, the pixel point of the to-be-detected template image is an unqualified point; further excluding a single unqualified point; comparing a quantity of remaining unqualified points with a preset threshold, if the quantity of remaining unqualified points is greater than the preset threshold, a detection result is being unqualified, and if the quantity of remaining unqualified points is less than the preset threshold, the detection result is being qualified. The invention has the advantages that accuracy is higher, an algorithm is simpler, a processing speed is faster, and time required by detection is greatly shortened.

Description

A kind of mould protector and its implementation
Technical field
The present invention relates to mould monitoring technical field, particularly a kind of mould protector and its implementation.
Background technology
The implementation method of existing mould protector is all mainly the template matches based on benchmark image; namely; by gathering multiple qualified template images as benchmark image; current template image is obtained and all benchmark images contrast successively after each die sinking puts in place; as long as wherein a benchmark image is substantially similar; namely the difference of each pixel of current template image and benchmark image corresponding pixel points gray-scale value is greater than always counting of tolerance and is less than setting value; namely think that current template image is qualified, otherwise be then defective.The advantage of this method easily realizes and user's easy understand, but weak point is if die sinking position is slightly inaccurate, then image difference will cause wrong report comparatively greatly; And if template is more, then processing speed is slow, increases time production cycle.
Summary of the invention
The present invention, for solving the problem, provides a kind of mould protector and its implementation, makes template matches efficiency higher.
For achieving the above object, the technical solution used in the present invention is:
An implementation method for mould protector, is characterized in that, comprises the following steps:
10. gather several qualified template images, as benchmark image;
The minimum value image of the described benchmark image of 20. calculating and maximal value image;
30. judge that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
40. analyze all consecutive point not conforming to lattice point, get rid of single not conform to lattice point, and statistics residue does not conform to the quantity of lattice point;
Described residue not to be conformed to the quantity of lattice point and predetermined threshold value contrasts by 50., be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
Preferably, in described step 20, calculate minimum value image and the maximal value image of described benchmark image, further comprising the steps:
Each pixel of the benchmark image described in 21. pairs calculates grey scale cumulative sum, mean value, standard deviation;
22. according to the size Lookup protocol amplification coefficient in region to be detected;
23. according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image.
Preferably, in described step 21, grey scale cumulative sum, mean value, standard deviation are calculated to each pixel of described benchmark image, further comprising the steps:
211. calculate grey scale cumulative sum:
G ( x , y ) = Σ i = 1 k G i ( x , y ) ;
212. computation of mean values:
G ‾ ( x , y ) = Σ i = 1 k G i ( x , y ) k ;
213. calculate standard deviation:
S ( x , y ) = Σ i = 1 k ( G i ( x , y ) - G ‾ ( x , y ) ) 2 k ;
Wherein, G i(x, y) is that on i-th benchmark image, coordinate is the gray-scale value of the pixel of (x, y), and k is the number of benchmark image.
Preferably, in described step 22, according to the size Lookup protocol amplification coefficient in region to be detected, computing method are as follows:
If length and the wide minimum value of the outsourcing rectangle in region to be detected are less than 40, then amplification coefficient T=1;
If length and the wide minimum value of the outsourcing rectangle in region to be detected equal 40, then amplification coefficient T=2;
If length and the wide minimum value of the outsourcing rectangle in region to be detected are greater than 40, then amplification coefficient T=3.
Preferably, in described step 23, according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image, computing method are as follows:
The color value of 231. each pixels of calculated minimum image:
MIN ( x , y ) = G ‾ ( x , y ) - S ( x , y ) × T ;
The color value of 232. each pixels of calculated minimum image:
MAX ( x , y ) = G ‾ ( x , y ) + S ( x , y ) × T ;
Wherein, for described mean value; S (x, y) is described standard deviation; T is described amplification coefficient.
In addition, present invention also offers a kind of mould protector, it is characterized in that, it at least comprises:
Image capture module, for gathering several qualified template images, as benchmark image;
Image computing module, for calculating minimum value image and the maximal value image of described benchmark image;
Analyze judge module, for judging that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
Analytic statistics module, for analyzing all consecutive point not conforming to lattice point, gets rid of and single do not conform to lattice point, and statistics residue not conforming to the quantity of lattice point;
Threshold value judgment module, contrasts for the quantity and predetermined threshold value described residue not being conformed to lattice point, be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
The invention has the beneficial effects as follows:
A kind of mould protector of the present invention and its implementation, it is by gathering several qualified template images as benchmark image in advance, and calculate minimum value image and the maximal value image of described benchmark image respectively, then the color value of each pixel judging template image to be detected is carried out when carrying out mould matching detection whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point, and get rid of further and single do not conform to lattice point, the quantity and the predetermined threshold value that residue are not conformed to lattice point contrast, be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified, accuracy rate is higher, avoid because mould die sinking position changes the wrong report caused, and the maximal value image calculated with multiple benchmark images and minimum value image carry out the method for mating to replace traditional template one by one, algorithm is simpler, processing speed is faster, detection required time greatly reduces.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the implementation method of a kind of mould protector of the present invention;
Fig. 2 is the structural representation of a kind of mould protector of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, the implementation method of a kind of mould protector of the present invention, it comprises the following steps:
10. gather several qualified template images, as benchmark image;
The minimum value image of the described benchmark image of 20. calculating and maximal value image;
30. judge that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
40. analyze all consecutive point not conforming to lattice point, get rid of single not conform to lattice point, and statistics residue does not conform to the quantity of lattice point;
Described residue not to be conformed to the quantity of lattice point and predetermined threshold value contrasts by 50., be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
In step 20 described in the present embodiment, calculate minimum value image and the maximal value image of described benchmark image, further comprising the steps:
Each pixel of the benchmark image described in 21. pairs calculates grey scale cumulative sum, mean value, standard deviation;
22. according to the size Lookup protocol amplification coefficient in region to be detected;
23. according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image.
In described step 21, grey scale cumulative sum, mean value, standard deviation are calculated to each pixel of described benchmark image, further comprising the steps:
211. calculate grey scale cumulative sum:
G ( x , y ) = Σ i = 1 k G i ( x , y ) ;
212. computation of mean values:
G ‾ ( x , y ) = Σ i = 1 k G i ( x , y ) k ;
213. calculate standard deviation:
S ( x , y ) = Σ i = 1 k ( G i ( x , y ) - G ‾ ( x , y ) ) 2 k ;
Wherein, G i(x, y) is that on i-th benchmark image, coordinate is the gray-scale value of the pixel of (x, y), and k is the number of benchmark image.
In described step 22, according to the size Lookup protocol amplification coefficient in region to be detected, computing method are as follows:
If length and the wide minimum value of the outsourcing rectangle in region to be detected are less than 40, then amplification coefficient T=1;
If length and the wide minimum value of the outsourcing rectangle in region to be detected equal 40, then amplification coefficient T=2;
If length and the wide minimum value of the outsourcing rectangle in region to be detected are greater than 40, then amplification coefficient T=3.
In described step 23, according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image, computing method are as follows:
The color value of 231. each pixels of calculated minimum image:
MIN ( x , y ) = G ‾ ( x , y ) - S ( x , y ) × T ;
The color value of 232. each pixels of calculated minimum image:
MAX ( x , y ) = G ‾ ( x , y ) + S ( x , y ) × T ;
Wherein, for described mean value; S (x, y) is described standard deviation; T is described amplification coefficient.
In described step 40, analyze all consecutive point not conforming to lattice point, get rid of and single do not conform to lattice point, mainly according to nine grids algorithm, do not conform to lattice point for each, analyze the current point do not conformed to around lattice point, there are at most 8 points in each surrounding not conforming to lattice point, if these 8 points are all qualified, then this current defective point is judged as single not conforming to lattice point, gets rid of; If have at least a point defective in these 8 points, then this current defective point is not single do not conform to lattice point, retains yet.
As shown in Figure 2, present invention also offers a kind of mould protector, it is characterized in that, it at least comprises:
Image capture module A, for gathering several qualified template images, as benchmark image;
Image computing module B, for calculating minimum value image and the maximal value image of described benchmark image;
Analyze judge module C, for judging that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
Analytic statistics module D, for analyzing all consecutive point not conforming to lattice point, gets rid of and single do not conform to lattice point, and statistics residue not conforming to the quantity of lattice point;
Threshold value judgment module E, contrasts for the quantity and predetermined threshold value described residue not being conformed to lattice point, be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.And, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.In addition, one of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (6)

1. an implementation method for mould protector, is characterized in that, comprises the following steps:
10. gather several qualified template images, as benchmark image;
The minimum value image of the described benchmark image of 20. calculating and maximal value image;
30. judge that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
40. analyze all consecutive point not conforming to lattice point, get rid of single not conform to lattice point, and statistics residue does not conform to the quantity of lattice point;
Described residue not to be conformed to the quantity of lattice point and predetermined threshold value contrasts by 50., be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
2. the implementation method of a kind of mould protector according to claim 1, is characterized in that: in described step 20, calculates minimum value image and the maximal value image of described benchmark image, further comprising the steps:
Each pixel of the benchmark image described in 21. pairs calculates grey scale cumulative sum, mean value, standard deviation;
22. according to the size Lookup protocol amplification coefficient in region to be detected;
23. according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image.
3. the implementation method of a kind of mould protector according to claim 2, is characterized in that: in described step 21, calculates grey scale cumulative sum, mean value, standard deviation to each pixel of described benchmark image, further comprising the steps:
211. calculate grey scale cumulative sum:
G ( x , y ) = Σ i = 1 k G i ( x , y ) ;
212. computation of mean values:
G ‾ ( x , y ) = Σ i = 1 k G i ( x , y ) k ;
213. calculate standard deviation:
S ( x , y ) = Σ i = 1 k ( G i ( x , y ) - G ‾ ( x , y ) ) 2 k ;
Wherein, G i(x, y) is that on i-th benchmark image, coordinate is the gray-scale value of the pixel of (x, y), and k is the number of benchmark image.
4. the implementation method of a kind of mould protector according to claim 2, is characterized in that: in described step 22, and according to the size Lookup protocol amplification coefficient in region to be detected, computing method are as follows:
If length and the wide minimum value of the outsourcing rectangle in region to be detected are less than 40, then amplification coefficient T=1;
If length and the wide minimum value of the outsourcing rectangle in region to be detected equal 40, then amplification coefficient T=2;
If length and the wide minimum value of the outsourcing rectangle in region to be detected are greater than 40, then amplification coefficient T=3.
5. the implementation method of a kind of mould protector according to claim 2; it is characterized in that: in described step 23; according to described grey scale cumulative sum, mean value, standard deviation and amplification coefficient, the minimum value image of Calculation Basis image and maximal value image, computing method are as follows:
The color value of 231. each pixels of calculated minimum image:
MIN ( x , y ) = G ‾ ( x , y ) - S ( x , y ) × T ;
The color value of 232. each pixels of calculated minimum image:
MAX ( x , y ) = G ‾ ( x , y ) + S ( x , y ) × T ;
Wherein, for described mean value; S (x, y) is described standard deviation; T is described amplification coefficient.
6. a mould protector, is characterized in that, it at least comprises:
Image capture module, for gathering several qualified template images, as benchmark image;
Image computing module, for calculating minimum value image and the maximal value image of described benchmark image;
Analyze judge module, for judging that the color value of each pixel of template image to be detected is whether between the color value of the corresponding pixel points of described minimum value image and the color value of the corresponding pixel points of maximal value image, if, then the pixel of this template image to be detected is qualified point, otherwise for not conforming to lattice point;
Analytic statistics module, for analyzing all consecutive point not conforming to lattice point, gets rid of and single do not conform to lattice point, and statistics residue not conforming to the quantity of lattice point;
Threshold value judgment module, contrasts for the quantity and predetermined threshold value described residue not being conformed to lattice point, be greater than predetermined threshold value then this testing result be defective, be less than predetermined threshold value then this testing result be qualified.
CN201510154376.2A 2015-04-02 2015-04-02 Mold protector and implementation method thereof Pending CN104899863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510154376.2A CN104899863A (en) 2015-04-02 2015-04-02 Mold protector and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510154376.2A CN104899863A (en) 2015-04-02 2015-04-02 Mold protector and implementation method thereof

Publications (1)

Publication Number Publication Date
CN104899863A true CN104899863A (en) 2015-09-09

Family

ID=54032508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510154376.2A Pending CN104899863A (en) 2015-04-02 2015-04-02 Mold protector and implementation method thereof

Country Status (1)

Country Link
CN (1) CN104899863A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809674A (en) * 2016-03-03 2016-07-27 厦门大学 Machine vision based die protection apparatus and its functioning method
CN105957061A (en) * 2016-04-22 2016-09-21 武汉理工大学 Methods for making threshold graph and detecting picture for rotary crown cover
CN106934786A (en) * 2015-12-31 2017-07-07 深圳市宝捷信科技有限公司 A kind of image processing software algorithm for realizing mould monitor
CN113052829A (en) * 2021-04-07 2021-06-29 深圳市磐锋精密技术有限公司 Mainboard AOI detection method based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053093A (en) * 2010-11-08 2011-05-11 北京大学深圳研究生院 Method for detecting surface defects of chip cut from wafer surface
CN103106663A (en) * 2013-02-19 2013-05-15 公安部第三研究所 Method for detecting defect of subscriber identity module (SIM) card based on image processing in computer system
CN103150558A (en) * 2013-02-26 2013-06-12 北京航空航天大学 Machine vision-based display terminal operation response matching detection method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053093A (en) * 2010-11-08 2011-05-11 北京大学深圳研究生院 Method for detecting surface defects of chip cut from wafer surface
CN103106663A (en) * 2013-02-19 2013-05-15 公安部第三研究所 Method for detecting defect of subscriber identity module (SIM) card based on image processing in computer system
CN103150558A (en) * 2013-02-26 2013-06-12 北京航空航天大学 Machine vision-based display terminal operation response matching detection method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴浩 等: ""基于统计建模的电子元件焊点图像匹配算法"", 《华南理工大学学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106934786A (en) * 2015-12-31 2017-07-07 深圳市宝捷信科技有限公司 A kind of image processing software algorithm for realizing mould monitor
CN106934786B (en) * 2015-12-31 2022-04-26 深圳市宝捷信科技有限公司 Method for realizing image processing software of mold monitor
CN105809674A (en) * 2016-03-03 2016-07-27 厦门大学 Machine vision based die protection apparatus and its functioning method
CN105957061A (en) * 2016-04-22 2016-09-21 武汉理工大学 Methods for making threshold graph and detecting picture for rotary crown cover
CN113052829A (en) * 2021-04-07 2021-06-29 深圳市磐锋精密技术有限公司 Mainboard AOI detection method based on Internet of things

Similar Documents

Publication Publication Date Title
CN104268591B (en) A kind of facial critical point detection method and device
CN102855487B (en) Method for automatically extracting newly added construction land change image spot of high-resolution remote sensing image
CN104899863A (en) Mold protector and implementation method thereof
CN104766175A (en) Power system abnormal data identifying and correcting method based on time series analysis
CN115393727B (en) Pavement linear crack identification method, electronic equipment and storage medium
CN107945200A (en) Image binaryzation dividing method
US11107237B2 (en) Image foreground detection apparatus and method and electronic device
GB2588735A (en) Knockout autoencoder for detecting anomalies in biomedical images
CN108805180B (en) Target object detection method and device
US11068714B2 (en) Method and apparatus for determining hot zones of human flow based on cartography
CN105574894A (en) Method and system for screening moving object feature point tracking results
CN104835179A (en) Improved ViBe background modeling algorithm based on dynamic background self-adaption
CN103456021A (en) Piece goods blemish detecting method based on morphological analysis
CN110827269B (en) Crop growth change condition detection method, device, equipment and medium
CN105654428A (en) Method and system for image noise reduction
CN105787470A (en) Method for detecting power transmission line tower in image based on polymerization multichannel characteristic
CN104268840A (en) Method for enhancing infrared image histogram redundancy elimination and gray level equal interval mapping
CN104036493A (en) No-reference image quality evaluation method based on multifractal spectrum
CN108596032B (en) Detection method, device, equipment and medium for fighting behavior in video
CN105469054A (en) Model construction method of normal behaviors and detection method of abnormal behaviors
CN104281850A (en) Character area identification method and device
CN103279928B (en) A kind of image enchancing method based on atmospherical scattering model
CN103106663B (en) Realize the method for SIM card defects detection based on image procossing in computer system
CN104899597A (en) Mould protector specific to insert molding and realization method thereof
CN109541037A (en) A kind of loading machine structure trunk crackle screening technique based on compromise with mechanism of competition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150909