Inspection Equipment

The inspection device addresses image distortion issues by tilting and rotating containers to accurately detect foreign objects using multiple background models, improving detection precision.

JP7544133B2Active Publication Date: 2024-09-03NEC CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2022550305
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-09-03
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

Existing inspection technologies fail to accurately detect foreign objects near the edge of containers due to the cylindrical lens effect, which distorts images and obscures foreign matter, especially when containers have labels.

Method used

An inspection device that tilts and rotates containers about two axes to adjust the relative orientation between the container and the imaging device, using motors to change the photographing location and generate multiple background models for accurate detection.

Benefits of technology

This approach allows for precise detection of foreign substances within containers by minimizing image distortion and ensuring all areas are inspected, enhancing detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007544133000008
    Figure 0007544133000008
  • Figure 0007544133000003
    Figure 0007544133000003
  • Figure 0007544133000014
    Figure 0007544133000014
Patent Text Reader

Abstract

This inspection device comprises a holding part for holding a container filled with a liquid, a tilting part for at least tilting the container being held by the holding part about a first axis, and a changing part for changing a part of the container captured by an imaging device by changing the relative orientation between the container and the imaging device about a second axis that is different from the first axis.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an inspection device, an inspection method, a recording medium, an inspection system, and an information processing device. [Background technology]

[0002] Techniques for detecting foreign objects in a liquid contained in a container are known.

[0003] One of the techniques used to detect foreign bodies is, for example, Patent Document 1. Patent Document 1 describes an inspection device having a rotation means, a control means, and an inspection means. According to Patent Document 1, the control means measures the orientation of a container as a test object, and controls the rotation means so that the container is in a predetermined inspection orientation at the time of inspection at a predetermined inspection position. Then, the inspection means inspects the container when the container reaches the predetermined inspection position. Patent Document 1 also discloses that, although the orientation of the container does not adversely affect the inspection accuracy when a label is not attached, etc., problems with inspection accuracy occur when a label is attached, so that the orientation is controlled.

[0004] Also, as a related technique, for example, there is Patent Document 2. Patent Document 2 describes an inspection device that detects foreign matter based on a first transmission image acquired while a container, which is an inspection bottle, is tilted, and a second transmission image acquired while rotating the container and then stopping the rotation. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2005-98832 A [Patent Document 2] JP 2013-96921 A Summary of the Invention [Problem to be solved by the invention]

[0006] Patent Document 1 states that if a label is not attached, the orientation of the container does not adversely affect the inspection accuracy. However, depending on the shape of the container, the cylindrical lens effect may cause the image near the center of the container to be enlarged in the horizontal direction, while the image near the edge of the container may be reduced in the horizontal direction, or a virtual image may be generated near the edge of the container. As a result, foreign objects near the edge of the container may not be detected.

[0007] Thus, there is a problem that it may not be possible to accurately detect foreign matter present in a container. This problem could not be solved even if the technology described in Patent Document 2 was used.

[0008] SUMMARY OF THE PRESENT EMBODIMENTS An object of the present invention is to provide an inspection device, an inspection method, a recording medium, an inspection system, and an information processing device that are capable of accurately detecting foreign matter present in a container. [Means for solving the problem]

[0009] In order to achieve this object, an inspection apparatus according to one embodiment of the present disclosure includes: A gripping part that grips a container filled with liquid; a tilting portion that at least tilts the container about a first axis while the container is being gripped by the gripping portion; a change unit that changes a relative orientation between the container and the imaging device around a second axis different from the first axis, thereby changing a location of the container photographed by the imaging device; have The structure is as follows.

[0010] In addition, an inspection method according to another aspect of the present disclosure includes: An information processing device, By changing the relative orientation between the container and the imaging device around a second axis different from the first axis, the location of the container photographed by the imaging device is changed, and then the container is at least tilted around the first axis, and then the relative orientation between the container and the imaging device is changed again around the second axis. The structure is as follows.

[0011] In addition, a recording medium according to another embodiment of the present disclosure includes: In the information processing device, By changing the relative orientation between the container and the imaging device around a second axis different from the first axis, the location of the container photographed by the imaging device is changed, and then the container is at least tilted around the first axis, and then the relative orientation between the container and the imaging device is changed again around the second axis. It is a computer-readable recording medium on which a program for implementing processing is recorded.

[0012] In addition, an inspection system according to another embodiment of the present disclosure includes: an inspection device having a gripping unit that grips a container filled with a liquid, a tilting unit that at least tilts the container around a first axis while the gripping unit is gripping the container, and a changing unit that changes the location of the container photographed by the imaging device by changing the relative orientation between the container and the imaging device around a second axis different from the first axis; an imaging device that is installed outside the inspection device and captures an image of the liquid filled in the container; a determination device that detects an object based on image data captured by the imaging device and determines whether the detected object is a foreign object; have The structure is as follows.

[0013] In addition, an information processing device according to another aspect of the present disclosure includes: a background model generating unit that generates a first background model based on the acquired image data and generates a second background model based on image data acquired by changing the photographing location of the container; a detection unit that detects sediment inside the container based on the first background model and detects sediment inside the container based on the second background model; have The structure is as follows.

[0014] In addition, an inspection method according to another aspect of the present disclosure includes: An information processing device, generating a first background model based on the acquired image data, and generating a second background model based on image data acquired by changing a location of the container photographed by changing a relative orientation between the container and the imaging device; Detecting sediment inside the container based on the first background model, and detecting sediment inside the container based on the second background model. The structure is as follows.

[0015] In addition, a recording medium according to another embodiment of the present disclosure includes: In the information processing device, generating a first background model based on the acquired image data, and generating a second background model based on image data acquired by changing a location of the container photographed by changing a relative orientation between the container and the imaging device; Detecting sediment inside the container based on the first background model, and detecting sediment inside the container based on the second background model. It is a computer-readable recording medium on which a program for implementing processing is recorded. Effect of the Invention

[0016] According to the above-mentioned configurations, it is possible to accurately detect foreign matter present in a container. [Brief description of the drawings]

[0017] [Figure 1] 1 is a diagram illustrating an example of the overall configuration of an inspection system according to a first embodiment of the present disclosure. [Diagram 2] 11 is a diagram for explaining an example of a positional relationship between a container and a marker. FIG. [Diagram 3] 1A to 1C are diagrams for explaining an example of the movement of a container around a rotation axis A. [Figure 4] FIG. 13 is a diagram for explaining a region of interest. [Diagram 5]FIG. 2 is a diagram for explaining the position of a rotation axis A. [Figure 6] 13 is a diagram for explaining an example of the movement of the container around a rotation axis B. FIG. [Figure 7] FIG. 13 is a diagram showing an example of a rotation angle timeline. [Figure 8] FIG. 13 is a diagram showing another example of a rotation angle timeline. [Figure 9] FIG. 13 is a diagram for explaining a camera position. [Figure 10] FIG. 1 is a block diagram showing an example of the configuration of a detection and determination device. [Figure 11] 4 is a flowchart showing an example of the overall operation of the inspection system. [Figure 12] 11 is a flowchart illustrating an example of an operation when performing detection using a background model. [Figure 13] 13 is a flowchart showing an example of an operation when performing detection without using a background model. [Figure 14] 13 is a flowchart showing an example of the operation of a determination process when performing detection without using a background model. [Figure 15] FIG. 11 is a diagram illustrating a configuration example of an inspection system according to a second embodiment of the present disclosure. [Figure 16] FIG. 13 is a diagram illustrating another configuration example of the inspection system. [Figure 17] FIG. 13 is a diagram illustrating a configuration example of an inspection device according to a second embodiment of the present disclosure. [Figure 18] FIG. 2 is a diagram illustrating an example of a hardware configuration of an information processing device. [Figure 19] 1 is a block diagram showing an example of the configuration of an information processing device; [Figure 20] 1 is a block diagram showing an example of the configuration of an information processing device; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] [First embodiment] A first embodiment of the present disclosure will be described with reference to FIG. 1 to FIG. 14. FIG. 1 is a diagram showing an example of the overall configuration of an inspection system 100. FIG. 2 is a diagram for explaining an example of the positional relationship between a container 500 and a marker 230. FIG. 3 is a diagram for explaining an example of the movement of a container 500 centered on a rotation axis A. FIG. 4 is a diagram for explaining a region of interest. FIG. 5 is a diagram for explaining the position of the rotation axis A. FIG. 6 is a diagram for explaining an example of the movement of a container 500 centered on a rotation axis B. FIGS. 7 and 8 are diagrams showing an example of a rotation angle timeline. FIG. 9 is a diagram for explaining the position of a camera 300. FIG. 10 is a block diagram showing an example of the configuration of a detection and determination device 400. FIG. 11 is a flowchart showing an overall operation example of the inspection system 100. FIG. 12 is a flowchart showing an operation example of the detection and determination device 400 when performing detection using a background model. FIGS. 13 and 14 are flowcharts showing an operation example of the detection and determination device 400 when performing detection without using a background model.

