An inspection device includes: an acquisition unit configured to acquire dark-time image data generated in a state where the imaging element is shielded from light; a first generation unit configured to generate average added image data by adding up the dark-time image data and dividing the added-up result by number of frames; a second generation unit configured to generate difference image data in which the average added image data is subtracted from the image data; a first calculation unit configured to calculate, as a lateral streak noise index, a statistical value of the difference image data; a second calculation unit configured to calculate the lateral streak noise indices; a third calculation unit configured to calculate, as the correction value, the correlation degree having a minimum value among the lateral streak noise indices; and a recording control unit configured to record the correction value in a recording unit.