A kind of bottle liquid level detection system and detection method suitable for retaining wine foam in bottle
Technical field
The invention belongs to Technology of Level Detection field, and in particular to a kind of bottle liquid level suitable for retaining wine foam in bottle
Detecting system and detection method.
Background technology
In Beer Brewage field, generally detected using the level sensing machine with x-ray detection device in beer bottle
Whether the liquid level of wine liquid is qualified.Its principle is:Transmitting terminal sends X-ray, and X-ray is received after penetrating bottle by receiving terminal, bottle wall
Liquid absorption in the glass and bottle ray of a part so that the intensity of ray has weakened, and what receiving terminal received penetrates
Line converses a strength values automatically by calculating, and is compared according to this value and critical parameters value, judges wine liquid in bottle
Liquid level it is whether qualified.Find that the thickness of bottle wall glass has a great influence X-ray detection value in use, but in actual production
In, due to vial became uneven, cause part liquid level it is relatively low effectively cannot impact out, often because of the underproof wine of liquid level
The situation of bottle detection error and the next process of entrance.The method of another detection liquid level, is visible detection method, its general bag
Include visible light source, CCD camera, picture processing chip and corresponding image processing software.Visible light source is transmitted through bottle and liquid
After body and pass through special optical lens system, the liquid level image with obvious interface is finally collected by CCD camera, together
When the liquid level image is converted into digital picture, obtain liquid level after picture processing chip and the processing of corresponding image processing software
Testing result.Above two mode is required to X-ray and visible light source passes through bottle, can not avoid the thickness of bottle wall glass not
The influence to testing result brought so that final testing result is inaccurate.
The content of the invention
To solve the above-mentioned problems, it is an object of the invention to provide a kind of bottle liquid level inspection suitable for retaining wine foam in bottle
Examining system, and the detection method suitable for the system.
To achieve the above object, the present invention is achieved by following technical scheme:
The present invention provides a kind of bottle liquid level detection system suitable for retaining wine foam in bottle, including:
Transmission device, for transmitting bottle;
Position detecting device, for having detected that bottle passes through when, send trigger signal;
Camera arrangement, for shooting the wine liquid of bottle and the image of Jiu Mo intersections;
Device for eliminating, for rejecting the underproof bottle of liquid level;
Image control processor, for receiving the trigger signal and sending photographing instruction to the camera arrangement;It is described
Camera arrangement is connected to the photographing instruction and takes pictures, and the image photographed is sent to described image control processor;Institute
State image processor and judge whether the liquid level of bottle is qualified according to the image received, if unqualified, sent out to the device for eliminating
Rejecting is sent to instruct, the device for eliminating rejects the underproof bottle of liquid level after being connected to rejecting instruction.
Further, described image control processor includes:
Identification module, for receiving image to identify the line of demarcation of wine liquid and wine foam, and sends the boundary line position letter
Breath;
Whether judgment module, receives the boundary line position information, and judge the position in the line of demarcation beyond qualified area
Domain, if exceeding, sends and rejects instruction.
Further, present invention additionally comprises for transmitting range information that is calculating bottle transmitting range and sending bottle
Distance detection device, the distance detection device are arranged on the transmission device.
Further, described image control processor is further included for receiving the transmitting range information and taking pictures to described
Device sends the control module of taking pictures of photographing instruction.
Further, described image control processor is further included for receiving the trigger signal and to the control of taking pictures
Module sends the first starting module of enabled instruction.
Further, the device for eliminating includes:
Bottle hit device, for hitting unqualified bottle;
Control module is hit, for receiving the transmitting range information and sending execute instruction to the bottle hit device;
Second starting module, for receiving the rejecting instruction and sending enabled instruction to the control module that hits.
The present invention also provides a kind of bottle liquid-level detecting method suitable for retaining wine foam in bottle, comprise the following steps:
Step S1:The position detecting device has been detected to send to described image control processor when bottle passes through and triggered
Signal;
Step S2:Described image control processor receives the trigger signal and sends finger of taking pictures to the camera arrangement
Order, the wine liquid and the image of Jiu Mo intersections of the camera arrangement shooting bottle, and image is sent to described image control
Manage device;
Step S3:Described image processor judges whether the liquid level of bottle is qualified according to the image received, if unqualified,
Sent to the device for eliminating and reject instruction;
Step S4:The device for eliminating is connected to the rejecting underproof bottle of liquid level after rejecting instruction.
Further, in step s 2, after described image control processor receives the trigger signal, whether bottle is judged
The position of the camera arrangement is reached, if reaching, described image control processor sends photographing instruction to the camera arrangement.
Further, step S3 is specifically included:
Step S3.1:Described image processor is according to the image recognition wine liquid received and the line of demarcation of wine foam;
Step S3.2:Described image processor judges whether the position in the line of demarcation exceeds qualified region, if exceeding,
Judge that the liquid level of bottle is unqualified, and send described reject to the device for eliminating and instruct.
Further, in step s 4, after the device for eliminating is connected to rejecting instruction, judge whether bottle reaches described pick
Except the position of device, if reaching, perform and reject instruction, reject the underproof bottle of liquid level.
Compared with prior art, the beneficial effects of the invention are as follows:
The position that the present invention detects the line of demarcation of wine liquid and wine foam using image processor whether qualified judges beer
Whether liquid level is qualified, and since foam and the color distortion of wine liquid are very big, point of the two can be distinguished by common image
Boundary line, therefore camera arrangement only needs to realize camera function, it is not necessary to by visible light source or infrared grade by bottle after
The more specific location information of liquid level is obtained, thus avoids the in uneven thickness of bottle and testing result is impacted so that detection
Result it is more accurate.
Brief description of the drawings
The embodiment of the present invention is described in further detail below in conjunction with the accompanying drawings, wherein:
Fig. 1 is that a kind of structure of bottle liquid level detection system suitable for retaining wine foam in bottle of the present invention is shown
It is intended to;
Fig. 2 is the top view of Fig. 1;
Fig. 3 is a kind of bottle liquid level detection system control principle suitable for retaining wine foam in bottle of the present invention
Figure.
Fig. 4 is a kind of flow suitable for retaining the bottle liquid-level detecting method of wine foam in bottle of the present invention
Figure.
In figure:
1- transmission devices;The first conveyer belts of 11-;The second conveyer belts of 12-;111- drive shafts;
2- position detecting devices;3- camera arrangements;
4- device for eliminating;41- bottle hit devices;42- hits control module;The second starting modules of 43-;
5- image control processors;510 identification modules;52- judgment modules;53- takes pictures control module;54- first starts
Module;
6- distance detection devices;7- editing machines;8- bottles.
Embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with attached drawing, it will be appreciated that described herein preferred real
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
As shown in FIG. 1 to 3, a kind of 8 level sensing system of bottle suitable for retaining wine foam in bottle of the present invention
System, including transmission device 1, position detecting device 2, camera arrangement 3, device for eliminating 4 and image control processor 5.Transmission device 1
Bottle 8 can be sequentially delivered to position detecting device 2, camera arrangement 3 and device for eliminating 4, when position detecting device 2 detects
Trigger signal is sent when having bottle 8 to pass through, image control processor 5 receives trigger signal and sends finger of taking pictures to camera arrangement 3
Order, camera arrangement 3 is connected to photographing instruction and the wine liquid of bottle 8 and the image of Jiu Mo intersections taken pictures, and will photograph
Image is sent to image control processor 5;Image processor judges whether the liquid level of bottle 8 is qualified according to the image received,
If unqualified, sent to device for eliminating 4 and reject instruction, device for eliminating 4 rejects the underproof bottle of liquid level after being connected to rejecting instruction
8.After beer is just filling, dense white foam can be produced, the line of demarcation of foam and wine liquid is the liquid level of wine liquid, due to bubble
Foam and the color distortion of wine liquid are very big, therefore the line of demarcation of the two readily identifies, and the present invention is special using this of bottled beer
Property, the wine liquid of bottle 8 and the image of Jiu Mo intersections are taken pictures, recycle image processor to judge line of demarcation (i.e. liquid level)
Position it is whether qualified.Since the camera arrangement 3 of the present invention is only to realize camera function, it is not necessary to pass through visible light source or red
It is outer to wait the specific trigger signal for obtaining liquid level, therefore avoid the in uneven thickness of bottle 8 and testing result is impacted so that
The result of detection is more accurate.
Preferably, image control processor 5 includes identification module 51 and judgment module 52.Identification module 51, which is used to receive, schemes
Picture sends line of demarcation positional information to identify the line of demarcation of wine liquid and wine foam;Judgment module 52 receives boundary line position information,
And whether the position for judging line of demarcation, if exceeding, sends beyond qualified region and rejects instruction.Specifically, qualified region includes
Lower range limit, when line of demarcation is less than lower range limit, that is, judges that the liquid level of the bottle 8 is unqualified, and certainly, qualified region can be with
Including upper limit boundary, when line of demarcation is prescribed a time limit higher than upper control limit, it also can determine whether that the liquid level of the bottle 8 is unqualified.The position of camera arrangement 3
Fixed when putting, for each bottle 8 of same size, regional extent, angle and the position that camera arrangement 3 is shot are homogeneous
Together, therefore after the lower range limit in qualified region and the positional information of upper limit boundary uniquely determine, it is applicable to judge same
Whether the liquid level of all bottles 8 of specification is qualified.
Preferably, present invention additionally comprises distance detection device 6, distance detection device 6 is arranged on transmission device 1, for calculating
8 transmitting range of bottle and the transmitting range information that sends bottle 8.Meanwhile transmission device 1 includes the first conveyer belt 11 and second
Conveyer belt 12, the first conveyer belt 11 are used to bottle 8 being sequentially delivered to position detecting device 2, camera arrangement 3 and device for eliminating 4,
Second conveyer belt 12 is used to transmit the bottle 8 being removed.It is therefore preferred that distance detection device 6 can use rotary coding
Device, rotary encoder are connected to the drive shaft 111 of the first conveyer belt 11, and rotary encoder is by the transmission distance of the first conveyer belt 11
Transmitting range information is converted to, and the transmission distance of the first conveyer belt 11 is that is, the transmission distance of bottle 8.Preferably, position
The distance for putting detection device 2 to camera arrangement 3 is changeless, is described below for convenience, by the distance definition for take pictures away from
From.Image control processor 5 further includes control module 53 of taking pictures, and control module of taking pictures 53 receives transmitting range information, when taking pictures
Control module 53 judges bottle 8 since detected by position detecting device 2, takes pictures until the distance that bottle 8 was driven is equal to
Apart from when, that is, represent that bottle 8 has arrived at camera arrangement 3, control module of taking pictures at this time 53 sends to camera arrangement 3 and takes pictures finger
Order, camera arrangement 3 take pictures bottle 8.Preferably, image control processor 5 further includes the first starting module 54, and first opens
Dynamic model block 54 receives trigger signal, as soon as the first starting module 54 often receives time trigger signal, to taking pictures, control module 53 is sent out
One-shot is sent to instruct, control module of taking pictures 53 is increased by once judging the flow of transmitting range information.Preferably, position detection
Device 2 and camera arrangement 3 can be arranged on same position, at this time, after position detecting device 2 detects that bottle 8 passes through, dress of taking pictures
Put 2 and can be immediately performed and take pictures.
In the present invention, the time used in the whether qualified deterministic process of liquid level can be ignored, and therefore, work as judgment module
52 judge a certain bottle 8 liquid level it is unqualified when, it is believed that the position of the bottle 8 still when being photographed, i.e. camera arrangement 3
The position at place.Due to the position where camera arrangement 3 and device for eliminating 4 be it is fixed, the position that bottle 8 is photographed with
The distance between device for eliminating 4 is also fixed, is rejecting distance by the distance definition in order to facilitate description.Therefore, only
Judge bottle 8 from the position being photographed, until transmission distance be equal to reject apart from when, you can judged the bottle 8
Reach the position of device for eliminating 4.Preferably, device for eliminating 4 includes bottle hit device 41, hits the startup of control module 42 and second
Module 43.Second starting module 43, which receives to reject, instructs backward control module 42 to send enabled instruction, hits control module 42 i.e.
Start to receive transmitting range information, judge bottle 8 from the position being photographed when hitting control module 42, until transmission
Distance be equal to reject apart from when, hit control module 42 and send execute instruction to bottle hit device 41, bottle hit device 41 hits
Underproof bottle 8.
Preferably, position detecting device 2 use optoelectronic switch or other can be with the sensor of sense object position.
Preferably, the present invention can also include editing machine 7, such as the equipment such as computer, and editing machine 7 is handled with image control
Device 5 connects, for editing the parameter of image control processor 5, distance of taking pictures, rejecting distance, upper limit boundary as described above
With lower range limit etc., allow the system be applicable in the bottle 8 for not sympathizing with specification and all parts position change after situation.
A kind of bottle liquid-level detecting method suitable for retaining wine foam in bottle, comprises the following steps:
Step S1:Some bottles 8 transmit on the first conveyer belt 11 successively, when position detecting device 2 has detected bottle 8
When passing through, the trigger signal of bottle 8 is sent to image control processor 5;
Step S2:Image control processor 5 receives trigger signal and sends photographing instruction, camera arrangement 3 to camera arrangement 3
The wine liquid of bottle 8 and the image of Jiu Mo intersections are shot, and image is sent to image control processor 5;Preferably, in step
In S2, after image control processor 5 receives trigger signal, judge whether bottle 8 reaches the position of camera arrangement 3, if reaching,
Image control processor 5 sends photographing instruction to camera arrangement 3.Specifically, as it was noted above, position detecting device 2 is to taking pictures
The distance of device 3 is fixed, which is defined as distance of taking pictures, when bottle 8 is detected out by position detecting device 2 certainly
Begin, until its distance for being driven be equal to take pictures apart from when, you can judge the position of the arrival camera arrangement 3 of bottle 8, take pictures at this time
Device 3 can take pictures.
Step S3:Image processor judges whether the liquid level of bottle 8 is qualified according to the image received, if unqualified, to
Device for eliminating 4, which is sent, rejects instruction;
Preferably, step S3 is specifically included:
Step S3.1:Image processor is according to the image recognition wine liquid received and the line of demarcation of wine foam;
Step S3.2:Image processor judges that the position in line of demarcation whether beyond qualified region, if exceeding, judges bottle
8 liquid level is unqualified, and is sent to device for eliminating 4 and reject instruction.
Step S4:Device for eliminating 4 rejects the underproof bottle 8 of liquid level after being connected to rejecting instruction.
Preferably, in step s 4, after device for eliminating 4 is connected to rejecting instruction, judge whether bottle 8 reaches device for eliminating 4
Position, if reach, perform reject instruction, device for eliminating 4 reject the underproof bottle 8 of liquid level.Specifically, whether liquid level closes
Time used in the deterministic process of lattice can be ignored, therefore, when judgment module 52 judges that the liquid level of a certain bottle 8 is unqualified
When, it is believed that the bottle 8 is still in the position where camera arrangement 3, due to the position where camera arrangement 3 and device for eliminating 4
It is fixed to put, therefore the distance between the position that is photographed of bottle 8 and device for eliminating 4 are also fixed, by the distance definition
To reject distance.Therefore, as long as judging bottle 8 from the position being photographed, until the distance that bottle 8 is driven, which is equal to, rejects distance
When, you can judge that the bottle 8 has arrived at the position of device for eliminating 4.
Described in the present embodiment it is a kind of suitable for retain in bottle the other structures of 8 liquid level detection system of bottle of wine foam referring to
The prior art.
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention, therefore
Every any modification that without departing from technical solution of the present invention content, the technical spirit according to the present invention makees above example,
Equivalent variations and modification, in the range of still falling within technical solution of the present invention.