CN113433138A - Visual detection method for container foreign matter - Google Patents

Visual detection method for container foreign matter Download PDF

Info

Publication number
CN113433138A
CN113433138A CN202110713896.8A CN202110713896A CN113433138A CN 113433138 A CN113433138 A CN 113433138A CN 202110713896 A CN202110713896 A CN 202110713896A CN 113433138 A CN113433138 A CN 113433138A
Authority
CN
China
Prior art keywords
container
foreign matter
motor
rotation
camera
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
CN202110713896.8A
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.)
Truking Technology Ltd
Original Assignee
Truking Technology 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 Truking Technology Ltd filed Critical Truking Technology Ltd
Priority to CN202110713896.8A priority Critical patent/CN113433138A/en
Publication of CN113433138A publication Critical patent/CN113433138A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/90Investigating the presence of flaws or contamination in a container or its contents

Abstract

The invention discloses a visual detection method of container foreign matters, which comprises a bottle rotating device capable of rotating a container, a motor for driving the bottle rotating device, a controller for controlling the motor, and a camera for photographing the container, and also comprises a detection device for detecting the rotation number of the container, wherein the detection device generates a signal when the container rotates for one or more circles in the process of accelerated rotation or decelerated rotation of the container, the controller controls the camera to photograph according to the signal to finish photograph acquisition, and the controller compares the positions of the foreign matters in a plurality of photographs to judge whether the foreign matters are in the container. The invention adopts the accelerated rotation or the decelerated rotation of the container, the controller controls the camera to take a picture at a fixed point according to the signal when the container rotates for one circle or more, so that the container can take a picture at the same position at different time, and the fixed-point picture taking method of the container in the dynamic rotation can improve the detection rate of large foreign matters and reduce the detection missing risk.

Description

