PROBLEM TO BE SOLVED: To detect the line of sight of a person with high accuracy.SOLUTION: A terminal device includes an acquisition unit that acquires information indicating the state of an imaging unit at the time of capturing the image of a subject, a determination unit that determines whether the image captured by the imaging unit includes a blur due to shake of the imaging unit on the basis of acquired information, and a detection unit that detects the line of sight of the captured subject using an image which is determined not to include a blur by the determination unit.【課題】 人物の視線を精度良く検出することを目的とする。【解決手段】 被写体の撮影時における撮像部の状態を示す情報を取得する取得部と、取得した情報に基づいて撮像部により撮影された画像が撮像部のぶれによるボケを含むか否かを判定する判定部と、判定部によりボケがないと判定された画像を用いて、撮影された被写体の視線を検出する検出部と、を有する。【選択図】 図1