CN209606340U - Transparent medicine bottle bottom buildup defect detecting system - Google Patents
Transparent medicine bottle bottom buildup defect detecting system Download PDFInfo
- Publication number
- CN209606340U CN209606340U CN201821981175.5U CN201821981175U CN209606340U CN 209606340 U CN209606340 U CN 209606340U CN 201821981175 U CN201821981175 U CN 201821981175U CN 209606340 U CN209606340 U CN 209606340U
- Authority
- CN
- China
- Prior art keywords
- medicine bottle
- transparent medicine
- bottle bottom
- objective table
- bottom buildup
- 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.)
- Expired - Fee Related
Links
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Transparent medicine bottle bottom buildup defect detecting system disclosed by the utility model, including objective table, the computer and industrial camera of signal connection are provided on objective table, the transparent medicine bottle placed vertically is provided on the bracket of objective table, industrial camera is used to obtain the image in the transparent medicine bottle bottom buildup region and is transferred to computer, computer is poor by the bottom edge slant height that image obtains transparent medicine bottle bottom buildup region, left gradient value, right gradient value, value on the left of lower gradient, lower gradient right side value, and it is compared with preset parameter range and judges whether the transparent medicine bottle is qualified.Machine vision is introduced into the detection of transparent medicine bottle quality by the utility model, solving the problems, such as artificial detection, time-consuming, low efficiency, it uses one camera, it is Polaroid, have the characteristics that at low cost, precision is high, work efficiency is high, accurate positioning, detection system structure are simple, it can be achieved that purpose that is more acurrate, faster detecting transparent medicine bottle bottom buildup defect.
Description
Technical field
The utility model belongs to technical field of optical detection, and in particular to a kind of transparent medicine bottle bottom buildup defects detection system
System.
Background technique
It is most generally to manually visualize detection with most traditional method at present for the buildup defects detection of transparent medicine bottle bottom
Method checks transparent medicine bottle bottom with the presence or absence of buildup defect by human eye.But visual method is time-consuming and laborious, large labor intensity, effect
Rate is low, and subjective factor is affected, and with the lengthening of detection time, it is easy to and cause inspector visual fatigue occur, from
And get higher defect omission factor.In production line production process, only manually detect not only time-consuming and laborious but also many tiny
Flaw is not easy to be found, therefore visual method can not meet the requirement of production line high efficiency, high quality.
The Chinese patent of Publication No. CN103257144 proposes a kind of plastic bottle opening clout inspection based on machine vision
Survey method and device.This method by position sensor point bright light source and trigger camera take pictures image effect only protrude bottleneck in
Details, using Hopfield neural network defect recognition model, by having a surplus in the bottleneck for detecting multiple plastic bottles
Then material and image when without clout train the sample, obtain the weight of neuron as sample.But this method does not have
Accurately positioning and correction, it is easy to error occur;Use Hopfield neural network, training sample, detection identification operation
Amount is big.
The Chinese patent of Publication No. CN105675619 proposes a kind of rotation type bottle body photograph detection method.This method
By rotation type bottle body photograph detection device, structure is the side that light source is set to vial, and phase unit is set to vial
The other side, light source corresponded to each other with phase unit, is continuously shot using four cameras to 360 ° of vial, and to each image into
Row processing, the defect of detection identification vial.But this method needs to be continuously shot 360 ° of vial using four cameras,
Equipment cost is higher;And need to handle each image, the defect of detection identification vial, system structure is complicated, inspection
Method of determining and calculating operand is big, causes detection speed slow.
To sum up, the buildup defect in the art for being badly in need of fast and effeciently detecting transparent medicine bottle bottom, improves work effect
Rate reduces rejection rate.
Utility model content
The purpose of this utility model is to provide a kind of transparent medicine bottle bottom buildup defect detecting systems, solve artificial inspection
Survey the problem of time-consuming, low efficiency.
The technical scheme adopted by the utility model is a kind of transparent medicine bottle bottom buildup defect detecting system, including carry
Object platform is provided with the computer and industrial camera of signal connection on the objective table, is provided on the bracket of the objective table perpendicular
The transparent medicine bottle directly placed, the industrial camera are used to obtain the image in the transparent medicine bottle bottom buildup region and are transferred to institute
Computer is stated, the computer is used to obtain the bottom edge slant height difference Y in transparent medicine bottle bottom buildup region, left gradient value by image
Gy-L, right gradient value Gy-R, reversed left gradient value GyO-L, reversed right gradient value GyO-R, and be compared and sentence with preset threshold
Whether the transparent medicine bottle that breaks is qualified.
Further, the detection system further includes the light source controller being connected with industrial camera signal, the light source control
Device processed is connected with ball integral light source, and the ball integral light source is located at the lower section of the transparent medicine bottle.
Further, the ball integral light source is set on the objective table, and is in the objective table horizontal plane
10 ° -50 ° of angle.
Preferably, the ball integral light source and the objective table horizontal plane are in 30 ° of angle.
Further, the light source controller is also connected with back light, transparent medicine bottle described in the back light face
Side setting.
Further, the industrial camera is also connected with photoelectric sensor, transparent medicine described in the photoelectric sensor face
The position of bottleneck of bottle is simultaneously same high with bottleneck.
Further, the optical lens and the objective table horizontal plane are in 30 ° -80 ° of angle.
Preferably, the optical lens and the objective table horizontal plane are in 50 ° of angle.
The beneficial effects of the utility model are: the transparent medicine bottle bottom buildup defect detecting system of the utility model, by machine
Device vision is introduced into the detection of transparent medicine bottle quality, and solving the problems, such as artificial detection, time-consuming, low efficiency, is used single-phase
Machine, it is Polaroid, have the characteristics that at low cost, precision is high, work efficiency is high, accurate positioning, detection system structure are simple, with biography
The visual method of system compare, it can be achieved that it is more acurrate, faster detect transparent medicine bottle bottom buildup defect, it is automatic to reach production line
Change, the requirement of high efficiency, high quality.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the transparent medicine bottle bottom buildup defect detecting system of the utility model;
Fig. 2 is the flow chart of the transparent medicine bottle bottom buildup defect inspection method of the utility model embodiment;
Fig. 3 is that the transparent medicine bottle bottom buildup defect inspection method of the utility model embodiment positions schematic diagram;
Fig. 4 is the transparent medicine bottle qualified samples schematic diagram of the utility model embodiment 250ml;
Fig. 5 is the sample schematic diagram that the transparent medicine bottle of the utility model embodiment 250ml has buildup;
Fig. 6 is the judgement decision making algorithm figure of the utility model embodiment.
In figure, 101. computers, 102. industrial cameras, 103. optical lens, 104. light source controllers, 105. ball integral lights
Source, 106. back lights, 107. photoelectric sensors, 108. transparent medicine bottles.
Specific embodiment
The utility model is described in detail with reference to the accompanying drawings and detailed description.
The structure of transparent medicine bottle bottom buildup defect detecting system provided by the utility model is as shown in Figure 1, include loading
Platform, the computer 101 and industrial camera 102 of signal connection are provided on the objective table, and industrial camera 102 has optical lens
103, the transparent medicine bottle 108 placed vertically is fixed on the bracket of objective table, industrial camera 102 is used for by optical lens 103
It obtains the image in the 108 bottom buildup region of transparent medicine bottle and is transferred to computer 101, computer 101 is obtained by image
Bottom edge slant height difference Y, left gradient value Gy-L, right gradient value Gy-R, the reversed left gradient value GyO- in transparent medicine bottle bottom buildup region
L, reversed right gradient value GyO-R, and be compared with preset parameter range and judge whether transparent 108 bottom buildup region of medicine bottle closes
Lattice.The angle of optical lens 103 and objective table horizontal plane is 30 ° -80 °, preferably 50 °.
Further, in order to keep acquired image details display effect good, the detection system of the utility model further includes
Light source assembly, light source assembly include the light source controller 104 being connected with 102 signal of industrial camera, and light source controller 104 is connected with
Ball integrates light source 105, and ball integral light source 105 is located at the lower section of transparent medicine bottle 108.Further, ball integral light source 105 is arranged
It on objective table, and is in 10 ° -50 ° of angle with objective table horizontal plane.Preferably 30 ° of angles.
Further, light source controller 104 is also connected with back light 106, the transparent medicine bottle 108 of 106 face of back light
Side setting, i.e., back light 106 is vertically arranged with transparent medicine bottle 108.
Example, ball integrates light source 105 and back light 106 is respectively highlighted ball integral light source and highlighting backlight light
Source.
Further, industrial camera 102 is also connected with photoelectric sensor 107, the transparent medicine bottle of 107 face of photoelectric sensor
108 position of bottleneck is simultaneously same high with bottleneck.When transparent medicine bottle moves to 107 position of photoelectric sensor, photoelectric sensor 107 is sent out
Signal out, industrial camera 102 trigger imaging after receiving inductive signal, acquire the image of transparent medicine bottle.
The industrial camera 102 of the utility model obtains the image of transparent medicine bottle by optical lens 103, and computer 101 obtains
To after the image, bottom edge slant height difference Y, left gradient value GY-L, the right gradient value GY- in transparent medicine bottle bottom buildup region need to be only obtained
R, value GYB-L, lower gradient right side value GYB-R on the left of lower gradient, and judgement is compared thoroughly with preset parameter range
Whether bright 108 bottom buildup region of medicine bottle is qualified, judges that transparent medicine bottle 108 is qualified after parameter is all up to standard, as long as there is one
It does not meet, judges that transparent medicine bottle is unqualified.The method that the utility model obtains above-mentioned parameter can be the laggard pedestrian of enlarged drawing
Working drawing, which calculates, obtains above-mentioned parameter value, also can use the acquisition of other Processing Algorithms, the utility model is to this and without limit
It is fixed.
Referring to fig. 2, the utility model, which is disclosed, using the detection system detects transparent medicine bottle bottom buildup defect
A kind of method, comprising the following steps:
Step 1, the color image for obtaining transparent medicine bottle bottom buildup region;
Step 2, the side that the color image is converted into gray level image and is pre-processed and obtained the transparent medicine bottle
Edge image;Pretreatment specifically can carry out denoising, binary conversion treatment to gray level image using median filtering, BOLB algorithm.
Step 3, as shown in figure 3, using least-square fitting approach, to medicine bottle transparent in edge image part, extract two
Side edge is simultaneously based on least square fitting both sides of the edge straight line L1、L2;And it extracts bottom margin pixel and is intended based on least square
Close bottom margin straight line L3, according to design experiences value, straight line L3Moving up D pixel toward bottleneck can be obtained straight line L4, by fitting a straight line
L1、L2、L3And by design experiences value offset linear L4Coarse positioning is carried out to target area;
Step 4, according to design experiences value, by fitting a straight line L1、L2It is translated respectively toward the center of the transparent medicine bottle
D1、D2A pixel obtains straight line L5、L6, by straight line L3、L4、L5、L6Realize the more accurate positionin of the target area ROI;
Wherein, the specific steps that fitting a straight line is obtained in step 3 and step 4 are equal are as follows:
The plane coordinate system for establishing XOY obtains the pixel coordinate point (x of edge imagei,yi), i=1,2,3 ..., N;
Using line fitting method, target line equation y=ax+b is enabled;
Had based on criterion of least squares:Partial derivative is asked to the formula, then is had:
Above-mentioned equation group is solved, can be obtained:
A, b value acquired is substituted into y=ax+b to get the target line equation of fitting a straight line.L1、L2、L3By this
Mode is calculated, and straight line L4、L5、L6Then pass through straight line L1、L2、L3The offset for carrying out corresponding design experiences value obtains.
Step 5, the calculation method based on greatest gradient, the bottom edge for solving the edge of bottom buildup position in target area are oblique
Height difference Y, left gradient value Gy-L, right gradient value Gy-R, reversed left gradient value GyO-L and reversed right gradient value GyO-R;
Greatest gradient algorithm in step 5 specifically:
The calculation method of positive gradient:
The calculation method of reversed gradient:
Wherein k is the plain step-length of searching of gradient, and the value of k is obtained according to design experiences value;
On this basis, left gradient value Gy-L, right gradient value Gy-R search element using forward direction, characterize the edge image respectively
The maximum value of maximum of gradients and right side edge on the left of top edge, calculation expression are as follows:
Wherein, ibeginIndicate that the origin coordinates of the edge image top edge X-direction, w indicate the X-direction of edge image
Width;
Meanwhile reversed left gradient value GyO-L, reversed right gradient value GyO-R characterize edge image using reversely element is searched respectively
The reversed left side maximum of gradients of top edge, and reversed right side maximum of gradients, calculation expression are as follows:
By Fig. 5, a kind of form (since form is many kinds of, detailed can not describe) of buildup defect is illustrated, it can
Know: left gradient value Gy-L is located at A point, and right gradient value Gy-R is located at B point, and reversed left gradient value GyO-L is located at C point, reversed right ladder
Angle value GyO-R is located at D point.So, the difference of C point ordinate corresponding with B, it is poor to be expressed as bottom slant height, reflects bottom product
Expect the severe degree of defect.
The ordinate y for the pixel coordinate point for enabling gradient extreme value be located atkWith the mapped function relation F of gradient are as follows:
yk=F (Gy (xk))
Wherein, in the top edge of target area, Gy (xk) characterization abscissa be xkTarget point gradient value.According to upper
The mapped function relation of F is stated, the ordinate y of the target point can be obtainedk。
In addition, enabling left gradient value Gy-L, right gradient value Gy-R, reversed left gradient value GyO-L and reversed right gradient value
The abscissa of the corresponding target point of GyO-R is x1, x2, x3, x4.So, according to the ordinate y of above-mentioned target pointkWith reflecting for gradient
Functional relation F is penetrated, can get these target point ordinates:
y1=F (Gy_L (x))
y2=F (GyO_L (x))
y3=F (Gy_R (x))
y4=F (GyO_R (x))
Then bottom edge slant height difference Y is stated are as follows:
Y=| Max { y1,y3}-Max{y2,y4|, wherein the unit of Y is number of pixels.
Step 6, the bottom edge slant height difference Y, left gradient value Gy-L, the right gradient value Gy-R, a reversed left side obtained according to step 5
Gradient value GyO-L and reversed right gradient value GyO-R are compared with preset threshold, if above-mentioned parameter is all in preset threshold
Inside then determine that the transparent medicine bottle bottom buildup is qualified, otherwise determines unqualified.
The detection method of the utility model is specifically described with the transparent medicine bottle of 250ml capacity below, 250ml is transparent
After medicine bottle qualified samples schematic diagram using above-mentioned detection method as shown in figure 4, detected, the transparent medicine bottle of 250ml has buildup
Sample schematic diagram is as shown in Figure 5.Specifically in the present embodiment, parameter is limited are as follows: as unit of pixel, D=500, D1=
500, D2=500.As unit of pixel, the design parameter of preset threshold is Y1≤80,50≤Gy-L1≤180,60≤Gy-
R1≤180,20≤GyO-L1≤100,30≤GyO-R1≤120.The bottom edge slant height difference Y of the acquisition transparent medicine bottle of 250ml, left gradient
After value Gy-L, right gradient value Gy-R, reversed left gradient value GyO-R and reversed right gradient value GyO-R, compared with preset threshold
To judgement, if there is one does not meet, then judge that the transparent medicine bottle is unqualified.Only after whole parameters meet, just judgement should
Transparent medicine bottle is qualified.It specifically judge decision making algorithm figure as shown in fig. 6, certain, and the judgement sequencings of parameters can be with
It freely adjusts as needed.
The above embodiments of the present invention is merely examples for clearly illustrating the present invention, and is not
Limitations of the embodiments of the present invention.For those of ordinary skill in the art, on above explained basis
On can also make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.
Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention etc., should be included in this reality
Within novel scope of protection of the claims.
Claims (9)
1. transparent medicine bottle bottom buildup defect detecting system, which is characterized in that including objective table, be provided with letter on the objective table
The computer and industrial camera of number connection, are provided with the transparent medicine bottle placed vertically, the industry on the bracket of the objective table
Camera is used to obtain the image in the transparent medicine bottle bottom buildup region and is transferred to the computer, and the computer passes through figure
As the bottom edge slant height difference Y, left gradient value GY-L, right gradient value GY-R, the lower gradient that obtain transparent medicine bottle bottom buildup region are left
Side value GYB-L, lower gradient right side value GYB-R, and be compared with preset parameter range and judge whether the transparent medicine bottle closes
Lattice.
2. transparent medicine bottle bottom buildup defect detecting system as described in claim 1, which is characterized in that the detection system is also
Including the light source controller being connected with industrial camera signal, the light source controller is connected with ball integral light source, the ball integral
Light source is located at the lower section of the transparent medicine bottle.
3. transparent medicine bottle bottom buildup defect detecting system as claimed in claim 2, which is characterized in that the ball integrates light source
It is set on the objective table, and is in 10 ° -50 ° of angle with the objective table horizontal plane.
4. transparent medicine bottle bottom buildup defect detecting system as claimed in claim 3, which is characterized in that the ball integrates light source
It is in 30 ° of angle with the objective table horizontal plane.
5. transparent medicine bottle bottom buildup defect detecting system as claimed in claim 2, which is characterized in that the light source controller
It is also connected with back light, the side setting of transparent medicine bottle described in the back light face.
6. transparent medicine bottle bottom buildup defect detecting system as described in claim 1, which is characterized in that the industrial camera is also
It is connected with photoelectric sensor, the position of bottleneck of transparent medicine bottle described in the photoelectric sensor face is simultaneously same high with bottleneck.
7. transparent medicine bottle bottom buildup defect detecting system as described in claim 1, which is characterized in that the industrial camera connects
It is connected to optical lens.
8. transparent medicine bottle bottom buildup defect detecting system as claimed in claim 7, which is characterized in that the optical lens with
The objective table horizontal plane is in 30 ° -80 ° of angle.
9. transparent medicine bottle bottom buildup defect detecting system as claimed in claim 8, which is characterized in that the optical lens with
The objective table horizontal plane is in 50 ° of angle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821981175.5U CN209606340U (en) | 2018-11-28 | 2018-11-28 | Transparent medicine bottle bottom buildup defect detecting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821981175.5U CN209606340U (en) | 2018-11-28 | 2018-11-28 | Transparent medicine bottle bottom buildup defect detecting system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209606340U true CN209606340U (en) | 2019-11-08 |
Family
ID=68396252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201821981175.5U Expired - Fee Related CN209606340U (en) | 2018-11-28 | 2018-11-28 | Transparent medicine bottle bottom buildup defect detecting system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209606340U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109406539A (en) * | 2018-11-28 | 2019-03-01 | 广州番禺职业技术学院 | A kind of transparent medicine bottle bottom buildup defect detecting system and method |
CN117571731A (en) * | 2024-01-16 | 2024-02-20 | 山东鹰眼机械科技有限公司 | Impurity detection method and system based on lamp inspection machine |
-
2018
- 2018-11-28 CN CN201821981175.5U patent/CN209606340U/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109406539A (en) * | 2018-11-28 | 2019-03-01 | 广州番禺职业技术学院 | A kind of transparent medicine bottle bottom buildup defect detecting system and method |
CN109406539B (en) * | 2018-11-28 | 2024-04-09 | 广州番禺职业技术学院 | Transparent medicine bottle bottom accumulated material defect detection system and method |
CN117571731A (en) * | 2024-01-16 | 2024-02-20 | 山东鹰眼机械科技有限公司 | Impurity detection method and system based on lamp inspection machine |
CN117571731B (en) * | 2024-01-16 | 2024-04-16 | 山东鹰眼机械科技有限公司 | Impurity detection method and system based on lamp inspection machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102539443B (en) | Bottle body defect automatic detection method based on machine vision | |
CN108896574B (en) | Bottled liquor impurity detection method and system based on machine vision | |
CN108921819B (en) | Cloth inspecting device and method based on machine vision | |
CN111612737B (en) | Artificial board surface flaw detection device and detection method | |
CN102221559A (en) | Online automatic detection method of fabric defects based on machine vision and device thereof | |
CN109406539A (en) | A kind of transparent medicine bottle bottom buildup defect detecting system and method | |
CN101858768B (en) | Device and method for detecting liquid level after beverage filling process | |
CN102162797A (en) | Algorithm for detecting glass bottle neck damage and bottle bottom dirt | |
CN113252568A (en) | Lens surface defect detection method, system, product and terminal based on machine vision | |
CN110174065B (en) | Fruit size nondestructive testing method based on orthogonal binocular machine vision | |
CN209606340U (en) | Transparent medicine bottle bottom buildup defect detecting system | |
CN210071686U (en) | Fruit grading plant based on orthogonal binocular machine vision | |
Fu et al. | Medicine glass bottle defect detection based on machine vision | |
CN110189375A (en) | A kind of images steganalysis method based on monocular vision measurement | |
CN112129783A (en) | Transparent medicine bottle bottom defect detection device and detection method based on deep learning | |
CN109584239B (en) | High-light object surface defect detection system and method based on reflected light | |
CN109785338A (en) | The online visible sensation method of screw thread critical size parameter under a kind of movement background | |
CN110096980A (en) | Character machining identifying system | |
CN111257329A (en) | Smartphone camera defect detection method and detection system | |
CN109387524A (en) | Thread defect detection method and device based on linearly polarized photon | |
CN113188633A (en) | Liquid level detection and measurement method based on machine vision | |
CN109115775A (en) | A kind of betel nut level detection method based on machine vision | |
CN105391998B (en) | Automatic detection method and apparatus for resolution of low-light night vision device | |
Li et al. | The method for glass bottle defects detecting based on machine vision | |
CN109540084B (en) | Method and device for measuring three-dimensional attitude of part in floating liquid |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191108 Termination date: 20211128 |
|
CF01 | Termination of patent right due to non-payment of annual fee |