Provided are a drug audit device, an image processing device, an image processing method, and a program for appropriately extracting identification information even when the positional relationship between the marking and printing attached to the drug is not constant. A process of emphasizing the printed portion of the drug is performed based on at least one photographed image of the drug taken by irradiating the surface of the drug with light to generate a print-enhanced image, and the direction of illumination of the light on the surface of the drug is determined. A process of extracting only the engraved portion from the three-dimensional shape of the drug is performed based on at least three images of the drug taken differently from each other to generate an engraved extraction image, and a print-enhanced image and a difference image of the engraved extracted image are obtained. The above problem is solved by the generated image processing device.薬剤に付された刻印及び印字の位置関係が一定でない場合であっても適切に識別情報を抽出する薬剤監査装置、画像処理装置、画像処理方法及びプログラムを提供する。薬剤の表面に光を照射して撮影した少なくとも1枚の薬剤の撮影画像に基づいて薬剤の印字部分を強調する処理を行い、印字強調画像を生成し、薬剤の表面への光の照明方向をそれぞれ異ならせて撮影した少なくとも3枚の薬剤の撮影画像に基づいて薬剤の立体形状から刻印部分のみを抽出する処理を行い、刻印抽出画像を生成し、印字強調画像及び刻印抽出画像の差分画像を生成する画像処理装置によって上記課題を解決する。