Tablet inspection device and tablet inspection method

Through the image processing process of shrinkage processing, center of gravity acquisition and center line acquisition, the problem of difficulty in demarcating boundaries under contact states of multiple tablets in the prior art is solved, and more accurate tablet boundary designation and determination are achieved, and processing is simplified. process.

CN119072623APending Publication Date: 2024-12-03CKD CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380033991.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-06-13
Filing Date
2023-02-03
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing tablet inspection device is difficult to accurately define the tablet boundaries in the contact state of multiple tablets, and is susceptible to the tablet shape, reflection and image processing conditions, resulting in complexity and inaccuracy in the judgment.

Method used

The image processing process of shrinkage processing, center of gravity acquisition and centerline acquisition is adopted to separate the connecting area into the area occupied by each tablet, and the tablet boundary is defined by the center of gravity and centerline to reduce the need for noise processing and condition determination.

Benefits of technology

It is possible to specify the tablet boundary more easily and accurately in the contact state of multiple tablets, improve the accuracy of determining whether the tablet is qualified, and simplify the image processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119072623A_ABST
    Figure CN119072623A_ABST
Patent Text Reader

Abstract

The invention provides a tablet inspection device and the like, which can more easily and more accurately specify the boundary of a tablet even if a plurality of tablets are in a contact state in image data. A tablet inspection device (1) is provided with: a connection region specifying unit (75f) for specifying, as a connection region, a region occupied by a tablet in image data obtained by cameras (73, 74); a contraction / separation unit (75 g) for performing a contraction process on the connected region, separating the connected region while contracting, and extracting an individual region, which is a region occupied by each tablet; a center-of-gravity acquisition unit (75h) for acquiring the center of gravity of the individual region; and a center line acquisition unit (75i) for acquiring the center line of the center of gravity of each of the individual regions relating to the two adjacent tablets. The center line acquired by the center line acquisition unit (75i) is used as a boundary between two adjacent tablets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a tablet inspection device and a tablet inspection method for inspecting tablets. Background Art

[0002] Conventionally, there is known a tablet inspection device including a conveying mechanism that conveys a plurality of tablets, an imaging mechanism that captures images of the conveyed tablets, and a determination mechanism that determines whether the tablets are acceptable based on image data obtained by the imaging mechanism.

[0003] As such a tablet inspection device, the following scheme has been proposed, which comprises: a vibration plate that conveys tablets to the conveying mechanism (belt conveyor) side by vibration applied by a vibrating feeder; and a camera mechanism (linear sensor camera) that photographs the tablets conveyed by the conveying mechanism (belt conveyor) one by one (see, for example, Patent Document 1, etc.). In this tablet inspection device, the tablet conveying speed of the conveying mechanism (belt conveyor) is set to be slightly higher than the feeding speed of the tablets in the vibration plate. Therefore, the plurality of tablets conveyed by the conveying mechanism are conveyed in a spaced-apart state, and as a result, the tablets can be photographed one by one by the camera mechanism.

[0004] Furthermore, there is known an apparatus having a conveying mechanism capable of conveying a plurality of tablets arranged in a conveying direction in a state where the tablets are respectively in contact with each other (see, for example, Patent Document 2).

[0005] However, the tablet inspection device described in Patent Document 1 cannot achieve high-speed inspection because each tablet is imaged. In addition, the tablet inspection device needs to be configured to be able to adjust the tablet conveying speed as described above, which may lead to complexity and size of the device.

[0006] Therefore, in order to speed up the inspection and prevent the device from becoming complicated, the following scheme can be considered, that is, the tablet inspection device described in the above-mentioned patent document 1 is applied with the conveying mechanism described in the above-mentioned patent document 2, and a plurality of tablets are conveyed in a state where they are in contact, and at the same time, these tablets are photographed at once by a camera mechanism. However, in this case, in the image data obtained by the camera mechanism, a group of "areas occupied by tablets" (hereinafter referred to as "connected areas") may be composed of a plurality of tablets. In other words, in the connected area, the portion at the boundary of each tablet will be in a blurred state. Therefore, it is necessary to define the boundaries of the tablets in the connected area in order to determine whether each tablet is qualified.

[0007] Here, as methods for demarcating the boundaries of tablets, a first image recognition processing method and a second image recognition processing method described below have been proposed (for example, see Patent Document 3, etc.).

[0008] In the first image recognition processing method, in the first step, image data obtained by photographing a plurality of tablets is subjected to binarization processing to obtain binarized image data. Next, in the second step, a pair of contact points located at both ends of a contact area between two tablets is detected in the binarized image data. The contact points are detected by using the shape of a contour line in the connection area. Furthermore, in the third step, the boundary between the two tablets is demarcated by connecting the detected pair of contact points.

[0009] In the second image recognition processing method, in the first step, contrast conversion is performed on the image data obtained by photographing the plurality of tablets to highlight the contours of the plurality of tablets and their mutual contact portions in the image data. Then, in the second step, edges in the image data are detected based on the image data after contrast conversion. Then, in the third step, thinning processing is performed on the detected edges to delineate the contours of the plurality of tablets and the boundaries of the tablets.

[0010] [Prior art literature]

[0011] [Patent Document]

[0012] Patent Document 1: Japanese Patent Application Laid-Open No. 10-35862

