PROBLEM TO BE SOLVED: To provide a medicine counter capable of exactly counting medicine without being affected by print of a cartridge.SOLUTION: A medicine counter includes: a distance calculation part 104 which calculates distance between two points, and geodesic distance for a plurality of movement loci which are loci of movement of blocks consisting of one or more pixels each of which constitutes a picture, over a plurality of pictures constituting moving pictures obtained by picking up medicine encapsulated in a cartridge which is oscillated by an oscillation part a joint likeness calculation part 105 which calculates joint likeness feature quantity showing a degree that the respective movement loci are movement loci of joints which are parts where medicines contacts each other on the basis of time change of distance between two points between arbitrary movement loci and time change of the geodesic distance and a separation calculation part 107 which counts the medicine encapsulated in the cartridge on the basis of the joint likeness feature quantity calculated by the joint likeness calculation part 105.COPYRIGHT: (C)2013,JPO&INPIT【課題】薬包の印字に影響されることなく、正確に薬剤を計数可能な薬剤計数装置を提供する。【解決手段】揺動部により揺動されている薬包に封入された薬剤を撮像した動画像を構成する複数枚のピクチャにわたる、各々がピクチャを構成する1個以上の画素からなるブロックの動きの軌跡である複数の移動軌跡について、2点間距離と、測地距離とを算出する距離算出部104と、任意の移動軌跡間の2点間距離の時間変化および測地距離の時間変化に基づいて、各移動軌跡が薬剤と薬剤とが接触する部分である節の移動軌跡である度合いを示す節らしさ特徴量を算出する節らしさ算出部105と、節らしさ算出部105が算出した節らしさ特徴量に基づいて、薬包に封入された薬剤を計数する分離計数部107とを備える。【選択図】図1