[0019] In the first embodiment of the present disclosure, an inspection system 100 is described which detects objects contained inside a container 500 filled with a liquid such as water or a medicine, and determines whether the detected objects are foreign objects such as hair or glass fragments. As described below, the inspection system 100 has a two-axis rotation means. By controlling each of the two-axis rotation means, the inspection system 100 changes the relative orientation between the container 500 and the camera 300, thereby changing the photographing location of the container 500 and tilting and rocking the grasped container 500.

[0020] In this embodiment, the side of the container 500 in the state shown in Fig. 1 that is filled with liquid is defined as the upper side, and the opposite side is defined as the lower side. In the case of Fig. 1, the liquid filled inside the container 500 is pooled on the lower side of the container 500.

[0021] In addition, in this embodiment, a case will be described in which the inspection device 200 has a marker 230, which will be described later. However, the present invention is applicable to cases other than the case in which the inspection device 200 has the marker 230. In other words, the inspection device 200 does not have to have the marker 230.

[0022] Fig. 1 is a side view showing an example of the overall configuration of an inspection system 100. Referring to Fig. 1, the inspection system 100 includes, for example, an inspection device 200 having a motor 240 and a motor 250 as a rotation means, a camera 300, and a detection and determination device 400. As shown in Fig. 1, the camera 300 and the detection and determination device 400 are connected to each other by wire or wirelessly so as to be able to communicate with each other. In addition, the detection and determination device 400 or the camera 300 is connected to a rotation control unit 260 of the inspection device 200 by wire or wirelessly so as to be able to communicate with each other.

[0023] The inspection device 200 is a device that tilts, swings, and rotates the container 500 filled with liquid while pinching and gripping the container 500 from above and below. The inspection device 200 in this embodiment swings the container 500 around a rotation axis A that is an axis parallel to the camera line of sight, and rotates the container 500 around a rotation axis B that is an axis that passes vertically through the center of the container 500. That is, the inspection device 200 has a two-axis rotation means. As described below, the inspection device 200 rotates the container 500 around the rotation axis B, thereby changing the relative orientation of the container 500 and the camera 300 to change the photographing location of the container 500. As a result, the photographing location of the container 500 changes, such as a part that was at the edge of the container 500 as seen from the camera 300 before the rotation coming near the center of the container 500 as seen from the camera 300 after the rotation. Moreover, the inspection device 200 tilts and swings the container 500 about the rotation axis A, thereby causing foreign matter present in the container 500 to fly up.

[0024] Fig. 1 shows a configuration example of an inspection device 200. Referring to Fig. 1, the inspection device 200 has, for example, a main body 210 including a gripping unit consisting of an upper gripping unit 213 and a lower gripping unit 214, a surface illuminator 220, a marker 230, a motor 240, a motor 250, and a rotation control unit 260.

[0025] The main body 210 tilts and swings in response to the rotation of the motor 240 functioning as a rotating means. For example, the main body 210 has a rectangular shape when viewed from the front. In this embodiment, the material from which the main body 210 is formed is not particularly limited. The main body 210 may be formed from any material, such as resin or metal. The shape of the main body 210 may also be other than the above-mentioned examples.

[0026] Fig. 1 shows an example of the main body 210 as viewed from the side. Referring to Fig. 1, the main body 210 is formed of, for example, a flat plate portion 211 connected to the motor 240, an arm portion 212 extending from an upper end and a lower end of the flat plate portion 211 toward the opposite side to the side where the motor 240 is located, and a gripping portion formed at the end of the arm portion 212 opposite to the side where the motor 240 is located, and configured to pinch and grip the container 500.

[0027] The gripping portion includes an upper gripping portion 213 that protrudes downward from an arm portion 212 formed on the upper side and abuts against the upper side (the side to be filled with liquid) of the container 500, and a lower gripping portion 214 that protrudes upward from the arm portion 212 formed on the lower side and abuts against the lower side of the container 500. As shown in Fig. 1, the upper gripping portion 213 abuts against the container 500 from above the container 500, and the lower gripping portion 214 abuts against the container 500 from below the container 500, so that the gripping portions hold the container 500 in a vertical direction and grip the container 500.

[0028] Further, the gripping unit grips the container 500 so as to be able to rotate the container 500 around the rotation axis B in response to the rotation of the motor 250. For example, the upper gripping unit 213 includes a rotating unit that rotates around the rotation axis B in response to the rotation of the motor 250, and the lower gripping unit 214 includes a rotating unit that rotates around the rotation axis B in response to the rotation of the gripped container 500. For example, with the configuration as exemplified above, the gripping unit grips the container 500 so as to be able to rotate the container 500 around the rotation axis B in response to the rotation of the motor 250. Note that the rotation of the container 500 around the rotation axis B may be realized by a configuration other than the above example.

[0029] The upper gripping portion 213 and the lower gripping portion 214 can be configured to have adjustable lengths. By configuring the upper gripping portion 213 and the lower gripping portion 214 to have adjustable lengths, containers 500 of various sizes can be gripped, and it becomes possible to easily adjust the position (height adjustment) when the gripping portion grips the container 500. The length adjustment function may be realized by using a known means, for example, by configuring the upper gripping portion 213 and the lower gripping portion 214 from a first portion and a second portion, making the first portion and the second portion slidable, and making them fixable at any position.

[0030] The surface illuminator 220 (illumination) irradiates light onto the liquid filled in the container 500. For example, the surface illuminator 220 has a shape corresponding to the shape of the main body 210, such as a rectangular shape when viewed from the front. The surface illuminator 220 may have a shape other than that exemplified.

[0031] For example, the surface illuminator 220 is installed on the opposite side to the side where the camera 300 is installed, as viewed from the container 500 and the gripping part. For example, referring to Fig. 1, the surface illuminator 220 is installed on the surface of the flat plate-shaped part 211 constituting the main body part 210, opposite to the side where the motor 240 is located. With this configuration, the surface illuminator 220 irradiates light to the camera 300 through the container 500. In other words, it can be said that the surface illuminator 220 is installed on the main body part 210 so as to irradiate light to the camera 300 through the container 500.

[0032] In addition, since the surface illumination 220 is installed on the flat plate-like portion 211 of the main body 210, it can be said that the surface illumination 220 is integrally configured with the main body 210 including the upper gripping portion 213 and the lower gripping portion 214. Therefore, for example, when the container 500 held by the upper gripping portion 213 and the lower gripping portion 214 is tilted, the surface illumination 220 also tilts in synchronization with the tilt of the container 500.

[0033] Marker 230 is a mechanism for making it possible to acquire a rotation angle based on image data captured by camera 300. Marker 230 is, for example, a rectangular or circular light-opaque film having a size of about 0.5 mm square, and is placed at a predetermined position on surface illumination 220. Marker 230 may be a two-dimensional code containing any information.

[0034] The markers 230 are installed at predetermined positions on the surface illumination 220 so that at least one marker 230 is captured in the image data acquired by the fixedly installed camera 300 even when the container 500 is tilted. FIG. 2 shows an example of the installation positions of the markers 230. For example, in the case of the example shown in FIG. 2, the markers 230 are set at two positions: a position outside the container 500 and near the left side surface of the container 500, and a position outside the container 500 and near the right side surface of the container 500, when the container 500 is not tilted. In addition, in the case of the example shown in FIG. 2, the markers 230 are provided at a height approximately equal to the height of the rotation axis A, which is the axis when tilting the container 500.

[0035] Note that the positions at which the markers 230 are placed may be other than those exemplified above, so long as at least one marker 230 is visible in an image capturing the liquid even when the container 500 is tilted. The number of markers 230 placed may also be determined arbitrarily, such as one, three or more.

[0036] Furthermore, the marker 230 may be provided at a location other than the surface illumination 220, so long as the marker 230 is a location that moves in synchronization with the main body 210 including the upper gripping portion 213 and the lower gripping portion 214. For example, the marker 230 may be realized by a protrusion that protrudes toward the container 500 from a location of the main body 210 that is located on the side surface of the container 500 when the container 500 is gripped. The marker 230 may be realized by a method other than the above-mentioned examples.