[0013] Patent Document 2: Japanese Patent Application Publication No. 2001-95898

[0014] Patent Document 3: Japanese Patent Application Laid-Open No. 7-200820 Summary of the invention

[0015] [Problems to be solved by the invention]

[0016] However, no matter which of the above-mentioned image recognition processing methods is used, the final result is to use the connecting area and the contour in the tablet to delineate the boundary of the tablet. Therefore, it is easily affected by the shape of the tablet (such as the dividing line set on the tablet) and the reflection of the tablet (such as the reflection of the outer edge of the sugar-coated tablet). In addition, it is also easily affected by conditions related to image processing, such as the camera conditions of the tablet (such as lighting conditions) and the conditions related to the binarization processing. Therefore, in order to reduce these influences and define the boundaries more accurately, it is necessary to perform noise processing (abnormal processing) and condition judgment processing, which may complicate the processing.

[0017] The present invention has been made in view of the above-mentioned situation, and an object thereof is to provide a tablet inspection device and the like, wherein even if a plurality of tablets are in contact with each other in image data, the boundaries of tablets can be specified more easily and accurately.

[0018] [Methods to solve the problem]

[0019] The following will describe each technical solution applicable to solving the above-mentioned purpose in detail. In addition, the specific effects of the corresponding technical solution will be noted when necessary.

[0020] Technical Solution 1: A tablet inspection device, comprising: a camera mechanism for photographing a plurality of tablets of the same shape at a time; and an image processing mechanism for determining whether each tablet is qualified based on image data obtained by the camera mechanism, characterized in that:

[0021] The plurality of tablets photographed by the imaging device are in the same posture and in a state where they can touch each other.

[0022] The above-mentioned image processing mechanism has:

[0023] a connection area designation unit for designating an area occupied by the tablet in the image data as a connection area;

[0024] A shrinking and separating mechanism, the shrinking and separating mechanism is used to shrink the above-mentioned connection area to separate the connection area while shrinking it, and extract individual areas, where the individual areas are areas occupied by each tablet;

[0025] A gravity center obtaining mechanism, which is used to obtain the gravity center of the above-mentioned individual area;

[0026] a center line obtaining mechanism for obtaining: a center line of each center of gravity of the individual regions related to two adjacent tablets obtained by the center of gravity obtaining mechanism; and

[0027] The acceptance / failure determination means uses the center line acquired by the center line acquisition means as a boundary between two adjacent tablets and performs acceptance / failure determination on each of these tablets.

[0028] According to the above technical solution 1, the connected area is first subjected to shrinkage processing, and the connected area is separated by shrinkage to extract the individual area, that is, the area occupied by each tablet. Then, the center of gravity of the extracted individual area is obtained. Next, the center line of each center of gravity of the individual area related to the two adjacent tablets is obtained (a straight line passing through the center of the line segment connecting each center of gravity), and the center line is defined as the boundary between these tablets. Then, the defined boundary is used to determine whether the tablets are qualified.

[0029] Thus, according to the above-mentioned technical solution 1, the boundary of the tablet can be delineated by the three image processing steps of shrinking processing, obtaining the center of gravity, and obtaining the center line. Here, the boundary of the tablet is delineated by each process of shrinking processing, obtaining the center of gravity, and obtaining the center line. As a result, the delineated boundary is not easily affected by the shape of the tablet, the reflection of the tablet, and the condition setting related to the image processing. Therefore, in order to delineate an appropriate boundary, it is not necessary to perform complex processing such as so-called noise processing (abnormal processing) and condition determination for reducing the influence, and the boundary of the tablet can be more easily specified.

[0030] Furthermore, the boundary to be defined is less likely to be affected by the shape of the tablet and the like, so the boundary of the tablet can be specified more accurately.

[0031] As a result, even if a plurality of tablets are in contact with each other in the image data, the boundary between the tablets can be specified more easily and accurately. As a result, the quality of each tablet can be determined more accurately.

[0032] Technical Solution 2: The tablet inspection device according to Technical Solution 1 is characterized by comprising an arranging mechanism for arranging the plurality of tablets imaged by the imaging mechanism by aligning the orientations and postures of the plurality of tablets.

[0033] According to the above technical solution 2, the boundaries of the tablets can be defined more easily and accurately.

[0034] Technical Solution 3: A tablet inspection method, comprising: an imaging step, in which a predetermined imaging mechanism is used to image a plurality of tablets of the same shape at a time; and an image processing step, in which the image processing step is used to determine whether each tablet is qualified based on the image data obtained by the imaging step, characterized in that:

[0035] The plurality of tablets photographed in the photographing step are in the same posture and in a state where they can touch each other.

[0036] The above image processing steps include:

[0037] a connection area designation step for designating an area occupied by the tablet in the image data as a connection area;

[0038] A shrinking and separating step, wherein the shrinking and separating step is used to shrink the connected area to separate the connected area while shrinking it, and extract individual areas, where the individual areas are areas occupied by each tablet;

[0039] A center of gravity obtaining step, wherein the center of gravity obtaining step is used to obtain the center of gravity of the above-mentioned individual area;

[0040] a center line obtaining step for obtaining: a center line of each center of gravity of the individual regions related to two adjacent tablets obtained in the center of gravity obtaining step; and

