Provided are a compact imaging device and endoscope device. The imaging device (35) is provided with: an optical member holder (36) that is hollow with both ends being open, and has a notched section (36c) at the side surface at one end; an objective lens (43) that is installed within the optical member holder (36) and that focuses light entering from the other end of the optical member holder (36); a prism (37) that is installed within the optical member holder (36) and that reflects light focused by the objective lens (43); an imaging element (38) that receives the light reflected by the prism (37) and that generates an electrical signal by means of performing photoelectric conversion; and a substrate (39) that is electrically connected to the imaging element (38). The prism (37) is characterized by at least a portion of the outer peripheral surface thereof forming a cylindrical surface, the cylindrical surface contacting the interior of the optical member holder (36), and at least a portion of the imaging element (38) being attached to the side surface of the optical member holder (36) via the notched section (36c).L'invention concerne un dispositif d'imagerie compact et un dispositif d'endoscope compact. Le dispositif d'imagerie (35) comprend : un support d'élément optique (36) qui est creux, les deux extrémités étant ouvertes, et a une section entaillée (36c) au niveau de la surface latérale à une première extrémité; une lentille d'objectif (34) qui est installée dans le support d'élément optique (36) et qui concentre une lumière provenant de l'autre extrémité du support d'élément optique (36); un prisme (37) qui est installé dans le support d'élément optique (36) et qui réfléchit la lumière concentrée par la lentille d'objectif (43); un élément d'imagerie (38) qui reçoit la lumière réfléchie par le prisme (37) et qui génère un signal électrique au moyen de la réalisation d'une conversion photoélectrique; et un substrat (39) qui est relié électriquement à l'élé