主权项 |
1. A drug recognition device comprising:
an illumination unit that can illuminate a drug having a stamped character thereon in a plurality of illumination directions surrounding the drug; an illumination control unit that sequentially switches the illumination direction in which the illumination unit illuminates the drug; an imaging unit that captures an image of the drug illuminated by the illumination unit and repeatedly captures the image of the drug whenever the illumination direction is switched; a feature image extraction unit that extracts a feature image corresponding to a shadow of the stamped character from the captured image in each illumination direction which is acquired by the imaging unit; a feature image integration unit that integrates the feature images in each illumination direction which are extracted by the feature image extraction unit to generate an integrated image; and a recognition unit that recognizes the stamped character included in the integrated image which is generated by the feature image integration unit and recognizes the type of the drug on the basis of the result of recognizing the stamped character, wherein the illumination unit includes a first illumination unit and a second illumination unit, the first illumination unit causes illumination light to be incident on the drug at a first incident angle in the illumination directions surrounding the drug, and the second illumination unit causes illumination light to be incident on the drug at a second incident angle, which is different from the first incident angle, in the illumination directions surrounding the drug, and the illumination control unit performs switching of the illumination direction of the first illumination unit in a state in which the second illumination unit is turned off, and performs switching of the illumination direction of the second illumination unit in a state in which the first illumination unit is turned off. |