[0041] The acceptance / failure determination step is to determine the acceptance / failure of each of the two adjacent tablets using the center line obtained in the center line obtaining step as a boundary between two adjacent tablets.

[0042] According to the above technical solution 3, the same effect as the above technical solution 1 can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 : A schematic diagram showing the general structure of a tablet inspection device, etc.

[0044] Figure 2 : A three-dimensional schematic diagram showing a transport device, etc.

[0045] Figure 3 : It is the side view of the tablet.

[0046] Figure 4 : A block diagram showing the functional structure of the inspection unit.

[0047] Figure 5 : A top view schematic diagram showing the tablets being transported and the inspection area, etc.

[0048] Figure 6 : A schematic diagram showing image data obtained by a camera.

[0049] Figure 7 : A schematic diagram showing the connection area.

[0050] Figure 8 : Schematic diagram representing individual areas.

[0051] Fig. 9 : An illustration for explaining the shrinkage process.

[0052] Fig.10 : A schematic diagram showing the center of gravity of individual areas.

[0053] Fig.11: A schematic diagram showing a center line or the like serving as a boundary between two adjacent tablets.

[0054] Fig.12 : Schematic diagram showing the area occupied by tablets divided by the center line.

[0055] Fig.13 : A flowchart showing the inspection process.

[0056] Fig.14 : A schematic diagram showing the connection area of ​​other implementation schemes.

[0057] Fig.15 : Schematic diagrams showing individual regions of other implementation schemes.

[0058] Fig.16 : Schematic diagram showing the center of gravity of individual areas of other implementation plans.

[0059] Fig.17 : A schematic diagram showing a center line or the like as a boundary of a tablet in another embodiment.

[0060] Fig.18 : is a schematic diagram showing the area occupied by tablets divided by a center line in other embodiments.

[0061] Fig.19 : To illustrate another embodiment, a schematic top view of a conveying trough, etc., which can align the orientation and posture of tablets that are diamond-shaped when viewed from above.

[0062] Fig. 20 : A schematic top view of a conveying trough, etc., showing another embodiment, which can align the orientation and posture of a tablet that is elliptical in shape when viewed from above.

[0063] Fig.21 : A schematic diagram showing a center line, etc. associated with a tablet having a diamond shape when viewed from above, in another embodiment.

[0064] Fig. 22 : A schematic diagram showing a center line, etc., of a tablet having an elliptical shape when viewed from above, in another embodiment.

[0065] Fig.23 : A schematic diagram showing another embodiment in which the area occupied by a diamond-shaped tablet when viewed from above is divided along the center line.

[0066] Fig.24 : A schematic diagram showing another embodiment in which the area occupied by the elliptical tablet when viewed from above is divided along the center line.

[0067] Fig.25: A perspective schematic diagram showing a camera etc. for photographing the side surface of a tablet in another embodiment.

[0068] Fig.26 : is a schematic diagram showing image data obtained by a camera for photographing the side of a tablet in another embodiment. DETAILED DESCRIPTION

[0069] Please refer to the attached Figure 1 The tablet inspection device in this embodiment is used to inspect the tablets 9 (refer to Figure 3 ) device. In addition, the tablet 9 in this embodiment is a disk-shaped flat tablet having a front surface 9a, a back surface 9b, and a side surface 9c located between the two surfaces 9a and 9b (see Figure 3 ).

[0070] like Figure 1 As shown, the tablet inspection device 1 is equipped with a tablet supply device 2, a supply conveyor 3, a transport device 4 and a slide 5. A counter 6a and a bottling device 6b are provided downstream of the slide 5. The counter 6a counts the tablets 9 that have passed the inspection, and the bottling device 6b packs the tablets 9 into boxes.

[0071] The tablet supply device 2 is, for example, a hopper, and intermittently supplies tablets 9 to the supply conveyor 3 .

[0072] The supply conveyor 3 conveys the tablets 9 in an orderly manner to the transport device 4. The supply conveyor 3 has a predetermined first vibrator 3a, and the tablets 9 on the supply conveyor 3 are transported to the transport device 4 by the operation of the first vibrator 3a.

[0073] The conveyor 4 conveys the tablets 9 to be inspected in a state of being arranged in multiple rows. The multiple tablets 9 conveyed by the conveyor 4 are of the same shape. Figure 2 As shown, the conveying device 4 is equipped with an upstream conveying unit 41, a reversing unit 42, a downstream conveying unit 43 and a second vibrator 44. Figure 2 In FIG. 1 , only a portion of the plurality of tablets 9 being transported is schematically shown.

[0074] The upstream conveying unit 41 continuously conveys the tablets 9 to the downstream side with one of the surface 9a and the back surface 9b as the upper surface. The upstream conveying unit 41 has a plurality of upstream conveying grooves 41a arranged in parallel, and the upstream conveying grooves 41a are used to convey the tablets 9 to the downstream side in an orderly state. The width of the upstream conveying grooves 41a is substantially the same as the outer diameter of the tablets 9. When the tablets 9 are conveyed by the upstream conveying unit 41, one of the surface 9a and the back surface 9b is inspected.

