An image pickup device comprising: an imaging element configured to generate an image signal from optical information that is input via an optical system; an image processor configured to perform a predetermined processing on the image signal generated by the imaging element to generate and record moving picture data that includes a plurality of frame images, wherein the moving picture data undergoes inter-frame compression; an input unit configured to receive input of a designated region on an image among the plurality of frame images, the input being made by a user; and a controller configured to cause the image processor to generate the moving picture data while changing a focus position of the optical system, and extract data of a frame image that is in focus on the designated region from among the plurality of frame images included in the moving picture data as a still picture, wherein the controller is configured to create a table including a frame number of a frame image that is in focus on a respective region among the plurality of frame images for a plurality of regions obtained by dividing an image region of the plurality of frame images into said plurality of regions, the controller is configured to identify, with reference to the table, a frame image among the plurality of frame images that is in focus on the designated region as the still picture, the controller is configured to perform, before causing the image processor to generate the moving picture data, a scan operation to detect, for each of the plurality of regions, the frame image that is in focus and to determine a position in focus of the optical system closest to a close end and a position in focus of the optical system closest to an infinite end while changing the focus position of the optical system from the close end to the infinite end or in opposite direction, and the controller is configured to use a result of the scan operation for creating the table, the controller is configured to generate the moving picture data while moving the focus position of the optical system between the position in focus closest to the close end and the position in focus closest to the infinite end, resulting from the scan operation. an imaging element configured to generate an image signal from optical information that is input via an optical system; an image processor configured to perform a predetermined processing on the image signal generated by the imaging element to generate and record moving picture data that includes a plurality of frame images, wherein the moving picture data undergoes inter-frame compression; an input unit configured to receive input of a designated region on an image among the plurality of frame images, the input being made by a user; and a controller configured to cause the image processor to generate the moving picture data while changing a focus position of the optical system, and extract data of a frame image that is in focus on the designated region from among the plurality of frame images included in the moving picture data as a still picture, wherein the controller is configured to create a table including a frame number of a frame image that is in focus on a respective region among the plurality of frame images for a plurality of regions obtained by dividing an image region of the plurality of frame images into said plurality of regions, the controller is configured to identify, with reference to the table, a frame image among the plurality of frame images that is in focus on the designated region as the still picture, the controller is configured to perform, before causing the image processor to generate the moving picture data, a scan operation to detect, for each of the plurality of regions, the frame image that is in focus and to determine a position in focus of the optical system closest to a close end and a position in focus of the optical system closest to an infinite end while changing the focus position of the optical system from the close end to the infinite end or in opposite direction, and the controller is configured to use a result of the scan operation for creating the table, the controller is configured to generate the moving picture data while moving the focus position of the optical system between the position in focus closest to the close end and the position in focus closest to the infinite end, resulting from the scan operation.