CN105865569A - Glass bottle liquid level detection method based on visible light communication - Google Patents
Glass bottle liquid level detection method based on visible light communication Download PDFInfo
- Publication number
- CN105865569A CN105865569A CN201610315545.0A CN201610315545A CN105865569A CN 105865569 A CN105865569 A CN 105865569A CN 201610315545 A CN201610315545 A CN 201610315545A CN 105865569 A CN105865569 A CN 105865569A
- Authority
- CN
- China
- Prior art keywords
- visible ray
- signal
- liquid level
- visible light
- visible
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F23/00—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
Abstract
The invention relates to a glass bottle liquid level detection method based on visible light communication. The liquid level position of a glass bottle is illuminated by an LED white backlight panel, an image of the glass bottle is acquired through a camera, the image is subjected to median filtering pretreatment, the pretreated image is binarized, then a bottle cap is matched through a geometric matching method, a bottle cap lateral view of the to-be-detected glass bottle image is truncated, and the edge of the bottle cap is extracted to serve as a geometric matching template; a liquid level line is matched through the geometric matching method again, the edge of the liquid level line is extracted as a geometric matching template, through geometric matching, if the liquid level exists in a qualified region, matching succeeds, and it is judged that the product is qualified; the change of external light is sensed through a visible light communication module, and the brightness of the LED white backlight panel irradiating the surface of the bottle cap is controlled. Through the visible light communication technology, the influences of surrounding light on a system are avoided, and the detection accuracy and reliability are improved.
Description
Technical field
The present invention relates to a kind of vial liquid-level detecting method, belong to visible light communication field.
Background technology
In the industrial production line such as beverage, medicated beer, the method for artificial range estimation is mostly used to check that bottle is the most qualified.During particularly fill produces, bottle
The liquid level of dixie cup is the most consistent, the most uniform, is the hugest on enterprise's impact in market.But manual detection has many defects such as speed
Degree is slow, efficiency is low, and detection quality is unstable, often there will be missing inspection or flase drop, causes unstable product quality, and once defect ware is produced,
Waste can be caused.
For above-mentioned situation, current existing technology is to use the research of a set of on-line checking based on machine vision, sets up a set of optical imagery, image
Gather and numeral image process and analysis is the detecting system of platform, not only there is theoretical foundation, and have the biggest economic worth, it can be ensured that
Reduce on a large scale and stop above-mentioned phenomenon and occur, improve product quality.
But in terms of Level Detection, usually have higher requirements the environment of surrounding, such as the threshold value of image procossing is had a significant impact by the power of light,
The natural light difference in daytime and evening is very big in the factory, directly affects the setting of threshold value in detection algorithm.
Summary of the invention
It is an object of the invention to, be weak point and the limitation of vial Level Detection overcoming manual detection to exist, it is provided that be a kind of based on can
See the glass glass bottle liquid-level detecting method of optic communication.The method passes through visible light communication technology, solves the detection ambient light impact on system, greatly
The big accuracy that improve detection and reliability.Technical scheme is as follows:
A kind of vial liquid-level detecting method based on visible light communication, illuminates vial liquid level position with LED white backlight plate, uses collected by camera
Vial image, carries out medium filtering pretreatment, then pretreated image is carried out binary conversion treatment, be then used by geometric match side image
Method coupling bottle cap, intercepts the bottle cap side view of vial image, and the edge of extraction bottle cap, as the template of geometric match, is set up coordinate system, and set
Region of interest ROI;Reusing geometric match method matching fluid bit line, the edge of extracting solution bit line, as the template of geometric match, passes through geometry
If there is liquid level in mating qualified region, the match is successful, it is determined that for qualified products, if not having liquid level in qualified region, is then judged to defective,
Realize the on-line checking of glass bottle liquid level, it is characterised in that
Utilize the change of visible light communication module perception ambient, control to be radiated at vial surface LED white backlight plate bright secretly, it is seen that
Optical communications module includes visible ray receiver module, visible ray generation module, visible ray coding module and visible ray control module, and step is as follows:
(1) visible ray receiver module perception external world visible light ray change and by light signal collection now;
(2) visible ray generation module receives the optical signal that visible ray receiver module is transmitted, and utilizes light sensor and uses high level signal with low
Level signal is converted into visible ray digital signal;
(3) visible ray coding module receives the visible ray digital signal that visible ray generation module transmits, and by binary cell to visible ray numeral
Signal encodes, and visible light signal after being encoded also sends visible ray control module to;
(4) visible light signal after coding is contrasted, according to comparing result by digital signal by visible ray control module with the optical signal value preset
Be converted to optical signal thus regulate the luminosity of LED white backlight plate.
The invention has the beneficial effects as follows: visible light communication is combined with machine vision on-line checking, solve the surrounding impact on detection algorithm,
Improve the accuracy rate of detection.Secondly, the method is affected by environment less, even if environmental change is big, it is also ensured that binary-state threshold keeps constant,
Improve the accuracy rate of detection glass liquid level on-line checking;The present invention be applicable to automated production after fill the high speed of vial liquid level accurately detect.
Accompanying drawing explanation
Fig. 1 for the present invention based on the visible light communication device schematic diagram to vial Level Detection.
The visible light communication module used in Fig. 2 present invention.
The flow chart of the visible light communication transmission method that Fig. 3 regulates based on LED luminance.
The coded method flow chart of Fig. 4 visible light signal.
Relation schematic diagram between Fig. 5 signal and level.
The main interface of Fig. 6 visible light communication module regulation LED luminance.
Detailed description of the invention
The present invention will be further described with instantiation below in conjunction with the accompanying drawings.
The functional block diagram of the device that the vial liquid-level detecting method of the present invention uses as it is shown in figure 1, functionally divide 6 modules, i.e. conveyer belt 1,
Image capture module 2, optical trigger 3, lighting module 4, visible light communication module 5, image procossing and identification 6 and output-controlling device.On
Stating image capture module 2 and use 1,200,000 pixel CCD camera, lighting module 4 uses LED white backlight plate, image procossing and identification module 6
Use industrial computer.On the premise of visible light communication module 5 regulates LED white backlight plate brightness, bottle to be measured is transported to clap by conveyer belt 1
According to station, described photoelectric trigger device 3 is used for detecting whether bottle arrives picture-taking position, in order to produces pulse signal and is transported to industrial computer 6, industry control
Machine sends signal triggering camera 2 and takes pictures;Thering is provided illumination to improve picture quality when LED white backlight plate is taken pictures for camera, CCD camera is positioned at biography
Sending directly over band 1, take pictures the vial liquid level part before backlight, the image of shooting is transported in industrial computer process.
Fig. 2 is the structured flowchart of the visible light communication module that the present invention uses.Fig. 3 is the visible light communication based on LED luminance regulation of the present invention
The flow chart of transmission method, step is as follows:
(1) visible ray receiver module A1 visible light ray in the perception ambient atmosphere environment change and by light signal collection now, be transported to
In next module, reach the real-time synchronization with ambient.
(2) visible ray generation modules A 2 is used for receiving the optical signal that described visible ray receiver module A1 is transmitted, and data waiting for transmission is converted into
Visible ray digital signal.In the process, it is seen that light generation module utilizes the light sensor carried and uses high level signal to incite somebody to action with low level signal
It is converted to digital signal.
(3) visible ray coding module A3 is for receiving the visible ray digital signal that described visible ray generation modules A 2 transmits, and believes visible ray numeral
Number encode.In the process, it is seen that data to be transmitted is encoded by pumped FIR laser module by binary cell.
(4) visible ray sending module A4 sends the visible light signal after the coding of reception to visible ray control module A5.
(5) visible light signal received from described visible ray sending module A4 can be contrasted by visible ray control module A5 with the optical signal preset,
Finally utilize the electrical to optical converter carried to convert digital signals into optical signal thus regulate the state of LED white backlight plate A6.Described LED is white
The state of color back light A6 specifically refers to its luminosity, because the luminosity of LED can directly affect figure vial liquid level being detected
Picture element amount.
Seeing Fig. 4, be the coded method flow chart of the visible light signal that the present embodiment uses, this coded method includes:
1) persistent period of each high level, and each low level persistent period are set.Such as, the persistent period arranging each high level is
2ms, each low level persistent period is 30ms.
2) making a distinction with low level delay between high level group, each high level group represents signal with the number of high level.Such as: each high electricity
The flat persistent period is 2ms, often organizes most four high level, and often group level number represents that 2bit signal, four groups of signals represent a byte.That is: when one
When high level number is 1 in group, represent 00;When high level number is 2, representation signal 01, when high level signal number is 3 interval scales
Signal 10;When high level number is 4, representation signal 11.The signal corresponding relation of high level number and representative is as shown in Table 1:
Table one
High level number | 1 | 2 | 3 | 4 |
Signal (2bit) | 00 | 01 | 10 | 11 |
3) signal of each group is combined, it is thus achieved that coded data.See the relation schematic diagram as shown in Figure 5 between signal and level, Fig. 5
In four groups of signals represent 00,11,01,10 respectively, the low level time delay between each signal is 30ms, and the signal after combination is a word
Joint is represented in binary as: 00110110.
4) coded system that this example provides, represents signal with the number of high level, to distinguish low level time delay between high level group,
Simple and convenient.
Visible light communication module adjustable light-source brightness rank that the present invention uses is that 0-255 level can set, and each passage is with the brightness degree value set
Output, the brightness value arranging LED light source is 137, and LED lamp is flicker per second million times when lighting, and sending speed is 10 15Gbits/s'
Optical signal.
Summing up content described above, the detection method step of vial liquid level based on visible light communication is as follows:
(1) on the premise of visible light communication module regulates LED white backlight plate brightness, vial liquid to be measured is illuminated with LED white backlight plate
Position, position, collected by camera vial liquid level information, regulation camera and light source, make the vial liquid level of collection separate with beverage below, thus obtain
Article one, liquid level line clearly.
(2) bottle arrives shooting station by conveyer belt, and photoelectric sensor receives signal triggering camera and shoots bottle liquid level image to be measured, to image
Carrying out medium filtering pretreatment, then pretreated image is carried out binary conversion treatment, be then used by geometric match method coupling bottle cap, intercepting is treated
Surveying the bottle cap side view of vial image, the edge of extraction bottle cap, as the template of geometric match, is set up coordinate system, and is set an area-of-interest
ROI。
(3) reuse geometric match method matching fluid bit line, intercept the part of one section of relatively standard of liquid level line, extract its edge as geometry
The template joined.If by there is liquid level in the qualified region of geometric match, the match is successful, it is determined that for qualified products, if not having liquid in qualified region
Position, then be judged to defective.
Claims (2)
1. a vial liquid-level detecting method based on visible light communication, illuminates vial liquid level position with LED white backlight plate, adopts with camera
Collection vial image, carries out medium filtering pretreatment, then pretreated image is carried out binary conversion treatment, be then used by geometric match image
Method coupling bottle cap, intercepts the bottle cap side view of vial image, and the edge of extraction bottle cap, as the template of geometric match, is set up coordinate system, and set
Determine region of interest ROI;Reusing geometric match method matching fluid bit line, the edge of extracting solution bit line is as the template of geometric match, by several
If what exists liquid level in mating qualified region, the match is successful, it is determined that for qualified products, if not having liquid level in qualified region, then is judged to not conform to
Lattice, it is achieved the on-line checking of glass bottle liquid level, it is characterised in that
Utilize the change of visible light communication module perception ambient, control to be radiated at vial surface LED white backlight plate bright secretly, it is seen that
Optical communications module includes visible ray receiver module, visible ray generation module, visible ray coding module and visible ray control module, and step is as follows:
(1) visible ray receiver module perception external world visible light ray change and by light signal collection now;
(2) visible ray generation module receives the optical signal that visible ray receiver module is transmitted, and utilizes light sensor and uses high level signal with low
Level signal is converted into visible ray digital signal;
(3) visible ray coding module receives the visible ray digital signal that visible ray generation module transmits, and by binary cell to visible ray numeral
Signal encodes, and visible light signal after being encoded also sends visible ray control module to;
(4) visible light signal after coding is contrasted, according to comparing result by digital signal by visible ray control module with the optical signal value preset
Be converted to optical signal thus regulate the luminosity of LED white backlight plate.
Vial liquid-level detecting method the most according to claim 1, it is characterised in that in step (3), by binary cell to visible
The cryptoprinciple of light encoding digital signals is: make a distinction with low level delay between high level group, and each high level group is with the number of high level
Represent signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610315545.0A CN105865569A (en) | 2016-05-12 | 2016-05-12 | Glass bottle liquid level detection method based on visible light communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610315545.0A CN105865569A (en) | 2016-05-12 | 2016-05-12 | Glass bottle liquid level detection method based on visible light communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105865569A true CN105865569A (en) | 2016-08-17 |
Family
ID=56630930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610315545.0A Pending CN105865569A (en) | 2016-05-12 | 2016-05-12 | Glass bottle liquid level detection method based on visible light communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105865569A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108375588A (en) * | 2018-04-16 | 2018-08-07 | 安徽金种子酒业股份有限公司 | A kind of online checking system of opaque bottle |
CN112508852A (en) * | 2020-11-12 | 2021-03-16 | 深圳科瑞技术股份有限公司 | Method and system for detecting liquid level in liquid storage bottle |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1366607A (en) * | 2000-02-03 | 2002-08-28 | 三得利株式会社 | Method and device for imaging liquid-filled container |
CN104848918A (en) * | 2015-06-06 | 2015-08-19 | 长春工业大学 | CCD-based essential oil filling measurement method |
CN204810630U (en) * | 2015-07-27 | 2015-11-25 | 西北农林科技大学 | Wireless regulation and control system of experiment by candling based on singlechip |
CN105301003A (en) * | 2015-11-05 | 2016-02-03 | 天津大学 | Method for detecting bottle cap surface production date based on machine vision |
-
2016
- 2016-05-12 CN CN201610315545.0A patent/CN105865569A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1366607A (en) * | 2000-02-03 | 2002-08-28 | 三得利株式会社 | Method and device for imaging liquid-filled container |
CN104848918A (en) * | 2015-06-06 | 2015-08-19 | 长春工业大学 | CCD-based essential oil filling measurement method |
CN204810630U (en) * | 2015-07-27 | 2015-11-25 | 西北农林科技大学 | Wireless regulation and control system of experiment by candling based on singlechip |
CN105301003A (en) * | 2015-11-05 | 2016-02-03 | 天津大学 | Method for detecting bottle cap surface production date based on machine vision |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108375588A (en) * | 2018-04-16 | 2018-08-07 | 安徽金种子酒业股份有限公司 | A kind of online checking system of opaque bottle |
CN112508852A (en) * | 2020-11-12 | 2021-03-16 | 深圳科瑞技术股份有限公司 | Method and system for detecting liquid level in liquid storage bottle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105865570A (en) | Machine vision-based glass bottle liquid level detection method | |
CN106052793A (en) | Machine vision based liquid level sub-quality product marking method | |
CN102682267B (en) | Method for quickly positioning and extracting one-dimensional and two-dimensional code graphics aiming at digital images | |
CN108465648A (en) | A kind of magnetic core Automated Sorting System based on machine vision | |
CN104118609B (en) | Labeling quality determining method and device | |
CN110146516B (en) | Fruit grading device based on orthogonal binocular machine vision | |
CN108120353B (en) | Fire transmission hole detection device and method based on intelligent camera | |
CN103698337B (en) | A kind of adhesion defect of label of flat wine bottle automatic testing method | |
CN103473778A (en) | Detecting algorithm for eccentrically-inserting defect of LED luminous chip | |
CN102231187B (en) | Computer vision detection technology-based method for detecting and identifying QR (Quick Response) code | |
CN103017869A (en) | Water level measuring system and method based on digital image processing | |
CN107664644B (en) | Object appearance automatic detection device and method based on machine vision | |
CN109461156B (en) | Threaded sealing plug assembly detection method based on vision | |
CN103776841A (en) | Automatic detection device and method of synthetic leather defect | |
CN206074461U (en) | A kind of coal petrography identifying device based on machine vision | |
CN105466950A (en) | Bamboo dice online detection method and system based on vision | |
CN201707305U (en) | Inspection system for inspecting quality of container caps | |
CN105865569A (en) | Glass bottle liquid level detection method based on visible light communication | |
CN104550051A (en) | Empty bottle sorting system for glass bottle | |
CN103698341A (en) | System for detecting cotton rolling quality and method for detecting cotton rolling quality based on image | |
CN102879404B (en) | System for automatically detecting medical capsule defects in industrial structure scene | |
CN104360257B (en) | A kind of LED creepage detection methods and device | |
CN104568989A (en) | Glass substrate defect detecting method | |
CN101937505B (en) | Target detection method and equipment and used image acquisition device thereof | |
CN106841226B (en) | Cable orientation detection and correction system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |
|
RJ01 | Rejection of invention patent application after publication |