PROBLEM TO BE SOLVED: To solve the problem that a conventional pill inspection device leaves a part of a display label in an inspection image even when removal of the display label by binarization is attempted to be performed.SOLUTION: A pill inspection device 11 is constituted by being provided with: a placement base 12 for loading a chartula cartridge 21 to which a display label with transparency is applied a reflection illumination part 13 a transparent illumination part 14 which illuminates the placement base 12 from the opposite side of the reflection illumination part 13 a camera part 15 which photographs a reflected image and photographs a transmission image a differential image generation part 18 which takes difference between the reflected image and the transmission image to generate a differential image a separation degree calculation part 16 which calculates a separation degree showing whether or not a pill area and a label area of the differential images are clearly separated from each other when the differential image is binarized and a brightness adjustment part 17 which changes a level value of a transparent illumination level of the transparent illumination part 14 to be adjusted to a level value of an operation level at which the separation degree to be obtained from the separation degree calculation part 16 is equal to or less than a predetermined value or the minimum value.COPYRIGHT: (C)2012,JPO&INPIT【課題】従来の錠剤検査装置は、二値化による表示ラベルの除去を行なおうとしても、表示ラベルの一部を検査画像に残してしまうという課題を有していた。【解決手段】錠剤検査装置11は、透過性を有する表示ラベルが施された薬包体21を載置する載置台12と、反射照明部13と、反射照明部13の反対側より載置台12を照らす透過照明部14と、反射画像を撮影しかつ透過画像を撮影するカメラ部15と、反射画像と透過画像の差分を取り差分画像を生成する差分画像生成部18と、差分画像を二値化した時に、差分画像の錠剤領域とラベル領域を明確に分離できたかを示す分離度を算出する分離度算出部16と、透過照明部14の透過照明レベルのレベル値を変更し、分離度算出部16より得られる分離度が所定の値以下または最小の値である作動レベルのレベル値に調整する明度調整部17を備えた構成である。【選択図】図1