[0037] The motor 240 functions as a rotation means that tilts the main body 210 by rotating in response to power supplied from the outside, and tilts and rocks the container 500 held by the upper gripping part 213 and the lower gripping part 214. In other words, the motor 240 functions as a tilting part that at least tilts the container 500 about the rotation axis A, which is the first axis. In this embodiment, the motor 240 tilts and rocks the container 500 about the rotation axis A in response to an instruction from the rotation control part 260. For example, the motor 240 is connected to the flat plate-shaped part 211 of the main body 210, and the motor 240 can rotate to tilt and rock the main body 210.

[0038] FIG. 3 shows an example of a state in which the container 500 held by the upper gripping part 213 and the lower gripping part 214 is tilted. As shown in FIG. 3, the motor 240 can tilt the container 500 in a forward direction (e.g., counterclockwise direction) when viewed from the front, and can tilt the container 500 in a reverse direction (e.g., clockwise direction). As an example, the motor 240 can tilt and swing the container 500 around the rotation axis A so that the state of the container 500 transitions in the following order: a state in which the container 500 is not tilted (0 degrees), a state in which the container 500 is tilted 90 degrees in the forward direction, a state in which the container 500 is not tilted, a state in which the container 500 is tilted 90 degrees in the reverse direction, and a state in which the container 500 is not tilted. In other words, the motor 240 can swing the container 500 around the rotation axis A while switching between forward and reverse directions.

[0039] Here, when capturing image data by the camera 300, it is desirable that the region of interest (inside the liquid and the bottom of the bottle) as shown in FIG. 4 is efficiently contained within the angle of view of the camera 300 even when the container 500 is tilted. For this reason, it is desirable that the rotation axis A is aligned with the liquid surface height B or the liquid center height C (or between the liquid surface height B and the liquid center height C) when the container 500 is not tilted, as shown in FIG. 5, for example, rather than the center height A of the container 500 when the container 500 is not tilted. For example, in the case of the inspection device 200 described in this embodiment, the rotation axis A that is the center when the main body 210, the held container 500, etc. are tilted is determined according to the location where the motor 240 and the flat plate-like part 211 are connected. In addition, by adjusting the length of the upper gripping part 213 and the lower gripping part 214, the positional relationship between the rotation axis A and the container 500 or the liquid filled inside the container 500 can be adjusted. Therefore, it can be said that it is desirable that the point where the motor 240 and the flat portion 211 are connected and the lengths of the upper gripping portion 213 and the lower gripping portion 214 are predetermined or appropriately modified depending on the size of the container 500, the amount of liquid such as the liquid level height B and the liquid center height C, etc., so that the position of the rotation axis A is at a desired position.

[0040] The angle at which the motor 240 tilts the container 500 is not limited to 90 degrees. The angle at which the motor 240 tilts the container 500 may be determined as appropriate depending on, for example, the properties of the liquid filled inside the container 500 or the characteristics of foreign matter to be detected. When tilting the container 500 in the forward rotation direction and the reverse rotation direction, the angle at which the container 500 is tilted in the forward rotation direction and the angle at which the container is tilted in the reverse rotation direction and the speed at which the container 500 is tilted in each direction may be different. After tilting the container 500, the container 500 may be stopped in the tilted state for a predetermined time.

[0041] For example, the inventors of the present application conducted experiments and found that when container 500 is approximately half-filled with low-viscosity liquid, and container 500 is tilted from an untilted state to θ1 degrees in the forward direction at speed v1, stopped for T1 seconds, then tilted to θ2 degrees in the reverse direction at speed v2 (i.e., tilted to -θ2 degrees), and then stopped for T2 seconds and returned to an untilted state at speed v3, foreign matter with different specific gravities and sizes is likely to float in the liquid if the various values ​​have the following relationship. θ1≧θ2 (for example, θ1=110 degrees, θ2=80 degrees) v2 ≧ v1 > v3 (for example, v3 is about half of v2) T1 ≥ T2 (for example, T1 = 0.5 seconds, T2 = 0.3 seconds)

[0042] The motor 240 may tilt the container 500 as exemplified above in response to an instruction from the rotation control unit 260. Furthermore, the operation of the motor 240 may be a part of the operation exemplified above.

[0043] The motor 250 rotates itself in response to power supplied from the outside, thereby rotating the container 500 held by the upper gripping part 213 and the lower gripping part 214 about the rotation axis B. In other words, the motor 250 functions as a change unit that changes the photographing location of the container 500 by the camera 300 by rotating the container 500 about the rotation axis B, which is a second axis different from the first axis. In the case of this embodiment, the motor 250 rotates the container 500 in response to an instruction from the rotation control unit 260, similar to the motor 240. For example, the motor 250 is connected to a rotating part included in the upper gripping part 213 of the main body part 210, and the motor 250 rotates to rotate the rotating part, thereby rotating the container 500 about the rotation axis B.

[0044] FIG. 6 shows an example of a state in which the container 500 is rotated around the rotation axis B. As shown in FIG. 6, the motor 250 rotates the container 500 in a forward direction (for example, counterclockwise direction) when viewed in a plan view. As an example, the motor 250 can rotate the container 500 around the rotation axis B so that the state of the container 500 transitions in the following order: a state in which the container 500 is not rotating (0 degrees), a state in which the container 500 is rotated 90 degrees in the forward direction, and a state in which the container 500 is not rotating (0 degrees). In this way, when the container 500 is rotated 90 degrees around the rotation axis B, a portion that was near the edge of the container 500 as viewed from the camera 300 before the rotation comes to be near the center of the container 500 as viewed from the camera 300 after the rotation. For example, if the size of the container 500 is about 4 cm in diameter, foreign matter cannot be detected due to the cylindrical lens effect at about 5 to 6 mm from the edge of the container. By rotating as described above, even if a foreign object is present in a region where it cannot be detected before or after the rotation, it is possible to detect the foreign object before or after the rotation.

[0045] The speed at which the motor 240 tilts and rocks the container 500 and the speed at which the motor 250 rotates the container 500 are different, for example. For example, the motor 250 rotates the container 500 slowly (for example, at a predetermined speed) so as not to stir up foreign matter present inside the container 500. In other words, the motor 250 rotates the container 500 so as not to affect the rotation by the motor 250 when inspecting for foreign matter. If foreign matter is stirred up by the rotation by the motor 250, it is assumed that the foreign matter will be stirred up due to factors other than the tilt and rocking by the motor 240, and the accuracy of distinguishing foreign matter and air bubbles will decrease. Therefore, the motor 250 rotates the container 500 slowly so that the rotation by the motor 250 will not affect the inspection as much as possible. The specific rotation speed may be adjusted as appropriate.

[0046] The rotation control unit 260 is an information processing device that controls the rotation of the motor 240 and the motor 250. For example, the rotation control unit 260 starts rotation control to rotate the motor 240 and the motor 250 in a predetermined order in response to a start instruction from a start / end instruction unit 441 described later. That is, the rotation control unit 260 performs rotation control according to a program that is predetermined and stored in a storage device owned by the rotation control unit 260, etc., in response to the start instruction. Furthermore, the rotation control unit 260 ends the rotation control when the rotation control in the predetermined order has been performed to the end, when an end instruction is received from the start / end instruction unit 441, etc.

[0047] FIG. 7 shows an example of control by the rotation control unit 260. Referring to FIG. 7, the rotation control unit 260 waits for a predetermined time in response to a rotation instruction. During the wait, the detection and determination device 400 described later generates a first background model (or the camera 300 acquires image data for generation). After waiting for the predetermined time, the rotation control unit 260 rotates the container 500 by 90 degrees using the motor 250. After the motor 250 rotates, the rotation control unit 260 waits for a predetermined time. During the wait, the detection and determination device 400 generates a second background model (or the camera 300 acquires image data for generation). After waiting for the predetermined time, the rotation control unit 260 tilts and swings the motor 240. After the tilt and swing by the motor 240, the rotation control unit 260 waits for a predetermined time. During the wait, the detection and determination device 400 performs detection using the generated second background model. Furthermore, after waiting for a predetermined time, the rotation control unit 260 rotates the container 500 by −90 degrees using the motor 250. This causes the container 500 to return to the state before the rotation. After the container 500 has rotated by −90 degrees, the discrimination device performs detection using the first background model.

[0048] For example, as described above, the rotation control unit 260 rotates the motor 240 and the motor 250 according to a predetermined sequence. The waiting time at each timing may be set arbitrarily. The waiting times may be the same or different. The detection and determination device 400 described later generates a background model at each timing and performs detection using the generated background model. As described later, the detection and determination device 400 performs detection using a background model as well as detection and determination processing without using a background model. The detection and determination processing without using a background model is started, for example, when the motor 240 starts tilting and rocking, as described later, and continues until the end of detection using the first background model.