[0075] The reversing section 42 is used to reverse the front and back of the tablet 9 while continuously conveying the tablet 9. The reversing section 42 has a plurality of intermediate conveying grooves 42a that are continuous with the upstream conveying groove 41a, and these intermediate conveying grooves 42a are gradually twisted toward the downstream side. Therefore, in the upstream conveying section 41, the tablet 9 conveyed in a state where one of the surface 9a and the back surface 9b is the upper side passes through the intermediate conveying grooves 42a, and is conveyed to the downstream conveying section 43 in a state where the other of the surface 9a and the back surface 9b is the upper side.

[0076] The downstream conveying section 43 continuously conveys the tablets 9 to the downstream side in a state where the surface 9a and the back surface 9b of the tablets 9 that are configured as the lower surface in the upstream conveying section 41 are the upper surfaces. A plurality of downstream conveying grooves 43a are arranged in parallel in the downstream conveying section 43, and the downstream conveying grooves 43a are continuous with the intermediate conveying grooves 42a, and are used to convey the tablets 9 to the chute 5 side in a neatly arranged state. The width of the downstream conveying grooves 43a is substantially the same as the outer diameter of the tablets 9. When conveyed by the downstream conveying section 43, the surface 9a and the back surface 9b of the tablets 9 that are opposite to the surface on the side to be inspected in the upstream conveying section 41 are inspected. The tablets 9 that have passed through the downstream conveying section 43 flow down the chute 5 and are conveyed to the counter 6a.

[0077] In the present embodiment, the surface constituting the bottom of the conveying grooves 41a, 42a and 43a and supporting the lower surface of the tablet 9 from below is in the form of an inclined surface that gradually descends toward the downstream.

[0078] The second vibrator 44 is a device for applying vibration to the upstream conveying unit 41, the reversing unit 42, and the downstream conveying unit 43. By applying vibration from the second vibrator 44 to the upstream conveying unit 41, etc., the tablets 9 located in the grooves 41a, 42a, 43a are conveyed to the downstream side.

[0079] Furthermore, the plurality of tablets 9 transported by the upstream transport unit 41 and the downstream transport unit 43 are in the same posture. In other words, the plurality of tablets 9 transported by the transport units 41 and 43 are in a "lying posture" with the front surface 9a or the back surface 9b being the lower surface and the central axis CL (see Figure 3 ) extends in the vertical direction. As described above, the width of each conveying groove 41a, 43a is substantially the same as the outer diameter of the tablet 9. Therefore, when two tablets 9 conveyed in an adjacent state in each conveying section 41, 43 come into contact, the most downstream portion of the tablet 9 located on the upstream side and the most upstream portion of the tablet 9 located on the downstream side come into contact. Moreover, when these tablets 9 are viewed from above, the extending direction of the tangent line of the two tablets 9 passing through the contact position of the two tablets 9 is approximately orthogonal to the conveying direction of the tablets 9 conveyed by each conveying section 41, 43.

[0080] like Figure 1 , Figure 4 As shown, the tablet inspection device 1 includes an inspection unit 7 in addition to the above-mentioned conveying device 4 and the like.

[0081] The inspection unit 7 has a first lighting device 71, a second lighting device 72, a first camera 73, a second camera 74 and an image processing device 75. In this embodiment, the first camera 73 and the second camera 74 constitute "imaging means" respectively, and the image processing device 75 constitutes "image processing means".

[0082] The first lighting device 71 and the second lighting device 72 irradiate predetermined light (for example, white light) onto a predetermined inspection area KA from above (see Figure 5 ), the inspection area KA includes at least all rows of the transported tablets 9. The first lighting device 71 irradiates light to the inspection area KA in the upstream transport section 41, and the second lighting device 72 irradiates light to the inspection area KA in the downstream transport section 43.

[0083] The first camera 73 basically takes an image of the inspected area KA in the upstream conveying unit 41 from directly above, and the second camera 74 basically takes an image of the inspected area KA in the downstream conveying unit 43 from directly above. Each camera 73, 74 has an imaging element such as a CCD (charge coupled device) type image sensor or a CMOS (complementary metal oxide semiconductor) type image sensor, and an optical system (lens assembly, aperture, etc.) for imaging the imaging object by the imaging element. Of course, imaging elements other than the above-mentioned imaging elements can also be used.

[0084] Each camera 73, 74 is driven and controlled by an image processing device 75 (particularly a camera control unit 75c described later). By taking an image of the tablet 9 by the cameras 73, 74, the entire area data AD can be obtained (see Figure 6 ), the entire area data AD is image data showing the entire area within the field of view of the cameras 73, 74. In the present embodiment, the entire area within the field of view of the cameras 73, 74 corresponds to the inspected area KA.

[0085] The image data (entire area data AD) captured and generated by each camera 73, 74 is converted into a digital signal inside each camera 73, 74, and then transmitted to the image processing device 75 (particularly the image acquisition unit 75e described later) in the form of a digital signal and stored. In this embodiment, the transmitted image data (entire area data AD) is brightness image data having brightness information of each pixel. And, the image processing device 75 performs various image processing, arithmetic processing, etc. described later based on the image data. In addition, image data expressed by elements different from brightness (such as color tone, etc.) may also be used.