Visual detection method for container foreign matter
Technical Field
The invention relates to a food and medicine packaging machine, in particular to a visual detection method for foreign matters in a container.
Background
The foreign matter detection method of the existing lamp inspection machine comprises the following steps: the bottle is rotated at a high speed and then stopped, the bottle is immediately tracked and photographed after the bottle is stopped, and the foreign matter in the liquid is driven to move by the liquid in the bottle in a decelerating rotation mode, and the sequence pictures shot by the camera are analyzed and detected by an algorithm to judge whether the foreign matter exists or not according to the movement track of the foreign matter.
The large foreign bodies can fall to the bottom of the bottle in the deceleration process of stopping rotating the bottle, so the movement track of the foreign bodies can not be shot when the bottle is still photographed, and the missed detection of the large foreign bodies is easily caused. And the rotating photographing causes extremely high false detection because dirt on the surface of the bottle can form a motion track which is the same as that of a foreign body in the sequence pictures.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a visual detection method for foreign matters in a container, which can improve the detection rate of large foreign matters and reduce the detection missing risk by adopting a method for taking pictures of the container at fixed points in dynamic rotation.
In order to solve the technical problems, the invention adopts the following technical scheme:
the visual detection method of the foreign matter in the container comprises a bottle rotating device capable of rotating the container, a motor for driving the bottle rotating device, a controller for controlling the motor and a camera for photographing the container, and further comprises a detection device for detecting the number of rotation turns of the container, wherein the container rotates in an accelerating or decelerating rotating process, the detection device generates signals when the container rotates for one or more turns, the controller controls the camera to photograph according to the signals, the photograph collection is completed, and the controller compares the positions of the foreign matter in a plurality of photographs and judges whether the foreign matter is in the container.
As a further improvement of the above technical solution, the container is tracked and photographed in the process of acceleration rotation or deceleration rotation, specifically: the container is arranged to rotate to a P position, the detection device generates a trigger pulse signal, the controller controls the camera to shoot the container according to the trigger pulse signal, and the trigger pulse signal is generated once and a picture at the P position is shot every time the container rotates one circle relative to the P position.
As a further improvement of the above technical solution, the motor is a servo motor, and the detection device is an encoder disposed in the servo motor.
As a further improvement of the above technical solution, the detecting device is an angle sensor disposed on the bottle rotating device or the motor.
As a further improvement of the technical scheme, the bottle rotating device comprises a bottle rotating shaft, and the motor is connected with the bottle rotating shaft through a conveying mechanism.
As a further improvement of the technical scheme, the conveying mechanism comprises a belt, a driving wheel and a driven wheel, the driving wheel is connected with an output shaft of the motor, the driven wheel is arranged on the bottle rotating shaft, and the belt is wound on the driving wheel and the driven wheel.
As a further improvement of the technical scheme, a bearing platform is arranged on the rotary bottle shaft.
As a further improvement of the technical scheme, the bottle rotating shaft is provided with a clamping jaw.
As a further improvement of the technical scheme, when the camera takes a picture, the container is irradiated by arranging the light source below the container.
As a further improvement of the above technical solution, the container is pressed by a press head when the container is rotated.
Compared with the prior art, the invention has the advantages that:
the visual detection method for the foreign matters in the container adopts the steps that the container is subjected to accelerated rotation or decelerated rotation, the container is photographed in the accelerated rotation or decelerated rotation process, the controller controls the camera to photograph at a fixed point according to signals when the container rotates for one circle or more, namely, the container is photographed at the same position at different times, whether the foreign matters exist in the container or not is judged according to the positions of the foreign matters in the pictures at the same position at different times, and the fixed-point photographing method for the container in the dynamic rotation can improve the detection rate of the large foreign matters and reduce the detection omission risk.
Drawings
Fig. 1 is a schematic view of a structural part of a visual inspection method of a container foreign matter of the present invention.
FIG. 2 is a comparison of the different angles of the foreign matter inside the bottle and the dirt on the bottle wall when the container is rotated according to the present invention.
FIG. 3 is a graphical representation of the relationship between spinner speed, spinner angle and trigger pulse signal in the present invention.
The reference numerals in the figures denote:
1. a container; 2. a bottle rotating device; 21. a motor; 22. rotating the bottle shaft; 23. a transport mechanism; 231. a belt; 232. a driving wheel; 233. a driven wheel; 24. a bearing platform; 3. a camera; 4. a light source; 5. a pressure head; 6. a foreign matter; 7. bottle wall soil.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples of the specification.
As shown in fig. 1 to fig. 3, the visual inspection method for container foreign matter in this embodiment includes a bottle rotating device 2 capable of rotating a container 1, a motor 21 for driving the bottle rotating device 2, a controller for controlling the motor 21, and a camera 3 for taking a picture of the container 1, and further includes a detection device for detecting the number of rotation turns of the container 1, wherein the detection device generates a signal when the container 1 rotates for one or more turns in the process of acceleration rotation or deceleration rotation, the controller controls the camera 3 to take a picture according to the signal, so as to complete picture collection, and the controller compares the positions of the foreign matter in a plurality of pictures to determine whether the foreign matter is in the container 1.
The detection method is mainly used for detecting the foreign matters 6 in the container 1, and the foreign matters 6 fall to the bottom of the container 1 and are difficult to shoot when the container 1 stops rotating due to the fact that the foreign matters 6 are large in size, so that the container 1 is accelerated or decelerated to rotate, the container 1 is shot at a fixed point in the process of accelerated rotation or decelerated rotation, namely, the controller controls the camera 3 to shoot according to signals when the container 1 rotates for one circle or multiple circles, namely, the container 1 is shot at the same position at different time, and whether the foreign matters 6 exist in the container 1 is judged according to the positions of the foreign matters in the pictures at the same position at different time. By adopting the method of taking pictures of the container 1 at fixed points in dynamic rotation, the detection rate of large foreign matters can be improved, and the detection missing risk is reduced.
Specifically, the container 1 tracks and takes a picture during the acceleration rotation or the deceleration rotation, in this embodiment, taking deceleration as an example, firstly, the motor 21 drives the bottle rotating device 2 to rotate at a speed v1, then, the controller controls the motor 21 to decelerate, the bottle rotating device 2 decelerates to v2, during the deceleration from v1 to v2, the container 1 is set to rotate to the P position, the detection device generates a trigger pulse signal, the controller controls the camera 3 to take a picture of the container 1 according to the trigger pulse signal, the container 1 generates a trigger pulse signal once and takes a picture of the P position every time when rotating for one circle relative to the P position, and the position of the detected foreign matter is analyzed and detected by an algorithm according to the pictures of the P positions at different times to determine whether the foreign matter exists in the container 1. The P position may be a position at any point within 0-360 °. As shown in fig. 2, which shows a sequence diagram of the container 1 at the P position, the container 1 is photographed while rotating, since every circle of the photographed images is the P position (fixed position) of the container 1, the bottle wall dirt 7 on the surface of the container 1 is identical in position in the sequence images, and therefore the bottle wall foreign matter 7 is determined, and the position of the foreign matter 6 is different in each image, which indicates that the foreign matter 6 moves relative to the container 1 during acceleration or deceleration, and therefore the foreign matter 6 is determined to be in the container 1.
In this embodiment, when camera 3 shoots, through set up light source 4 below container 1 and shine container 1, shoot camera 3 and polish, improve the effect of shooing in order to improve and detect the precision.
In this embodiment, the motor 21 is a servo motor, and the detection device is an encoder provided in the servo motor. After the controller controls the servo motor to decelerate, the encoder starts to calculate the number of turns of the container 1, when the number of turns is an integer, a trigger pulse signal is sent to the controller, and the controller controls the camera 3 to take a picture. In addition to the present embodiment, the detecting device may be an angle sensor provided in the bottle-rotating device 2 or the motor 21. The angle sensor detects the rotation angle of the container 1, and when the angle is an integral multiple of 360 degrees, the angle sensor sends a trigger pulse signal to the controller, and the controller controls the camera 3 to take a picture.
In this embodiment, the bottle rotating device 2 includes a bottle rotating shaft 22, and the motor 21 is connected to the bottle rotating shaft 22 through a transmission mechanism 23. The transmission mechanism 23 includes a belt 231, a driving wheel 232 and a driven wheel 233, the driving wheel 232 is connected with an output shaft of the motor 21, the driven wheel 233 is arranged on the bottle rotating shaft 22, and the belt 231 is wound on the driving wheel 232 and the driven wheel 233. Preferably, the spinner shaft 22 is provided with a platform 24 for receiving the container 1 and, in addition, the container 1 is pressed by a press head 5 during rotation of the container 1 to prevent the container 1 from being thrown out. It should be noted that, in addition to this embodiment, the bottle-rotating shaft 22 is provided with a clamping jaw for clamping the container 1, and the solution using the clamping jaw may not need to provide the pressing head 5.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make numerous possible variations and modifications to the present invention, or modify equivalent embodiments to equivalent variations, without departing from the scope of the invention, using the teachings disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (10)

