An image processing device includes: a detection unit which detects partition line candidates that are candidates for a partition line for partitioning a parking frame, based on edge lines that are detected based on luminance of each pixel of image data taken by shooting a neighborhood of a vehicle; and a generation unit which generates an integrated partition line candidate by integrating the partition line candidates detected by the detection unit, according to a prescribed integration condition.