[0049] Note that FIG. 7 shows an example of control by the rotation control unit 260, and the control by the rotation control unit 260 is not limited to the case shown in FIG. 7. For example, in FIG. 7, detection using a background model is started immediately after the tilting and rocking by the motor 240 or the rotation of the container 500 by the motor 250. However, it may be configured so that detection by the detection and determination device 400 is performed after a predetermined time has elapsed after the tilting and rocking by the motor 240 or the rotation of the container 500 by the motor 250 has ended. Also, in FIG. 7, the speed when the motor 250 rotates the container 500 by 90 degrees is the same as when the motor 250 rotates the container 500 by -90 degrees. However, the speed when the motor 250 rotates the container 500 by 90 degrees may be different from the speed when the motor 250 rotates the container 500 by -90 degrees. For example, the speed when the motor 250 rotates the container 500 by 90 degrees may be slower than the speed when the motor 250 rotates the container by -90 degrees. By slowing down the speed at which motor 250 rotates container 500 by 90 degrees, it is possible to prevent foreign matter inside container 500 from being stirred up by the rotation by motor 250 between the generation of the first background model and the generation of the second background model.

[0050] The rotation control unit 260 may tilt and swing the motor 240 so that the above-mentioned foreign matter having different specific gravities and sizes is easily suspended in the liquid. For example, FIG. 8 shows an example of control when tilting and swinging the motor 240 so that the foreign matter having different specific gravities and sizes is easily suspended in the liquid. Referring to FIG. 8, the rotation control unit 260 controls the motor 240 so that the container 500 is tilted from a state in which the container 500 is not tilted to θ1 degrees in the forward direction at a speed v1 around the rotation axis A, and after stopping for T1 seconds, the container 500 is tilted to θ2 degrees in the reverse direction at a speed v2, and after stopping for T2 seconds, the container 500 returns to a state in which the container 500 is not tilted at a speed v3. In this case, θ1≧θ2 (for example, θ1=110 degrees, θ2=80 degrees), v2≧v1>v3 (for example, v3 is about half of v2), and T1≧T2 (for example, T1=0.5 seconds, T2=0.3 seconds). As an example, the rotation control unit 260 may perform control as shown in FIG.

[0051] The camera 300 is an imaging device that captures an image of the container 500 to obtain image data. For example, the camera 300 is installed in advance at a predetermined position on the opposite side of the upper gripping part 213 and the lower gripping part 214 from the side where the surface illumination 220 is located. As shown in FIG. 1, the inspection device 200 and the camera 300 are not integrally configured. Therefore, the camera 300 does not tilt even if the main body part 210 or the like is tilted. That is, in the case of this embodiment, the camera 300 acquires image data while being fixed in a previously installed position.

[0052] For example, camera 300 acquires image data at a high frame rate of about 150 to 200 fps in response to a start instruction from start / end instruction unit 441, which will be described later. Then, camera 300 transmits the acquired image data together with information indicating the image capturing time to detection / determination device 400. Camera 300 may acquire image data at a frame rate other than the above example.

[0053] It should be noted that foreign matter in the liquid filled inside the container 500 is likely to be present in the area of ​​interest (i.e., in the liquid or at the bottom of the bottle) as shown in FIG. 4. Therefore, it is desirable to install the camera 300 so that it can efficiently capture an image of the area of ​​interest. For example, it is desirable to determine the installation position of the camera 300 so that the center of the camera 300 is higher than the bottom end of the container 500 and the entire bottom surface (bottle bottom) of the container 500 is captured from as close as possible within a range where the depth of field can be maintained. It is also desirable to use a wide-angle lens for the camera 300. By installing the camera 300 in this manner, it becomes possible to detect foreign matter that has a large mass and does not float, without missing any of them.

[0054] Moreover, it is desirable to install camera 300 so that the area where the liquid surface overlaps with the liquid inside is as small as possible within the range in which the entire liquid filled inside container 500 is captured. For example, it is desirable to install camera 300 so that it captures an image from as horizontal a direction as possible to the liquid surface.

[0055] To sum up, it is desirable to install the camera 300 in a position as shown in Fig. 9. Referring to Fig. 9, it can be seen that the height of the center of the camera 300 is installed at a position below the liquid level and higher than the bottom of the bottle, so that the entire bottom of the bottle is captured. It can also be seen that the height of the center of the camera 300 is below the liquid level, and the camera 300 is installed so that it is as close to the liquid level as possible.

[0056] The detection and determination device 400 is an information processing device that performs processing such as detecting objects mixed in the container 500 filled with liquid and determining whether it is a foreign object based on image data captured and acquired by the camera 300. For example, the detection and determination device 400 generates a background model before and after rotation by the motor 250, and detects precipitates using the generated background model. The detection and determination device 400 also performs a determination of a foreign object without using a background model, based on the results of tracking the detected object. In this embodiment, precipitate refers to a solid that exists at the bottom of the liquid.

[0057] Fig. 10 shows a configuration example of the detection and determination device 400. Referring to Fig. 10, the detection and determination device 400 has, as main components, for example, a screen display unit 410, a communication I / F unit 420, a storage unit 430, and an arithmetic processing unit 440. Note that the detection and determination device 400 may have a configuration other than the above example, such as having an operation input unit such as a keyboard or a mouse that accepts input operations from an operator.

[0058] The screen display unit 410 is composed of a screen display device such as an LCD (Liquid Crystal Display). In response to an instruction from the calculation processing unit 440, the screen display unit 410 can display various information stored in the storage unit 430, such as image information 431, background information 432, tracking information 433, and judgment result information 434, on the screen.

[0059] The communication I / F unit 420 is made up of a data communication circuit and performs data communication with the camera 300, the rotation control unit 260, an external device, and the like, which are connected via a communication line.

[0060] The storage unit 430 is a storage device such as a hard disk or a memory. The storage unit 430 stores processing information and a program 435 required for various processes in the arithmetic processing unit 440. The program 435 is read into the arithmetic processing unit 440 and executed to realize various processing units. The program 435 is read in advance from an external device or a recording medium via a data input / output function such as the communication I / F unit 420, and is stored in the storage unit 430. Main information stored in the storage unit 430 includes, for example, image information 431, background information 432, tracking information 433, and determination result information 434.

[0061] The image information 431 includes image data acquired by the camera 300. In the image information 431, for example, the image data is associated with information indicating the date and time when the image data was acquired by the camera 300 (information indicating the image capture time).

[0062] The background information 432 includes a background model generated by the background model generating unit 443. As described above, the generated background models include a first background model and a second background model. Therefore, the background information 432 includes the first background model and the second background model.

[0063] 7, the first background model is generated based on image data acquired after a start instruction and before motor 250 starts rotating container 500. The second background model is generated based on image data acquired after motor 250 rotates container 500 by 90 degrees and before motor 240 rotates container 500. Due to this relationship, the appearance of container 500 will be different between the first background model and the second background model, for example, an edge portion of container 500 in the first background model will be located near the center of container 500 in the second background model.

[0064] The tracking information 433 includes information according to the results of tracking performed by the tracking unit 446. For example, in the tracking information 433, identification information given to each object is associated with time-series information indicating the position of the object. The time-series information indicating the position of the object includes, for example, time information and position information such as coordinates indicating the position of the object at each time.

[0065] The tracking information 433 may include time series information other than the position of the object, such as, for example, angle information indicating the angle of the container 500 and information indicating the area of ​​the detection region. Furthermore, position information such as coordinates indicating the position of the object may indicate XY coordinates in each image data, or may indicate coordinates obtained by correcting the XY coordinates in each image data based on information indicating the angle of the container 500 (for example, coordinates corrected to a position when the container 500 is not tilted).

[0066] The determination result information 434 includes information indicating the result of the determination made by the determination unit 448. For example, in the determination result information 434, identification information given to each object is associated with information indicating the result of the determination made by the determination unit 448 based on the tracking information 433. In other words, the determination result information 434 includes information indicating whether the detected object corresponds to a foreign object, an air bubble, a scratch or stain on a container, a sediment, or the like.

[0067] The arithmetic processing unit 440 has an arithmetic device such as a CPU and its peripheral circuits. The arithmetic processing unit 440 reads and executes a program 435 from the storage unit 430, thereby implementing various processing units by making the above hardware and the program 435 work together. Major processing units implemented by the arithmetic processing unit 440 include, for example, a start / end instruction unit 441, an image acquisition unit 442, a background model generation unit 443, a precipitate detection unit 444, a detection unit 445, a tracking unit 446, an angle information acquisition unit 447, a determination unit 448, and an output unit 449.