1. A visual detection method for foreign matters in a container comprises a bottle rotating device (2) capable of rotating the container (1), a motor (21) for driving the bottle rotating device (2), a controller for controlling the motor (21) and a camera (3) for taking a picture of the container (1), and is characterized in that: still including detecting container (1) and rotating the detection device of the number of turns, container (1) is in the rotation with higher speed or the rotation at the speed reduction in-process, and detection device produces the signal when container (1) is rotatory round or many rounds, and the controller is shot according to signal control camera (3), accomplishes the photo and gathers, and the controller compares the position of foreign matter in many photos, judges whether the foreign matter is in container (1).
2. The visual inspection method of container foreign matter according to claim 1, characterized in that the container (1) is tracked and photographed during the acceleration rotation or deceleration rotation, specifically: the container (1) is arranged to rotate to a P position, the detection device generates a trigger pulse signal, the controller controls the camera (3) to photograph the container (1) according to the trigger pulse signal, and the trigger pulse signal is generated once and a picture at the P position is photographed every time the container (1) rotates one circle relative to the P position.
3. The visual inspection method of container foreign matter according to claim 1, wherein said motor (21) is a servo motor, and said detection means is an encoder provided in the servo motor.
4. The visual inspection method of container foreign matter according to claim 1, wherein the inspection device is an angle sensor provided on a spinner (2) or a motor (21).
5. The visual inspection method of container foreign matter according to any one of claims 1 to 4, characterized in that the bottle rotating device (2) comprises a bottle rotating shaft (22), and the motor (21) is connected with the bottle rotating shaft (22) through a transmission mechanism (23).
6. The visual detection method of the container foreign matter according to claim 5, wherein the conveying mechanism (23) comprises a belt (231), a driving wheel (232) and a driven wheel (233), the driving wheel (232) is connected with an output shaft of the motor (21), the driven wheel (233) is arranged on the bottle rotating shaft (22), and the belt (231) is wound on the driving wheel (232) and the driven wheel (233).
7. The visual inspection method of container foreign matter according to claim 5, wherein a bearing platform (24) is provided on the bottle rotating shaft (22).
8. The visual inspection method of container foreign matter according to claim 5, wherein a grip jaw is provided on the bottle rotating shaft (22).
9. A visual inspection method of container foreign matter according to any one of claims 1 to 4, characterized in that the container (1) is irradiated by providing a light source (4) under the container (1) when the camera (3) takes a picture.
10. A visual inspection method of container foreign matter according to any one of claims 1 to 4, characterized in that the container (1) is pressed by a pressing head (5) while the container (1) is rotated.
CN202110713896.8A 2021-06-25 2021-06-25 Visual detection method for container foreign matter Pending CN113433138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110713896.8A CN113433138A (en) 2021-06-25 2021-06-25 Visual detection method for container foreign matter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110713896.8A CN113433138A (en) 2021-06-25 2021-06-25 Visual detection method for container foreign matter

