1. A non-transitory computer-readable recording medium having stored therein an image processing program causing a computer to execute a process comprising determining a type of change in a state of a bed during a time period from capturing of a first image to capturing of a second image after the capturing of the first image, on the basis of a correspondence relationship between a boundary that indicates a first bed area in the first image and a line segment represented by an edge detected from the second image.