[0068] Start / end instruction unit 441 transmits a start instruction or an end instruction to rotation control unit 260, camera 300, etc. For example, start / end instruction unit 441 transmits a start instruction to rotation control unit 260 or camera 300 in response to an instruction from an external device or receipt of an input via an operation input unit. In addition, for example, start / end instruction unit 441 transmits an end instruction to rotation control unit 260 or camera 300 when it receives an instruction from an external device or the operation input unit, when determination unit 448 determines a predetermined object such as a foreign object, when precipitate detection unit 444 detects precipitate, etc.

[0069] The timing at which the start / end instruction unit 441 transmits the start instruction or the end instruction may be other than those exemplified above. For example, the start / end instruction unit 441 may transmit the start instruction when the container 500 is detected by the camera 300 or the like.

[0070] Image acquisition unit 442 acquires image data acquired by camera 300 from camera 300 via communication I / F unit 420. Then, image acquisition unit 442 stores the acquired image data in storage unit 430 as image information 431 in association with, for example, the acquisition date and time of the image data (information indicating the image capture time).

[0071] Background model generation unit 443 generates a background model based on image data included in image information 431. For example, background model generation unit 443 generates a first background model and a second background model based on the image data.

[0072] Specifically, for example, as shown in FIG. 7, the background model generating unit 443 generates a first background model based on image data acquired after a start instruction and before the motor 250 starts rotating the container 500. The background model generating unit 443 may generate the first background model using a known method, such as using pixel values ​​of the image data or performing a predetermined calculation based on pixel values. In addition, the background model generating unit 443 generates a second background model based on image data acquired after the motor 250 rotates the container 500 by 90 degrees and before the motor 240 rotates the container 500. As in the case of the first background model, the background model generating unit 443 may generate the second background model using a known method, such as using pixel values ​​of the image data or performing a predetermined calculation based on pixel values.

[0073] For example, detection and determination device 400 has information indicating in what order rotation control unit 260 performs rotation control. Therefore, background model generation unit 443 can determine the timing at which image data was acquired by referring to the above information, information indicating the date and time when image data was acquired, and the time when a start instruction was transmitted. Background model generation unit 443 may determine the timing at which image data was acquired by using a method other than the above example.

[0074] The precipitate detection unit 444 detects precipitate based on the image information 431 and the background information 432. For example, the precipitate detection unit 444 detects precipitate that is present below a predetermined position in the container 500 by performing difference extraction using a background model included in the background information 432.

[0075] As described above, detection by the deposit detection unit 444 is performed based on image data acquired at a predetermined timing. Specifically, as shown in Fig. 7, the deposit detection unit 444 detects deposits by extracting the difference between image data acquired after tilting / swinging by the motor 240 and before rotation by the motor 250, and the second background model. In addition, the deposit detection unit 444 detects deposits by extracting the difference between image data acquired after the motor 250 rotates the container 500 by -90 degrees and until a predetermined time has elapsed, and the first background model.

[0076] As with the background model generation unit 443, the precipitate detection unit 444 can determine when the image data was acquired by referring to the above-mentioned information, information indicating the date and time when the image data was acquired, the time when the start instruction was transmitted, etc. Furthermore, the precipitate detection unit 444 can assign identification information such as an ID to the detected precipitate. Furthermore, the precipitate detection unit 444 may store the detection result in the storage unit 430 as determination result information 434.

[0077] Based on the image data, the detection unit 445 detects an object present in the container 500 or in an area corresponding to the liquid filled in the container 500. For example, the detection unit 445 performs a binarization process on the image data and detects the object based on the result of the binarization process. Note that the detection unit 445 may detect the object using other known techniques.

[0078] The tracking unit 446 tracks the object detected by the detection unit 445. As described above, the camera 300 acquires image data at a high frame rate such as 200 fps. Therefore, it is assumed that the position of the same object is very close between two pieces of image data whose image capturing times are consecutive (the image capturing times are closer than a predetermined value). Therefore, the tracking unit 446 compares the position of the object detected by the detection unit 445 with the position of the object detected by the detection unit 445 in the image data whose image capturing time is one image before (or within a predetermined value). Then, when there is an object whose distance between the objects is equal to or less than a predetermined threshold, the tracking unit 446 determines that the object detected by the detection unit 445 whose distance is equal to or less than the threshold and the object detected by the detection unit 445 in the image data whose image capturing time is one image before are the same object. In this case, the tracking unit 446 assigns, to the object detected by the detection unit 445, identification information such as an ID that is assigned to objects determined to be the same object. On the other hand, if there is no object whose distance from the object detected by the detection unit 445 is equal to or less than a predetermined threshold in the image data captured immediately before (or within a predetermined value), the tracking unit 446 determines that a new object has been detected. In this case, the tracking unit 446 assigns identification information such as a new ID to the detected object.

[0079] For example, as described above, the tracking unit 446 performs tracking based on the distance between objects in different image data, thereby providing identification information to the object detected by the detection unit 445. The tracking unit 446 also acquires coordinates indicating the position of the object detected by the detection unit 445. The tracking unit 446 then associates the identification information with time information indicating the image capture time of the image data and the coordinates, and stores the result as tracking information 433 in the storage unit 430. The tracking unit 446 may store the XY coordinates in the image data as the tracking information 433 in the storage unit 430, or may store the coordinates obtained by correcting the XY coordinates in each image data based on information indicating the angle of the container 500 acquired by the angle information acquisition unit 447 (for example, coordinates corrected to a position when the container 500 is not tilted) in the storage unit 430 as the tracking information 433.

[0080] The angle information acquisition unit 447 acquires angle information indicating the angle at which the container 500 is tilted based on the position of the marker 230 in the image data. For example, calibration between the tilt angle of the container 500 and the position of the marker 230 in the image data is performed in advance. Therefore, the angle information acquisition unit 447 can acquire angle information indicating the angle at which the container 500 is tilted based on the position of the marker 230 in the image data.

[0081] When the angle information acquisition unit 447 acquires the angle information, it can store the acquired angle information together with time information indicating the imaging time of the image data in the storage unit 430. As described above, the angle information acquisition unit 447 may store the angle information in the storage unit 430 as one piece of information included in the tracking information 433.

[0082] The determination unit 448 determines whether the object detected by the detection unit 445 is an air bubble, a foreign object, or a scratch, stain, or attachment on the container 500, based on the tracking information 433. In the case of this embodiment, the determination unit 448 can perform a determination based on time series information while the container 500 is rocking, and a determination based on time series information after the rocking has ended (i.e., after the container 500 has stopped in the state shown in FIG. 1). The determination unit 448 can determine whether the container 500 is rocking or not, based on angle information included in the tracking information 433, etc.

[0083] For example, the determination unit 448 determines whether the object detected by the detection unit 445 is a scratch or stain on the container 500, or an attachment attached to the container 500, based on the time series information of the tracking information 433 during the rocking of the container 500. As described above, the marker 230 is installed on the surface lighting 220 installed on the main body 210 that tilts in synchronization with the container 500. Therefore, scratches and stains on the container 500, attachments located outside the filled liquid, etc. move in conjunction with the movement of the marker 230. For example, the above-mentioned linkage means that they are completely linked so that when the marker 230 starts moving, scratches and stains on the container 500, attachments located outside the filled liquid, etc. immediately start moving, and when the marker 230 stops moving, scratches and stains on the container 500, attachments located outside the filled liquid, etc. immediately stop moving. Therefore, based on the time-series information while the container 500 is rocking, the determination unit 448 determines that, among the objects detected by the detection unit 445, an object that moves in conjunction with the movement of the marker 230 is a scratch, stain, or attachment to the container 500. On the other hand, among the objects detected by the detection unit 445, the determination unit 448 determines that an object whose movement is not in conjunction with the movement of the marker 230 is not a scratch, stain, or attachment to the container 500. In other words, the determination unit 448 determines that the object that is not in conjunction with the movement of the marker 230 may be an air bubble or a foreign object.