Publications (1)

Publication Number Publication Date
CN113433138A true CN113433138A (en) 2021-09-24

Family

ID=77754808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110713896.8A Pending CN113433138A (en) 2021-06-25 2021-06-25 Visual detection method for container foreign matter

Country Status (1)

Country Link
CN (1) CN113433138A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113960057A (en) * 2021-10-18 2022-01-21 成都泓睿科技有限责任公司 Soft bag edge foreign matter detection method and light inspection machine
CN113960056A (en) * 2021-10-18 2022-01-21 成都泓睿科技有限责任公司 Soft bag lamp inspection method and lamp inspection machine

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004226228A (en) * 2003-01-23 2004-08-12 Eisai Co Ltd Method and device for inspecting foreign matter in solution
CN1693884A (en) * 2004-05-09 2005-11-09 刘巨昌 Automatic detection method for foreign body in bottled liquid
CN102384916A (en) * 2011-07-20 2012-03-21 楚天科技股份有限公司 Light detection machine foreign matter detection device and method
CN203025102U (en) * 2012-12-14 2013-06-26 浙江猛凌机电科技有限公司 Bottle rotating mechanism for visible foreign matter detector
CN203178207U (en) * 2013-04-19 2013-09-04 楚天科技股份有限公司 Foreign object detector for automatic light inspection machine
CN103308527A (en) * 2013-05-30 2013-09-18 屈桢深 Detection method and detection system for foreign matters in infusion bottle
CN103575745A (en) * 2012-08-07 2014-02-12 赵锋 Device for detecting foreign matters in bottle body
CN106442559A (en) * 2016-10-29 2017-02-22 孙丽君 Liquid medicine foreign matter detection device
CN106645152A (en) * 2016-12-08 2017-05-10 苏州德创测控科技有限公司 Image collection device
CN112526628A (en) * 2020-11-11 2021-03-19 苏州西斯派克检测科技有限公司 Device and method for detecting suspended foreign matters in rotary transparent container bottle

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004226228A (en) * 2003-01-23 2004-08-12 Eisai Co Ltd Method and device for inspecting foreign matter in solution
CN1693884A (en) * 2004-05-09 2005-11-09 刘巨昌 Automatic detection method for foreign body in bottled liquid
CN102384916A (en) * 2011-07-20 2012-03-21 楚天科技股份有限公司 Light detection machine foreign matter detection device and method
CN103575745A (en) * 2012-08-07 2014-02-12 赵锋 Device for detecting foreign matters in bottle body
CN203025102U (en) * 2012-12-14 2013-06-26 浙江猛凌机电科技有限公司 Bottle rotating mechanism for visible foreign matter detector
CN203178207U (en) * 2013-04-19 2013-09-04 楚天科技股份有限公司 Foreign object detector for automatic light inspection machine
CN103308527A (en) * 2013-05-30 2013-09-18 屈桢深 Detection method and detection system for foreign matters in infusion bottle
CN106442559A (en) * 2016-10-29 2017-02-22 孙丽君 Liquid medicine foreign matter detection device
CN106645152A (en) * 2016-12-08 2017-05-10 苏州德创测控科技有限公司 Image collection device
CN112526628A (en) * 2020-11-11 2021-03-19 苏州西斯派克检测科技有限公司 Device and method for detecting suspended foreign matters in rotary transparent container bottle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴成中等: "基于机器视觉的注射液中不溶异物检测方法研究", 《仪器仪表学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113960057A (en) * 2021-10-18 2022-01-21 成都泓睿科技有限责任公司 Soft bag edge foreign matter detection method and light inspection machine
CN113960056A (en) * 2021-10-18 2022-01-21 成都泓睿科技有限责任公司 Soft bag lamp inspection method and lamp inspection machine

