A computer implemented method for capturing an image, the method comprising: acquiring (101, 201) an image captured by a camera; acquiring (102, 201) 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 (104, 204) the obstacle region in which information has been erased and characterized in that acquiring (102, 201) 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 (101, 201) an image captured by a camera; acquiring (102, 201) 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 (104, 204) the obstacle region in which information has been erased and characterized in that acquiring (102, 201) 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.