[0084] Further, the determination unit 448 determines whether the object detected by the detection unit 445 is an air bubble or a foreign object based on the time series information after the rocking has ended among the tracking information 433. The determination unit 448 can perform the above determination on all objects detected by the detection unit 445, excluding objects determined by the determination unit 448 to be scratches, stains, or deposits on the container. For example, when the determination unit 448 determines that the object is moving upward based on the time series information after the rocking has stopped, the determination unit 448 determines that the object is an air bubble. On the other hand, when the determination unit 448 determines that the object is moving downward based on the time series information after the rocking has stopped, the determination unit 448 determines that the object is a foreign object. For example, as described above, the determination unit 448 can determine whether the object is an air bubble or a foreign object based on the moving direction of the object indicated by the time series information after the rocking has stopped. The determination unit 448 may determine whether the object is an air bubble or a foreign object by a method other than the above example, such as by using a model that has been learned in advance.

[0085] For example, as described above, the determination unit 448 determines whether the remaining objects are bubbles or foreign matter after determining whether the container 500 is scratched or the like among the objects. Then, the determination unit 448 stores the determination results of each object detected by the detection unit 445 in the storage unit 430 as determination result information 434. Note that, in this embodiment, the timing at which the determination unit 448 makes the determination is not particularly limited. For example, the determination unit 448 may be configured to determine whether the object is a scratch or the like in real time while the container 500 is being rocked, or may perform the above-mentioned series of processes after time-series data during and after the rocking is completed.

[0086] The determination unit 448 may be configured to perform the linkage determination of the marker 230 and the determination of an air bubble or a foreign object in parallel. That is, the determination unit 448 may start determining whether the object is an air bubble or a foreign object before the end of the rocking. The determination unit 448 may also use information other than the tracking information 433 when determining the object. For example, the determination unit 448 can determine the object by using information indicating the image characteristics, size, average brightness value, etc. of the object in combination. By determining information other than the movement, such as the size and average brightness value of the object, the characteristics of the air bubble or foreign object can be determined comprehensively, so that higher determination accuracy can be obtained.

[0087] As described above, rotation is performed using motor 250 while determination unit 448 is performing determination. Therefore, even if there is a cylindrical lens effect, foreign objects and the like can be detected accurately without omission. Rotation using motor 250 is performed at a predetermined speed so that the influence of the rotation of motor 250 is not exerted when inspecting for foreign objects. Therefore, determination unit 448 can perform determination of foreign objects without considering the influence of the rotation of motor 250.

[0088] The output unit 449 outputs at least a part of the image information 431, the background information 432, the tracking information 433, the determination result information 434, etc. For example, the output unit 449 can display at least a part of the image information 431, the background information 432, the tracking information 433, the determination result information 434, etc. on the screen display unit 410, or transmit the information to an external device via the communication I / F unit 420.

[0089] The above is an example of the configuration of the detection and determination device 400.

[0090] The detection and determination device 400 may have a configuration other than that described above. For example, the detection and determination device 400 may instruct the inspection device 200 to perform a rotation operation for peeling off foreign matter, etc., adhered to the wall surface of the container 500 before issuing an instruction to start rocking. In other words, the detection and determination device 400 may be configured to instruct the start of rocking after issuing an instruction to perform a rotation operation. The above-mentioned rotation operation, etc. may be performed by rotation control by the rotation control unit 260.

[0091] The container 500 is a translucent container such as a glass bottle or a plastic bottle. The inside of the container 500 is filled with a liquid such as water or medicine. The container 500 may have scratches or dirt. In addition, the inside of the container 500 may contain foreign matter. Examples of foreign matter include pieces of rubber, hair, pieces of fiber, soot, pieces of glass or plastic, and the like.

[0092] The above is an example of the configuration of the inspection device 200, the camera 300, the detection and determination device 400, and the container 500 included in the inspection system 100. Next, an example of the operation of the inspection system 100 will be described with reference to Figs.

[0093] First, an example of the general operation of the entire inspection system 100 will be described with reference to Fig. 11. Fig. 11 shows an example of the operation of the inspection system 100. Referring to Fig. 11, the start / end instruction unit 441 transmits a start instruction to the rotation control unit 260 and the camera 300 in response to an instruction from an external device or reception of an input via the operation input unit (step S101). In response to this, acquisition of image data by the camera 300 and rotation control by the rotation control unit 260 are started.

[0094] After the start instruction, detection and determination processing is performed at each timing (step S102). The detection and determination processing includes, for example, detection using a background model by the background model generation unit 443 and the precipitate detection unit 444, and detection and determination processing by the detection unit 445, the tracking unit 446, and the determination unit 448. Details of each process included in step S102 will be described later.

[0095] During the processing of step S102, if a predetermined condition is satisfied, such as when the determination unit 448 determines that a predetermined object such as a foreign object exists or when the precipitate detection unit 444 detects precipitate (Yes in step S103), the start / end instruction unit 441 transmits an end instruction to the rotation control unit 260 and the camera 300 (step S104). As a result, the inspection by the inspection system 100 ends even if the rotation control by the rotation control unit 260 in the predetermined order is in the middle of being performed.

[0096] Even if the predetermined condition is not satisfied, such as when the determination unit 448 determines that a predetermined object such as a foreign object exists or when the precipitate detection unit 444 detects precipitate (step S103, No), if the rotation control by the rotation control unit 260 has been completed to the end (step S105, Yes), the inspection by the inspection system 100 ends. If the rotation control by the rotation control unit 260 has not been completed to the end (step S105, No), the rotation control by the rotation control unit 260 and the processing of step S102 continue.

[0097] The above is a rough example of the operation of the entire inspection system 100. Next, the details of the process in step S102 will be described with reference to Figs.

[0098] First, detection using a background model by background model generation unit 443 and precipitate detection unit 444 will be described in more detail with reference to Fig. 12. With reference to Fig. 12, background model generation unit 443 generates a first background model based on image data acquired after transmission of a start instruction and before motor 250 starts rotating container 500 (step S201).

[0099] Furthermore, the background model generating unit 443 generates a second background model based on image data acquired after the motor 250 rotates the container 500 and before the motor 240 starts tilting and rocking the container 500 (step S202).

[0100] The deposit detection unit 444 detects deposits using a second background model based on image data acquired after the motor 240 tilts and rocks the container 500 and before the motor 250 starts rotating the container 500 again (step S203). For example, the deposit detection unit 444 detects deposits present at the bottom of the container 500 by extracting the difference between the image data and the second background model.

[0101] Furthermore, the deposit detection unit 444 detects deposits using the first background model based on the image data acquired until a predetermined time has elapsed after the motor 250 has rotated the container 500 again (step S204).

[0102] The above is an example of the operation when performing detection using a background model. Next, the detection and determination process by the detection unit 445, tracking unit 446, and determination unit 448 will be described in detail with reference to Figs.

[0103] First, an example of an operation for detecting and tracking an object will be described with reference to Fig. 13. Referring to Fig. 13, image acquisition unit 442 acquires image data acquired by camera 300 from camera 300 via communication I / F unit 420 (step S301).

[0104] The detection unit 445 detects an object present in the region corresponding to the container 500 or the liquid filled in the container 500 based on the image data (step S302). The detection unit 445 may detect the object using a known technique.

[0105] The tracking unit 446 tracks the object detected by the detection unit 445 (step S303). For example, the tracking unit 446 tracks the object based on the distance between the objects in image data captured close to each other (or consecutively).

[0106] If all objects detected by the detection unit 445 in the image data have not been tracked (step S304, No), the tracking unit 446 tracks the objects that have not been tracked. On the other hand, if all objects detected by the detection unit 445 in the image data have been tracked (step S304, Yes), the tracking unit 446 completes tracking.

[0107] Furthermore, the angle information acquisition unit 447 acquires angle information indicating the angle at which the container 500 is tilted based on the position of the marker 230 in the image data (step S305).

[0108] When all the series of image data captured by the camera 300 have been acquired (step S306, Yes), the process ends. On the other hand, when there is image data that has not been acquired (step S306, No), the image acquisition unit 442 acquires the image data from the camera 300 (step S301).

[0109] The above is an example of the operation of the detection and determination device 400 when detecting and tracking an object. Note that the detection and determination device 400 may perform the processes in an order other than that exemplified above, such as performing the processes in step S302 and thereafter after acquiring all of a series of image data captured by the camera 300. Next, a processing example of the determination unit 448 will be described with reference to FIG.

[0110] 14, the determination unit 448 acquires time-series information during the period when the container 500 is shaking from the tracking information 433 (step S401).

[0111] When there is an object that moves in conjunction with the movement of the marker 230 among the objects detected by the detection unit 445 (step S402, Yes), the determination unit 448 determines that the object that moves in conjunction with the movement of the marker 230 is a scratch, stain, or attachment to the container 500 (step S403). Then, the determination unit 448 excludes the object determined to be a scratch, stain, or attachment to the container 500 from the objects to be determined in the process of step S407 (step S404). On the other hand, when there is an object that does not move in conjunction with the movement of the marker 230 (step S402, No), the determination unit 448 determines that the object that does not move in conjunction with the movement of the marker 230 is not a scratch, stain, or attachment to the container 500 (step S405).

