A computer implemented method for capturing an image, the method comprising: acquiring an image captured by a camera; acquiring an obstacle in the image, by acquiring an object having a shape similar to a preset obstacle shape in the image, or acquiring an object when a difference in color between pixels of the object and pixels of background of the image is larger than a preset threshold; erasing information within an obstacle region which corresponds to the obstacle; and repairing the obstacle region in which information has been erased and characterized in that acquiring an obstacle in the image further comprises: displaying the acquired object with a mark, and when the object displayed with a mark is selected, taking the object as the obstacle in the image, and erasing information within an obstacle region which corresponds to the obstacle comprises: recognizing an outline of the obstacle in a region of the image which contains the obstacle, a difference in gray-scale between a pixel constituting the outline of the obstacle and a pixel adjacent to the pixel being larger than a preset threshold; and determining a region surrounding the outline of the obstacle as an obstacle region, and erasing information within the obstacle region, wherein, the obstacle region has a size that is slightly larger than the size of the shape of the obstacle. acquiring an image captured by a camera; acquiring an obstacle in the image, by acquiring an object having a shape similar to a preset obstacle shape in the image, or acquiring an object when a difference in color between pixels of the object and pixels of background of the image is larger than a preset threshold; erasing information within an obstacle region which corresponds to the obstacle; and repairing the obstacle region in which information has been erased and characterized in that acquiring an obstacle in the image further comprises: displaying the acquired object with a mark, and when the object displayed with a mark is selected, taking the object as the obstacle in the image, and erasing information within an obstacle region which corresponds to the obstacle comprises: recognizing an outline of the obstacle in a region of the image which contains the obstacle, a difference in gray-scale between a pixel constituting the outline of the obstacle and a pixel adjacent to the pixel being larger than a preset threshold; and determining a region surrounding the outline of the obstacle as an obstacle region, and erasing information within the obstacle region, wherein, the obstacle region has a size that is slightly larger than the size of the shape of the obstacle. displaying the acquired object with a mark, and when the object displayed with a mark is selected, taking the object as the obstacle in the image, and erasing information within an obstacle region which corresponds to the obstacle comprises: recognizing an outline of the obstacle in a region of the image which contains the obstacle, a difference in gray-scale between a pixel constituting the outline of the obstacle and a pixel adjacent to the pixel being larger than a preset threshold; and determining a region surrounding the outline of the obstacle as an obstacle region, and erasing information within the obstacle region, wherein, the obstacle region has a size that is slightly larger than the size of the shape of the obstacle. recognizing an outline of the obstacle in a region of the image which contains the obstacle, a difference in gray-scale between a pixel constituting the outline of the obstacle and a pixel adjacent to the pixel being larger than a preset threshold; and determining a region surrounding the outline of the obstacle as an obstacle region, and erasing information within the obstacle region, wherein, the obstacle region has a size that is slightly larger than the size of the shape of the obstacle. <EOS>