[0086] The image processing device 75 is composed of a computer, an input / output device, a display device, etc. The computer includes: a CPU (central processing unit) for executing specified calculations, a ROM (read-only memory) for storing various programs and fixed-value data, etc., a RAM (random access memory) for temporarily storing various data when executing various calculations, and their peripheral circuits, etc.

[0087] Moreover, the image processing device 75 is operated by the CPU according to various programs so as to function as various functional units described later, including: a main control unit 75a, a lighting control unit 75b, a camera control unit 75c, a display control unit 75d, an image acquisition unit 75e, a connection area designation unit 75f, a contraction and separation unit 75g, a center of gravity acquisition unit 75h, a center line acquisition unit 75i and a qualification judgment unit 75j, etc.

[0088] However, the various functional units mentioned above are realized by the cooperation of various hardware such as the CPU, ROM and RAM. There is no need to clearly distinguish between functions realized by hardware and functions realized by software. Some or all of these functions can be realized by hardware circuits such as IC.

[0089] In addition, the image processing device 75 is provided with: an input unit 751 composed of a keyboard, a mouse, a touch screen, etc., a display unit 752 composed of a liquid crystal display, etc. and having a display image capable of displaying various information, a storage unit 753 capable of storing various data, programs, calculation results, inspection results, etc., and a communication unit 754 capable of receiving and sending various data to the outside.

[0090] First, before explaining the various functional units constituting the image processing device 75 , the display unit 752 , the storage unit 753 , and the communication unit 754 will be described.

[0091] The display unit 752 is disposed, for example, near the conveyor 4, and can display various information stored in the storage unit 753. Therefore, the display unit 752 can display image data (entire area data AD) obtained by each camera 73, 74, binarized image data and contracted image data to be described later, threshold values ​​used for determining whether or not the tablet is acceptable (e.g., threshold values ​​for binarization), and the results of determining whether or not each tablet 9 is acceptable.

[0092] The storage unit 753 is constituted by an HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like, and stores, for example, various image data, threshold values ​​used for acceptance determination, acceptance determination results of the tablet 9 , and the like.

[0093] The communication unit 754 has a wireless communication interface that complies with the communication standard of a wired LAN (local area network) or a wireless LAN, etc., and is configured to be able to send and receive various data with the outside. For example, the communication unit 754 outputs the qualification determination result made by the qualification determination unit 75j to the outside.

[0094] Next, the above-mentioned various functional units constituting the image processing device 75 will be described in more detail.

[0095] The main control unit 75a is a functional unit responsible for overall control of the inspection unit 7, and is configured to be able to send and receive various signals with other functional units such as the illumination control unit 75b and the camera control unit 75c.

[0096] The lighting control unit 75 b is a functional unit that controls the lighting devices 71 and 72 based on a command signal from the main control unit 75 a .

[0097] The camera control unit 75 c is a functional unit that controls the cameras 73 and 74 , and controls the timing of image capture by the cameras 73 and 74 based on a command signal from the main control unit 75 a .

[0098] The display control unit 75 d controls display content on the display unit 752 based on the information stored in the storage unit 753 .

[0099] The image acquisition unit 75 e is a functional unit for collecting image data (entire area data AD) captured and acquired by the cameras 73 and 74 .

[0100] The connection area designation unit 75f designates the area occupied by the tablet 9 in the image data (entire area data AD) acquired by the image acquisition unit 75e as the connection area RA (see Figure 7 ). In the present embodiment, the connection area designation unit 75f uses the prescribed binarization threshold (brightness threshold) stored in the storage unit 753 to perform binarization processing on the image data (entire area data AD) to obtain binary image data, which sets each pixel of the connection area RA, which is the area occupied by the tablet 9, to "1 (bright part)" and the pixels other than that to "0 (dark part)". A group of connection areas RA in the binary image data may consist of one tablet 9 or a plurality of contacting tablets 9. The obtained binary image data is stored in the storage unit 753. In the present embodiment, the connection area designation unit 75f constitutes a "connection area designation mechanism".

[0101] The shrinking and separating section 75g shrinks and separates the connected area RA, thereby extracting the individual areas KA (see FIG. 1 ) which are areas occupied by each tablet 9. Figure 8). In this embodiment, the shrinkage separation unit 75g performs shrinkage processing on the connected area RA in the above-mentioned binary image data, thereby shrinking and separating the connected area RA, and obtaining shrunken image data after the individual area KA, which is the area occupied by each tablet 9, is extracted. The obtained shrunken image data is stored in the storage unit 753. In addition, during the shrinkage processing, when a pixel of "0 (dark part)" is adjacent to a pixel of "1 (bright part)", the processing of replacing the pixel of "1 (bright part)" with the pixel of "0 (bright part)" is repeated one or more times (refer to Fig. 9 ). The number of times of this replacement process (for example, the degree of shrinkage) is set in consideration of the shape of the tablet 9 and the contact form between the tablets 9. In the present embodiment, the shrinkage separation portion 75g constitutes a "shrinkage separation mechanism".

[0102] The center-of-gravity acquisition unit 75h acquires the center of gravity CP of the individual area KA (see Fig.10 ). The center of gravity CP is obtained for each individual area KA. The obtained center of gravity CP is stored in the storage unit 753. In this embodiment, the center of gravity obtaining unit 75h constitutes a "center of gravity obtaining means".