[0112] Furthermore, the determination unit 448 acquires time series information from the tracking information 433 after the container 500 stops rocking (step S406). Then, the determination unit 448 determines whether the object detected by the detection unit 445 is an air bubble or a foreign object based on the time series information from the tracking information 433 after rocking has ended (step S407). For example, the determination unit 448 can determine whether the object is an air bubble or a foreign object based on the moving direction of the object indicated by the time series information after rocking has stopped. The determination unit 448 may perform the determination using a method other than the above-mentioned examples.

[0113] The above is an example of the process of the determination unit 448. In this embodiment, there is no particular limitation on the timing at which the determination unit 448 performs the determination. For example, the determination unit 448 may be configured to determine whether or not the object is scratched in real time while the container 500 is being shaken, or may perform the above-mentioned series of processes after time-series data during and after the shaking is completed.

[0114] In this way, the inspection device 200 has the motor 240 that functions as a tilting unit and the motor 250 that functions as a changing unit. With this configuration, the inspection device 200 can tilt the container 500 using the motor 240, and can change the location of the container 500 photographed by the camera 300 by rotating the container 500 using the motor 250. As a result, it is possible to prevent a region in which a foreign object cannot be detected from being fixed in the image data acquired by the camera 300. This makes it possible to accurately detect a foreign object present in the container.

[0115] In the present embodiment, the case has been described where the relative orientation between the container 500 and the camera 300 is changed around the rotation axis B by rotating the container 500 using the motor 250. However, the inspection system 100 may change the relative orientation between the container 500 and the camera 300 by rotating the camera 300 around the rotation axis B instead of rotating the container 500. The rotation of the camera 300 may be achieved using any mechanism.

[0116] In the present embodiment, the motor 250 rotates the container 500 by 90 degrees and then returns it to the state before the rotation. However, the motor 250 may perform rotation other than that described in the present embodiment. For example, the motor 250 may be configured to rotate the container from a 0 degree state to a -90 degree state, similar to the case of the motor 240.

[0117] In the present embodiment, the precipitate is detected by the precipitate detection unit 444. However, the configuration of the detection and determination device 400 is not limited to the example shown in the present embodiment. For example, the detection result by the precipitate detection unit 444 may be tracked by the tracking unit 446 in the same manner as the object detected by the detection unit 445. In this case, for example, the determination unit 448 may be configured to determine that the object detected by the precipitate detection unit 444 is a precipitate when the tracking by the tracking unit 446 determines that the object is not moving. In this way, the determination of the precipitate may be performed based on the result of tracking by the tracking unit 446.

[0118] In addition, in this embodiment, the case where the function of the detection and determination device 400 is realized by one information processing device has been described. However, the function of the detection and determination device 400 may be realized by a plurality of information processing devices connected via a network. For example, in this embodiment, it has been described that the detection and determination device 400 can be configured to instruct the inspection device 200 to start swinging or to stop swinging. However, the inspection system 100 may have an instruction device that issues the above-mentioned instructions as a device separate from the detection and determination device 400.

[0119] [Second embodiment] Next, a second embodiment of the present invention will be described with reference to Fig. 15 and Fig. 16. As shown in Fig. 15 and Fig. 16, in this embodiment, a case will be described in which at least a part of the configuration included in the inspection system 100 described in the first embodiment is inclined with respect to a predetermined reference plane such as the ground.

[0120] 15, at least the main body 210, the camera 300, and the container 500 are inclined. In other words, at least the inspection device 200 and the camera 300 are inclined.

[0121] Here, the specific inclination angle can be appropriately determined according to, for example, the container shape and the liquid characteristics. Specifically, for example, the inspection device 200 and the camera 300 are inclined about 20 degrees to 30 degrees. If the inclination angle is too small, there is a high possibility that the object will fall to the back of the bottle and not move. In other words, it is expected that the effect of the inclination will not be visible. On the other hand, if the inclination angle is too large, the overlap between the liquid surface area and the submerged area will increase, making it difficult to separate the liquid surface bubbles and the sediment. Therefore, as described above, it is desirable to set an appropriate inclination angle according to the container shape and the liquid characteristics.

[0122] In this way, when the inspection system 100 is tilted, sediment tends to gather in the front half of the bottle, which is the area that can be photographed by the camera 300. As a result, sediment and the like can be detected with greater accuracy.

[0123] In this embodiment, the specific configuration for tilting the inspection device 200, the camera 300, etc. is not particularly limited. For example, the inspection device 200, etc. may be tilted by using a known means, such as tilting the installation table itself on which each component of the inspection system 100 is installed. Also, instead of tilting the inspection device 200, the camera 300, etc. together as shown in FIG. 15, only the container 500 (or only the container 500 and the motor 250) may be tilted as shown in FIG. 16. In this way, even if the entire inspection device 200 is not tilted, by tilting at least the container 500, the same effect as the above-mentioned case can be obtained.

[0124] [Third embodiment] Next, a third embodiment of the present invention will be described with reference to Fig. 17 to Fig. 20. In the third embodiment of the present invention, an outline of the configuration of an inspection device 600 and the like will be described.

[0125] 17 shows an example of the configuration of an inspection device 600. Referring to FIG. 17, the inspection device 600 has a gripping portion 610, a tilting portion 620, and a changing portion 630.

[0126] The gripper 610 grips a container filled with liquid.

[0127] The tilting unit 620 at least tilts the container about a first axis while the gripping unit 610 grips the container. For example, the tilting unit 620 is a motor or the like, and tilts the gripping unit 610 to tilt the container.

[0128] The change unit 630 changes the relative orientation between the container and the imaging device around a second axis different from the first axis, thereby changing the location of the container photographed by the imaging device. For example, in Fig. 17, the relative orientation between the container and the imaging device is changed by rotating the container held by the gripper 610 using a motor or the like. The change unit 630 may change the relative orientation between the container and the imaging device by rotating the imaging device instead of the container.

[0129] In this way, the inspection device 600 has the tilting unit 620 and the changing unit 630. With this configuration, the inspection device 600 can tilt the container using the tilting unit 620, and can change the relative orientation between the container and the imaging device using the changing unit 630. As a result, it is possible to prevent a region in which a foreign object cannot be detected from being fixed in the image data acquired by the imaging device. This makes it possible to accurately detect a foreign object present in the container.

[0130] As another embodiment, there is an information processing device 700 that controls the operation of the inspection device 600. Fig. 18 shows an example of a hardware configuration of the information processing device 700 such as an inspection device. Referring to Fig. 18, the information processing device 700 has, as an example, the following hardware configuration. ·CPU (Central Processing Unit) 701 (computing unit) ROM (Read Only Memory) 702 (storage device) RAM (Random Access Memory) 703 (storage device) · Programs 704 loaded into RAM 703 A storage device 705 for storing a group of programs 704 A drive device 706 for reading and writing data from a recording medium 710 outside the information processing device A communication interface 707 for connecting to a communication network 711 outside the information processing device Input / output interface 708 for inputting and outputting data Bus 709 connecting each component

[0131] 19. The program group 704 is stored in advance in, for example, the storage device 705 or the ROM 702, and is loaded into, for example, the RAM 703 by the CPU 701 for execution as required. The program group 704 may be supplied to the CPU 701 via the communication network 711, or may be stored in advance in the recording medium 710, and the drive device 706 may read out the programs and supply them to the CPU 701.

[0132] 18 shows an example of the hardware configuration of the information processing device 700. The hardware configuration of the information processing device 700 is not limited to the above. For example, the information processing device 700 may be configured with a part of the above configuration, such as not having the drive device 706.

[0133] The rotation control unit 721 controls the operation of the tilt unit 620, the change unit 630, and the like of the inspection device 600 described above. For example, the rotation control unit 721 performs control such that after the change is performed by the change unit 630, the change is performed by the tilt unit 620, and after the tilt is performed by the tilt unit 620, the change is performed again by the change unit 630 (for example, the change unit 630 returns the container to the state before the change). Even with this configuration, it is possible to accurately detect foreign matter present in the container, as in the case described above.

[0134] The information processing device 700 described above can be realized by incorporating a predetermined program into the information processing device 700. Specifically, the program according to another embodiment of the present invention is a program for causing the information processing device 700 to realize a process of changing the relative orientation between the container and the imaging device around a second axis different from the first axis, thereby changing the location of the container photographed by the imaging device, at least tilting the container around the first axis, and then again changing the relative orientation between the container and the imaging device around the second axis.

