1. A method performed by an electronic device, for generating augmented reality contents, the method comprising: capturing a real world image using a camera of the electronic device; building a virtual space corresponding to the real world image, by partitioning image elements included in the captured image into plural background objects, and displaying the background objects; and generating augmented reality contents by mapping one or more user contents onto the background objects; wherein displaying the background objects comprises one of: identifying a number of predefined user contents to be included within the augmented reality contents, and partitioning the image elements into the background objects corresponding to the number of user contents; and partitioning the image elements into background objects according to a number of user contents defined by default.