[0103] The center line acquisition unit 75i acquires the center line BL of each center of gravity CP of the individual area KA related to two adjacent tablets 9 acquired by the center of gravity acquisition unit 75h (see Fig.11 ). The center line BL functions as a boundary between adjacent tablets 9. In the present embodiment, the center line acquisition unit 75i acquires a line segment XL connecting the centroids CP of the individual areas KA associated with two adjacent tablets 9, and then acquires an imaginary line orthogonal to the line segment XL and passing through the center point XP of the line segment XL as the center line BL. In the present embodiment, the extension direction of the line segment XL is substantially parallel to the conveying direction of the tablets 9 in the conveying units 41 and 43.

[0104] Here, it can be said that the center point XP corresponds to the contact portion of the two adjacent tablets 9 when the two adjacent tablets 9 are in contact. In addition, if the two adjacent tablets 9 are in contact, the center line BL can be said to correspond to the tangent line of the two tablets 9 passing through the contact portion of the tablets 9. The acquired center line BL is stored in the storage unit 753. In the present embodiment, the center line acquisition unit 75i constitutes a "center line acquisition mechanism".

[0105] The acceptance judgment unit 75j judges the acceptance of each tablet 9 based on the image data (entire area data AD) obtained by the cameras 73 and 74. In the present embodiment, the acceptance judgment unit 75j first divides the area occupied by the tablet 9 in the image data (entire area data AD) obtained by the cameras 73 and 74 using the obtained center line BL (see FIG. Fig.12). Therefore, even if the tablets 9 are in contact with each other in the image data (entire area data AD), the area occupied by each tablet 9 in the image data can be individually specified.

[0106] On this basis, the pass / fail judgment unit 75j judges whether each tablet 9 is pass / fail by executing a predetermined pass / fail judgment process for each area occupied by the designated tablet 9. In the pass / fail judgment process, for example, the presence or absence of a notch or crack in the tablet 9 and whether there is foreign matter attached to the tablet 9 are judged. In addition, when a printing unit is provided on the tablet 9, the pass / fail judgment of the printing unit may also be performed. In addition, the pass / fail judgment result is stored in the storage unit 753. In the present embodiment, the pass / fail judgment unit 75j constitutes a "pass / fail judgment mechanism".

[0107] Furthermore, the following operation may be performed, that is, instead of dividing the area occupied by the tablet 9 in the image data (entire area data AD) by the center line BL, the entire area occupied by the tablet 9 in the image data (entire area data AD) is taken as the object for qualification determination processing, and then, the qualification of each tablet 9 is determined separately using information related to the qualification determination result (for example, the coordinates of the unqualified part, etc.) and the center line BL.

[0108] In this embodiment, the tablets 9 judged as unqualified are discharged to the outside of the system (outside the conveying path of the tablets 9 of the conveying device 4) by a discharge mechanism not shown in the figure. In addition, the tablets 9 judged as unqualified can also be discharged to the outside of the system manually.

[0109] Next, we will refer to Fig.13 The inspection process of the tablet 9 executed by the inspection unit 7 is described with reference to the flowchart in FIG. This inspection process is executed every time a predetermined acceptance determination execution timing is reached.

[0110] First, in the imaging process of step S11, the tablet 9 is imaged by each camera 73, 74. In other words, each camera 73, 74 is controlled by the camera control unit 75c, so that each camera 73, 74 captures the inspection area KA of each conveying unit 41, 43. Therefore, image data (entire area data AD) showing the entire inspection area KA can be obtained.

[0111] In the subsequent connected area designation process of step S12, the connected area designation unit 75f performs binarization processing on the obtained image data (entire area data AD), thereby obtaining binary image data in which each pixel of the connected area RA, which is the area occupied by the tablet 9, is set to "1 (bright part)" and the pixels other than the connected area RA are set to "0 (dark part)". Accordingly, the area occupied by the tablet 9 in the image data (entire area data AD) is designated as the connected area RA.

[0112] In the shrinking and separating step of step S13, the connecting area RA is subjected to shrinking processing by the shrinking and separating unit 75g. Thus, the connecting area RA is shrunk and separated, and the individual areas KA, which are areas occupied by each tablet 9, are extracted. Here, if a group of connecting areas RA is composed of a plurality of tablets 9, the individual areas KA equal in number to the number of these tablets 9 are extracted in a separated state by the shrinking and separating step.

[0113] Next, in the gravity center acquisition process of step S14, the gravity center acquisition unit 75h acquires the gravity center CP of each individual area KA. The gravity center CP of an individual area KA substantially coincides with the gravity center (center) of the actual tablet 9 corresponding to the individual area KA.

[0114] Then, in the center line acquisition process of step S15, the center line acquisition unit 75i acquires a line segment XL connecting the centroids CP of the individual areas KA related to two adjacent tablets 9. Then, a center line BL orthogonal to the line segment XL is obtained while passing through the center point XP of the line segment XL.

[0115] Next, in the area division process of step S16, the acceptance judgment unit 75j uses the obtained center line BL to divide the area occupied by the tablets 9 in the image data (entire area data AD) obtained by the cameras 73 and 74. In this way, the area occupied by each tablet 9 in the image data (entire area data AD) can be individually specified.