[0135] In addition, the inspection method performed by the above-mentioned information processing device 700 is such that the information processing device 700 changes the relative orientation between the container and the imaging device around a second axis different from the first axis, thereby changing the location of the container photographed by the imaging device, and then at least tilts the container around the first axis, and then again changes the relative orientation between the container and the imaging device around the second axis.

[0136] Even if the invention is a program (or a recording medium) or an inspection method having the above-mentioned configuration, it has the same functions and effects as the above-mentioned cases, and therefore can achieve the above-mentioned object of the present invention.

[0137] As another embodiment, there is an information processing device 800 such as a determination device. The hardware configuration of the information processing device 800 may be the same as that described with reference to Fig. 18, and therefore description thereof will be omitted.

[0138] The information processing device 800 performs a predetermined process on image data acquired by an imaging device that acquires image data of a container held by the inspection device 600 or the like. For example, referring to FIG. 20, the information processing device 800 has a background model generation unit 821 and a detection unit 822.

[0139] The background model generating unit 821 generates a first background model based on the acquired image data, and generates a second background model based on image data acquired by changing the photographing location of the container. The detecting unit 822 detects sediment inside the container based on the first background model, and detects sediment inside the container based on the second background model.

[0140] The object of the present invention can be achieved, as in the above-described case, with an information processing device 800 having such a configuration, an inspection method performed by the information processing device 800, a program for realizing the inspection method in the information processing device 800, etc.

[0141] <Additional Notes> A part or all of the above-described embodiments can be described as follows: An overview of the inspection device and the like in the present invention will be described below. However, the present invention is not limited to the following configuration.

[0142] (Appendix 1) A gripping part that grips a container filled with liquid; a tilting portion that at least tilts the container about a first axis while the container is being gripped by the gripping portion; a change unit that changes a relative orientation between the container and the imaging device around a second axis different from the first axis, thereby changing a location of the container photographed by the imaging device; have Inspection equipment. (Appendix 2) The change unit changes a relative orientation between the container and the imaging device about a second axis by rotating the container about a second axis. 2. The inspection device according to claim 1. (Appendix 3) The rotation speed at which the change unit rotates the container is different from the rotation speed at which the tilt unit tilts the container. 2. An inspection device as described in appended claim 2. (Appendix 4) The rotation speed at which the change unit rotates the container is slower than the rotation speed at which the tilt unit tilts the container. 10. The inspection device according to claim 2 or 3. (Appendix 5) The change unit rotates the container at a preset speed so as not to stir up foreign matter inside the container by rotating the container. 5. The inspection device according to claim 2, wherein the first and second electrodes are arranged in a first direction. (Appendix 6) The first axis corresponds to the line of sight of the imaging device. 6. An inspection device according to any one of claims 1 to 5. (Appendix 7) At least the container is inclined with respect to a predetermined reference plane. 7. The inspection device according to claim 1, (Appendix 8) After the change is made by the change unit, the tilt is made by the tilt unit, and after the tilt is made by the tilt unit, the change is made again by the change unit. 8. The inspection device according to claim 1, (Appendix 9) An information processing device, By changing the relative orientation between the container and the imaging device around a second axis different from the first axis, a photographing location of the container by the imaging device is changed, and then the container is at least tilted around the first axis, and then the relative orientation between the container and the imaging device is changed again around the second axis. Testing method. (Appendix 10) In the information processing device, By changing the relative orientation between the container and the imaging device around a second axis different from the first axis, a photographing location of the container by the imaging device is changed, and then the container is at least tilted around the first axis, and then the relative orientation between the container and the imaging device is changed again around the second axis. A computer-readable recording medium that records a program for implementing processing. (Appendix 11) an inspection device having a gripping unit that grips a container filled with a liquid, a tilting unit that at least tilts the container around a first axis while the gripping unit is gripping the container, and a changing unit that changes the location of the container photographed by the imaging device by changing the relative orientation between the container and the imaging device around a second axis different from the first axis; an imaging device that is installed outside the inspection device and captures an image of the liquid filled in the container; a determination device that detects an object based on image data captured by the imaging device and determines whether the detected object is a foreign object; have Inspection system. (Appendix 12) a background model generating unit that generates a first background model based on the acquired image data, and generates a second background model based on image data acquired by changing a relative orientation between the container and the imaging device to change an imaging location of the container; a detection unit that detects sediment inside the container based on the first background model and detects sediment inside the container based on the second background model; have Information processing device. (Appendix 13) The detection unit detects a precipitate based on the second background model and image data acquired after tilting the container. 13. The information processing device according to claim 12. (Appendix 14) The detection unit detects a precipitate based on the first background model and image data acquired after tilting the container and then returning the photographed location of the container to its original state before the change. 14. The information processing device according to claim 12 or 13. (Appendix 15) An information processing device, generating a first background model based on the acquired image data, and generating a second background model based on image data acquired by changing a location of the container photographed by changing a relative orientation between the container and the imaging device; Detecting sediment inside the container based on the first background model, and detecting sediment inside the container based on the second background model. Testing method. (Appendix 16) In the information processing device, generating a first background model based on the acquired image data, and generating a second background model based on image data acquired by changing a location of the container photographed by changing a relative orientation between the container and the imaging device; Detecting sediment inside the container based on the first background model, and detecting sediment inside the container based on the second background model. A computer-readable recording medium that records a program for implementing processing.

[0143] The programs described in the above embodiments and appendices may be stored in a storage device or a computer-readable recording medium, such as a portable medium such as a flexible disk, an optical disk, a magneto-optical disk, or a semiconductor memory.

[0144] Although the present invention has been described with reference to the above-mentioned embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. [Explanation of symbols]

[0145] 100 Inspection Systems 200 Inspection Equipment 210 Main body 211 Flat part 212 Arm 213 Upper grip part 214 Lower grip part 220 surface lighting 230 Marker 240 Motor 250 Motor 260 Rotation control section 300 Camera 400 Detection and Judgment Device 410 Screen display section 420 Communication I / F section 430 Storage section 431 Image information 432 Background information 433 Tracking Information 434 Judgment result information 435 Programs 440 Processing Unit 441 Start / End Indicator 442 Image Acquisition Unit 443 Background model generation unit 444 Sediment detector 445 Detector 446 Tracking Department 447 Angle information acquisition unit 448 Judgment section 449 Output section 500 containers 600 Inspection Equipment 610 Gripping part 620 Inclined section 630 Changes 700 Information processing device 701 CPU 702 ROM 703 RAM 704 Programs 705 Storage device 706 Drive device 707 Communication Interface 708 Input / Output Interface 709 Bus 710 Recording media 711 Communication Network 721 Rotation control unit 821 Background Model Generation Unit 822 Detector

Claims

1. an inspection device having a gripping unit that grips a container filled with a liquid, a tilting unit that at least tilts the container around a first axis while the gripping unit is gripping the container, and a changing unit that changes the location of the container photographed by the imaging device by changing the relative orientation between the container and the imaging device around a second axis different from the first axis; an imaging device that is installed outside the inspection device and captures an image of the liquid filled in the container; a determination device that detects an object based on image data captured by the imaging device and determines whether the detected object is a foreign object; having the change unit changes a relative orientation between the container and the imaging device around the second axis by rotating the container around the second axis, and a rotation speed at which the change unit rotates the container is different from a rotation speed at which the tilt unit tilts the container, The change unit is configured to rotate the container at a predetermined speed so as not to stir up foreign matter, The determination device includes: a background model generating unit that generates a first background model based on the acquired image data, and generates a second background model based on the acquired image data by changing the relative orientation between the container and the imaging device using the changing unit to change the photographing location of the container; a detection unit that detects sediment inside the container based on the first background model and detects sediment inside the container based on the second background model; have Inspection system.

2. The detection unit detects a precipitate based on the second background model and image data acquired after tilting the container. The inspection system of claim 1 .

3. The detection unit detects a precipitate based on the first background model and image data acquired after tilting the container and then returning the photographed location of the container to its original state before the change. The inspection system according to claim 1 or 2.

Citation Information

Patent Citations

  • Specimen inspection apparatus

    JP2005098832A

  • System, method and program for inspecting foreign substance

    JP2008224562A

  • Beverage liquid foreign substance inspection system and beverage liquid foreign substance inspection method

    JP2013096921A

  • Beverage liquid foreign substance inspection device and beverage liquid foreign substance inspection method

    JP2013096922A

  • Foreign matter inspection device and method

    JP2018205199A