Recently deep learning-based research has been conducted in various fields. Deep learning algorithms require vast amounts of data for good performance. Therefore, collecting such a huge amount of high-quality data is crucial to the deep learning-based methods. Data collection is simple but very time-consuming. To cope with this difficulty, in this study we propose a method to generate a dataset by synthesizing the images of background and object. Various images can be generated through post-processes such as adding noise and changing brightness to the images of objects obtained from different viewpoints. Furthermore, we do not need to manually annotate the dataset for object detection because we can calculate the parameters of the bounding boxes from the location and size of object images during the synthesis process. Faster R-CNN, one of the deep learning algorithms for object recognition, was used to verify the proposed method. The performance based on the dataset generated by the proposed method is comparable to that based on the real dataset.