[0116] Finally, in the acceptance / non-acceptance determination step of step S17, the acceptance / non-acceptance determination unit 75j performs a predetermined acceptance / non-acceptance determination process for each area occupied by the designated tablet 9. As a result, the acceptance / non-acceptance of each tablet 9 can be determined.

[0117] Furthermore, the processing object by the pass / fail judgment unit 75j may be the binarized image data obtained in step S12 instead of the brightness image data (entire area data AD) obtained by the cameras 73 and 74. For example, if the same binarization processing as that in step S12 is performed in the pass / fail judgment process of step S17, the binarization processing does not need to be repeated by setting the processing object by the pass / fail judgment unit 75j to the binarized image data, thereby speeding up the inspection process.

[0118] As described in detail above, according to the present embodiment, the boundary of the tablet 9 can be demarcated by the three image processing steps of the separation shrinking step, the center of gravity acquisition step, and the center line acquisition step. Here, the boundary of the tablet 9 is demarcated by each of the separation shrinking step, the center of gravity acquisition step, and the center line acquisition step, and thus, the demarcated boundary is less likely to be affected by the shape of the tablet 9, the reflection of the tablet 9, and the condition setting related to the image processing. Therefore, in order to demarcate an appropriate boundary, it is not necessary to perform complex processing such as so-called noise processing (abnormal processing) and condition determination for reducing the influence, and the boundary of the tablet 9 can be determined more easily.

[0119] Furthermore, the boundary to be defined is less likely to be affected by the shape of the tablet 9 and the like, and thus the boundary of the tablet can be specified more accurately.

[0120] As a result, even if a plurality of tablets are in contact with each other in the image data, the boundary between the tablets can be specified more easily and accurately. As a result, whether each tablet is acceptable can be determined more accurately.

[0121] Furthermore, the present invention is not limited to the contents of the above-mentioned embodiments, and can be implemented as follows, for example. Of course, other application examples and modification examples not shown below are also possible.

[0122] (a) In the above embodiment, the tablet 9 is disk-shaped, but may be in a shape other than disk. Therefore, the tablet 9 may be, for example, rectangular, elliptical, oblong, or rhombus-shaped in plan view.

[0123] For example, even if the tablet 9 is a rhombus shape when viewed from above, the tablets can be judged to be qualified or not by basically the same method as in the above embodiment. That is, the tablets 9 can be judged to be qualified or not by the following operation, which includes: specifying the connection area RA (refer to Fig.14 ), extraction of individual regions KA by shrinkage processing (refer to Fig.15 ) Obtaining the center of gravity CP of individual area KA (refer to Fig.16 ) and the acquisition of the center line BL (refer to Fig.17 ), and division of the area using the center line BL (refer to Fig.18), and determine whether tablets 9 are qualified or not.

[0124] However, as in the above embodiment, although the center line BL passes through the center point CP of the line segment XL, it is not necessarily orthogonal to the line segment XL, unlike the above embodiment. The inclination angle of the center line BL relative to the line segment XL is set according to the shape data (design data) of the tablet 9 obtained in advance, according to the distance between the centers of gravity CP and the actual orientation of the tablet 9. For example, based on the shape data of the tablet 9, four straight outer edges of the tablet 9 can be extracted or estimated from the image data obtained by the cameras 73 and 74, and the inclination angle of the center line BL relative to the line segment XL can be set according to the angle of the extracted or estimated outer edges.

[0125] (b) An arrangement mechanism may be provided to arrange the tablets 9 by aligning the orientation and posture of the tablets 9 captured by the cameras 73 and 74. Fig.19 , Fig. 20 As shown, when the tablet 9 is a rounded rhombus or ellipse in top view, the "arrangement mechanism" can be composed of an upstream conveying groove 41a and a downstream conveying groove 43a having a width approximately the same as the length of the shorter diagonal line in the rhombus or the short diameter of the ellipse.

[0126] In addition, if Fig.21 and Fig. 22 As shown in FIG. 1 , similarly to the above-mentioned embodiment, by aligning the direction and posture of the tablet 9, it is possible to obtain a virtual line orthogonal to the line segment XL while passing through the center point XP of the line segment XL connecting the two centroids CP of the individual area KA, thereby obtaining the center line BL. Therefore, by providing an "arrangement mechanism", even if the tablet 9 is a diamond or ellipse in plan view, the boundary of the tablet 9 can be more easily and accurately defined. In addition, as Fig.23 and Fig.24 As shown, by dividing the area occupied by the tablet 9 in the image data (entire area data AD) using the center line BL, the area occupied by each tablet 9 can be individually specified.

[0127] (c) In the above embodiment, the plurality of tablets 9 photographed by the cameras 73 and 74 are in a "lying position". In contrast, for example, Fig.25 As shown, a camera 76 as a "photographing mechanism" may be provided above the reversing section 42, and the plurality of tablets 9 photographed by the camera 76 may be in a "standing posture". The "standing posture" refers to a posture in which the central axis CL of the tablet 9 is almost horizontal. In this case, as shown in FIG. Fig.26As shown, image data (entire area data AD) of the side surface 9c of the tablet 9 can be obtained, and the acceptance determination related to the side surface 9c can be performed. Therefore, the accuracy of the acceptance determination of the tablet 9 can be further improved.