Similar Documents

Publication Publication Date Title
JP3785342B2 (en) Object inspection apparatus and foreign object inspection apparatus in liquid filled in transparent container
CN113433138A (en) Visual detection method for container foreign matter
CN104155310B (en) 360 degree of detection devices of roller open defect and method
CN104007122B (en) Cylinder body side surface detecting device and method based on rotating disc type streamline
CN104259835B (en) Steel ring automatic grasping system
CN100520378C (en) Method and system for detecting medicament of liquid in bottles
US9329135B2 (en) Means for inspecting glass containers for defects
EP1597564B1 (en) Method and system for inspecting packagings
CN101303316B (en) Method and apparatus for automatic detection on large infusion production line
CN101398390A (en) On-line vision detection device for visual foreign body in bottle contained liquid
CN106197273B (en) One kind is with acting rotary vision inspection apparatus
CN106093060A (en) A kind of cylinder products appearance detecting system
US20130070084A1 (en) Foreign Matter Inspection Device and Foreign Matter Inspection Method
CN108405368B (en) A kind of comprehensive automatic detecting machine of intelligent control
JP2008162805A (en) Device and method for inspecting vessel
CN211978716U (en) Full-automatic detection machine for wine foreign matter detection
CN108426893B (en) Abnormity detection method for transparent liquid container
CA3033627A1 (en) Video trigger synchronization for improved particle detection in a vessel
JP2005098832A (en) Specimen inspection apparatus
CN106770339B (en) Rotary workpiece detection device
JP5479018B2 (en) Foreign object inspection apparatus and method
JP2005070013A (en) Foreign substance inspection method of liquid filled in container
CN208037460U (en) A kind of comprehensive detection device of timing positioning
JP4177204B2 (en) Container foreign matter inspection system
CN113138197A (en) Method and device for detecting foreign matter

Legal Events

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