[0128] (d) The plurality of tablets 9 as the imaging objects photographed by the cameras 73 and 74 may partially overlap along the optical axis direction of the cameras 73 and 74. In addition, considering that the tablets 9 may partially overlap, the determination conditions in the pass / fail determination process may be appropriately set. For example, when the plurality of tablets 9 partially overlap, the determination conditions may be set so that these tablets 9 are determined to be unacceptable.

[0129] (e) In the above embodiment, both the front surface 9a and the back surface 9b of the tablet 9 are inspected. However, only one of the front surface 9a and the back surface 9b may be inspected.

[0130] (f) Tablets may be tablets of not only medicines but also food and beverage tablets. Tablets include not only uncoated tablets but also sugar-coated tablets, film-coated tablets, chewable tablets, enteric-coated tablets, gelatin-coated tablets, etc., as well as various capsule tablets such as hard capsules and soft capsules.

[0131] (g) In the above embodiment, the tablets 9 are supplied from the tablet inspection device 1 (chute 5) to the counter 6a and the bottling device 6b, but the supply destination of the tablets 9 may be changed accordingly. Therefore, for example, a blister packaging machine (e.g., a PTP packaging machine) for producing blister sheets (e.g., PTP sheets) in which the tablets 9 are accommodated in pockets formed in a container film and a blister film is covered on the container film in a manner that blocks the pockets may be used as the supply destination of the tablets 9.

[0132] Furthermore, the blister packaging machine may be configured to include a tablet inspection device 1, and the tablets stored in front of the bag portion or in the bag portion are inspected by the tablet inspection device 1. The tablet inspection device 1 is used to inspect the tablets stored in the bag portion, which is particularly effective when a plurality of tablets are stored in one bag portion and the tablets in one bag portion can be in contact with each other.

[0133] The tablet inspection device 1 is also applicable as a visual inspection assisting device used when an inspector visually inspects tablets 9. In this case, the tablet inspection device 1 may be configured to inspect tablets 9 to assist visual inspection, rather than visual inspection.

[0134] (h) The structure of the transport device 4 is not limited to that exemplified in the above-mentioned embodiment. For example, the transport device may be constituted by a conveyor belt or the like.

[0135] The conveyor device may not be provided, but the cameras 73 and 74 may be used to capture images of the tablets 9 in a stopped state.

[0136] [Explanation of Symbols]

[0137] 1…tablet inspection device, 9…tablet, 41a…upstream conveying trough (alignment mechanism), 43a…downstream conveying trough (alignment mechanism), 73…first camera (imaging mechanism), 74…second camera (imaging mechanism), 75…image processing device (image processing mechanism), 75f…connection area designation unit (connection area designation mechanism), 75g…contraction and separation unit (contraction and separation mechanism), 75h…center of gravity acquisition unit (center of gravity acquisition mechanism), 75i…center line acquisition unit (center line acquisition mechanism), 75j…qualification judgment unit (qualification judgment mechanism), 76…camera (imaging mechanism).

Claims

1. A tablet inspection device, comprising: a camera mechanism for photographing a plurality of tablets of the same shape at a time; and an image processing mechanism for determining whether each tablet is qualified based on image data obtained by the camera mechanism, characterized in that: The plurality of tablets photographed by the imaging device are in the same posture and in a state where they can touch each other. The above-mentioned image processing mechanism has: a connection area designation unit for designating an area occupied by the tablet in the image data as a connection area; A shrinking and separating mechanism, the shrinking and separating mechanism is used to shrink the above-mentioned connection area to separate the connection area while shrinking it, and extract individual areas, where the individual areas are areas occupied by each tablet; A gravity center obtaining mechanism, which is used to obtain the gravity center of the above-mentioned individual area; a center line obtaining mechanism for obtaining: a center line of each center of gravity of the individual regions related to two adjacent tablets obtained by the center of gravity obtaining mechanism; and The acceptance / failure determination means uses the center line acquired by the center line acquisition means as a boundary between two adjacent tablets and performs acceptance / failure determination on each of these tablets.

2. The tablet inspection device according to claim 1, characterized in that: An arranging mechanism is provided for arranging the plurality of tablets by aligning the orientations and postures of the tablets imaged by the imaging mechanism.

3. A tablet inspection method, comprising: an imaging step, in which a predetermined imaging mechanism is used to image a plurality of tablets of the same shape at a time; and an image processing step, in which the image processing step is used to determine whether each tablet is qualified based on the image data obtained by the imaging step, wherein: The plurality of tablets photographed in the photographing step are in the same posture and in a state where they can touch each other. The above image processing steps include: a connection area designation step for designating an area occupied by the tablet in the image data as a connection area; A shrinking and separating step, wherein the shrinking and separating step is used to shrink the connected area to separate the connected area while shrinking it, and extract individual areas, where the individual areas are areas occupied by each tablet; A center of gravity obtaining step, wherein the center of gravity obtaining step is used to obtain the center of gravity of the above-mentioned individual area; a center line obtaining step for obtaining: a center line of each center of gravity of the individual regions related to two adjacent tablets obtained in the center of gravity obtaining step; and The acceptance / failure determination step is to determine the acceptance / failure of each of the two adjacent tablets using the center line obtained in the center line obtaining step as a boundary between two adjacent tablets.